benilla-re systems structs docs

_atexit

function · crt · boundary

Address
0x409aef · 18 bytes, up to 0x409b00
Signature
int __cdecl (void (*function)(void))
Meaning
Registers a function to run at exit
Confidence
inferred
Name from
the community database (idb)
Finding
net/layout#static-initializers

Finding: Static initializers in net: layout

The 276 initializers are each a thunk, a jmp or a call five bytes long, and a body at the next 16-byte boundary. 266 bodies store one value in a global: most a float computed from constants (a square, a quotient, a doubling), the rest a copied dword or a counter. 300 of the 319 globals they write are read nowhere else. The others build the command tables of ClientLink (0x5b87b0) and ServerLink (0x5b88a0), list heads, the network globals, and the random pool (login). The 13 counters add 1 to 0xc2a3c4, calling the empty 0x5b71c0 at 1; the exit functions their thunks register subtract 1, calling the empty 0x5b71d0 at 0. 0x5aa2b0, registered alike, sets bit 0 of 0xc27d50.

The derivation is in the doc.

Callers 1045

Callees 1

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