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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [0x48577c]
push edi
mov byte [esi + 0x1b1], 1
test ebx, ebx
jne 0x42faab
cmp dword [esi + 0x1a8], 0xff
jge 0x42fa8f
push 1
call fcn.0042fc80
mov ecx, dword [esi + 0x5fc]
add esp, 4
push ebx
call fcn.00435760
push 1
push esi
call fcn.00431500
mov ecx, dword [esi + 0x5fc]
add esp, 8
call fcn.00435ff0
mov ecx, dword [0x48577c]
push 0
push 0
push 0
mov eax, dword [ecx + 0x4c]
mov edx, dword [eax + 0x28]
mov ebx, dword [eax + 0x24]
mov dword [ebp - 0x14], edx
mov edx, dword [eax + 0x2c]
mov dword [ebp - 4], edx
mov edx, dword [eax + 0x30]
mov eax, dword [eax + 0x34]
dec dword [ecx + 0x1a8]
mov dword [ebp - 0xc], eax
mov eax, dword [0x48577c]
mov dword [ebp + 8], edx
mov edi, dword [eax + 0x4c]
push dword [edi + 4]
call dword [sym.imp.GDI32.dll_SetViewportOrgEx]
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov dword [edi + 0x2c], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0xc]
mov dword [edi + 0x24], ebx
mov dword [edi + 0x28], edx
mov dword [edi + 0x34], eax
test ebx, ebx
jns 0x42fa26
mov dword [edi + 0x24], 0
xor ebx, ebx
test edx, edx
jns 0x42fa33
mov dword [edi + 0x28], 0
xor edx, edx
mov ecx, dword [edi + 0xc]
cmp dword [ebp - 4], ecx
jle 0x42fa41
mov dword [edi + 0x2c], ecx
mov dword [ebp - 4], ecx
mov eax, dword [edi + 0x10]
cmp dword [ebp + 8], eax
jle 0x42fa4f
mov dword [edi + 0x30], eax
mov dword [ebp + 8], eax
cmp dword [ebp - 0xc], 0
je 0x42fa5f
push dword [ebp + 8]
push dword [ebp - 4]
push edx
push ebx
jmp 0x42fa65
push eax
push ecx
push 0
push 0
call dword [sym.imp.GDI32.dll_CreateRectRgn]
mov ebx, eax
push ebx
push dword [edi + 4]
call dword [sym.imp.GDI32.dll_SelectClipRgn]
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
push 0
push dword [edi + 0x28]
push dword [edi + 0x24]
push dword [edi + 4]
call dword [sym.imp.GDI32.dll_SetViewportOrgEx]
push esi
call fcn.0042fdc0
fmul qword [0x478110]
add esp, 4
fstp qword [ebp - 0x18]
movsd xmm1, qword [ebp - 0x18]
jmp 0x42fc69
push esi
call fcn.0042fdc0
fmul qword [0x478110]
xor edi, edi
mov eax, 0x64
cmp ebx, 0x32
xorps xmm0, xmm0
push esi
cmovl edi, eax
movsd qword [esi + 0x618], xmm0
fstp qword [ebp - 0x18]
call fcn.0042fdc0
fmul qword [0x478110]
add esp, 8
movsd xmm2, qword [ebp - 0x18]
movsd qword [ebp - 0x18], xmm2
fstp qword [ebp - 0x10]
movsd xmm1, qword [ebp - 0x10]
movaps xmm0, xmm1
movsd qword [esi + 0x618], xmm1
addsd xmm0, qword [0x478100]
comisd xmm0, xmm2
jbe 0x42fb11
movsd qword [ebp - 0x18], xmm1
mov ecx, dword [esi + 0x5fc]
push 0
call fcn.00435760
movd xmm1, dword [ebp + 8]
lea ebx, [esi + 0x608]
movsd xmm0, qword [ebp - 0x18]
cvtdq2pd xmm1, xmm1
addsd xmm0, xmm1
movsd qword [ebp - 0x18], xmm0
movsd qword [ebp - 8], xmm0
mov eax, dword [ebx]
xorps xmm0, xmm0
or eax, dword [ebx + 4]
movlpd qword [ebp - 0x10], xmm0
jne 0x42fb74
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
push ebx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push 0x485750
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xorps xmm1, xmm1
jmp 0x42fbad
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebx]
mov edx, dword [ebp - 0xc]
sbb edx, dword [ebx + 4]
call fcn.00460a40
mov edx, dword [0x485754]
mov ecx, dword [0x485750]
movsd qword [ebp - 0x10], xmm0
call fcn.00460a40
movsd xmm1, qword [ebp - 0x10]
divsd xmm1, xmm0
mulsd xmm1, qword [0x478110]
movsd xmm0, qword [ebp - 0x18]
comisd xmm0, xmm1
jb 0x42fc0c
test edi, edi
jle 0x42fbf6
cmp dword [esi + 0x1a8], 0xff
jl 0x42fbf6
push esi
call fcn.0042fdc0
fmul qword [0x478110]
fsubr qword [ebp - 8]
fstp qword [ebp - 0x10]
cvttsd2si eax, qword [ebp - 0x10]
push eax
call fcn.0042fc80
add esp, 8
dec edi
jmp 0x42fb40
push 1
push esi
call fcn.00431500
mov edi, 0x100
add esp, 8
dec edi
jmp 0x42fb40
push 1
push esi
call fcn.00431500
push esi
call fcn.0042fdc0
fmul qword [0x478110]
lea eax, [esi + 0x5fc]
push eax
push esi
fstp qword [ebp - 0x18]
call fcn.004318f0
movsd xmm1, qword [esi + 0x618]
add esp, 0x14
movsd xmm2, qword [ebp - 0x18]
movaps xmm0, xmm1
addsd xmm0, qword [0x478100]
comisd xmm2, xmm0
jae 0x42fc66
comisd xmm1, xmm2
ja 0x42fc66
movd xmm0, dword [ebp + 8]
cvtdq2pd xmm0, xmm0
addsd xmm1, xmm0
jmp 0x42fc69
movaps xmm1, xmm2
movsd qword [esi + 0x618], xmm1
pop edi
mov byte [esi + 0x1b1], 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret