Mac SCMD_FindFlagDef: void* __fastcc (char* szToken ECX, void* pFirstDef EDX, int32_t nMinLength)
ECX -> EDI = the command-line token (strlen 0x0001ca30, then compared with each def's +0x10 name using a case-sensitive or insensitive strncmp chosen by flag bit +9). EDX -> ESI = the first flag definition (walked via +4). [EBP+8] = the minimum match length (EBX = it - 1; the best +0x20 length must be above it and at most the token length). It returns the best match ([EBP-0x10], or NULL). The caller SCMD_ProcessTokens 0x0000d94e sets ECX=LEA local token, EDX=list head and tests EAX.
Changes 1, applied together
Set prototype
mac 0x0000e251signatureundefined SCMD_FindFlagDef(void)→void* SCMD_FindFlagDef(char* szToken, void* pFirstDef, int32_t nMinLength)conventionunknown→__fastcc