//
// _ischartype_l from 0x18012aee4 to 0x18012af5a (118 bytes)
//
// 2 xrefs:
// > __crt_strtox::parse_integer
> @ 0x18012a5be
// > ??> @ 0x180202af8
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 10:54:56 +0000
//
int __cdecl ischartype_l(const int C, const int Mask, const _locale_t Locale)
{
__int64 v3; // rdi
int v4; // ebx
unsigned __int16 v5; // si
unsigned int v6; // ebp
struct __crt_locale_data *locinfo; // rax
const unsigned __int16 *v9; // rax
v3 = C;
v4 = 0;
v5 = Mask;
v6 = C + 1;
if ( Locale )
{
locinfo = Locale->locinfo;
if ( v6 > 0x100 )
{
if ( *((int *)locinfo + 2) <= 1 )
return 0;
else
return isctype_l(C, (unsigned __int16)Mask, Locale);
}
else
{
return (unsigned __int16)Mask & *(_WORD *)(*(_QWORD *)locinfo + 2LL * C);
}
}
else
{
v9 = _pctype_func();
if ( v6 <= 0x100 )
return v5 & v9[v3];
return v4;
}
}