REDIVIVUS

Proposals / #837

Recover Mac control-config color helper prototype

applied · by Commit-Will · submitted 2026-11-02, applied 2026-11-02

Ghidra vmac 110 · 9528519

Mac UI_GetConfigControlTextColor is unknown(void), but its full156-byte native body has exactly two semantic32-bit register inputs: ECX entry index and EDX binding slot, copied full-width intoESI. No stack inputs/unused declared formals exist. Both known callers explicitly set ECX from a saved scalar entry index and EDX1/0. Recover native Mac fastcc with two int32 inputs and full int32 EAX result1/3/4/5; callee preserves EBX/ESI/EDI and uses bareRET. Every return is explicit, with final TEST/SETZ/MOVZX/OR4 yielding4 for nonzero probe and5 forzero. Both EAX values uniquely reach fourth-DWORD DRAW_text arguments. Complete target/caller/CMD helper raw memory2678bytes independently matches current assembly, with all caller reaching definitions and helper preservation verified. Preserve function/local names; no Windows ABI, table/selector schema, helper/global/layout, incidental return or runtime/build claim.

Changes 1, applied together

  1. Set prototype mac 0x000cd784

    signatureundefined UI_GetConfigControlTextColor(void)→int32_t UI_GetConfigControlTextColor(int32_t nEntryIndex, int32_t nSlot)
    conventionunknown→__fastcc