benilla-re systems structs docs

StormExitHandler

function · storm · boundary

Address
0x64cc30 · 40 bytes, up to 0x64cc57
Signature
void __cdecl (void)
Meaning
Runs the C runtime exit once, shuts Storm down and ends the process with the stored exit code
Confidence
verified, proof one
Finding
core/close#c-runtime-exit

Finding: C runtime exit in core: closing the window

0x4021e4 then calls 0x64cbf0, which registers 0x64cc30 (0x64cc18) last. WinMain returns to the start code (0x40999b), which calls _exit. Storm's exit function, registered last, runs first and calls __cexit, whose _doexit runs every other exit function from the last registered to the first; Storm then shuts down and __exit ends with ExitProcess.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 3

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