benilla-re systems structs docs

ShutdownWardenHandler

function · warden · orchestration

Address
0x6ca640 · 87 bytes, up to 0x6ca696
Signature
void __cdecl (void)
Meaning
Frees both modules and the handover buffer and clears the 0x2e6 handler
Confidence
verified, proof one
Finding
warden/overview#globals-and-lifetime

Finding: Globals and lifetime in warden: overview

The state is eight globals and two structs. The table pointer 0xce8954 is the object a module receives; the lock 0xce8958 guards the rest. Static initializers build the lock and store the table pointer. The connect event runs InitWardenHandler, each frame runs the tick, and a disconnect, a failed connect or a Disconnect call runs ShutdownWardenHandler. No atexit entry unloads a module; Disconnect is reached from the client's stop handler through ClientServices::Destroy (0x5ab40a), and whether process exit takes that path is not read here.

addressholds
0xce8954a dword, the service table 0x811434
0xce8958the critical section, 24 bytes
0xce8974the pending module, a WardenModule or null
0xce8978the active module, or null
0xce897cthe active or starting module's object; its first dword is the module's table
0xce8980the handover buffer's bytes, or null
0xce8984the handover buffer's length
0xce8988the time of the last tick, ms

The derivation is in the doc.

Callers 4

Callees 6

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