Function at 0x474e60
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x58
movsd xmm0, qword [0x5cfe80]
movsd qword [ebp - 0x14], xmm0
movsd qword [ebp - 0x1c], xmm0
call fcn.00475140
call fcn.00470920
test eax, eax
jge 0x474e9d
mov dword [0x645708], 0xffff
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, 0x544f58
cmp dword [esi - 4], 0
jne 0x4750e8
push dword [esi + 4]
push dword [esi]
push 0
push 0xf4240
call fcn.004aa470
mov esi, eax
add esi, 1
mov edi, edx
adc edi, 0
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov eax, 8
add eax, eax
mov dword [ebp - 0x24], eax
lea edx, [ebp - 0x34]
push edx
call sub.KERNEL32.dll_QueryPerformanceCounter
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], edx
xor ecx, ecx
mov dword [ebp - 0x28], ecx
cmp dword [0x648478], 0
jne 0x4750f2
mov ebx, dword [ebp - 0x24]
test ebx, ebx
jle 0x474f96
call fcn.00470920
mov ecx, dword [ebp - 0x28]
inc ecx
mov dword [ebp - 0x24], ebx
cmp ecx, ebx
mov dword [ebp - 0x28], ecx
jl 0x474f8e
lea eax, [ebp - 0x3c]
push eax
call sub.KERNEL32.dll_QueryPerformanceCounter
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
sub eax, dword [ebp - 0x50]
sbb edx, dword [ebp - 0x54]
cmp dword [0x648478], 0
jne 0x4750fc
cmp eax, esi
mov ecx, edx
sbb ecx, edi
jl 0x474f86
mov ecx, eax
push edx
push ecx
call fcn.00405030
fstp qword [ebp - 0x64]
mov eax, dword [ebp - 0x24]
xorps xmm1, xmm1
cvtsi2sd xmm1, eax
movsd xmm0, qword [ebp - 0x64]
divsd xmm0, xmm1
movsd xmm1, qword [ebp - 0x14]
ucomisd xmm1, xmm0
jp 0x474f71
je 0x474f9b
movsd xmm1, qword [ebp - 0x14]
ucomisd xmm1, qword [ebp - 0x14]
jp 0x474fa1
ucomisd xmm0, qword [ebp - 0x14]
ja 0x474fa1
jmp 0x474fa6
mov eax, dword [ebp - 0x24]
jmp 0x474ed1
mov ebx, dword [ebp - 0x24]
jmp 0x474f08
mov dword [ebp - 0x24], ebx
jmp 0x474f1b
cmp dword [ebp - 0x10], 0
jge 0x474f84
movsd xmm0, qword [ebp - 0x14]
movsd qword [ebp - 0x14], xmm0
mov edx, eax
sar edx, 0x1f
and edx, 3
add edx, eax
mov eax, edx
sar eax, 2
add eax, eax
mov dword [ebp - 0x24], eax
lea edx, [ebp - 0x44]
push edx
call sub.KERNEL32.dll_QueryPerformanceCounter
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x54], edx
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
cmp dword [0x648478], 0
jne 0x475112
mov ebx, dword [ebp - 0x24]
test ebx, ebx
jle 0x47507d
call fcn.00475140
mov ecx, dword [ebp - 0x2c]
inc ecx
mov dword [ebp - 0x24], ebx
cmp ecx, ebx
mov dword [ebp - 0x2c], ecx
jl 0x475075
lea eax, [ebp - 0x4c]
push eax
call sub.KERNEL32.dll_QueryPerformanceCounter
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x48]
sub eax, dword [ebp - 0x50]
sbb edx, dword [ebp - 0x54]
cmp dword [0x648478], 0
jne 0x47511c
cmp eax, esi
mov ecx, edx
sbb ecx, edi
jl 0x47506d
mov ecx, eax
push edx
push ecx
call fcn.00405030
fstp qword [ebp - 0x64]
xorps xmm1, xmm1
cvtsi2sd xmm1, dword [ebp - 0x24]
movsd xmm0, qword [ebp - 0x64]
divsd xmm0, xmm1
movsd xmm1, qword [ebp - 0x1c]
ucomisd xmm1, xmm0
jp 0x475058
je 0x475082
movsd xmm1, qword [ebp - 0x1c]
ucomisd xmm1, qword [ebp - 0x1c]
jp 0x475088
ucomisd xmm0, qword [ebp - 0x1c]
ja 0x475088
jmp 0x47508d
mov eax, dword [ebp - 0x24]
jmp 0x474fba
mov ebx, dword [ebp - 0x24]
jmp 0x474ff1
mov dword [ebp - 0x24], ebx
jmp 0x475004
cmp dword [ebp - 0x18], 0
jge 0x47506b
movsd xmm0, qword [ebp - 0x1c]
movsd qword [ebp - 0x1c], xmm0
mov ebx, dword [ebp - 0x20]
inc ebx
cmp ebx, 0xa
mov dword [ebp - 0x20], ebx
jl 0x474ecc
movsd xmm0, qword [ebp - 0x14]
mulsd xmm0, qword [0x5cfe88]
divsd xmm0, qword [ebp - 0x1c]
sub esp, 8
movsd qword [esp], xmm0
call fcn.00404ea0
mov edx, 0x1388
cmp eax, 0x1388
cmovg eax, edx
mov dword [0x645708], eax
cmp dword [0x645708], 5
setle al
movzx eax, al
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.00401187
jmp 0x474eac
call fcn.00403201
jmp 0x474efd
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], edx
call fcn.00403201
mov eax, dword [ebp - 0x50]
mov edx, dword [ebp - 0x54]
jmp 0x474f3d
call fcn.00403201
jmp 0x474fe6
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], edx
call fcn.00403201
mov eax, dword [ebp - 0x50]
mov edx, dword [ebp - 0x54]
jmp 0x475026