CSimpleModelFFX::DeletingDestructor
function · glue · orchestration
- Address
0x470040· 52 bytes, up to0x470073- Signature
CSimpleModelFFX * __thiscall (CSimpleModelFFX *this, uint32_t flags)- Meaning
- Restores both vtables, runs the model class's destructor and frees the frame when bit 0 of the flags is set
- Confidence
- verified, proof one
- Finding
- glue/create#modelffx-vtables-and-stubs
Finding: ModelFFX vtables and stubs in glue: character create
CSimpleModelFFX (988 bytes) has two vtables, 0x803960 at +0x00 and 0x803934 at +0x24.
Besides its destructor and a thunk, they hold seven inherited methods here: three of the model
class, answering type queries as Model, and four stubs shared with dozens of frame vtables.
The addresses 0x803938, 0x803958 and 0x803970 are slots inside them, not vtables.
| function | table, slot | does |
|---|---|---|
0x470040 | 0x803960, 0 | stores both vtables, calls 0x76ca50, frees when bit 0 is set |
0x470080 | 0x803934, 1 | subtracts 0x24 from this, jumps to 0x470040 |
0x46ff70 | 0x803960, 1 | returns this+0x98 |
0x46ffa0 | 0x803960, 4 | 1 for one of three type ids |
0x46ffd0 | 0x803960, 6 | 1 for Model, Frame or Region, any case |
0x470030 | 0x803960, 7 | returns Model |
0x46ff80, 0x46ff90 | 0x803960, 21, 22 | return 0, pop one argument |
0x46ff60 | 0x803934, 9 | returns 0 |
The derivation is in the doc.
Callers 1
Callees 2
- SMemFree storm
- DestroyModelFrame ui
Calls and jumps by a bare address, from tables/calls.tsv.