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

Disassembly:
push 8
push 0x48
mov eax, 0x499251
call fcn.0049087b
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 0x45beed
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.00402271
test al, al
jne 0x45bedd
push dword [ebp - 0x38]
lea ecx, [edi + 0x14]
call fcn.00402c3b
or dword [ebp - 4], 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp - 0x34]
jmp 0x45bf20
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 0x45bf44
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 0x45bfa6
mov edx, dword [ebp - 0x20]
ja 0x45bf8f
cmp edx, ecx
jbe 0x45bfa6
push 0
mov ecx, 0x3e8
push ecx
push eax
push edx
call fcn.004908e0
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], edx
jmp 0x45bfb0
cmp byte [ebx + 8], 0
je 0x45c094
mov eax, dword [ebp - 0x1c]
or eax, dword [ebp - 0x18]
je 0x45c094
mov esi, dword [ebp - 0x2c]
or ecx, 0xffffffff
mov edx, dword [ebp - 0x28]
mov eax, esi
and eax, edx
cmp eax, ecx
jne 0x45bfdc
mov eax, dword [edi + 0x40]
and eax, dword [edi + 0x44]
cmp eax, ecx
je 0x45c055
mov dword [edi + 0x44], ecx
jmp 0x45c052
mov ecx, dword [ebp - 0x18]
xorps xmm0, xmm0
movlpd qword [ebp - 0x40], xmm0
cmp ecx, edx
ja 0x45c016
mov eax, dword [ebp - 0x1c]
jb 0x45bff4
cmp eax, esi
jae 0x45c016
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.00459636
mov ecx, eax
mov dword [ebp - 0x34], eax
add esp, 0x18
mov eax, edx
jmp 0x45c01f
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.004908e0
mov ecx, eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x3c], ecx
cmp eax, dword [edi + 0x40]
jne 0x45c049
mov ecx, dword [ebp - 0x38]
cmp ecx, dword [edi + 0x44]
je 0x45c055
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 0x45c067
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.004908e0
mov dword [ebp - 0x34], edx
mov dl, 1
jmp 0x45c0a3
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 0x45c0f4
test esi, esi
jne 0x45c0ba
test ecx, ecx
je 0x45c0f4
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.0048edc0
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
movsd qword [ebp - 0x48], xmm0
call fcn.0048edc0
movsd xmm1, qword [ebp - 0x48]
mov dl, 1
divsd xmm1, xmm0
movsd qword [ebp - 0x48], xmm1
jmp 0x45c0f7
xorps xmm1, xmm1
movaps xmm0, xmm1
subsd xmm0, qword [edi + 0x30]
andps xmm0, xmmword [0x4aa300]
comisd xmm0, xmmword [0x4aa298]
jb 0x45c115
movsd qword [edi + 0x30], xmm1
test dl, dl
je 0x45c1be
push 0x28
call fcn.0046a4f4
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.0046c6e3
pop ecx
pop ecx
test eax, eax
jne 0x45c176
or eax, 0xffffffff
jmp 0x45c17b
sub eax, dword [edi + 0x14]
sar eax, 1
cmp eax, dword [edi + 0x18]
jae 0x45c18b
mov eax, dword [ebp - 0x30]
push 3
mov dword [esi + 0x20], eax
pop eax
jmp 0x45c18e
mov eax, dword [ebp - 0x3c]
dec eax
sub eax, 1
je 0x45c1a6
sub eax, 1
jne 0x45c1be
push ecx
push dword [esi + 0x20]
mov ecx, edi
call fcn.0045bbf9
jmp 0x45c1be
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.0045b7cf
call fcn.00490864
ret 4