benilla-re systems structs docs

ArchiveLoadTables

function · storm · orchestration

Address
0x655bf0 · 1334 bytes, up to 0x656125
Signature
int __fastcall (ArchiveRecord *archive, uint32_t flags, uint32_t arg3, uint32_t arg4)
Meaning
Finds the header, reads and decrypts the hash and block tables, and links the archive into the list
Confidence
verified, proof two
Finding
storm/format#header

Finding: Header in storm: the archive format

0x655bf0 tries offsets of the archive in steps of 0x200, each served from a buffered read of 0x1000 bytes, and takes the first that passes four tests: the magic 0x1a51504d, a header size of at least 0x20, and at most 0x10000 hash entries and 0x10000 block entries. The 32-byte header is the magic, header size, archive size, a 16-bit version (not tested here), a 16-bit sector shift (low byte used; sector size 0x200 << shift), then the offsets of the hash and block tables and their entry counts, relative to the header. A short read or no room for 0x20 bytes fails with 0x8510006c.

The derivation is in the doc.

Callers 2

Callees 12

Calls and jumps by a bare address, from tables/calls.tsv.