{"type": "func", "start": 6443746620, "end": 6443746721, "name": "_updatetlocinfoEx_nolock", "pseudocode": "// \n// _updatetlocinfoEx_nolock from 0x18013c53c to 0x18013c5a1 (101 bytes)\n// \n// 3 xrefs:\n// > __crt_seh_guarded_call<void>::operator @ 0x1801365c5\n// > __acrt_update_thread_locale_data @ 0x18013c50f\n// > <???> @ 0x1802039ec\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 updatetlocinfoEx_nolock(__int64 *a1, __int64 a2)\n{\n  __int64 v3; // rbx\n\n  if ( !a2 || !a1 )\n    return 0;\n  v3 = *a1;\n  if ( *a1 != a2 )\n  {\n    *a1 = a2;\n    _acrt_add_locale_ref(a2);\n    if ( v3 )\n    {\n      _acrt_release_locale_ref(v3);\n      if ( !*(_DWORD *)(v3 + 16) && (wchar_t **)v3 != &off_1801B1880 )\n        _acrt_free_locale((char *)v3);\n    }\n  }\n  return a2;\n}", "assembly": "; \n; _updatetlocinfoEx_nolock from 0x18013c53c to 0x18013c5a1 (101 bytes)\n; \n; 3 xrefs:\n; > __crt_seh_guarded_call<void>::operator @ 0x1801365c5\n; > __acrt_update_thread_locale_data @ 0x18013c50f\n; > <???> @ 0x1802039ec\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, 0x18013c53c\npush    rdi                                                            ; +0x5, 0x18013c541\nsub     rsp, 20h                                                       ; +0x6, 0x18013c542\nmov     rdi, rdx                                                       ; +0xa, 0x18013c546\ntest    rdx, rdx                                                       ; +0xd, 0x18013c549\njz      short loc_18013C594                                            ; +0x10, 0x18013c54c\ntest    rcx, rcx                                                       ; +0x12, 0x18013c54e\njz      short loc_18013C594                                            ; +0x15, 0x18013c551\nmov     rbx, [rcx]                                                     ; +0x17, 0x18013c553\ncmp     rbx, rdx                                                       ; +0x1a, 0x18013c556\njnz     short loc_18013C560                                            ; +0x1d, 0x18013c559\nmov     rax, rdi                                                       ; +0x1f, 0x18013c55b\njmp     short loc_18013C596                                            ; +0x22, 0x18013c55e\nmov     [rcx], rdi                                                     ; +0x24, 0x18013c560\nmov     rcx, rdi                                                       ; +0x27, 0x18013c563\ncall    __acrt_add_locale_ref                                          ; +0x2a, 0x18013c566\ntest    rbx, rbx                                                       ; +0x2f, 0x18013c56b\njz      short loc_18013C55B                                            ; +0x32, 0x18013c56e\nmov     rcx, rbx                                                       ; +0x34, 0x18013c570\ncall    __acrt_release_locale_ref                                      ; +0x37, 0x18013c573\ncmp     dword ptr [rbx+10h], 0                                         ; +0x3c, 0x18013c578\njnz     short loc_18013C55B                                            ; +0x40, 0x18013c57c\nlea     rax, off_1801B1880                                             ; +0x42, 0x18013c57e\ncmp     rbx, rax                                                       ; +0x49, 0x18013c585\njz      short loc_18013C55B                                            ; +0x4c, 0x18013c588\nmov     rcx, rbx; Block                                                ; +0x4e, 0x18013c58a\ncall    __acrt_free_locale                                             ; +0x51, 0x18013c58d\njmp     short loc_18013C55B                                            ; +0x56, 0x18013c592\nxor     eax, eax                                                       ; +0x58, 0x18013c594\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x5a, 0x18013c596\nadd     rsp, 20h                                                       ; +0x5f, 0x18013c59b\npop     rdi                                                            ; +0x63, 0x18013c59f\nretn                                                                   ; +0x64, 0x18013c5a0", "xrefs": ["__crt_seh_guarded_call<void>::operator @ 0x1801365c5", "__acrt_update_thread_locale_data @ 0x18013c50f", "<???> @ 0x1802039ec"], "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"}