benilla-re systems structs docs

ProcessEntry

function · unassigned

Address
0x401000 · 10 bytes, up to 0x401009
Meaning
Calls 0x645010, then jumps to the C runtime start-up 0x4098c0
Confidence
verified, proof one
Finding
core/threads#process-entry

Finding: Process entry in core: process entry and threads

The PE entry point 0x401000 calls 0x645010, then jumps to the C runtime start-up 0x4098c0. 0x645010 starts Storm: 0x65aa20 initializes five critical sections once, and 0x646280 runs SMemInitialize once. The start-up reads the OS version, runs the runtime's set-up, takes the command line and the startup info, and calls WinMain(GetModuleHandleA(0), 0, command line, show) at 0x40999b, show being the startup info's wShowWindow when its flag bit 0 is set, else 10, and exits with the return value. WinMain (0x404100, ret 0x10) clears the x87 status, sets the control word with __control87(0x9001f, -1), calls 0x42a1c0, and then the application body 0x402120.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 2

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