{"type": "func", "start": 6443713892, "end": 6443714148, "name": "_strnicoll_l", "pseudocode": "// \n// _strnicoll_l from 0x180134564 to 0x180134664 (256 bytes)\n// \n// 2 xrefs:\n// > _strnicoll @ 0x18013455c\n// > <???> @ 0x180203254\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 strnicoll_l(const char *String1, const char *String2, size_t MaxCount, _locale_t Locale)\n{\n  int v7; // ebx\n  wchar_t *v8; // rdx\n  int v9; // eax\n  __int64 v11; // [rsp+40h] [rbp-28h] BYREF\n  __crt_locale_pointers Localea; // [rsp+48h] [rbp-20h] BYREF\n  char v13; // [rsp+58h] [rbp-10h]\n\n  _LocaleUpdate::_LocaleUpdate((_LocaleUpdate *)&v11, Locale);\n  if ( MaxCount )\n  {\n    if ( String1 && String2 )\n    {\n      v7 = 0x7FFFFFFF;\n      if ( MaxCount <= 0x7FFFFFFF )\n      {\n        v8 = *((wchar_t **)Localea.locinfo + 38);\n        if ( v8 )\n        {\n          v9 = _acrt_CompareStringA(\n                 &Localea,\n                 v8,\n                 0x1001u,\n                 (char *)String1,\n                 MaxCount,\n                 (char *)String2,\n                 MaxCount,\n                 *((_DWORD *)Localea.locinfo + 5));\n          if ( v9 )\n            v7 = v9 - 2;\n          else\n            *errno() = 22;\n        }\n        else\n        {\n          v7 = strnicmp_l(String1, String2, MaxCount, &Localea);\n        }\n      }\n      else\n      {\n        *errno() = 22;\n        invalid_parameter_noinfo();\n      }\n    }\n    else\n    {\n      *errno() = 22;\n      invalid_parameter_noinfo();\n      v7 = 0x7FFFFFFF;\n    }\n  }\n  else\n  {\n    v7 = 0;\n  }\n  if ( v13 )\n    *(_DWORD *)(v11 + 936) &= ~2u;\n  return v7;\n}", "assembly": "; \n; _strnicoll_l from 0x180134564 to 0x180134664 (256 bytes)\n; \n; 2 xrefs:\n; > _strnicoll @ 0x18013455c\n; > <???> @ 0x180203254\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     rax, rsp                                                       ; +0x0, 0x180134564\nmov     [rax+8], rbx                                                   ; +0x3, 0x180134567\nmov     [rax+10h], rbp                                                 ; +0x7, 0x18013456b\nmov     [rax+18h], rsi                                                 ; +0xb, 0x18013456f\npush    rdi                                                            ; +0xf, 0x180134573\nsub     rsp, 60h                                                       ; +0x10, 0x180134574\nmov     rsi, rdx                                                       ; +0x14, 0x180134578\nmov     rbp, rcx                                                       ; +0x17, 0x18013457b\nmov     rdx, r9; struct __crt_locale_pointers *                        ; +0x1a, 0x18013457e\nlea     rcx, [rax-28h]; this                                           ; +0x1d, 0x180134581\nmov     rdi, r8                                                        ; +0x21, 0x180134585\ncall    ??0_LocaleUpdate@@QEAA@QEAU__crt_locale_pointers@@@Z           ; +0x24, 0x180134588\ntest    rdi, rdi                                                       ; +0x29, 0x18013458d\njnz     short loc_180134599                                            ; +0x2c, 0x180134590\nxor     ebx, ebx                                                       ; +0x2e, 0x180134592\njmp     loc_180134639                                                  ; +0x30, 0x180134594\ntest    rbp, rbp                                                       ; +0x35, 0x180134599\njz      short loc_1801345A3                                            ; +0x38, 0x18013459c\ntest    rsi, rsi                                                       ; +0x3a, 0x18013459e\njnz     short loc_1801345BA                                            ; +0x3d, 0x1801345a1\ncall    _errno                                                         ; +0x3f, 0x1801345a3\nmov     dword ptr [rax], 16h                                           ; +0x44, 0x1801345a8\ncall    _invalid_parameter_noinfo                                      ; +0x4a, 0x1801345ae\nmov     ebx, 7FFFFFFFh                                                 ; +0x4f, 0x1801345b3\njmp     short loc_180134639                                            ; +0x54, 0x1801345b8\nmov     ebx, 7FFFFFFFh                                                 ; +0x56, 0x1801345ba\ncmp     rdi, rbx                                                       ; +0x5b, 0x1801345bf\njbe     short loc_1801345D6                                            ; +0x5e, 0x1801345c2\ncall    _errno                                                         ; +0x60, 0x1801345c4\nmov     dword ptr [rax], 16h                                           ; +0x65, 0x1801345c9\ncall    _invalid_parameter_noinfo                                      ; +0x6b, 0x1801345cf\njmp     short loc_180134639                                            ; +0x70, 0x1801345d4\nmov     rax, [rsp+68h+Locale.locinfo]                                  ; +0x72, 0x1801345d6\nmov     rdx, [rax+130h]; wchar_t *                                     ; +0x77, 0x1801345db\ntest    rdx, rdx                                                       ; +0x7e, 0x1801345e2\njnz     short loc_1801345FE                                            ; +0x81, 0x1801345e5\nlea     r9, [rsp+68h+Locale]; Locale                                   ; +0x83, 0x1801345e7\nmov     r8, rdi; MaxCount                                              ; +0x88, 0x1801345ec\nmov     rdx, rsi; String2                                              ; +0x8b, 0x1801345ef\nmov     rcx, rbp; String1                                              ; +0x8e, 0x1801345f2\ncall    _strnicmp_l                                                    ; +0x91, 0x1801345f5\nmov     ebx, eax                                                       ; +0x96, 0x1801345fa\njmp     short loc_180134639                                            ; +0x98, 0x1801345fc\nmov     eax, [rax+14h]                                                 ; +0x9a, 0x1801345fe\nlea     rcx, [rsp+68h+Locale]; struct __crt_locale_pointers *          ; +0x9d, 0x180134601\nmov     [rsp+68h+var_30], eax; int                                     ; +0xa2, 0x180134606\nmov     r9, rbp; char *                                                ; +0xa6, 0x18013460a\nmov     [rsp+68h+var_38], edi; int                                     ; +0xa9, 0x18013460d\nmov     r8d, 1001h; unsigned int                                       ; +0xad, 0x180134611\nmov     [rsp+68h+var_40], rsi; char *                                  ; +0xb3, 0x180134617\nmov     [rsp+68h+var_48], edi; int                                     ; +0xb8, 0x18013461c\ncall    __acrt_CompareStringA                                          ; +0xbc, 0x180134620\ntest    eax, eax                                                       ; +0xc1, 0x180134625\njnz     short loc_180134636                                            ; +0xc3, 0x180134627\ncall    _errno                                                         ; +0xc5, 0x180134629\nmov     dword ptr [rax], 16h                                           ; +0xca, 0x18013462e\njmp     short loc_180134639                                            ; +0xd0, 0x180134634\nlea     ebx, [rax-2]                                                   ; +0xd2, 0x180134636\ncmp     [rsp+68h+var_10], 0                                            ; +0xd5, 0x180134639\njz      short loc_18013464C                                            ; +0xda, 0x18013463e\nmov     rax, [rsp+68h+var_28]                                          ; +0xdc, 0x180134640\nand     dword ptr [rax+3A8h], 0FFFFFFFDh                               ; +0xe1, 0x180134645\nlea     r11, [rsp+68h+var_8]                                           ; +0xe8, 0x18013464c\nmov     eax, ebx                                                       ; +0xed, 0x180134651\nmov     rbx, [r11+10h]                                                 ; +0xef, 0x180134653\nmov     rbp, [r11+18h]                                                 ; +0xf3, 0x180134657\nmov     rsi, [r11+20h]                                                 ; +0xf7, 0x18013465b\nmov     rsp, r11                                                       ; +0xfb, 0x18013465f\npop     rdi                                                            ; +0xfe, 0x180134662\nretn                                                                   ; +0xff, 0x180134663", "xrefs": ["_strnicoll @ 0x18013455c", "<???> @ 0x180203254"], "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"}