{"type": "func", "start": 6443746724, "end": 6443746899, "name": "__acrt_DownlevelLocaleNameToLCID", "pseudocode": "// \n// __acrt_DownlevelLocaleNameToLCID from 0x18013c5a4 to 0x18013c653 (175 bytes)\n// \n// 2 xrefs:\n// > __acrt_LocaleNameToLCID @ 0x180135c3c\n// > <???> @ 0x1802039f8\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 _acrt_DownlevelLocaleNameToLCID(unsigned __int16 *a1)\n{\n  int v2; // ebx\n  int v3; // edi\n  int v4; // ebp\n  int v5; // eax\n  unsigned int v6; // eax\n\n  if ( !a1 )\n    return 0;\n  v2 = 0;\n  v3 = 227;\n  while ( 1 )\n  {\n    v4 = (v3 + v2) / 2;\n    v5 = _ascii_wcsnicmp(a1, (unsigned __int16 *)*(&off_180178D60 + 2 * v4), 85);\n    if ( !v5 )\n      break;\n    if ( v5 >= 0 )\n      v2 = v4 + 1;\n    else\n      v3 = v4 - 1;\n    if ( v2 > v3 )\n    {\n      v6 = -1;\n      goto LABEL_10;\n    }\n  }\n  v6 = dword_180178D68[4 * v4];\nLABEL_10:\n  if ( v6 < 0xE4 )\n    return (unsigned int)dword_180177300[4 * v6];\n  else\n    return 0;\n}", "assembly": "; \n; __acrt_DownlevelLocaleNameToLCID from 0x18013c5a4 to 0x18013c653 (175 bytes)\n; \n; 2 xrefs:\n; > __acrt_LocaleNameToLCID @ 0x180135c3c\n; > <???> @ 0x1802039f8\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+arg_0], rbx                                               ; +0x0, 0x18013c5a4\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x18013c5a9\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x18013c5ae\npush    rdi                                                            ; +0xf, 0x18013c5b3\npush    r14                                                            ; +0x10, 0x18013c5b4\npush    r15                                                            ; +0x12, 0x18013c5b6\nsub     rsp, 20h                                                       ; +0x14, 0x18013c5b8\nmov     r14, rcx                                                       ; +0x18, 0x18013c5bc\ntest    rcx, rcx                                                       ; +0x1b, 0x18013c5bf\njz      short loc_18013C638                                            ; +0x1e, 0x18013c5c2\nxor     ebx, ebx                                                       ; +0x20, 0x18013c5c4\nlea     r15, cs:180000000h                                             ; +0x22, 0x18013c5c6\nmov     edi, 0E3h                                                      ; +0x29, 0x18013c5cd\nlea     eax, [rdi+rbx]                                                 ; +0x2e, 0x18013c5d2\nmov     r8d, 55h ; 'U'                                                 ; +0x31, 0x18013c5d5\ncdq                                                                    ; +0x37, 0x18013c5db\nmov     rcx, r14                                                       ; +0x38, 0x18013c5dc\nsub     eax, edx                                                       ; +0x3b, 0x18013c5df\nsar     eax, 1                                                         ; +0x3d, 0x18013c5e1\nmovsxd  rbp, eax                                                       ; +0x3f, 0x18013c5e3\nmov     rdx, rbp                                                       ; +0x42, 0x18013c5e6\nmov     rsi, rbp                                                       ; +0x45, 0x18013c5e9\nadd     rdx, rdx                                                       ; +0x48, 0x18013c5ec\nmov     rdx, ds:rva off_180178D60[r15+rdx*8]                           ; +0x4b, 0x18013c5ef\ncall    __ascii_wcsnicmp                                               ; +0x53, 0x18013c5f7\ntest    eax, eax                                                       ; +0x58, 0x18013c5fc\njz      short loc_18013C613                                            ; +0x5a, 0x18013c5fe\njns     short loc_18013C607                                            ; +0x5c, 0x18013c600\nlea     edi, [rbp-1]                                                   ; +0x5e, 0x18013c602\njmp     short loc_18013C60A                                            ; +0x61, 0x18013c605\nlea     ebx, [rbp+1]                                                   ; +0x63, 0x18013c607\ncmp     ebx, edi                                                       ; +0x66, 0x18013c60a\njle     short loc_18013C5D2                                            ; +0x68, 0x18013c60c\nor      eax, 0FFFFFFFFh                                                ; +0x6a, 0x18013c60e\njmp     short loc_18013C61E                                            ; +0x6d, 0x18013c611\nadd     rsi, rsi                                                       ; +0x6f, 0x18013c613\nmov     eax, ds:rva dword_180178D68[r15+rsi*8]                         ; +0x72, 0x18013c616\ntest    eax, eax                                                       ; +0x7a, 0x18013c61e\njs      short loc_18013C638                                            ; +0x7c, 0x18013c620\ncmp     eax, 0E4h                                                      ; +0x7e, 0x18013c622\njnb     short loc_18013C638                                            ; +0x83, 0x18013c627\ncdqe                                                                   ; +0x85, 0x18013c629\nadd     rax, rax                                                       ; +0x87, 0x18013c62b\nmov     eax, ds:rva dword_180177300[r15+rax*8]                         ; +0x8a, 0x18013c62e\njmp     short loc_18013C63A                                            ; +0x92, 0x18013c636\nxor     eax, eax                                                       ; +0x94, 0x18013c638\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x96, 0x18013c63a\nmov     rbp, [rsp+38h+arg_8]                                           ; +0x9b, 0x18013c63f\nmov     rsi, [rsp+38h+arg_10]                                          ; +0xa0, 0x18013c644\nadd     rsp, 20h                                                       ; +0xa5, 0x18013c649\npop     r15                                                            ; +0xa9, 0x18013c64d\npop     r14                                                            ; +0xab, 0x18013c64f\npop     rdi                                                            ; +0xad, 0x18013c651\nretn                                                                   ; +0xae, 0x18013c652", "xrefs": ["__acrt_LocaleNameToLCID @ 0x180135c3c", "<???> @ 0x1802039f8"], "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"}