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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xd0
mov rax, qword [0x14004b0e8]
xor rax, rsp
mov qword [rbp + 0xf], rax
mov ebx, dword [rbp + 0x7f]
mov eax, 0xa
mov r14, rcx
cmp ebx, 0x14
mov r12d, 1
lea rcx, [rbp - 0x59]
cmova r12d, eax
mov r13d, r9d
mov dword [rbp - 0x71], r12d
mov esi, r8d
mov r15, rdx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, ebx
movabs rax, 0x20c49ba5e353f7cf
imul rcx, qword [r14 + 0x288]
mov r9d, 3
imul rcx
mov rdi, rdx
sar rdi, 7
mov rax, rdi
shr rax, 0x3f
add rdi, rax
add rdi, qword [rbp - 0x59]
cmp esi, r9d
jne 0x14000175b
mov edx, r9d
mov rcx, qword [r14 + 0x280]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [r14 + 0x280]
mov edx, r12d
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r12d, 3
nop word [rax + rax]
test r15, r15
je 0x14000184f
xor ecx, ecx
cmp r13d, 0x216
ja 0x14000184f
mov dword [r15 + 0x10], SafeArrayDestroy
lea rbx, [r15 + 0x28]
mov dword [r15 + 0x18], 0x223
mov eax, dword [r14 + 0x28]
mov dword [r15 + 0x1c], eax
mov byte [rbx], sil
mov dword [r15 + 0x20], r13d
test byte [0x14004c841], 8
je 0x14000162f
mov eax, dword [r14 + 0x28]
lea rdx, [0x140037b30]
mov dword [rbp - 0x69], eax
xorps xmm0, xmm0
movups xmmword [rbp - 0x29], xmm0
lea rax, [rbp - 0x69]
mov dword [rbp - 0x79], ecx
movups xmmword [rbp - 0x39], xmm0
mov qword [rbp - 0x31], rax
mov r9d, r12d
lea rax, [rbp - 0x79]
mov qword [rbp - 0x41], rcx
mov qword [rbp - 0x21], rax
lea rcx, [section..data]
lea rax, [rbp - 0x41]
mov qword [rbp - 0x29], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov qword [rbp - 0x19], 4
call fcn.1400031b0
lea eax, [rsi - 3]
test eax, 0xfffffffa
jne 0x140001648
cmp esi, 4
je 0x140001648
lea rcx, [rbp - 0x61]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [r14 + 0x18]
xor r9d, r9d
mov r8d, 0x23f
mov dword [rsp + 0x20], 0
mov rdx, r15
call fcn.140003cd0
mov r12d, eax
test eax, eax
js 0x14000184f
lea ecx, [rsi - 3]
test ecx, 0xfffffffa
jne 0x140001680
cmp esi, 4
jne 0x14000169f
lea rcx, [rbp - 0x61]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
cmp esi, 0xb
jle 0x14000169f
mov rcx, r14
call fcn.140002760
test eax, eax
js 0x14000181a
test byte [0x14004c841], 4
je 0x140001740
movzx eax, byte [rbx]
xorps xmm0, xmm0
movzx ecx, word [r15 + 0x24]
xor edx, edx
mov byte [rsp + 0x30], al
xor r8d, r8d
mov eax, dword [r14 + 0x28]
mov dword [rbp - 0x79], eax
xor eax, eax
mov qword [rbp + 7], rax
lea r9d, [rdx + 5]
movups xmmword [rbp - 0x29], xmm0
lea rax, [rbp - 0x79]
mov word [rbp - 0x69], cx
movups xmmword [rbp - 0x19], xmm0
mov qword [rbp - 0x41], rdx
movups xmmword [rbp - 9], xmm0
mov dword [rbp + 7], ecx
lea rcx, [section..data]
movups xmmword [rbp - 0x39], xmm0
mov qword [rbp - 0x31], rax
lea rax, [rsp + 0x30]
mov qword [rbp - 0x21], rax
lea rax, [rbp - 0x69]
mov qword [rbp - 0x11], rax
lea rax, [rbp - 0x41]
mov dword [rbp + 0xb], edx
lea rdx, [0x140037b00]
mov qword [rsp + 0x20], rax
mov qword [rbp - 0x29], 4
mov qword [rbp - 0x19], 1
mov qword [rbp - 9], 2
mov qword [rbp - 1], rbx
call fcn.1400031b0
cmp esi, 0xc
jne 0x14000178f
mov eax, dword [r15 + 0x24]
cmp eax, r13d
jae 0x14000178f
test eax, eax
je 0x1400017f5
mov r13d, eax
jmp 0x140001795
cmp esi, 7
jne 0x140001768
lea edx, [rsi + 3]
jmp 0x140001567
cmp esi, 0xa
jne 0x140001574
cmp dword [r14 + 0x2c], 1
mov edx, 5
mov rcx, r14
mov r12d, r9d
cmovne edx, r9d
call fcn.140002ec0
jmp 0x140001590
cmp dword [r15 + 0x24], r13d
jne 0x1400017a0
movzx ecx, byte [rbx]
cmp esi, ecx
je 0x14000187b
cmp esi, 0xa
jne 0x1400017f5
cmp dword [r14 + 0x2c], 2
jne 0x1400017f5
lea rcx, [rbp - 0x51]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [rbp - 0x71]
movabs rax, 0x20c49ba5e353f7cf
imul rcx, qword [r14 + 0x288]
imul rcx
mov rbx, rdx
sar rbx, 7
mov rax, rbx
shr rax, 0x3f
add rbx, rax
add rbx, qword [rbp - 0x51]
lea rcx, [rbp - 0x49]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
cmp qword [rbp - 0x49], rbx
jle 0x1400017e3
jmp 0x140001805
mov edx, dword [rbp - 0x71]
mov rcx, qword [r14 + 0x280]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp qword [rbp - 0x61], rdi
jg 0x1400018ff
mov r12d, 3
jmp 0x140001599
test byte [0x14004c841], 4
je 0x14000184f
lfence
mov r8d, dword [r14 + 0x28]
lea rdx, [0x140037bf0]
mov dword [rsp + 0x28], 0
lea rcx, [section..data]
mov r9d, 4
mov dword [rsp + 0x20], eax
call fcn.140003200
mov eax, 0x80004005
mov rcx, qword [rbp + 0xf]
xor rcx, rsp
call fcn.14001fae0
mov rbx, qword [rsp + 0x120]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
xor al, al
mov edx, 1
cmp qword [rbp - 0x61], rdi
movzx eax, al
cmovg eax, edx
test al, al
jne 0x1400018ff
test byte [0x14004c841], 8
je 0x1400018f7
mov eax, dword [r14 + 0x28]
lea r9d, [rdx + 2]
mov dword [rbp - 0x79], eax
lea rdx, [0x140037b20]
xorps xmm0, xmm0
mov dword [rbp - 0x71], ecx
xor ecx, ecx
mov qword [rbp - 0x19], 4
movups xmmword [rbp - 0x29], xmm0
lea rax, [rbp - 0x79]
mov qword [rbp - 0x41], rcx
movups xmmword [rbp - 0x39], xmm0
mov qword [rbp - 0x31], rax
lea rcx, [section..data]
lea rax, [rbp - 0x71]
mov qword [rbp - 0x29], 4
mov qword [rbp - 0x21], rax
xor r8d, r8d
lea rax, [rbp - 0x41]
mov qword [rsp + 0x20], rax
call fcn.1400031b0
mov eax, r12d
jmp 0x140001854
mov eax, 0x8001011f
jmp 0x140001854