{"type": "func", "start": 6443751972, "end": 6443752047, "name": "_isleadbyte_l", "pseudocode": "// \n// _isleadbyte_l from 0x18013da24 to 0x18013da6f (75 bytes)\n// \n// 2 xrefs:\n// > _mbtowc_l @ 0x18013735b\n// > <???> @ 0x180203b00\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 isleadbyte_l(int C, _locale_t Locale)\n{\n  __int64 v2; // rbx\n  int result; // eax\n  _QWORD v4[3]; // [rsp+20h] [rbp-28h] BYREF\n  char v5; // [rsp+38h] [rbp-10h]\n\n  v2 = C;\n  _LocaleUpdate::_LocaleUpdate((_LocaleUpdate *)v4, Locale);\n  if ( (unsigned int)(v2 + 1) > 0x100 )\n    result = 0;\n  else\n    result = *(_WORD *)(*(_QWORD *)v4[1] + 2 * v2) & 0x8000;\n  if ( v5 )\n    *(_DWORD *)(v4[0] + 936LL) &= ~2u;\n  return result;\n}", "assembly": "; \n; _isleadbyte_l from 0x18013da24 to 0x18013da6f (75 bytes)\n; \n; 2 xrefs:\n; > _mbtowc_l @ 0x18013735b\n; > <???> @ 0x180203b00\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\npush    rbx                                                            ; +0x0, 0x18013da24\nsub     rsp, 40h                                                       ; +0x2, 0x18013da26\nmovsxd  rbx, ecx                                                       ; +0x6, 0x18013da2a\nlea     rcx, [rsp+48h+var_28]; this                                    ; +0x9, 0x18013da2d\ncall    ??0_LocaleUpdate@@QEAA@QEAU__crt_locale_pointers@@@Z           ; +0xe, 0x18013da32\nlea     eax, [rbx+1]                                                   ; +0x13, 0x18013da37\ncmp     eax, 100h                                                      ; +0x16, 0x18013da3a\nja      short loc_18013DA54                                            ; +0x1b, 0x18013da3f\nmov     rax, [rsp+48h+var_20]                                          ; +0x1d, 0x18013da41\nmov     rcx, [rax]                                                     ; +0x22, 0x18013da46\nmovzx   eax, word ptr [rcx+rbx*2]                                      ; +0x25, 0x18013da49\nand     eax, 8000h                                                     ; +0x29, 0x18013da4d\njmp     short loc_18013DA56                                            ; +0x2e, 0x18013da52\nxor     eax, eax                                                       ; +0x30, 0x18013da54\ncmp     [rsp+48h+var_10], 0                                            ; +0x32, 0x18013da56\njz      short loc_18013DA69                                            ; +0x37, 0x18013da5b\nmov     rcx, [rsp+48h+var_28]                                          ; +0x39, 0x18013da5d\nand     dword ptr [rcx+3A8h], 0FFFFFFFDh                               ; +0x3e, 0x18013da62\nadd     rsp, 40h                                                       ; +0x45, 0x18013da69\npop     rbx                                                            ; +0x49, 0x18013da6d\nretn                                                                   ; +0x4a, 0x18013da6e", "xrefs": ["_mbtowc_l @ 0x18013735b", "<???> @ 0x180203b00"], "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"}