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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x18], 0
jne 0x45c476
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x18], 1
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x2c], 1
mov edx, dword [0x6ba8f0]
xor edx, 1
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x30], edx
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x34], 0x14
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x34]
cdq
sub eax, edx
sar eax, 1
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x38], eax
push 0xca99f0
mov ecx, dword [ebp + 8]
add ecx, 0x1e0
call fcn.005b7680
test eax, eax
jge 0x45c4a7
push 0xca99f0
mov ecx, dword [ebp + 8]
add ecx, 0x1e0
call fcn.005b7680
neg eax
mov dword [ebp - 0x10], eax
jmp 0x45c4bd
push 0xca99f0
mov ecx, dword [ebp + 8]
add ecx, 0x1e0
call fcn.005b7680
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xd
jge 0x45c57a
push 0xca9a20
mov ecx, dword [ebp + 8]
add ecx, 0x1f0
call fcn.005b7680
test eax, eax
jge 0x45c4f8
push 0xca9a20
mov ecx, dword [ebp + 8]
add ecx, 0x1f0
call fcn.005b7680
neg eax
mov dword [ebp - 0x14], eax
jmp 0x45c50e
push 0xca9a20
mov ecx, dword [ebp + 8]
add ecx, 0x1f0
call fcn.005b7680
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xd
jge 0x45c57a
call dword [sym.imp.kernel32.dll_GetTickCount]
cmp eax, 0x35a4e900
jbe 0x45c535
call dword [sym.imp.kernel32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x35a4e900
div ecx
mov dword [ebp - 0x18], edx
jmp 0x45c53e
call dword [sym.imp.kernel32.dll_GetTickCount]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x14]
add eax, 0x1770
cmp eax, dword [ebp - 0x18]
jae 0x45c5a3
mov ecx, dword [ebp + 8]
fld dword [ecx + 0x27c]
fcomp qword [0x5e8680]
fnstsw ax
test ah, 0x44
jp 0x45c5a3
mov edx, dword [ebp + 8]
fld dword [edx + 0x280]
fcomp qword [0x5e8680]
fnstsw ax
test ah, 0x44
jp 0x45c5a3
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x28]
push ecx
call fcn.0045aee0
add esp, 4
mov edx, dword [ebp + 8]
push edx
call fcn.004013e0
add esp, 4
mov dword [ebp + 8], 0
xor eax, eax
jmp 0x45c710
mov eax, dword [ebp + 8]
fld dword [eax + 0x27c]
fcomp qword [0x5e8680]
fnstsw ax
test ah, 0x44
jp 0x45c5db
mov ecx, dword [ebp + 8]
fld dword [ecx + 0x280]
fcomp qword [0x5e8680]
fnstsw ax
test ah, 0x44
jp 0x45c5db
mov edx, dword [ebp + 8]
push edx
call fcn.0045b4c0
add esp, 4
mov eax, dword [ebp + 8]
push eax
call fcn.00453ee0
add esp, 4
mov ecx, dword [ebp - 0xc]
mov edx, dword [0x6ba8f0]
cmp edx, dword [ecx + 0x30]
je 0x45c604
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x38]
sub ecx, 1
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x38], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x38], 0
jg 0x45c64f
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x2c]
xor edx, 1
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x2c], edx
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx + 0x34]
cdq
sub eax, edx
sar eax, 1
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x38], 1
jge 0x45c640
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x38], 1
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x34]
sub eax, 1
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x34], eax
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
fld dword [ecx + 0x278]
fstp dword [esp]
mov edx, dword [ebp + 8]
push ecx
fld dword [edx + 0x274]
fstp dword [esp]
call fcn.0049cb80
add esp, 0x10
fld dword [ebp - 8]
fadd qword [0x5e85a8]
call fcn.005cbd10
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x30], eax
fld dword [ebp - 4]
fadd qword [0x5e85a8]
call fcn.005cbd10
mov edx, dword [ebp + 8]
mov dword [edx + 0x34], eax
push 0
push 0
push 0x64
mov eax, dword [ebp + 8]
push eax
call fcn.00592b40
add esp, 0x10
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0x2c], 0
je 0x45c703
mov edx, dword [ebp + 8]
add edx, 0x2f8
push edx
push 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
push ecx
push 0xb
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.00593b40
add esp, 8
mov ecx, dword [ebp + 8]
add eax, dword [ecx + 0x34]
push eax
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.00593b40
add esp, 8
mov ecx, dword [ebp + 8]
add eax, dword [ecx + 0x30]
push eax
call fcn.005a1d30
add esp, 0x18
mov edx, dword [ebp - 0xc]
mov eax, dword [0x6ba8f0]
mov dword [edx + 0x30], eax
xor eax, eax
mov esp, ebp
pop ebp
ret