// // tzset_nolock from 0x18013d148 to 0x18013d250 (264 bytes) // // 3 xrefs: // > __tzset @ 0x18013d2f1 // > @ 0x180203a58 // > @ 0x180203a64 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void __fastcall tzset_nolock() { int v0; // eax wchar_t *v1; // rdi wchar_t *v2; // rax wchar_t *v3; // rcx wchar_t *v4; // rbx rsize_t v5; // [rsp+20h] [rbp-228h] BYREF rsize_t v6; // [rsp+28h] [rbp-220h] BYREF wchar_t Source[256]; // [rsp+30h] [rbp-218h] BYREF dword_1801B2150 = -1; dword_1801F5660 = 0; dword_1801B2140 = -1; v0 = common_getenv_s(&v5, Source, 0x100u, L"TZ"); if ( !v0 ) { v1 = Source; goto LABEL_11; } if ( v0 != 34 ) goto LABEL_4; v2 = (wchar_t *)malloc_base(2 * v5); v1 = v2; if ( !v2 ) { v3 = nullptr; LABEL_7: free_base(v3); LABEL_4: v1 = nullptr; goto LABEL_11; } if ( (unsigned int)common_getenv_s(&v6, v2, v5, L"TZ") ) { v3 = v1; goto LABEL_7; } free_base(nullptr); LABEL_11: v4 = v1; if ( v1 == Source ) v4 = nullptr; if ( v1 && *v1 ) tzset_from_environment_nolock(v1); else tzset_from_system_nolock(); free_base(v4); }
GD Web Decomp Icon

GD Web Decomp

Raw Source