benilla-re systems structs docs

s_tradeStatusJumpTable

global · objectlayer

Address
0x5d494c · 32 bytes, up to 0x5d496b
Type
void *[8]
Meaning
Holds the trade status handler's eight cases
Confidence
verified, proof one
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.