benilla-re systems structs docs

FindMailAndParseSubject

function · ui · primitive

Address
0x4ace40 · 45 bytes, up to 0x4ace6c
Signature
void __fastcall (uint32_t mailId)
Meaning
Finds a mail by id and parses its auction subject again
Confidence
verified, proof one
Finding
ui/mail#auction-mail-subjects

Finding: Auction mail subjects in ui: the mailbox and the inbox

For a type 2 mail the subject on the wire is entry:randomProperty:result. 0x4ace70 splits it, resolves the item name with its suffix through the item cache and rewrites the subject to the global string of the result code: AUCTION_OUTBID_MAIL_SUBJECT (0), _WON_ (1), _SOLD_ (2), _EXPIRED_ (3), _REMOVED_ (4 and 5), formatted with the item name. An uncached item leaves the subject empty until the callback 0x4ad010 redoes it. The entry, random property and result are kept at +0x250, +0x254 and +0x258 only for results 1 and 2; they mark an invoice.

The derivation is in the doc.

Callers 1

Callees 1

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