Recover the Mac wide-string length helper's pointer input and full count return
Mac STRING_GetWideStringLength (002ba130) is undefined(undefined4), despite a complete 33-byte body that takes one string pointer from [EBP+8], scans zero-terminated WORDs at stride 2, and returns the full DWORD count in EAX (zero for null/empty input). Recover int32_t (WCHAR * wszString), preserving the chosen name and one-stack-argument cdecl ABI. Windows ground truth 00526800 performs the same null/empty checks and two-byte scan and already has this contract. Mac 0011d79a passes a string-lookup pointer then adds full EAX to the running length and compares signed; DRAW_text0 also forwards the full result as a text length. No matching prior proposal or issue found. Static evidence only.
Changes 1, applied together
Set prototype
mac 0x002ba130signatureundefined STRING_GetWideStringLength(undefined4 wszString)→int32_t STRING_GetWideStringLength(WCHAR * wszString)convention__cdecl