{"type": "func", "start": 6443749312, "end": 6443749703, "name": "tzset_from_system_nolock", "pseudocode": "// \n// tzset_from_system_nolock from 0x18013cfc0 to 0x18013d147 (391 bytes)\n// \n// 2 xrefs:\n// > tzset_nolock @ 0x18013d21e\n// > <???> @ 0x180203a58\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 10:55:03 +0000\n// \n\nvoid __fastcall tzset_from_system_nolock()\n{\n  void **v0; // rdi\n  __int64 v1; // rax\n  int v2; // ebx\n  void **v3; // rsi\n  int v4; // ecx\n  unsigned int v5; // ebx\n  int v6; // ebx\n  int v7; // ebx\n  int v8; // ebx\n  int v9; // [rsp+50h] [rbp+20h] BYREF\n  int v10; // [rsp+58h] [rbp+28h] BYREF\n  int v11; // [rsp+60h] [rbp+30h] BYREF\n\n  v0 = (void **)sub_18013C6BC();\n  v1 = sub_18013C6C4();\n  v2 = 0;\n  v9 = 0;\n  v3 = (void **)v1;\n  v10 = 0;\n  v11 = 0;\n  if ( (unsigned int)sub_18013C72C(&v9) || (unsigned int)sub_18013C6CC(&v10) || (unsigned int)sub_18013C6FC(&v11) )\n    invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n  free_base(qword_1801F5650);\n  qword_1801F5650 = nullptr;\n  if ( GetTimeZoneInformation(&TimeZoneInformation) != -1 )\n  {\n    v4 = 1;\n    dword_1801F5660 = 1;\n    v9 = 60 * TimeZoneInformation.Bias;\n    if ( TimeZoneInformation.StandardDate.wMonth )\n      v9 = 60 * TimeZoneInformation.Bias + 60 * TimeZoneInformation.StandardBias;\n    if ( TimeZoneInformation.DaylightDate.wMonth && TimeZoneInformation.DaylightBias )\n      v2 = 60 * (TimeZoneInformation.DaylightBias - TimeZoneInformation.StandardBias);\n    else\n      v4 = 0;\n    v11 = v2;\n    v10 = v4;\n    memset(*v3, 0, 0x80u);\n    memset(v3[1], 0, 0x80u);\n    memset(*v0, 0, 0x40u);\n    memset(v0[1], 0, 0x40u);\n    v5 = __lc_codepage_func();\n    tzset_os_copy_to_tzname(TimeZoneInformation.StandardName, (wchar_t *const)*v3, (char *const)*v0, v5);\n    tzset_os_copy_to_tzname(TimeZoneInformation.DaylightName, (wchar_t *const)v3[1], (char *const)v0[1], v5);\n  }\n  v6 = v9;\n  *sub_18013C6B4() = v6;\n  v7 = v10;\n  *sub_18013C6A4() = v7;\n  v8 = v11;\n  *sub_18013C6AC() = v8;\n}", "assembly": "; \n; tzset_from_system_nolock from 0x18013cfc0 to 0x18013d147 (391 bytes)\n; \n; 2 xrefs:\n; > tzset_nolock @ 0x18013d21e\n; > <???> @ 0x180203a58\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 10:55:03 +0000\n; \nmov     [rsp-18h+arg_18], rbx                                          ; +0x0, 0x18013cfc0\npush    rbp                                                            ; +0x5, 0x18013cfc5\npush    rsi                                                            ; +0x6, 0x18013cfc6\npush    rdi                                                            ; +0x7, 0x18013cfc7\nmov     rbp, rsp                                                       ; +0x8, 0x18013cfc8\nsub     rsp, 30h                                                       ; +0xb, 0x18013cfcb\ncall    sub_18013C6BC                                                  ; +0xf, 0x18013cfcf\nmov     rdi, rax                                                       ; +0x14, 0x18013cfd4\ncall    sub_18013C6C4                                                  ; +0x17, 0x18013cfd7\nxor     ebx, ebx                                                       ; +0x1c, 0x18013cfdc\nlea     rcx, [rbp+arg_0]                                               ; +0x1e, 0x18013cfde\nmov     [rbp+arg_0], ebx                                               ; +0x22, 0x18013cfe2\nmov     rsi, rax                                                       ; +0x25, 0x18013cfe5\nmov     [rbp+arg_8], ebx                                               ; +0x28, 0x18013cfe8\nmov     [rbp+arg_10], ebx                                              ; +0x2b, 0x18013cfeb\ncall    sub_18013C72C                                                  ; +0x2e, 0x18013cfee\ntest    eax, eax                                                       ; +0x33, 0x18013cff3\njnz     loc_18013D133                                                  ; +0x35, 0x18013cff5\nlea     rcx, [rbp+arg_8]                                               ; +0x3b, 0x18013cffb\ncall    sub_18013C6CC                                                  ; +0x3f, 0x18013cfff\ntest    eax, eax                                                       ; +0x44, 0x18013d004\njnz     loc_18013D133                                                  ; +0x46, 0x18013d006\nlea     rcx, [rbp+arg_10]                                              ; +0x4c, 0x18013d00c\ncall    sub_18013C6FC                                                  ; +0x50, 0x18013d010\ntest    eax, eax                                                       ; +0x55, 0x18013d015\njnz     loc_18013D133                                                  ; +0x57, 0x18013d017\nmov     rcx, cs:qword_1801F5650; Block                                 ; +0x5d, 0x18013d01d\ncall    _free_base                                                     ; +0x64, 0x18013d024\nlea     rcx, TimeZoneInformation; lpTimeZoneInformation                ; +0x69, 0x18013d029\nmov     cs:qword_1801F5650, rbx                                        ; +0x70, 0x18013d030\ncall    cs:GetTimeZoneInformation                                      ; +0x77, 0x18013d037\ncmp     eax, 0FFFFFFFFh                                                ; +0x7d, 0x18013d03d\njz      loc_18013D108                                                  ; +0x80, 0x18013d040\nimul    edx, cs:TimeZoneInformation.Bias, 3Ch ; '<'                    ; +0x86, 0x18013d046\nlea     ecx, [rbx+1]                                                   ; +0x8d, 0x18013d04d\ncmp     cs:TimeZoneInformation.StandardDate.wMonth, bx                 ; +0x90, 0x18013d050\nmov     r8d, cs:TimeZoneInformation.StandardBias                       ; +0x97, 0x18013d057\nmov     cs:dword_1801F5660, ecx                                        ; +0x9e, 0x18013d05e\nmov     [rbp+arg_0], edx                                               ; +0xa4, 0x18013d064\njz      short loc_18013D072                                            ; +0xa7, 0x18013d067\nimul    eax, r8d, 3Ch ; '<'                                            ; +0xa9, 0x18013d069\nadd     eax, edx                                                       ; +0xad, 0x18013d06d\nmov     [rbp+arg_0], eax                                               ; +0xaf, 0x18013d06f\ncmp     cs:TimeZoneInformation.DaylightDate.wMonth, bx                 ; +0xb2, 0x18013d072\njz      short loc_18013D08D                                            ; +0xb9, 0x18013d079\nmov     eax, cs:TimeZoneInformation.DaylightBias                       ; +0xbb, 0x18013d07b\ntest    eax, eax                                                       ; +0xc1, 0x18013d081\njz      short loc_18013D08D                                            ; +0xc3, 0x18013d083\nsub     eax, r8d                                                       ; +0xc5, 0x18013d085\nimul    ebx, eax, 3Ch ; '<'                                            ; +0xc8, 0x18013d088\njmp     short loc_18013D08F                                            ; +0xcb, 0x18013d08b\nmov     ecx, ebx                                                       ; +0xcd, 0x18013d08d\nmov     [rbp+arg_10], ebx                                              ; +0xcf, 0x18013d08f\nxor     edx, edx; Val                                                  ; +0xd2, 0x18013d092\nmov     [rbp+arg_8], ecx                                               ; +0xd4, 0x18013d094\nmov     ebx, 80h                                                       ; +0xd7, 0x18013d097\nmov     rcx, [rsi]; void *                                             ; +0xdc, 0x18013d09c\nmov     r8d, ebx; Size                                                 ; +0xdf, 0x18013d09f\ncall    memset                                                         ; +0xe2, 0x18013d0a2\nmov     rcx, [rsi+8]; void *                                           ; +0xe7, 0x18013d0a7\nmov     r8d, ebx; Size                                                 ; +0xeb, 0x18013d0ab\nxor     edx, edx; Val                                                  ; +0xee, 0x18013d0ae\ncall    memset                                                         ; +0xf0, 0x18013d0b0\nmov     rcx, [rdi]; void *                                             ; +0xf5, 0x18013d0b5\nmov     ebx, 40h ; '@'                                                 ; +0xf8, 0x18013d0b8\nmov     r8d, ebx; Size                                                 ; +0xfd, 0x18013d0bd\nxor     edx, edx; Val                                                  ; +0x100, 0x18013d0c0\ncall    memset                                                         ; +0x102, 0x18013d0c2\nmov     rcx, [rdi+8]; void *                                           ; +0x107, 0x18013d0c7\nmov     r8d, ebx; Size                                                 ; +0x10b, 0x18013d0cb\nxor     edx, edx; Val                                                  ; +0x10e, 0x18013d0ce\ncall    memset                                                         ; +0x110, 0x18013d0d0\ncall    ___lc_codepage_func                                            ; +0x115, 0x18013d0d5\nmov     r8, [rdi]; char *                                              ; +0x11a, 0x18013d0da\nlea     rcx, TimeZoneInformation.StandardName; Source                  ; +0x11d, 0x18013d0dd\nmov     rdx, [rsi]; Destination                                        ; +0x124, 0x18013d0e4\nmov     r9d, eax; unsigned int                                         ; +0x127, 0x18013d0e7\nmov     ebx, eax                                                       ; +0x12a, 0x18013d0ea\ncall    ?tzset_os_copy_to_tzname@@YAXQEB_WQEA_WQEADI@Z                 ; +0x12c, 0x18013d0ec\nmov     r8, [rdi+8]; char *                                            ; +0x131, 0x18013d0f1\nlea     rcx, TimeZoneInformation.DaylightName; Source                  ; +0x135, 0x18013d0f5\nmov     rdx, [rsi+8]; Destination                                      ; +0x13c, 0x18013d0fc\nmov     r9d, ebx; unsigned int                                         ; +0x140, 0x18013d100\ncall    ?tzset_os_copy_to_tzname@@YAXQEB_WQEA_WQEADI@Z                 ; +0x143, 0x18013d103\nmov     ebx, [rbp+arg_0]                                               ; +0x148, 0x18013d108\ncall    sub_18013C6B4                                                  ; +0x14b, 0x18013d10b\nmov     [rax], ebx                                                     ; +0x150, 0x18013d110\nmov     ebx, [rbp+arg_8]                                               ; +0x152, 0x18013d112\ncall    sub_18013C6A4                                                  ; +0x155, 0x18013d115\nmov     [rax], ebx                                                     ; +0x15a, 0x18013d11a\nmov     ebx, [rbp+arg_10]                                              ; +0x15c, 0x18013d11c\ncall    sub_18013C6AC                                                  ; +0x15f, 0x18013d11f\nmov     [rax], ebx                                                     ; +0x164, 0x18013d124\nmov     rbx, [rsp+30h+arg_18]                                          ; +0x166, 0x18013d126\nadd     rsp, 30h                                                       ; +0x16b, 0x18013d12b\npop     rdi                                                            ; +0x16f, 0x18013d12f\npop     rsi                                                            ; +0x170, 0x18013d130\npop     rbp                                                            ; +0x171, 0x18013d131\nretn                                                                   ; +0x172, 0x18013d132\nxor     r9d, r9d; LineNo                                               ; +0x173, 0x18013d133\nmov     [rsp+30h+Reserved], rbx; Reserved                              ; +0x176, 0x18013d136\nxor     r8d, r8d; FileName                                             ; +0x17b, 0x18013d13b\nxor     edx, edx; FunctionName                                         ; +0x17e, 0x18013d13e\nxor     ecx, ecx; Expression                                           ; +0x180, 0x18013d140\ncall    _invoke_watson                                                 ; +0x182, 0x18013d142", "xrefs": ["tzset_nolock @ 0x18013d21e", "<???> @ 0x180203a58"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}