REDIVIVUS

Proposals / #1495

Mac SNET_CreateConnection: void* __fastcc (void* pConnList ECX, void* pAddress EDX)

checked · by KierTaylor · submitted 2026-11-08

ECX = the global connection list: it is passed as [ESP] to the list's NewNode 0x0001ac5e (flags 2), which allocates the node. EDX -> EDI = a 16-byte address, copied into node+0x108 (memcpy 0x00028dc1, size 0x10). It sets +0x212 = 0xffff and +0x11c = GetTickCount, then returns the node (MOV EAX,ESI). There are no stack args. The caller SNET_ConnSendMessage 0x00019b5d sets ECX=LEA global list, EDX=ESI and keeps EAX (TEST EAX,EAX).

Changes 1, applied together

  1. Set prototype mac 0x0001a43f

    signatureundefined SNET_CreateConnection(void)→void* SNET_CreateConnection(void* pConnList, void* pAddress)
    conventionunknown→__fastcc