{"type": "func", "start": 6443743552, "end": 6443743627, "name": "__ascii_wcsnicmp", "pseudocode": "// \n// __ascii_wcsnicmp from 0x18013b940 to 0x18013b98b (75 bytes)\n// \n// 3 xrefs:\n// > _wcsnicoll @ 0x18013444a\n// > _wcsnicoll_l @ 0x1801344ec\n// > __acrt_DownlevelLocaleNameToLCID @ 0x18013c5f7\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\n__int64 __fastcall _ascii_wcsnicmp(unsigned __int16 *a1, unsigned __int16 *a2, __int64 a3)\n{\n  __int64 result; // rax\n  int v6; // ecx\n  int v7; // edx\n  int v8; // r9d\n  int v9; // ecx\n\n  if ( !a3 )\n    return 0;\n  do\n  {\n    v6 = *a1++;\n    v7 = *a2++;\n    v8 = v6 + 32;\n    if ( (unsigned int)(v6 - 65) > 0x19 )\n      v8 = v6;\n    v9 = v7 + 32;\n    if ( (unsigned int)(v7 - 65) > 0x19 )\n      v9 = v7;\n    result = (unsigned int)(v8 - v9);\n    if ( (_DWORD)result )\n      break;\n    if ( !v8 )\n      break;\n    --a3;\n  }\n  while ( a3 );\n  return result;\n}", "assembly": "; \n; __ascii_wcsnicmp from 0x18013b940 to 0x18013b98b (75 bytes)\n; \n; 3 xrefs:\n; > _wcsnicoll @ 0x18013444a\n; > _wcsnicoll_l @ 0x1801344ec\n; > __acrt_DownlevelLocaleNameToLCID @ 0x18013c5f7\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     r11, rdx                                                       ; +0x0, 0x18013b940\nmov     r10, rcx                                                       ; +0x3, 0x18013b943\ntest    r8, r8                                                         ; +0x6, 0x18013b946\njnz     short loc_18013B94E                                            ; +0x9, 0x18013b949\nxor     eax, eax                                                       ; +0xb, 0x18013b94b\nretn                                                                   ; +0xd, 0x18013b94d\nmovzx   ecx, word ptr [r10]                                            ; +0xe, 0x18013b94e\nlea     r10, [r10+2]                                                   ; +0x12, 0x18013b952\nmovzx   edx, word ptr [r11]                                            ; +0x16, 0x18013b956\nlea     r11, [r11+2]                                                   ; +0x1a, 0x18013b95a\nlea     eax, [rcx-41h]                                                 ; +0x1e, 0x18013b95e\ncmp     eax, 19h                                                       ; +0x21, 0x18013b961\nlea     r9d, [rcx+20h]                                                 ; +0x24, 0x18013b964\nlea     eax, [rdx-41h]                                                 ; +0x28, 0x18013b968\ncmova   r9d, ecx                                                       ; +0x2b, 0x18013b96b\ncmp     eax, 19h                                                       ; +0x2f, 0x18013b96f\nlea     ecx, [rdx+20h]                                                 ; +0x32, 0x18013b972\nmov     eax, r9d                                                       ; +0x35, 0x18013b975\ncmova   ecx, edx                                                       ; +0x38, 0x18013b978\nsub     eax, ecx                                                       ; +0x3b, 0x18013b97b\njnz     short locret_18013B98A                                         ; +0x3d, 0x18013b97d\ntest    r9d, r9d                                                       ; +0x3f, 0x18013b97f\njz      short locret_18013B98A                                         ; +0x42, 0x18013b982\nsub     r8, 1                                                          ; +0x44, 0x18013b984\njnz     short loc_18013B94E                                            ; +0x48, 0x18013b988\nretn                                                                   ; +0x4a, 0x18013b98a", "xrefs": ["_wcsnicoll @ 0x18013444a", "_wcsnicoll_l @ 0x1801344ec", "__acrt_DownlevelLocaleNameToLCID @ 0x18013c5f7"], "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"}