{"type": "func", "start": 6443766216, "end": 6443766351, "name": "__crtLCMapStringW", "pseudocode": "// \n// __crtLCMapStringW from 0x1801411c8 to 0x18014124f (135 bytes)\n// \n// 2 xrefs:\n// > sub_18013C0DC @ 0x18013c169\n// > <???> @ 0x180203c8c\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 _crtLCMapStringW(__int64 a1, DWORD a2, const wchar_t *a3, int a4, WCHAR *a5, int a6)\n{\n  unsigned int v6; // ebx\n  unsigned int v10; // eax\n  bool v11; // sf\n  bool v12; // of\n\n  v6 = a4;\n  if ( a4 > 0 )\n  {\n    v10 = wcsnlen(a3, a4);\n    v12 = __OFSUB__(v10, v6);\n    v11 = (int)(v10 - v6) < 0;\n    v6 = v10 + 1;\n    if ( v11 == v12 )\n      v6 = v10;\n  }\n  return _acrt_LCMapStringEx(a1, a2, a3, v6, a5, a6, 0, 0, 0);\n}", "assembly": "; \n; __crtLCMapStringW from 0x1801411c8 to 0x18014124f (135 bytes)\n; \n; 2 xrefs:\n; > sub_18013C0DC @ 0x18013c169\n; > <???> @ 0x180203c8c\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, 0x1801411c8\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x1801411cd\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x1801411d2\npush    rdi                                                            ; +0xf, 0x1801411d7\nsub     rsp, 50h                                                       ; +0x10, 0x1801411d8\nmovsxd  rbx, r9d                                                       ; +0x14, 0x1801411dc\nmov     rdi, r8                                                        ; +0x17, 0x1801411df\nmov     esi, edx                                                       ; +0x1a, 0x1801411e2\nmov     rbp, rcx                                                       ; +0x1c, 0x1801411e4\ntest    r9d, r9d                                                       ; +0x1f, 0x1801411e7\njle     short loc_180141200                                            ; +0x22, 0x1801411ea\nmov     rdx, rbx; MaxCount                                             ; +0x24, 0x1801411ec\nmov     rcx, r8; Source                                                ; +0x27, 0x1801411ef\ncall    wcsnlen                                                        ; +0x2a, 0x1801411f2\ncmp     eax, ebx                                                       ; +0x2f, 0x1801411f7\nlea     ebx, [rax+1]                                                   ; +0x31, 0x1801411f9\njl      short loc_180141200                                            ; +0x34, 0x1801411fc\nmov     ebx, eax                                                       ; +0x36, 0x1801411fe\nand     [rsp+58h+var_18], 0                                            ; +0x38, 0x180141200\nmov     r9d, ebx                                                       ; +0x3e, 0x180141206\nand     [rsp+58h+var_20], 0                                            ; +0x41, 0x180141209\nmov     r8, rdi                                                        ; +0x47, 0x18014120f\nand     [rsp+58h+var_28], 0                                            ; +0x4a, 0x180141212\nmov     edx, esi                                                       ; +0x50, 0x180141218\nmov     eax, [rsp+58h+arg_28]                                          ; +0x52, 0x18014121a\nmov     rcx, rbp                                                       ; +0x59, 0x180141221\nmov     [rsp+58h+var_30], eax                                          ; +0x5c, 0x180141224\nmov     rax, [rsp+58h+arg_20]                                          ; +0x60, 0x180141228\nmov     [rsp+58h+var_38], rax                                          ; +0x68, 0x180141230\ncall    __acrt_LCMapStringEx                                           ; +0x6d, 0x180141235\nmov     rbx, [rsp+58h+arg_0]                                           ; +0x72, 0x18014123a\nmov     rbp, [rsp+58h+arg_8]                                           ; +0x77, 0x18014123f\nmov     rsi, [rsp+58h+arg_10]                                          ; +0x7c, 0x180141244\nadd     rsp, 50h                                                       ; +0x81, 0x180141249\npop     rdi                                                            ; +0x85, 0x18014124d\nretn                                                                   ; +0x86, 0x18014124e", "xrefs": ["sub_18013C0DC @ 0x18013c169", "<???> @ 0x180203c8c"], "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"}