ReadZipDirectoryEntry
function · storm · host
- Address
0x667e20· 1114 bytes, up to0x668279- Signature
bool __thiscall (void *this)- Meaning
- Reads a zip's next central record, checks its local header, and adds it to the zip entry table
- Confidence
- verified, proof two
- Finding
- storm/files#zip-archive-listing
Finding: Zip archive listing in storm: loose files and zip archives
SFileOpenArchiveShim makes an 8-byte record: type 0 and an MPQ handle for a .mpq name, any case,
else type 1 and a zip handle from 0x668360, which fopens the file and reads its central directory,
found by the first end record PK\5\6 in the last 0x10016 bytes. Each record whose local header
matches it and whose method is 0 or 8 becomes an entry of a table Storm keeps for every zip, the zip at
+0x18 and the name, / turned to \, at +0x1c; another record fails the open. The listing
0x648fb0 sends type 1 to 0x668b30(zip, callback, data), which calls callback(name, data) for each
entry of that zip in the order read until a call returns 0.
The derivation is in the doc.
Callers 1
- ReadZipDirectory storm
Callees 17
- SMemAlloc storm
- SStrCmp storm
- SStrCmpI storm
- SStrCopy storm
- SStrHashHT storm
- 0x667710 storm
- 0x667720 storm
- SlashesToBackslashes storm
- 0x668280 storm
- 0x6690c0 storm
- 0x6691f0 storm
- 0x669210 storm
- 0x6692d0 storm
- 0x669550 storm
- 0x740c97 crt
- _fseek crt
- _ftell crt
Calls and jumps by a bare address, from tables/calls.tsv.