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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53e027
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x5ac020]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x40], edi
lea eax, [ebp - 0xfc]
mov dword [ebp - method.PrecisionTimer.virtual_0], vtable.PrecisionTimer.0
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
xorps xmm1, xmm1
mov dword [ebp - 0xcc], 0
movupd xmmword [ebp - 0xe4], xmm0
movsd qword [ebp - 0xd4], xmm1
mov dword [ebp - 4], 1
lea eax, [ebp - 0x24]
push eax
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x3c]
call eax
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x8c]
sub eax, dword [ebp - 0x20]
xorps xmm0, xmm0
mov esi, dword [ebp - 0x1c]
sub esi, dword [ebp - 0x24]
push eax
push esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x8c], vtable.cafx::dxui::DxGraphics.0
movdqu xmmword [ebp - 0x88], xmm0
mov dword [ebp - 0x78], 0
mov byte [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov byte [ebp - 0x68], 0
call fcn.004cb410
test eax, eax
jne 0x42e977
push eax
push eax
call fcn.00502beb
mov byte [ebp - 4], 2
xorps xmm0, xmm0
push dword [ebp - 0x30]
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0xc4], vtable.cafx::dxui::DxGraphics.0
push esi
movdqu xmmword [ebp - 0xc0], xmm0
mov dword [ebp - 0xb0], 0
mov byte [ebp - 0xac], 1
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 0
mov byte [ebp - 0xa0], 0
call fcn.004cb410
test eax, eax
jne 0x42e9d6
push eax
push eax
call fcn.00502beb
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xc4]
mov eax, dword [edi]
push 6
push dword [ebp - 0x30]
push esi
push ecx
mov ecx, edi
call dword [eax + 0xc8]
push dword [ebp - 0x30]
mov eax, dword [edi]
lea ecx, [ebp - 0xc4]
push esi
push ecx
mov ecx, edi
call dword [eax + 0x28]
mov eax, dword [edi + 0xbc]
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [eax + 0x64], 0xfffffeff
lea eax, [ebp - 0xfc]
push eax
call esi
lea eax, [ebp - 0x3c]
mov dword [ebp - 0xcc], 0
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
call fcn.005391bf
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x3c]
movsd qword [ebp - 0x4c], xmm0
call fcn.005391bf
movsd xmm1, qword [ebp - 0x4c]
lea eax, [ebp - 0xfc]
divsd xmm1, xmm0
push eax
xorps xmm0, xmm0
mulsd xmm1, qword [0x587190]
movupd xmmword [ebp - 0xdc], xmm0
movsd qword [ebp - 0xe4], xmm1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea esp, [esp]
lea eax, [ebp - 0xfc]
xorps xmm0, xmm0
push eax
movsd qword [ebp - 0x2c], xmm0
call esi
movsd xmm0, qword [ebp - 0xe4]
xorps xmm1, xmm1
comisd xmm0, xmm1
jbe 0x42eb37
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x94]
call fcn.005391bf
mov edx, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x5c]
movsd qword [ebp - 0x2c], xmm0
call fcn.005391bf
cmp dword [ebp - 0xcc], 0
movsd xmm1, qword [ebp - 0x2c]
divsd xmm1, xmm0
mulsd xmm1, qword [0x587190]
je 0x42eb22
movapd xmm0, xmm1
subsd xmm0, qword [ebp - 0xdc]
subsd xmm1, qword [ebp - 0xe4]
subsd xmm1, xmm0
jmp 0x42eb2a
subsd xmm1, qword [ebp - 0xe4]
subsd xmm1, qword [ebp - 0xd4]
movsd qword [ebp - 0x2c], xmm1
lea eax, [ebp - 0xfc]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
movsd xmm0, qword [ebp - 0x2c]
call fcn.00539001
mov esi, 0xff
push 0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x5872a0]
mulsd xmm0, qword [0x5870f0]
mulsd xmm0, qword [0x587188]
addsd xmm0, qword [0x587120]
cvttsd2si eax, xmm0
sub esi, eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x28], esi
push dword [eax]
call dword [sym.imp.gdiplus.dll_GdipGraphicsClear]
test eax, eax
je 0x42eba5
mov ecx, dword [ebp - 0x88]
mov dword [ecx + 4], eax
push esi
push 0
push 0
push dword [ebp - 0xbc]
lea ecx, [ebp - 0x8c]
call fcn.004cb6c0
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x38]
call eax
push 0
mov word [ebp - 0x38], 0
mov byte [ebp - 0x35], 1
mov edi, dword [eax + 0xd8]
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov al, byte [edi + 0x3c]
mov byte [ebp - 0x36], al
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x48], eax
call dword [sym.imp.USER32.dll_GetDC]
push 2
mov esi, eax
lea eax, [ebp - 0x38]
push eax
push 0
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x80]
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x4c]
push eax
push esi
push dword [edi + 0x2c]
call dword [sym.imp.USER32.dll_UpdateLayeredWindow]
push esi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [ebp - 0x28], 0
jle 0x42ec59
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [ebp - 0x40]
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jmp 0x42ea90
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0xbc]
or dword [eax + 0x64], 0x100
mov byte [ebp - 4], 2
lea eax, [ebp - 0xc0]
push eax
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0xc4], vtable.cafx::dxui::DxGraphics.0
call fcn.004cb190
mov byte [ebp - 4], 1
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x8c], vtable.cafx::dxui::DxGraphics.0
call fcn.004cb190
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - method.PrecisionTimer.virtual_0], vtable.PrecisionTimer.0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xfc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004ffcef
mov esp, ebp
pop ebp
ret 4