REDIVIVUS

Proposals / #1320

Mac CHATDLG_GetInputArgument: void __fastcall (char* szOut ECX, int32_t nMaxLen EDX)

checked · by KierTaylor · submitted 2026-11-06

ECX -> ESI = the output buffer. EDX -> EDI = its size. The body finds the first ' ' (0x20) in the global chat-input string; if there is one, it copies the text after it into ESI with max EDI (0x0001c806), otherwise it writes a NUL to [ESI]. There are no stack-arg reads; void. Both callers in CHATDLG_ProcessChatInput (0x002d2a08, 0x002d2b02) pass ECX=LEA of a local buffer and EDX=0x11, and do not read EAX afterwards. There is no Windows symbol with this name.

Changes 1, applied together

  1. Set prototype mac 0x002d45de

    signatureundefined CHATDLG_GetInputArgument(void)→void CHATDLG_GetInputArgument(char* szOut, int32_t nMaxLen)
    conventionunknown→__fastcall