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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
mov eax, dword [0x46f06c]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
mov esi, ecx
push edi
push 0
push 1
mov eax, dword [esi]
mov dword [esp + 0x20], esi
call dword [eax + 4]
test eax, eax
je 0x406465
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esi + 0x2468]
push 0xa
pop ecx
cmp edx, ecx
mov dword [esp + 0x14], eax
mov dword [esi + 0x26ac], eax
mov dword [esi + 0x26cc], eax
cmovl ecx, edx
lea eax, [esi + 0x62cb8]
mov dword [esi + 0x2468], ecx
push eax
call fcn.0043bd9a
pop ecx
push 0
mov ecx, esi
call fcn.00405f99
jmp 0x40634d
cmp dword [esi + 0x5d0f8], 7
je 0x4060fa
cmp dword [esi + 0x26a8], 0
je 0x4060fa
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x26ac]
cmp eax, dword [esi + 0x26a8]
ja 0x406428
xor eax, eax
lea edi, [esp + 0x34]
push 0xa
pop ecx
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x26dc]
xor edx, edx
sub ecx, dword [esi + 0x26d8]
mov eax, dword [esi + 0x2464]
mov dword [esp + 0x30], eax
sar ecx, 2
push 0xb
pop eax
cmp ecx, eax
cmovl eax, ecx
test eax, eax
jle 0x40616c
mov ecx, dword [esi + 0x26d8]
lea edi, [esp + 0x34]
mov eax, dword [esi + 0x26dc]
sub eax, ecx
sar eax, 2
push 0xb
pop ebx
cmp eax, ebx
cmovl ebx, eax
sub edi, ecx
mov dword [esp + 0x10], ebx
mov esi, ebx
mov ebx, dword [ecx]
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x40615d
mov eax, dword [ebx + 0xc]
mov dword [ecx + edi], eax
inc edx
add ecx, 4
cmp edx, esi
jl 0x406151
mov esi, dword [esp + 0x18]
inc edx
cmp edx, 1
jbe 0x406434
push 0x1f4
push 0
lea eax, [esp + 0x38]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov ebx, eax
mov dword [esp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, eax
mov dword [esp + 0x1c], eax
sub edx, dword [esp + 0x14]
cmp edx, 0x1f4
jb 0x406289
mov ecx, dword [esi + 0x26c0]
lea eax, [esp + 0x20]
mov dword [esp + 0x20], ecx
lea edi, [esi + 0x26b4]
push eax
mov ecx, edi
mov dword [esp + 0x28], edx
call fcn.004090f1
mov eax, dword [edi + 4]
sub eax, dword [edi]
sar eax, 3
cmp eax, 6
jbe 0x4061f1
mov eax, dword [edi]
mov ecx, dword [edi + 4]
lea edx, [eax + 8]
sub ecx, edx
push ecx
push edx
push eax
call fcn.00433120
add esp, 0xc
add dword [edi + 4], 0xfffffff8
mov eax, dword [edi + 4]
sub eax, dword [edi]
and eax, 0xfffffff8
cmp eax, 0x30
jne 0x40627a
mov eax, dword [esi + 0x26b8]
xor edx, edx
sub eax, dword [esi + 0x26b4]
xor edi, edi
sar eax, 3
xor ecx, ecx
test eax, eax
je 0x40623b
lea eax, [esi + 0x26b4]
mov ebx, dword [eax]
mov eax, dword [eax + 4]
sub eax, dword [esi + 0x26b4]
sar eax, 3
add edx, dword [ebx + ecx*8 + 4]
add edi, dword [ebx + ecx*8]
inc ecx
cmp ecx, eax
jb 0x40622b
mov ebx, dword [esp + 0x10]
movd xmm0, edi
movd xmm1, edx
cvtdq2pd xmm0, xmm0
shr edi, 0x1f
shr edx, 0x1f
cvtdq2pd xmm1, xmm1
addsd xmm0, qword [edi*8 + 0x469ad0]
addsd xmm1, qword [edx*8 + 0x469ad0]
divsd xmm0, xmm1
mulsd xmm0, qword [0x469a68]
call fcn.00457881
mov dword [esi + 0x26b0], eax
mov eax, dword [esp + 0x1c]
and dword [esi + 0x26c0], 0
mov dword [esp + 0x14], eax
lea eax, [esp + 0x28]
push eax
call fcn.0043bd9a
mov eax, dword [esp + 0x30]
lea edx, [esi + 0x62cb8]
mov edi, dword [esi + 0x26b0]
pop ecx
mov ecx, dword [esp + 0x28]
sub ecx, dword [edx]
mov dword [esi + 0x62cc0], ecx
sbb eax, dword [edx + 4]
mov dword [esi + 0x62cc4], eax
test edi, edi
je 0x4062f6
mov ecx, dword [esi + 0x5d100]
mov eax, ecx
mov edx, dword [esi + 0x5d104]
and eax, edx
cmp eax, 0xffffffff
je 0x4062f6
sub ecx, dword [esi + 0x5d110]
push 0
sbb edx, dword [esi + 0x5d114]
push edi
push edx
push ecx
call fcn.00432a60
mov dword [esi + 0x62cc8], eax
mov dword [esi + 0x62ccc], edx
jmp 0x406304
and dword [esi + 0x62cc8], 0
and dword [esi + 0x62ccc], 0
cmp ebx, 0xffffffff
je 0x40645b
cmp ebx, 0x102
jne 0x40635a
cmp dword [esi + 0x246c], 6
jne 0x4060d0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
sub ecx, dword [esi + 0x26a4]
cmp ecx, 0x3e8
jbe 0x4060d0
mov dword [esi + 0x26a4], eax
mov ecx, esi
mov eax, dword [esi]
push 0
push 6
call dword [eax + 4]
test eax, eax
jne 0x4060d0
jmp 0x406465
test ebx, ebx
je 0x40641f
mov eax, dword [esi + 0x26d8]
lea edi, [ebx - 1]
mov ebx, dword [eax + edi*4]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x26c4], eax
cmp dword [ebx + 0x10], 0
je 0x406396
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebx + 0x10], 0
mov eax, dword [ebx + 0x28]
cmp eax, 0xa
ja case.default.0x40639e
jmp dword [eax*4 + 0x406479]
push edi
mov ecx, esi
call fcn.004064a5
jmp 0x406415
push edi
mov ecx, esi
call fcn.00406520
jmp 0x406415
push edi
mov ecx, esi
call fcn.004065c0
jmp 0x406415
push edi
mov ecx, esi
call fcn.004066be
jmp 0x406415
push edi
mov ecx, esi
call fcn.00406c25
jmp 0x406415
push edi
mov ecx, esi
call fcn.00406ca5
jmp 0x406415
push edi
mov ecx, esi
call fcn.00406d4f
jmp 0x406415
push edi
mov ecx, esi
call fcn.00406e4d
jmp 0x406415
push edi
mov ecx, esi
call fcn.0040701b
jmp 0x406415
push edi
mov ecx, esi
call fcn.0040711d
jmp 0x406415
push edi
mov ecx, esi
call fcn.00407291
jmp 0x406415
xor eax, eax
test eax, eax
jne 0x4060d0
jmp 0x40645b
cmp dword [esi + 0x5d0f8], 7
je 0x406465
mov dword [esi + 0x5d0f8], 9
jmp 0x406465
cmp dword [esi + 0x26f0], 0
je 0x406465
mov eax, dword [esi + 0x5d114]
cmp eax, dword [esi + 0x5d104]
ja 0x406465
jb 0x40645b
mov eax, dword [esi + 0x5d110]
cmp eax, dword [esi + 0x5d100]
jae 0x406465
mov dword [esi + 0x5d0f8], 8
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043223c
mov esp, ebp
pop ebp
ret