benilla-re systems structs docs

ConsoleCommandUnregister

function · console · orchestration

Address
0x63fb40 · 277 bytes, up to 0x63fc54
Signature
void __fastcall (const char *name)
Meaning
Unlinks a command from both lists and frees it
Confidence
verified, proof one
Finding
console/commands#registering-and-removing

Finding: Registering and removing in console: commands

ConsoleCommandRegister (0x63f9e0; name in ecx, handler in edx, category and help on the stack) returns 0 for a name of 64 bytes or more or one already registered (case-blind), and otherwise adds the command and returns 1. ConsoleCommandUnregister (0x63fb40) finds a name, unlinks it from both lists and frees it. The first registration builds four buckets with mask 3; later ones grow the table when a bucket chain passes the limit of cvar/containers#growth.

The derivation is in the doc.

Callers 11

Callees 2

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