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

Disassembly:
push 0xffffffffffffffff
push 0x1004e919
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1007ff50]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
lea ebx, [esi + 0x64]
xor edi, edi
cmp ebx, edi
mov dword [esp + 0x14], ebx
je 0x1001548c
mov ecx, ebx
call dword [sym.imp.K8Common.dll_public:_void___thiscall_GameMgr::GMMutex::Lock_void_]
cmp byte [esp + 0x30], 0
mov dword [esp + 0x20], edi
je 0x100155c7
mov eax, dword [esp + 0x28]
add dword [esi + 0x40], eax
mov ecx, dword [esp + 0x2c]
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
adc dword [esi + 0x44], ecx
cmp dword [esi + 0x50], edi
jne 0x100154c5
call ebp
mov ecx, dword [esi + 0x40]
mov edx, dword [esi + 0x44]
mov dword [esi + 0x50], eax
mov dword [esi + 0x58], ecx
mov dword [esi + 0x5c], edx
call ebp
mov edi, eax
sub edi, dword [esi + 0x50]
cmp edi, 0x3e8
jb 0x1001563f
mov eax, dword [esi + 0x40]
sub eax, dword [esi + 0x58]
mov ecx, dword [esi + 0x44]
sbb ecx, dword [esi + 0x5c]
push 0
push 0x3e8
push ecx
push eax
call fcn.1004a4d0
push 0
push edi
push edx
push eax
call fcn.1004a420
mov dword [esi + 0x4c], eax
call ebp
mov edx, dword [esi + 0x40]
mov dword [esi + 0x50], eax
mov eax, dword [esi + 0x44]
lea ecx, [esi - 0x1d8]
mov dword [esi + 0x58], edx
mov edx, dword [ecx]
mov dword [esi + 0x5c], eax
mov eax, dword [edx + 0x10]
call eax
fst qword [esp + 0x28]
mov ecx, dword [esi - 0x1bc]
test ecx, ecx
je 0x10015549
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x50]
sub esp, 8
fstp qword [esp]
push edx
mov edx, dword [esi - 0x1d0]
push eax
push edx
call sym.K8DLUtils.dll_public:_void___thiscall_GameMgr::GMDownloadListener::SetSpeed_unsigned_int__unsigned_int__unsigned_int__double_
fld qword [esp + 0x28]
mov ecx, dword [esi + 0x38]
sub ecx, dword [esi + 0x40]
mov eax, dword [esi + 0x4c]
mov edx, dword [esi + 0x3c]
sbb edx, dword [esi + 0x44]
lea eax, [eax + eax*2]
add eax, eax
mov dword [esp + 0x30], eax
fild dword [esp + 0x30]
or edi, 0xffffffff
fxch st(1)
fmul qword [0x10056210]
fnstcw word [esp + 0x30]
movzx eax, word [esp + 0x30]
faddp st(1)
or eax, 0xc00
mov dword [esp + 0x28], eax
fdiv qword [0x10056208]
fldcw word [esp + 0x28]
fistp qword [esp + 0x28]
mov eax, dword [esp + 0x28]
test eax, eax
fldcw word [esp + 0x30]
je 0x100155aa
push 0
push eax
push edx
push ecx
call fcn.1004a3b0
mov edi, eax
mov ecx, dword [esi - 0x1bc]
test ecx, ecx
je 0x1001563f
mov edx, dword [esi - 0x1d0]
push edi
push edx
call sym.K8DLUtils.dll_public:_void___thiscall_GameMgr::GMDownloadListener::SetExpireTime_unsigned_int__unsigned_int_
jmp 0x1001563f
cmp dword [esi + 0x2730], edi
mov ebp, dword [esp + 0x2c]
mov ebx, dword [esp + 0x28]
jbe 0x1001562e
jmp 0x100155e0
mov ecx, dword [esi + 0x273c]
test ecx, ecx
je 0x1001562e
mov eax, dword [esi + 0x2740]
sub eax, ecx
sar eax, 3
cmp edi, eax
jae 0x1001562e
test ecx, ecx
je 0x1001560c
mov eax, dword [esi + 0x2740]
sub eax, ecx
sar eax, 3
cmp edi, eax
jb 0x10015612
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esi + 0x273c]
mov edx, dword [eax + edi*8]
mov eax, dword [eax + edi*8 + 4]
add ebx, edx
adc ebp, eax
add edi, 1
cmp edi, dword [esi + 0x2730]
jb 0x100155e0
mov dword [esi + 0x40], ebx
mov ebx, dword [esp + 0x14]
mov dword [esi + 0x44], ebp
mov dword [esi + 0x50], 0
mov ecx, dword [esi - 0x1bc]
test ecx, ecx
je 0x1001565d
mov eax, dword [esi + 0x44]
mov edx, dword [esi + 0x40]
push eax
mov eax, dword [esi - 0x1d0]
push edx
push eax
call sym.K8DLUtils.dll_public:_void___thiscall_GameMgr::GMDownloadListener::SetCompleted_unsigned_int__long_long___int64__
test ebx, ebx
mov dword [esp + 0x20], 0xffffffff
je 0x10015671
mov ecx, ebx
call dword [sym.imp.K8Common.dll_public:_void___thiscall_GameMgr::GMMutex::UnLock_void_]
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc