NetClient::DispatchMessage
function · net · primitive
- Address
0x537aa0· 92 bytes, up to0x537afb- Signature
uint32_t __thiscall (NetClient *this, uint32_t time, CDataStore *msg)- Meaning
- Reads the u16 opcode and calls its handler with context, opcode, time and message; an unhandled one is dropped
- Confidence
- verified, proof two
- Finding
- net/dispatch#dispatch
- Test
net::netclient_dispatch
Finding: Dispatch in net: dispatch
0x537aa0 reads the packet's 16-bit opcode, counts one in 0xc0d46c, calls the client's slot 16
with it (0x537b00, a bare return in all three vtables that hold it), and calls the registered
handler with the context in ecx, the opcode in edx, and the packet's time and data store on
the stack. A handler returns with ret 8. With none, it calls the data store's slot 6 and drops
the packet. The opcode is not range-checked: from 0x33c to 0x677 the handler comes
from the context table, and the context, like every handler above 0x677, from past both tables.
A packet with no opcode bytes leaves the 16-bit read unwritten, so the opcode is the store
pointer's high half.
The derivation is in the doc.
Callers 2
- NetClient::HandleData net
- HandleCompressedMovesPacket objectlayer
Callees 1
Calls and jumps by a bare address, from tables/calls.tsv.