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

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x48]
sub rsp, 0x110
mov qword [rbp - 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
mov r12, rcx
mov qword [rsp + 0x58], 0x64
lea rax, [0x14016a2c0]
mov qword [rbp - 0x78], rax
lea rax, [0x14016b520]
mov qword [rbp - 0x70], rax
lea rax, [0x14016cb80]
mov qword [rbp - 0x68], rax
lea rax, [0x14016ecd0]
mov qword [rbp - 0x60], rax
xor ebx, ebx
mov qword [rsp + 0x20], rbx
xorps xmm6, xmm6
mov qword [rsp + 0x28], rbx
movsd xmm7, qword [0x1404d5d30]
nop dword [rax]
mov qword [rbp + 0x60], rbx
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
xorps xmm1, xmm1
cvtsi2sd xmm1, qword [rsp + 0x48]
mulsd xmm1, xmm7
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rsp + 0x50]
divsd xmm1, xmm0
movsd qword [rbp + 0x68], xmm1
mov dword [rbp + 0x58], ebx
lea r8, [rbp + 0x58]
mov rdx, r12
lea rcx, [rsp + 0x70]
call fcn.14001b180
nop
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
xor ecx, ecx
mov r14d, ecx
mov qword [rsp + 0x40], rcx
mov edi, ecx
mov rbx, qword [rsp + 0x38]
test r12, r12
je 0x140166088
nop
mov qword [rbp - 0x58], rdi
lea rax, [rbp - 0x78]
mov qword [rbp - 0x50], rax
lea rax, [rbp + 0x60]
mov qword [rbp - 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rbp - 0x40], rax
lea rax, [rbp + 0x68]
mov qword [rbp - 0x38], rax
lea rax, [rsp + 0x58]
mov qword [rbp - 0x30], rax
lea r8, [rbp - 0x58]
mov rdx, rbx
cmp r14, rbx
je 0x14016606a
call fcn.140173060
add rbx, 0x10
mov qword [rsp + 0x38], rbx
jmp 0x14016607e
lea rcx, [rsp + 0x30]
call fcn.1401731e0
mov r14, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
inc rdi
cmp rdi, r12
jb 0x140166020
xor ecx, ecx
mov r15d, ecx
mov rsi, rcx
mov r13, qword [rsp + 0x30]
test r12, r12
je 0x14016610f
lea rdi, [r13 + 8]
nop dword [rax]
cmp dword [rdi], 0
jne 0x1401660be
mov ecx, 1
call fcn.14034126c
cmp dword [rdi], 0
jne 0x1401660be
mov ecx, 1
call fcn.14034126c
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [rdi], eax
jne 0x1401660d1
mov ecx, 5
call fcn.14034126c
movups xmm0, xmmword [rdi - 8]
movaps xmmword [rbp - 0x20], xmm0
xor edx, edx
lea rcx, [rbp - 0x20]
call fcn.140341e10
test eax, eax
je 0x1401660f2
mov ecx, 2
call fcn.14034126c
xor ecx, ecx
mov qword [rdi - 8], rcx
mov dword [rdi], ecx
mov rax, qword [rsp + 0x70]
add r15d, dword [rax + rsi*4]
inc rsi
add rdi, 0x10
cmp rsi, r12
jb 0x1401660a0
lea rcx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
xorps xmm1, xmm1
cvtsi2sd xmm1, qword [rsp + 0x60]
mulsd xmm1, xmm7
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rsp + 0x68]
divsd xmm1, xmm0
mov eax, r15d
xorps xmm0, xmm0
cvtsi2sd xmm0, rax
mulsd xmm0, xmm7
subsd xmm1, qword [rbp + 0x68]
divsd xmm0, xmm1
mov rax, qword [rbp + 0x60]
comisd xmm0, xmm6
jbe 0x140166170
mov rdi, rax
mov qword [rsp + 0x20], rax
movaps xmm6, xmm0
jmp 0x140166175
mov rdi, qword [rsp + 0x20]
test r13, r13
je 0x1401661d0
mov rax, r13
cmp r13, rbx
je 0x140166195
cmp dword [rax + 8], 0
jne 0x140166279
add rax, 0x10
cmp rax, rbx
jne 0x140166182
sub r14, r13
and r14, 0xfffffffffffffff0
mov rax, r13
cmp r14, 0x1000
jb 0x1401661c1
add r14, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14016626d
mov rdx, r14
mov rcx, r13
call fcn.140343460
mov rax, qword [rbp + 0x60]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14016620f
mov rdx, qword [rbp - 0x80]
sub rdx, rcx
and rdx, 0xfffffffffffffffc
mov rax, rcx
cmp rdx, 0x1000
jb 0x140166206
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140166273
call fcn.140343460
mov rax, qword [rbp + 0x60]
inc rax
mov qword [rbp + 0x60], rax
cmp rax, 4
mov ebx, 0
jb 0x140165fb4
mov rax, qword [rsp + 0x28]
inc rax
mov qword [rsp + 0x28], rax
cmp rax, 3
jb 0x140165fb0
mov rax, qword [rbp + rdi*8 - 0x78]
mov qword [0x1405272e0], rax
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.14036500c
nop
call fcn.14036500c
nop
call fcn.140369678
int3