benilla-re systems structs docs

GetModuleExport

function · os · primitive

Address
0x7a7de0 · 49 bytes, up to 0x7a7e10
Signature
void * __thiscall (WardenModule *this, uint32_t ordinal)
Meaning
Returns the address of the module export with the given ordinal, or null
Confidence
verified, proof one
Finding
warden/modules#unloading-and-exports
Test
warden::loader_whole

Finding: Unloading and exports in warden: module decoding and loading

0x7a7d80 frees a module's libraries, last loaded first (GetModuleHandleA of each import name, then FreeLibrary), then calls VirtualFree(base, size, MEM_RELEASE), which Windows rejects for a nonzero size, so the image stays mapped. It zeroes the base and size. 0x7a7de0 returns the address of export n: the image base plus the table's dword n minus the first ordinal, or 0 when that index is not below the export count or the base is 0.

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.