benilla-re systems structs docs

InitSquare44

function · net · primitive

Address
0x5aa030 · 19 bytes, up to 0x5aa042
Signature
void __cdecl (void)
Meaning
Stores 120 squared as a float in a global
Confidence
verified, proof one
Finding
net/layout#static-initializers
Test
net::initializer_constants, net::initializer_formulas

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 1

Callees 0

None by a direct call or jump.

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