benilla-re systems structs docs

HandleUpdateAccountDataPacket

function · net · orchestration

Address
0x5afc60 · 207 bytes, up to 0x5afd2e
Signature
int __fastcall (void *param, uint32_t opcode, uint32_t time, CDataStore *msg)
Meaning
Inflates a section from the message into its file, clears its pending flag and runs a waiting read
Confidence
verified, proof one
Name from
the community database (idb)
Finding
net/accountdata#section-transfer

Finding: Section transfer in net: account data

0x5afbe0 sends CMSG_REQUEST_ACCOUNT_DATA (0x20a) with the section number and sets its pending byte. 0x5afae0 sends CMSG_UPDATE_ACCOUNT_DATA (0x20b): the section number, the file's size, and the file compressed with zlib level 1, to the end of the packet; nothing is sent when the file does not open. SMSG_UPDATE_ACCOUNT_DATA (0x20c) is a section number, a size and a zlib stream to the end of the packet: 0x5afc60 inflates it into a buffer of that size on the stack, overwrites the section file with the result unless the size is 0, clears the pending byte, and runs the saved read callback. It does not test the inflate's result or the section number, and the size is the server's.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 9

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