Function at 0x406a10
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0xffffffffffffffff
push 0x417072
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x42301c]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42301c]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov esi, ecx
xor ebp, ebp
mov dword [esp + 0x6c], ebp
cmp dword [0x42369c], ebp
je 0x406a71
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
add edx, dword [0x42369c]
mov dword [esi], edx
jmp 0x406cf5
mov ebx, vtable.GameMgr::GMBuffer_unsigned_char_.0
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
push ebp
push ebp
push 0x84400000
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x88]
push ecx
push 9
mov byte [esp + 0x88], 1
call sub.K8Common.dll_public:_static_bool___cdecl_GameMgr::GMSecretDownload::DownloadToBuffer_enum_GameMgr::GMKeyTypes__class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___class_GameMgr::GMBuffer_unsigned_char____unsigned_int___unsigned_long_int__void___unsigned_int__
add esp, 0x1c
test al, al
jne 0x406b0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea edx, [esp + 0x74]
push esi
push edx
call fcn.00404130
mov edi, eax
call fcn.004025a0
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x24]
cmp eax, ebp
mov dword [esp + 0x1c], ebx
je 0x406aef
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esp + 0x24], ebp
lea ecx, [esp + 0x74]
mov dword [esp + 0x6c], 0xffffffff
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, 0xe0003002
jmp 0x406d09
lea eax, [esp + 0x74]
push ebp
push eax
call fcn.00404130
mov edi, eax
call fcn.004025a0
lea ecx, [esp + 0x2c]
call sub.K8Common.dll_public:_void___thiscall_GameMgr::GMJsonReader::constructor_void_
lea ecx, [esp + 0x14]
mov byte [esp + 0x6c], 2
call sub.K8Common.dll_public:_void___thiscall_GameMgr::GMJsonValue::constructor_void_
mov bl, 3
mov byte [esp + 0x6c], bl
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x24]
push ecx
push edx
lea ecx, [esp + 0x48]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___unsigned_int_]
push ebp
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x38]
mov byte [esp + 0x78], 4
call sub.K8Common.dll_public_virtual:_bool___thiscall_GameMgr::GMJsonReader::Parse_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_GameMgr::GMJsonValue___bool_
test al, al
jne 0x406bce
lea ecx, [esp + 0x40]
mov byte [esp + 0x6c], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x14]
mov byte [esp + 0x6c], 2
call sub.K8Common.dll_public_virtual:_void___thiscall_GameMgr::GMJsonValue::destructor_void_
lea ecx, [esp + 0x2c]
mov byte [esp + 0x6c], 1
call sub.K8Common.dll_public_virtual:_void___thiscall_GameMgr::GMJsonReader::destructor_void_
mov eax, dword [esp + 0x24]
cmp eax, ebp
mov dword [esp + 0x1c], vtable.GameMgr::GMBuffer_unsigned_char_.0
je 0x406bb2
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esp + 0x24], ebp
lea ecx, [esp + 0x74]
mov dword [esp + 0x6c], 0xffffffff
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, 0xe0003006
jmp 0x406d09
lea ecx, [esp + 0x14]
call sub.K8Common.dll_public_virtual:_bool___thiscall_GameMgr::GMJsonValue::IsObject_void_const
test al, al
jne 0x406c10
lea ecx, [esp + 0x40]
mov byte [esp + 0x6c], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x14]
mov byte [esp + 0x6c], 2
call sub.K8Common.dll_public_virtual:_void___thiscall_GameMgr::GMJsonValue::destructor_void_
lea ecx, [esp + 0x2c]
mov byte [esp + 0x6c], 1
call sub.K8Common.dll_public_virtual:_void___thiscall_GameMgr::GMJsonReader::destructor_void_
lea ecx, [esp + 0x1c]
call fcn.004020b0
jmp 0x406bb2
push str.time
lea ecx, [esp + 0x18]
call sub.K8Common.dll_public_virtual:_bool___thiscall_GameMgr::GMJsonValue::IsMember_char_const__const
test al, al
jne 0x406c71
lea ecx, [esp + 0x40]
mov byte [esp + 0x6c], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x14]
mov byte [esp + 0x6c], 2
call sub.K8Common.dll_public_virtual:_void___thiscall_GameMgr::GMJsonValue::destructor_void_
lea ecx, [esp + 0x2c]
mov byte [esp + 0x6c], 1
call sub.K8Common.dll_public_virtual:_void___thiscall_GameMgr::GMJsonReader::destructor_void_
lea ecx, [esp + 0x1c]
call fcn.004020b0
lea ecx, [esp + 0x74]
mov dword [esp + 0x6c], 0xffffffff
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, 0xe0003007
jmp 0x406d09
push str.time
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0x1c]
call sub.K8Common.dll_public:_class_GameMgr::GMJsonValueRetRef___thiscall_GameMgr::GMJsonValue::operator___char_const__
mov byte [esp + 0x6c], 5
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 8]
call eax
lea ecx, [esp + 0x38]
mov dword [esi], eax
mov byte [esp + 0x6c], 4
call sub.K8Common.dll_public_virtual:_void___thiscall_GameMgr::GMJsonValueRetRef::destructor_void_
mov esi, dword [esi]
cmp esi, ebp
je 0x406cc2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
sub esi, edx
mov dword [0x42369c], esi
lea ecx, [esp + 0x40]
mov byte [esp + 0x6c], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x14]
mov byte [esp + 0x6c], 2
call sub.K8Common.dll_public_virtual:_void___thiscall_GameMgr::GMJsonValue::destructor_void_
lea ecx, [esp + 0x2c]
mov byte [esp + 0x6c], 1
call sub.K8Common.dll_public_virtual:_void___thiscall_GameMgr::GMJsonReader::destructor_void_
lea ecx, [esp + 0x1c]
call fcn.004020b0
lea ecx, [esp + 0x74]
mov dword [esp + 0x6c], 0xffffffff
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_]
xor eax, eax
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00413592
add esp, 0x5c
ret