ConstructFileObject
function · storm · orchestration
- Address
0x647290· 61 bytes, up to0x6472cc- Signature
void * __thiscall (SFileObject *this, uint32_t kind)- Meaning
- Stores a file object's kind, constructs its lock and zeroes its other fields but +0x14, +0x20 and +0x44
- 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 1
- SFile::OpenEx storm
Callees 1
- SCritSect::SCritSect storm
Calls and jumps by a bare address, from tables/calls.tsv.