benilla-re systems structs docs

TradeStatusHandler

function · objectlayer · orchestration

Address
0x5d47c0 · 396 bytes, up to 0x5d494b
Signature
uint32_t __fastcall (void *param, uint32_t opcode, uint32_t time, CDataStore *msg)
Meaning
Handles SMSG_TRADE_STATUS: reads the status and its body, updates the trade globals, calls the dispatcher
Confidence
verified, proof one
Name from
the community database (idb)
Finding
objectlayer/trade#trade-status-message

Finding: Trade status message in objectlayer: trade

The handler 0x5d47c0 reads a u32 status. Statuses 0 to 22 then read and do as the table says; other statuses read nothing and change nothing. "Cleared" means the record table and both money offers are zeroed. After that, it calls the dispatcher 0x4bf720 with the status in ecx, A in edx, then on the stack the byte B != 0, C and D (0 where unread). Last, for the statuses marked "tail", it zeroes 0xc4bec8 and 0xc4bed0. It returns 1.

statusbodyeffect before the dispatchertail
0, 5, 6, 10, 11, 14 to 21nonenoneyes
1u64 GUIDGUID to 0xc4bed0no
2none0xc4bea8 and both 0xc4be78 to 1; cleared; both 0xc4bed8 to 0no
3, 13nonecleared; event 200yes
4, 7, 9nonenoneno
8noneclearedyes
12i32 A, u8 B, i32 Cclearedyes
22u8 D0xff zeroes the own offer 0xc4be70no

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 6

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