{"type": "func", "start": 6443723664, "end": 6443723928, "name": "_isctype_l", "pseudocode": "// \n// _isctype_l from 0x180136b90 to 0x180136c98 (264 bytes)\n// \n// 3 xrefs:\n// > _ischartype_l @ 0x18012af25\n// > <???> @ 0x18020356c\n// > <???> @ 0x180203578\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 isctype_l(int C, int Type, _locale_t Locale)\n{\n  __int64 v4; // rdi\n  int v5; // eax\n  int result; // eax\n  __int64 v7; // [rsp+48h] [rbp-38h] BYREF\n  struct __crt_locale_pointers v8; // [rsp+50h] [rbp-30h] BYREF\n  char v9; // [rsp+60h] [rbp-20h]\n  WORD CharType[2]; // [rsp+68h] [rbp-18h] BYREF\n  __int16 v11; // [rsp+6Ch] [rbp-14h]\n\n  v4 = C;\n  _LocaleUpdate::_LocaleUpdate((_LocaleUpdate *)&v7, Locale);\n  if ( (unsigned int)(v4 + 1) <= 0x100 )\n  {\n    v5 = *(unsigned __int16 *)(*(_QWORD *)v8.locinfo + 2 * v4);\n    goto LABEL_8;\n  }\n  *(_DWORD *)CharType = 0;\n  v11 = 0;\n  if ( (unsigned int)_acrt_GetStringTypeA(&v8, 1u, CharType, *((_DWORD *)v8.locinfo + 3), 1) )\n  {\n    v5 = CharType[0];\nLABEL_8:\n    result = Type & v5;\n    if ( v9 )\n      *(_DWORD *)(v7 + 936) &= ~2u;\n    return result;\n  }\n  if ( v9 )\n    *(_DWORD *)(v7 + 936) &= ~2u;\n  return 0;\n}", "assembly": "; \n; _isctype_l from 0x180136b90 to 0x180136c98 (264 bytes)\n; \n; 3 xrefs:\n; > _ischartype_l @ 0x18012af25\n; > <???> @ 0x18020356c\n; > <???> @ 0x180203578\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-8+arg_0], rbx                                             ; +0x0, 0x180136b90\nmov     [rsp-8+arg_8], rsi                                             ; +0x5, 0x180136b95\nmov     [rsp-8+arg_10], rdi                                            ; +0xa, 0x180136b9a\npush    rbp                                                            ; +0xf, 0x180136b9f\nmov     rbp, rsp                                                       ; +0x10, 0x180136ba0\nsub     rsp, 80h                                                       ; +0x13, 0x180136ba3\nmov     rax, cs:__security_cookie                                      ; +0x1a, 0x180136baa\nxor     rax, rsp                                                       ; +0x21, 0x180136bb1\nmov     [rbp+var_10], rax                                              ; +0x24, 0x180136bb4\nmov     esi, edx                                                       ; +0x28, 0x180136bb8\nmovsxd  rdi, ecx                                                       ; +0x2a, 0x180136bba\nmov     rdx, r8; struct __crt_locale_pointers *                        ; +0x2d, 0x180136bbd\nlea     rcx, [rbp+var_38]; this                                        ; +0x30, 0x180136bc0\ncall    ??0_LocaleUpdate@@QEAA@QEAU__crt_locale_pointers@@@Z           ; +0x34, 0x180136bc4\nlea     eax, [rdi+1]                                                   ; +0x39, 0x180136bc9\nxor     ebx, ebx                                                       ; +0x3c, 0x180136bcc\ncmp     eax, 100h                                                      ; +0x3e, 0x180136bce\nja      short loc_180136BE2                                            ; +0x43, 0x180136bd3\nmov     rax, [rbp+var_30.locinfo]                                      ; +0x45, 0x180136bd5\nmov     rcx, [rax]                                                     ; +0x49, 0x180136bd9\nmovzx   eax, word ptr [rcx+rdi*2]                                      ; +0x4c, 0x180136bdc\njmp     short loc_180136C61                                            ; +0x50, 0x180136be0\nmov     rdx, [rbp+var_30.locinfo]                                      ; +0x52, 0x180136be2\nmov     eax, edi                                                       ; +0x56, 0x180136be6\nsar     eax, 8                                                         ; +0x58, 0x180136be8\nmov     r10d, 1                                                        ; +0x5b, 0x180136beb\nmovzx   ecx, al                                                        ; +0x61, 0x180136bf1\nmov     rax, [rdx]                                                     ; +0x64, 0x180136bf4\ncmp     [rax+rcx*2], bx                                                ; +0x67, 0x180136bf7\njge     short loc_180136C0D                                            ; +0x6b, 0x180136bfb\nmov     [rbp+var_40], cl                                               ; +0x6d, 0x180136bfd\nlea     r9d, [r10+1]                                                   ; +0x70, 0x180136c00\nmov     [rbp+var_3F], dil                                              ; +0x74, 0x180136c04\nmov     [rbp+var_3E], bl                                               ; +0x78, 0x180136c08\njmp     short loc_180136C17                                            ; +0x7b, 0x180136c0b\nmov     [rbp+var_40], dil                                              ; +0x7d, 0x180136c0d\nmov     r9d, r10d                                                      ; +0x81, 0x180136c11\nmov     [rbp+var_3F], bl                                               ; +0x84, 0x180136c14\nxor     eax, eax                                                       ; +0x87, 0x180136c17\nmov     [rsp+80h+var_50], r10d; int                                    ; +0x89, 0x180136c19\nmov     dword ptr [rbp+CharType], eax                                  ; +0x8e, 0x180136c1e\nlea     r8, [rbp+var_40]                                               ; +0x91, 0x180136c21\nmov     [rbp+var_14], ax                                               ; +0x95, 0x180136c25\nlea     rcx, [rbp+var_30]; struct __crt_locale_pointers *              ; +0x99, 0x180136c29\nmov     eax, [rdx+0Ch]                                                 ; +0x9d, 0x180136c2d\nmov     edx, r10d; dwInfoType                                          ; +0xa0, 0x180136c30\nmov     [rsp+80h+var_58], eax; int                                     ; +0xa3, 0x180136c33\nlea     rax, [rbp+CharType]                                            ; +0xa7, 0x180136c37\nmov     [rsp+80h+lpCharType], rax; lpCharType                          ; +0xab, 0x180136c3b\ncall    __acrt_GetStringTypeA                                          ; +0xb0, 0x180136c40\ntest    eax, eax                                                       ; +0xb5, 0x180136c45\njnz     short loc_180136C5D                                            ; +0xb7, 0x180136c47\ncmp     [rbp+var_20], bl                                               ; +0xb9, 0x180136c49\njz      short loc_180136C59                                            ; +0xbc, 0x180136c4c\nmov     rax, [rbp+var_38]                                              ; +0xbe, 0x180136c4e\nand     dword ptr [rax+3A8h], 0FFFFFFFDh                               ; +0xc2, 0x180136c52\nxor     eax, eax                                                       ; +0xc9, 0x180136c59\njmp     short loc_180136C73                                            ; +0xcb, 0x180136c5b\nmovzx   eax, [rbp+CharType]                                            ; +0xcd, 0x180136c5d\nand     eax, esi                                                       ; +0xd1, 0x180136c61\ncmp     [rbp+var_20], bl                                               ; +0xd3, 0x180136c63\njz      short loc_180136C73                                            ; +0xd6, 0x180136c66\nmov     rcx, [rbp+var_38]                                              ; +0xd8, 0x180136c68\nand     dword ptr [rcx+3A8h], 0FFFFFFFDh                               ; +0xdc, 0x180136c6c\nmov     rcx, [rbp+var_10]                                              ; +0xe3, 0x180136c73\nxor     rcx, rsp; StackCookie                                          ; +0xe7, 0x180136c77\ncall    __security_check_cookie                                        ; +0xea, 0x180136c7a\nlea     r11, [rsp+80h+var_s0]                                          ; +0xef, 0x180136c7f\nmov     rbx, [r11+10h]                                                 ; +0xf7, 0x180136c87\nmov     rsi, [r11+18h]                                                 ; +0xfb, 0x180136c8b\nmov     rdi, [r11+20h]                                                 ; +0xff, 0x180136c8f\nmov     rsp, r11                                                       ; +0x103, 0x180136c93\npop     rbp                                                            ; +0x106, 0x180136c96\nretn                                                                   ; +0x107, 0x180136c97", "xrefs": ["_ischartype_l @ 0x18012af25", "<???> @ 0x18020356c", "<???> @ 0x180203578"], "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"}