{"type": "func", "start": 6443675364, "end": 6443675482, "name": "_ischartype_l", "pseudocode": "// \n// _ischartype_l from 0x18012aee4 to 0x18012af5a (118 bytes)\n// \n// 2 xrefs:\n// > __crt_strtox::parse_integer<ulong,__crt_strtox::c_string_character_source<char>> @ 0x18012a5be\n// > <???> @ 0x180202af8\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nint __cdecl ischartype_l(const int C, const int Mask, const _locale_t Locale)\n{\n  __int64 v3; // rdi\n  int v4; // ebx\n  unsigned __int16 v5; // si\n  unsigned int v6; // ebp\n  struct __crt_locale_data *locinfo; // rax\n  const unsigned __int16 *v9; // rax\n\n  v3 = C;\n  v4 = 0;\n  v5 = Mask;\n  v6 = C + 1;\n  if ( Locale )\n  {\n    locinfo = Locale->locinfo;\n    if ( v6 > 0x100 )\n    {\n      if ( *((int *)locinfo + 2) <= 1 )\n        return 0;\n      else\n        return isctype_l(C, (unsigned __int16)Mask, Locale);\n    }\n    else\n    {\n      return (unsigned __int16)Mask & *(_WORD *)(*(_QWORD *)locinfo + 2LL * C);\n    }\n  }\n  else\n  {\n    v9 = _pctype_func();\n    if ( v6 <= 0x100 )\n      return v5 & v9[v3];\n    return v4;\n  }\n}", "assembly": "; \n; _ischartype_l from 0x18012aee4 to 0x18012af5a (118 bytes)\n; \n; 2 xrefs:\n; > __crt_strtox::parse_integer<ulong,__crt_strtox::c_string_character_source<char>> @ 0x18012a5be\n; > <???> @ 0x180202af8\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x18012aee4\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x18012aee9\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x18012aeee\npush    rdi                                                            ; +0xf, 0x18012aef3\nsub     rsp, 20h                                                       ; +0x10, 0x18012aef4\nmovsxd  rdi, ecx                                                       ; +0x14, 0x18012aef8\nxor     ebx, ebx                                                       ; +0x17, 0x18012aefb\nmov     esi, edx                                                       ; +0x19, 0x18012aefd\nlea     ebp, [rdi+1]                                                   ; +0x1b, 0x18012aeff\ntest    r8, r8                                                         ; +0x1e, 0x18012af02\njz      short loc_18012AF30                                            ; +0x21, 0x18012af05\nmov     rax, [r8]                                                      ; +0x23, 0x18012af07\ncmp     ebp, 100h                                                      ; +0x26, 0x18012af0a\nja      short loc_18012AF1D                                            ; +0x2c, 0x18012af10\nmov     rax, [rax]                                                     ; +0x2e, 0x18012af12\nmovzx   eax, word ptr [rax+rdi*2]                                      ; +0x31, 0x18012af15\nand     eax, edx                                                       ; +0x35, 0x18012af19\njmp     short loc_18012AF45                                            ; +0x37, 0x18012af1b\ncmp     dword ptr [rax+8], 1                                           ; +0x39, 0x18012af1d\njle     short loc_18012AF2C                                            ; +0x3d, 0x18012af21\nmov     ecx, edi; C                                                    ; +0x3f, 0x18012af23\ncall    _isctype_l                                                     ; +0x41, 0x18012af25\njmp     short loc_18012AF45                                            ; +0x46, 0x18012af2a\nxor     eax, eax                                                       ; +0x48, 0x18012af2c\njmp     short loc_18012AF45                                            ; +0x4a, 0x18012af2e\ncall    __pctype_func                                                  ; +0x4c, 0x18012af30\ncmp     ebp, 100h                                                      ; +0x51, 0x18012af35\nja      short loc_18012AF43                                            ; +0x57, 0x18012af3b\nmovzx   ebx, word ptr [rax+rdi*2]                                      ; +0x59, 0x18012af3d\nand     ebx, esi                                                       ; +0x5d, 0x18012af41\nmov     eax, ebx                                                       ; +0x5f, 0x18012af43\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x61, 0x18012af45\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x66, 0x18012af4a\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x6b, 0x18012af4f\nadd     rsp, 20h                                                       ; +0x70, 0x18012af54\npop     rdi                                                            ; +0x74, 0x18012af58\nretn                                                                   ; +0x75, 0x18012af59", "xrefs": ["__crt_strtox::parse_integer<ulong,__crt_strtox::c_string_character_source<char>> @ 0x18012a5be", "<???> @ 0x180202af8"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}