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

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0xe0
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x70], rax
cmp qword [0x140005648], 0
mov rbx, rcx
movaps xmmword [r11 - 0x18], xmm6
movaps xmmword [r11 - 0x28], xmm7
movaps xmmword [r11 - 0x48], xmm9
movaps xmmword [r11 - 0x68], xmm11
jne 0x1400013e5
lea rcx, [0x140005648]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea rcx, [0x140005650]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea rcx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x68]
xorps xmm7, xmm7
mov rcx, rax
xorps xmm0, xmm0
sub rcx, qword [0x140005650]
cvtsi2ss xmm0, qword [0x140005648]
mov qword [0x140005650], rax
cvtsi2ss xmm7, rcx
xor ecx, ecx
divss xmm7, xmm0
call qword [sym.imp.USER32.dll_GetDC]
mov rcx, rax
mov edx, 0x74
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
movss xmm6, dword [0x140003354]
xorps xmm11, xmm11
test eax, eax
jle 0x1400014c0
movss xmm3, dword [0x140003360]
xorps xmm1, xmm1
xorps xmm0, xmm0
cvtsi2ss xmm0, eax
divss xmm1, xmm0
movss xmm0, dword [0x140005034]
movaps xmm2, xmm1
divss xmm1, xmm7
subss xmm2, xmm7
mulss xmm1, xmm0
subss xmm1, xmm0
mulss xmm1, dword [0x140003350]
addss xmm1, xmm0
movaps xmm0, xmm1
movss dword [0x140005034], xmm1
minss xmm0, xmm3
comiss xmm6, xmm0
jbe 0x1400014a1
mov dword [0x140005034], 0x3f800000
jmp 0x1400014b0
comiss xmm3, xmm1
ja 0x1400014b0
mov dword [0x140005034], 0x447a0000
comiss xmm2, xmm6
jbe 0x1400014c0
cvttss2si rcx, xmm2
call qword [sym.imp.KERNEL32.dll_Sleep]
movss xmm0, dword [0x140005034]
divss xmm0, dword [0x140003358]
cvttss2si eax, xmm0
test eax, eax
jle 0x140001502
mov eax, eax
nop word [rax + rax]
movss dword [rsp + 0x20], xmm6
movss xmm1, dword [rsp + 0x20]
movss xmm0, dword [rsp + 0x20]
mulss xmm1, xmm0
movss dword [rsp + 0x20], xmm1
sub rax, 1
jne 0x1400014e0
mov rcx, qword [0x140005630]
mov rax, qword [rcx]
call qword [rax + 0x180]
mov rcx, qword [0x140005630]
lea rdx, [rsp + 0x58]
movaps xmm0, xmmword [0x140003380]
movups xmmword [rsp + 0x58], xmm0
mov rax, qword [rcx]
call qword [rax + 0x178]
mov rcx, qword [0x140005630]
lea rdx, [rsp + 0x50]
movaps xmm9, xmm11
mov rax, qword [rcx]
call qword [rax + 0x1a8]
movss xmm0, dword [rax + 4]
comiss xmm0, xmm11
jbe 0x1400016ef
movaps xmmword [rsp + 0xb0], xmm8
movss xmm8, dword [0x14000335c]
movaps xmmword [rsp + 0x90], xmm10
nop word [rax + rax]
mov rcx, qword [0x140005630]
lea rdx, [rsp + 0x48]
movaps xmm10, xmm11
mov rax, qword [rcx]
call qword [rax + 0x1a8]
movss xmm0, dword [rax]
comiss xmm0, xmm11
jbe 0x1400016b0
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
and eax, 0x800000ff
jge 0x1400015bd
dec eax
or eax, 0xffffff00
inc eax
movd xmm6, eax
cvtdq2ps xmm6, xmm6
divss xmm6, xmm8
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
and eax, 0x800000ff
jge 0x1400015df
dec eax
or eax, 0xffffff00
inc eax
movd xmm7, eax
cvtdq2ps xmm7, xmm7
divss xmm7, xmm8
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
and eax, 0x800000ff
jge 0x140001601
dec eax
or eax, 0xffffff00
inc eax
mov rcx, qword [0x140005628]
lea rdx, [rsp + 0x28]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mov dword [rsp + 0x34], 0x3f800000
movss dword [rsp + 0x2c], xmm7
divss xmm0, xmm8
movss dword [rsp + 0x30], xmm6
movss dword [rsp + 0x28], xmm0
mov rax, qword [rcx]
call qword [rax + 0x40]
movss xmm1, dword [0x140005034]
lea rdx, [rsp + 0x38]
mov rcx, qword [0x140005630]
movaps xmm0, xmm1
mov r8, qword [0x140005628]
addss xmm0, xmm10
addss xmm1, xmm9
movss dword [rsp + 0x38], xmm10
movss dword [rsp + 0x3c], xmm9
movss dword [rsp + 0x40], xmm0
movss dword [rsp + 0x44], xmm1
mov rax, qword [rcx]
call qword [rax + 0x88]
mov rcx, qword [0x140005630]
lea rdx, [rsp + 0x48]
addss xmm10, dword [0x140005034]
mov rax, qword [rcx]
call qword [rax + 0x1a8]
movss xmm0, dword [rax]
comiss xmm0, xmm10
ja 0x1400015a7
mov rcx, qword [0x140005630]
lea rdx, [rsp + 0x50]
addss xmm9, dword [0x140005034]
mov rax, qword [rcx]
call qword [rax + 0x1a8]
movss xmm0, dword [rax + 4]
comiss xmm0, xmm9
ja 0x140001580
movaps xmm10, xmmword [rsp + 0x90]
movaps xmm8, xmmword [rsp + 0xb0]
mov rcx, qword [0x140005630]
xor r8d, r8d
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x188]
movaps xmm11, xmmword [rsp + 0x80]
movaps xmm9, xmmword [rsp + 0xa0]
movaps xmm7, xmmword [rsp + 0xc0]
movaps xmm6, xmmword [rsp + 0xd0]
cmp eax, 0x8899000c
jne 0x14000176b
mov rcx, qword [0x140005628]
test rcx, rcx
je 0x14000173f
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [0x140005630]
test rcx, rcx
je 0x140001751
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [0x140005638]
test rcx, rcx
je 0x140001763
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, rbx
call fcn.140001290
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400017a0
add rsp, 0xe0
pop rbx
ret