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

Disassembly:
push 0xcc
mov eax, 0x6a5166
call fcn.0056e23b
mov ebx, ecx
call fcn.00575a2f
mov esi, eax
mov ecx, ebx
mov dword [ebp - 0x54], esi
call fcn.005758a5
mov edi, eax
lea ecx, [ebp - 0xbc]
push 1
push edi
push esi
mov dword [ebp - 0x50], edi
call fcn.00583581
and dword [ebp - 4], 0
lea ecx, [ebp - 0xbc]
mov eax, dword [ebx]
push edi
push esi
push ecx
mov ecx, ebx
call dword [eax + 0x2c]
mov eax, dword [ebx]
lea ecx, [ebp - 0xbc]
push edi
push esi
push ecx
mov ecx, ebx
call dword [eax + 0x28]
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax + 0x44]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
lea eax, [ebp - 0x20]
mov ecx, ebx
push eax
mov eax, dword [ebx]
call dword [eax + 0x44]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
push 7
pop eax
add dword [ebp - 0x20], eax
lea ecx, [ebp - 0x94]
add dword [ebp - 0x1c], eax
sub dword [ebp - 0x18], eax
sub dword [ebp - 0x14], eax
push 0
push edi
push esi
call fcn.00583581
mov byte [ebp - 4], 1
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push 0
push dword [ebp + 8]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
call fcn.0056eec0
push edx
push eax
push 0
push dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
call fcn.0056eaa0
mov dword [ebp - 0x38], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x48]
mov dword [ebp - 0x4c], edx
push eax
movlpd qword [ebp - 0x28], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x24], ecx
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov esi, dword [ebp - 0x40]
sub esi, dword [ebp - 0x48]
mov edi, dword [ebp - 0x3c]
sbb edi, dword [ebp - 0x44]
cmp edi, dword [ebp - 0x2c]
jl 0x55b78f
jg 0x55b658
cmp esi, dword [ebp - 0x30]
jbe 0x55b78f
push 2
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0xd8]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x24]
add eax, esi
mov esi, dword [ebp - 0x34]
mov dword [ebp - 0x24], eax
adc esi, edi
mov edi, dword [ebp - 0x4c]
mov dword [ebp - 0x34], esi
cmp esi, edi
jg 0x55b79c
jl 0x55b69e
cmp eax, dword [ebp - 0x38]
jae 0x55b79c
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x94]
add dword [ebp - 0x20], eax
add dword [ebp - 0x1c], eax
sub dword [ebp - 0x18], eax
sub dword [ebp - 0x14], eax
call fcn.0058370e
mov eax, dword [ebp - 0x18]
xor ecx, ecx
sub eax, dword [ebp - 0x20]
push ecx
push ecx
push ecx
push 2
push dword [ebp - 0x50]
mov dword [ebp - 0x5c], eax
push dword [ebp - 0x54]
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
push ecx
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x64]
push ecx
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x60], ecx
lea ecx, [ebp - 0xbc]
push eax
call fcn.00451480
push eax
lea ecx, [ebp - 0x94]
call fcn.0047bdb5
mov ecx, eax
call fcn.005307ce
mov ecx, dword [ebp - 0x24]
mov edx, esi
call fcn.0056e920
mov ecx, dword [ebp - 0x38]
mov edx, edi
movsd qword [ebp - 0x6c], xmm0
call fcn.0056e920
movsd xmm2, qword [ebp - 0x6c]
mov ecx, ebx
divsd xmm2, xmm0
movsd xmm1, qword [0x6f3fc8]
mulsd xmm2, qword [0x6f3fc8]
subsd xmm1, xmm2
cvttsd2si eax, xmm1
movzx eax, al
push eax
call fcn.00580987
mov ecx, eax
call fcn.00582daf
lea ecx, [ebp - 0x94]
call fcn.0052907d
push eax
mov eax, dword [ebp - 0x14]
mov ecx, ebx
sub eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x20]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call fcn.00580987
mov ecx, eax
call fcn.00582bd6
push 2
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0xd8]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x55b62e
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax + 0x44]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x94]
call fcn.00583619
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xbc]
call fcn.00583619
call fcn.0056e1e5
ret 0xc