//
// iswctype from 0x180136b24 to 0x180136b90 (108 bytes)
//
// 2 xrefs:
// > __crt_strtox::parse_integer
> @ 0x18012a8be
// > ??> @ 0x18020356c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
int __cdecl iswctype(wint_t C, wctype_t Type)
{
int v2; // ebx
int v3; // eax
WORD CharType; // [rsp+30h] [rbp+8h] BYREF
WCHAR SrcStr; // [rsp+40h] [rbp+18h] BYREF
v2 = Type;
if ( C != 0xFFFF )
{
if ( C < 0x100u )
{
v3 = *((unsigned __int16 *)off_1801B1A40 + C);
return v2 & v3;
}
SrcStr = C;
CharType = 0;
if ( GetStringTypeW(1u, &SrcStr, 1, &CharType) )
{
v3 = CharType;
return v2 & v3;
}
}
return 0;
}