DestroyFileObject
function · storm · orchestration
- Address
0x6472d0· 120 bytes, up to0x647347- Signature
void __thiscall (SFileObject *this)- Meaning
- Ends a file object's inflate and frees its stream, path and name copies and input buffer, leaving the file open
- Confidence
- verified, proof two
- Finding
- storm/bz#the-file-object
Finding: The file object in storm: compressed loose files
0x647290(kind) builds the object: the kind at +0x00, the lock at +0x24, and 0 in every field but
+0x14, +0x20 and +0x44 to +0x50, which keep what the allocation held. A kind-1
open fills the FILE * (+0x04), the path and name copies (+0x0c, +0x10), the inflated size
(+0x14), the input buffer (+0x18), the zlib stream (+0x1c), the position (+0x20) and 16 header
bytes (+0x44, flagged at +0x54). Other kinds use +0x08, +0x3c and +0x40; +0x58 and
+0x5c serve overlapped reads. 0x6472d0 ends the inflate and frees the stream, the copies and
the buffer, and deletes the lock; it does not close the FILE *, which only SFile::Close does first.
The derivation is in the doc.
Callers 2
- SFile::OpenEx storm
- SFile::Close storm
Callees 3
- SMemFree storm
- SCritSect::~SCritSect storm
- inflateEnd zlib
Calls and jumps by a bare address, from tables/calls.tsv.