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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x549293
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x5ac020]
xor eax, esp
mov dword [esp + 0xd4], eax
push esi
push edi
mov eax, dword [0x5ac020]
xor eax, esp
push eax
lea eax, [esp + 0xe8]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x2c], esi
mov eax, dword [esi + 0x74]
lea ecx, [esp + 0x64]
sub eax, dword [esi + 0x6c]
xorps xmm0, xmm0
mov edi, dword [esi + 0x70]
sub edi, dword [esi + 0x68]
push eax
push edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x6c], vtable.cafx::dxui::DxGraphics.0
movdqu xmmword [esp + 0x70], xmm0
mov dword [esp + 0x80], 0
mov byte [esp + 0x84], 1
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov byte [esp + 0x90], 0
call fcn.004cb410
test eax, eax
jne 0x4a0c71
push eax
push eax
call fcn.00502beb
mov dword [esp + 0xf0], 0
lea ecx, [esp + 0x64]
push dword [esp + 0x10]
mov eax, dword [esi]
push edi
push ecx
mov ecx, esi
call dword [eax + 0x54]
push dword [esp + 0x10]
mov eax, dword [esi]
lea ecx, [esp + 0x68]
push edi
push ecx
mov ecx, esi
call dword [eax + 0x28]
mov eax, dword [esi]
mov ecx, esi
push 0
mov eax, dword [eax + 0x3c]
call eax
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
lea eax, [esp + 0xd0]
mov ecx, esi
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x3c]
call eax
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [0x5bdcb4]
lea ecx, [esp + 0x8c]
push dword [esp + 0x10]
add dword [esp + 0xd4], eax
xorps xmm0, xmm0
add dword [esp + 0xd8], eax
sub dword [esp + 0xdc], eax
sub dword [esp + 0xe0], eax
push edi
mov dword [esp + 0x94], vtable.cafx::dxui::DxGraphics.0
movdqu xmmword [esp + 0x98], xmm0
mov dword [esp + 0xa8], 0
mov byte [esp + 0xac], 0
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], 0
mov byte [esp + 0xb8], 0
call fcn.004cb410
test eax, eax
jne 0x4a0d4d
push eax
push eax
call fcn.00502beb
mov byte [esp + 0xf0], 1
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push 0
push 0x46
push dword [esp + 0x28]
push dword [esp + 0x28]
call fcn.00509d50
mov ecx, eax
mov dword [esp + 0x1c], eax
mov esi, edx
mov dword [esp + 0x20], edx
shld esi, ecx, 4
xorps xmm0, xmm0
shl ecx, 4
sub ecx, eax
movlpd qword [esp + 0x14], xmm0
lea eax, [esp + 0x3c]
mov dword [esp + 0x30], ecx
sbb esi, edx
mov dword [esp + 0x48], esi
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push eax
call esi
mov eax, dword [esp + 0x18]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x34]
push eax
call esi
mov esi, dword [esp + 0x34]
sub esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
sbb edi, dword [esp + 0x40]
cmp edi, dword [esp + 0x20]
jl 0x4a0fbe
jg 0x4a0de3
cmp esi, dword [esp + 0x1c]
jbe 0x4a0fbe
push 2
push 0
push 0
push 0
lea eax, [esp + 0xc4]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x28]
add eax, esi
mov esi, dword [esp + 0x48]
mov dword [esp + 0x28], eax
adc ecx, edi
mov dword [esp + 0x24], ecx
cmp ecx, esi
jg 0x4a0fd1
jl 0x4a0e35
cmp eax, dword [esp + 0x30]
jae 0x4a0fd1
mov edx, ecx
mov ecx, eax
call fcn.005391bf
mov ecx, dword [esp + 0x30]
mov edx, esi
movsd qword [esp + 0x14], xmm0
call fcn.005391bf
movsd xmm1, qword [esp + 0x14]
divsd xmm1, xmm0
mov esi, dword [esp + 0x90]
add dword [esp + 0xd0], 2
add dword [esp + 0xd4], 2
sub dword [esp + 0xd8], 2
sub dword [esp + 0xdc], 2
push 0
push dword [esi]
movsd qword [esp + 0x1c], xmm1
call dword [sym.imp.gdiplus.dll_GdipGraphicsClear]
test eax, eax
je 0x4a0e97
mov dword [esi + 4], eax
mov eax, dword [esp + 0xd8]
mov ecx, dword [esp + 0xdc]
sub eax, dword [esp + 0xd0]
sub ecx, dword [esp + 0xd4]
mov edx, dword [esp + 0x6c]
test edx, edx
je 0x4a0ec0
mov edx, dword [edx + 4]
jmp 0x4a0ec2
xor edx, edx
push 0
push 0
push 0
push 2
push dword [esp + 0x20]
push dword [esp + 0x58]
push 0
push 0
push ecx
push eax
push 0
push 0
push edx
push dword [esi]
call dword [sym.imp.gdiplus.dll_GdipDrawImageRectRectI]
test eax, eax
je 0x4a0eec
mov dword [esi + 4], eax
movsd xmm0, qword [0x587188]
movsd xmm1, qword [esp + 0x14]
mov edx, dword [esp + 0x2c]
mulsd xmm1, xmm0
push 0
mov word [esp + 0x10], 0
mov eax, dword [edx + 0xd8]
mov byte [esp + 0x13], 1
subsd xmm0, xmm1
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
cvttsd2si ecx, xmm0
mov byte [eax + 0x3c], cl
mov edi, dword [edx + 0xd8]
mov edx, dword [esp + 0xd4]
mov ecx, dword [esp + 0xd8]
mov dword [esp + 0x60], edx
mov al, byte [edi + 0x3c]
mov byte [esp + 0x12], al
mov eax, dword [esp + 0xdc]
sub eax, edx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0xe0]
sub eax, ecx
mov dword [esp + 0x54], eax
call dword [sym.imp.USER32.dll_GetDC]
push 2
mov esi, eax
lea eax, [esp + 0x10]
push eax
push 0
lea eax, [esp + 0x60]
push eax
push dword [esp + 0xa8]
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x74]
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]
push 2
push 0
push 0
push 0
lea eax, [esp + 0xc4]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
jmp 0x4a0db6
mov ecx, dword [esp + 0x2c]
push 1
mov eax, dword [ecx]
mov eax, dword [eax + 0x3c]
call eax
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov byte [esp + 0xf0], 0
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0x90]
mov dword [esp + 0x90], vtable.cafx::dxui::DxGraphics.0
call fcn.004cb190
mov dword [esp + 0xf0], 0xffffffff
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x68]
mov dword [esp + 0x68], vtable.cafx::dxui::DxGraphics.0
call fcn.004cb190
mov ecx, dword [esp + 0xe8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0xd4]
xor ecx, esp
call fcn.004ffcef
mov esp, ebp
pop ebp
ret 0xc