ReadPetitionRecord
function · unassigned · primitive
- Address
0x7c7a30· 313 bytes, up to0x7c7b68- Signature
void __thiscall (void *this, CDataStore *store)- Meaning
- Reads a petition record from a data store, copying its strings with no capacity
- Confidence
- verified, proof one
- Finding
- objectlayer/party#reading-a-petition-record
- Test
dbcache::dbcache_petition
Finding: Reading a petition record in objectlayer: party, guild and petitions
0x7c7a30 reads a petition record (the record in ecx, the store on the stack) in the order 0x7c78f0 writes it: a u32 at +0, a GUID at +8,
the title into +0x10 and the text into +0x110, eleven values from +0x1110 to +0x1138 (the one at +0x1130 16-bit),
the choice count at +0x13bc, then that many choices from +0x113c, 0x40 bytes apart. Every string is copied with
the capacity 0x7fffffff, so a title, text or choice longer than its field runs into the next, and the loop has no cap
at ten: an eleventh choice lands on the count, which the loop reads again each pass, a client fault. Three readers call it
(0x555598, 0x568306, 0x568973).
The derivation is in the doc.
Callers 3
- HandlePetitionQueryResponse dbcache
- 0x5681c0 dbcache
- PetitionCacheLoad dbcache
Callees 5
- CDataStore::GetInt16 base
- CDataStore::GetInt32 base
- CDataStore::GetUInt32 base
- CDataStore::GetGuid base
- CDataStore::GetCString base
Calls and jumps by a bare address, from tables/calls.tsv.