{"type": "func", "start": 6443743360, "end": 6443743549, "name": "__crtCompareStringW", "pseudocode": "// \n// __crtCompareStringW from 0x18013b880 to 0x18013b93d (189 bytes)\n// \n// 2 xrefs:\n// > _wcsnicoll_l @ 0x180134509\n// > <???> @ 0x180203950\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 __fastcall _crtCompareStringW(__int64 a1, DWORD a2, const wchar_t *a3, int a4, wchar_t *Source, int a6)\n{\n  unsigned int v6; // ebx\n  int v10; // eax\n  int result; // eax\n  int v12; // ebx\n\n  v6 = a4;\n  if ( a4 > 0 )\n    v6 = wcsnlen(a3, a4);\n  v10 = a6;\n  if ( a6 > 0 )\n    v10 = wcsnlen(Source, a6);\n  if ( v6 && v10 )\n    return _acrt_CompareStringEx(a1, a2, a3, v6, Source, v10, 0, 0, 0);\n  v12 = v6 - v10;\n  result = ((v12 >> 31) & 0xFFFFFFFE) + 3;\n  if ( !v12 )\n    return 2;\n  return result;\n}", "assembly": "; \n; __crtCompareStringW from 0x18013b880 to 0x18013b93d (189 bytes)\n; \n; 2 xrefs:\n; > _wcsnicoll_l @ 0x180134509\n; > <???> @ 0x180203950\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, 0x18013b880\nmov     [rax+8], rbx                                                   ; +0x3, 0x18013b883\nmov     [rax+10h], rbp                                                 ; +0x7, 0x18013b887\nmov     [rax+18h], rsi                                                 ; +0xb, 0x18013b88b\nmov     [rax+20h], rdi                                                 ; +0xf, 0x18013b88f\npush    r14                                                            ; +0x13, 0x18013b893\nsub     rsp, 50h                                                       ; +0x15, 0x18013b895\nmovsxd  rbx, r9d                                                       ; +0x19, 0x18013b899\nmov     rsi, r8                                                        ; +0x1c, 0x18013b89c\nmov     ebp, edx                                                       ; +0x1f, 0x18013b89f\nmov     r14, rcx                                                       ; +0x21, 0x18013b8a1\ntest    r9d, r9d                                                       ; +0x24, 0x18013b8a4\njle     short loc_18013B8B7                                            ; +0x27, 0x18013b8a7\nmov     rdx, rbx; MaxCount                                             ; +0x29, 0x18013b8a9\nmov     rcx, r8; Source                                                ; +0x2c, 0x18013b8ac\ncall    wcsnlen                                                        ; +0x2f, 0x18013b8af\nmov     rbx, rax                                                       ; +0x34, 0x18013b8b4\nmovsxd  rax, [rsp+58h+arg_28]                                          ; +0x37, 0x18013b8b7\nmov     rdi, [rsp+58h+Source]                                          ; +0x3f, 0x18013b8bf\ntest    eax, eax                                                       ; +0x47, 0x18013b8c7\njle     short loc_18013B8D6                                            ; +0x49, 0x18013b8c9\nmov     rdx, rax; MaxCount                                             ; +0x4b, 0x18013b8cb\nmov     rcx, rdi; Source                                               ; +0x4e, 0x18013b8ce\ncall    wcsnlen                                                        ; +0x51, 0x18013b8d1\ntest    ebx, ebx                                                       ; +0x56, 0x18013b8d6\njz      short loc_18013B90B                                            ; +0x58, 0x18013b8d8\ntest    eax, eax                                                       ; +0x5a, 0x18013b8da\njz      short loc_18013B90B                                            ; +0x5c, 0x18013b8dc\nand     [rsp+58h+var_18], 0                                            ; +0x5e, 0x18013b8de\nmov     r9d, ebx                                                       ; +0x64, 0x18013b8e4\nand     [rsp+58h+var_20], 0                                            ; +0x67, 0x18013b8e7\nmov     r8, rsi                                                        ; +0x6d, 0x18013b8ed\nand     [rsp+58h+var_28], 0                                            ; +0x70, 0x18013b8f0\nmov     edx, ebp                                                       ; +0x76, 0x18013b8f6\nmov     [rsp+58h+var_30], eax                                          ; +0x78, 0x18013b8f8\nmov     rcx, r14                                                       ; +0x7c, 0x18013b8fc\nmov     [rsp+58h+var_38], rdi                                          ; +0x7f, 0x18013b8ff\ncall    __acrt_CompareStringEx                                         ; +0x84, 0x18013b904\njmp     short loc_18013B922                                            ; +0x89, 0x18013b909\nsub     ebx, eax                                                       ; +0x8b, 0x18013b90b\nmov     ecx, 2                                                         ; +0x8d, 0x18013b90d\nmov     eax, ebx                                                       ; +0x92, 0x18013b912\nsar     eax, 1Fh                                                       ; +0x94, 0x18013b914\nand     eax, 0FFFFFFFEh                                                ; +0x97, 0x18013b917\nadd     eax, 3                                                         ; +0x9a, 0x18013b91a\ntest    ebx, ebx                                                       ; +0x9d, 0x18013b91d\ncmovz   eax, ecx                                                       ; +0x9f, 0x18013b91f\nmov     rbx, [rsp+58h+arg_0]                                           ; +0xa2, 0x18013b922\nmov     rbp, [rsp+58h+arg_8]                                           ; +0xa7, 0x18013b927\nmov     rsi, [rsp+58h+arg_10]                                          ; +0xac, 0x18013b92c\nmov     rdi, [rsp+58h+arg_18]                                          ; +0xb1, 0x18013b931\nadd     rsp, 50h                                                       ; +0xb6, 0x18013b936\npop     r14                                                            ; +0xba, 0x18013b93a\nretn                                                                   ; +0xbc, 0x18013b93c", "xrefs": ["_wcsnicoll_l @ 0x180134509", "<???> @ 0x180203950"], "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"}