REDIVIVUS

Proposals / #1524

Mac MAC_GetMicrosecondsThunk: void __cdecl (uint32_t* pHigh, uint32_t* pLow)

checked · by KierTaylor · submitted 2026-11-08

The body is a frame-only tail JMP to MAC_GetMicroseconds 0x0001eb3a, which is typed __cdecl (pdwHigh, pdwLow) with two out pointers, so this thunk takes the same two stack args. The caller MAC_GetMicroseconds64 0x0001ead1 stores [ESP]=ESI+4 (high) and [ESP+4]=ESI (low), then returns ESI and not this call's EAX. pdw is refused, so they are named pHigh/pLow.

Changes 1, applied together

  1. Set prototype mac 0x0001ec2e

    signatureundefined MAC_GetMicrosecondsThunk(void)→void MAC_GetMicrosecondsThunk(uint32_t* pHigh, uint32_t* pLow)
    conventionunknown→__cdecl