TradeStatusHandler
function · objectlayer · orchestration
- Address
0x5d47c0· 396 bytes, up to0x5d494b- 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.
| status | body | effect before the dispatcher | tail |
|---|---|---|---|
| 0, 5, 6, 10, 11, 14 to 21 | none | none | yes |
| 1 | u64 GUID | GUID to 0xc4bed0 | no |
| 2 | none | 0xc4bea8 and both 0xc4be78 to 1; cleared; both 0xc4bed8 to 0 | no |
| 3, 13 | none | cleared; event 200 | yes |
| 4, 7, 9 | none | none | no |
| 8 | none | cleared | yes |
| 12 | i32 A, u8 B, i32 C | cleared | yes |
| 22 | u8 D | 0xff zeroes the own offer 0xc4be70 | no |
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 6
- CDataStore::GetUInt8 base
- CDataStore::GetInt32 base
- CDataStore::GetUInt32 base
- CDataStore::GetGuid base
- CGTradeInfo::HandleTradeMessage ui
- FrameScript_SignalEvent ui
Calls and jumps by a bare address, from tables/calls.tsv.