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

Disassembly:
push 8
push 0x48
mov eax, 0x4d7b85
call fcn.004cf74e
mov edi, ecx
mov esi, dword [edi + 0x98]
xorps xmm0, xmm0
movlpd qword [ebp - 0x40], xmm0
movlpd qword [ebp - 0x58], xmm0
movlpd qword [ebp - 0x50], xmm0
movsd qword [ebp - 0x48], xmm0
mov byte [ebp - 0x12], 0
test esi, esi
je 0x45c1cc
add esi, 0x9c
push esi
mov dword [ebp - 0x3c], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [ebp - 4], 0
mov eax, dword [edi + 0x98]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x18], ecx
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x30], ecx
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0x24], ecx
mov ecx, dword [eax + 0x20]
mov dword [ebp - 0x34], ecx
mov ecx, dword [eax + 0x24]
mov dword [ebp - 0x20], ecx
mov cl, byte [eax + 2]
add eax, 0x44
mov dword [ebp - 0x28], edx
mov edx, eax
mov byte [ebp - 0x11], cl
lea ecx, [edi + 0x14]
mov dword [ebp - 0x38], eax
call fcn.00402302
test al, al
jne 0x45c1bc
push dword [ebp - 0x38]
lea ecx, [edi + 0x14]
call fcn.00402ccc
or dword [ebp - 4], 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp - 0x34]
jmp 0x45c1ff
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x58]
mov esi, dword [ebp - 0x54]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x2c], ecx
mov cl, byte [ebp - 0x12]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x28], esi
mov esi, dword [ebp - 0x58]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x11], cl
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, eax
mov al, byte [ebp - 0x11]
test al, al
jne 0x45c223
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], eax
mov eax, edx
sub eax, dword [edi + 0x24]
add eax, dword [edi + 0x28]
push 0
pop ecx
adc ecx, dword [edi + 0x2c]
mov dword [ebp - 0x24], ecx
mov dword [edi + 0x2c], ecx
mov ecx, dword [edi + 0x38]
mov dword [ebp - 0x20], eax
add ecx, 3
mov dword [edi + 0x28], eax
mov eax, dword [edi + 0x3c]
adc eax, 0
mov dword [edi + 0x24], edx
push 0x64
pop edx
mul edx
push 0x64
mov esi, eax
mov eax, ecx
pop ecx
mul ecx
add esi, edx
mov ecx, eax
mov eax, dword [ebp - 0x24]
cmp eax, esi
jb 0x45c285
mov edx, dword [ebp - 0x20]
ja 0x45c26e
cmp edx, ecx
jbe 0x45c285
push 0
mov ecx, 0x3e8
push ecx
push eax
push edx
call fcn.004cf7c0
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], edx
jmp 0x45c28f
cmp byte [ebx + 8], 0
je 0x45c373
mov eax, dword [ebp - 0x1c]
or eax, dword [ebp - 0x18]
je 0x45c373
mov esi, dword [ebp - 0x2c]
or ecx, 0xffffffff
mov edx, dword [ebp - 0x28]
mov eax, esi
and eax, edx
cmp eax, ecx
jne 0x45c2bb
mov eax, dword [edi + 0x40]
and eax, dword [edi + 0x44]
cmp eax, ecx
je 0x45c334
mov dword [edi + 0x44], ecx
jmp 0x45c331
mov ecx, dword [ebp - 0x18]
xorps xmm0, xmm0
movlpd qword [ebp - 0x40], xmm0
cmp ecx, edx
ja 0x45c2f5
mov eax, dword [ebp - 0x1c]
jb 0x45c2d3
cmp eax, esi
jae 0x45c2f5
push ecx
mov ecx, esi
sub ecx, eax
push eax
sbb edx, dword [ebp - 0x18]
push edx
push ecx
push dword [ebp - 0x24]
push dword [ebp - 0x20]
call fcn.0045983e
mov ecx, eax
mov dword [ebp - 0x34], eax
add esp, 0x18
mov eax, edx
jmp 0x45c2fe
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x34], ecx
push 0
mov edx, 0x3e8
mov dword [ebp - 0x38], eax
push edx
push eax
push ecx
call fcn.004cf7c0
mov ecx, eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x3c], ecx
cmp eax, dword [edi + 0x40]
jne 0x45c328
mov ecx, dword [ebp - 0x38]
cmp ecx, dword [edi + 0x44]
je 0x45c334
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], edx
mov dword [edi + 0x44], edx
mov dword [edi + 0x40], ecx
mov eax, dword [ebp - 0x20]
or eax, dword [ebp - 0x24]
jne 0x45c346
and dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 1
mov eax, dword [ebp - 0x18]
mov ecx, 0x3e8
push dword [ebp - 0x24]
mul ecx
mov edx, 0x3e8
mov ecx, eax
mov eax, dword [ebp - 0x1c]
mul edx
add ecx, edx
mov edx, dword [ebp - 0x20]
push edx
push ecx
push eax
call fcn.004cf7c0
mov dword [ebp - 0x34], edx
mov dl, 1
jmp 0x45c382
mov eax, dword [ebp - 0x54]
mov esi, dword [ebp - 0x2c]
mov dl, byte [ebp - 0x12]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x38], eax
mov eax, esi
and eax, ecx
cmp eax, 0xffffffff
je 0x45c3d3
test esi, esi
jne 0x45c399
test ecx, ecx
je 0x45c3d3
mov eax, dword [ebp - 0x18]
push 0x64
pop ecx
mul ecx
mov esi, eax
mov eax, dword [ebp - 0x1c]
mul ecx
add edx, esi
mov ecx, eax
call fcn.004a9b90
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
movsd qword [ebp - 0x48], xmm0
call fcn.004a9b90
movsd xmm1, qword [ebp - 0x48]
mov dl, 1
divsd xmm1, xmm0
movsd qword [ebp - 0x48], xmm1
jmp 0x45c3d6
xorps xmm1, xmm1
movaps xmm0, xmm1
subsd xmm0, qword [edi + 0x30]
andps xmm0, xmmword [0x4f61a0]
comisd xmm0, xmmword [0x4f6130]
jb 0x45c3f4
movsd qword [edi + 0x30], xmm1
test dl, dl
je 0x45c49d
push 0x28
call fcn.004a8eb3
movsd xmm0, qword [ebp - 0x48]
mov esi, eax
mov dword [ebp - 0x3c], esi
xor eax, eax
mov dword [esp], str.ck_W
mov dword [ebp - 0x3c], 2
mov byte [esi], al
mov dword [esi + 0x24], eax
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x38]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x34]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x50]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x4c]
movsd qword [esi + 0x18], xmm0
mov dword [esi + 0x14], eax
push dword [edi + 0x14]
call fcn.004ab4d3
pop ecx
pop ecx
test eax, eax
jne 0x45c455
or eax, 0xffffffff
jmp 0x45c45a
sub eax, dword [edi + 0x14]
sar eax, 1
cmp eax, dword [edi + 0x18]
jae 0x45c46a
mov eax, dword [ebp - 0x30]
push 3
mov dword [esi + 0x20], eax
pop eax
jmp 0x45c46d
mov eax, dword [ebp - 0x3c]
dec eax
sub eax, 1
je 0x45c485
sub eax, 1
jne 0x45c49d
push ecx
push dword [esi + 0x20]
mov ecx, edi
call fcn.0045bee1
jmp 0x45c49d
push dword [esi + 0x14]
movsd xmm3, qword [esi + 0x18]
mov ecx, edi
push dword [esi + 0x10]
push dword [esi + 0xc]
push dword [esi + 8]
call fcn.0045babc
call fcn.004cf737
ret 4