Function at 0x409020
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40effb
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x41901c]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push esi
mov eax, dword [0x41901c]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0xa0], ebx
mov esi, ecx
push str.00000000000000
mov ecx, edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x14], ebx
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov dword [esp + 0xa0], ebx
cmp byte [esi + 0xc], bl
mov dword [esp + 0x10], 1
jne 0x4090bf
mov eax, dword [esi + 8]
mov ecx, eax
and ecx, 0x20006
cmp ecx, 0x20006
sete dl
mov ecx, esi
push edx
push eax
push 0x411d88
push 0x80000001
call sub.K8Common.dll_public:_bool___thiscall_GameMgr::GMRegFile::OpenKey_struct_HKEY_____wchar_t_const___unsigned_long_int__bool_
cmp al, bl
mov byte [esi + 0xc], al
je 0x409200
lea ecx, [esp + 0x40]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea eax, [esp + 0x40]
push eax
push str.Time
mov ecx, esi
mov dword [esp + 0xa8], 1
call sub.K8Common.dll_public:_bool___thiscall_GameMgr::GMRegFile::GetValue_wchar_t_const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____
test al, al
je 0x4091ef
cmp dword [esp + 0x54], 0x14
lea ecx, [esp + 0x40]
jne 0x4091f3
push 0xa
push ecx
lea edx, [esp + 0x80]
push edx
call sub.K8Common.dll_public:_static_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_GameMgr::GMStringUtils::Left_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___int_
push 0xa
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x70]
push ecx
mov byte [esp + 0xb8], 2
call sub.K8Common.dll_public:_static_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_GameMgr::GMStringUtils::Right_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___int_
add esp, 0x18
mov byte [esp + 0xa0], 3
mov eax, dword [esp + 0x7c]
mov esi, 8
cmp dword [esp + 0x90], esi
jae 0x409146
lea eax, [esp + 0x7c]
push ebx
push eax
call sub.K8Common.dll_public:_static_unsigned_long_long_unsigned___int64____cdecl_GameMgr::GMStringUtils::ConvertStringToUInt64_wchar_t_const___wchar_t_const___
add esp, 8
cmp dword [esp + 0x74], esi
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x60]
jae 0x409162
lea eax, [esp + 0x60]
push ebx
push eax
call sub.K8Common.dll_public:_static_unsigned_long_long_unsigned___int64____cdecl_GameMgr::GMStringUtils::ConvertStringToUInt64_wchar_t_const___wchar_t_const___
add esp, 8
lea edx, [esp + 0x30]
mov dword [esp + 0x24], eax
push edx
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x4091cb
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x34]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
test eax, eax
je 0x4091cb
movzx eax, word [esp + 0x20]
movzx ecx, word [esp + 0x1e]
movzx edx, word [esp + 0x1c]
push eax
movzx eax, word [esp + 0x1e]
push ecx
movzx ecx, word [esp + 0x1e]
push edx
movzx edx, word [esp + 0x20]
push eax
push ecx
push edx
push 0x4117f8
push edi
call sub.K8Common.dll_public:_static_void___cdecl_GameMgr::GMStringUtils::Format_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____wchar_t_const__
add esp, 0x20
lea ecx, [esp + 0x5c]
mov byte [esp + 0xa0], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x78]
mov byte [esp + 0xa0], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x40]
mov byte [esp + 0xa0], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, edi
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.0040e0e6
add esp, 0x98
ret