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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov rbx, rdx
mov rdi, rcx
mov rax, qword [0x1402db040]
xor rax, rsp
mov qword [rsp + 0x70], rax
movabs r9, 0xaaaaaaaaaaaaaaaa
lea r14, [r9 - 0xaa]
test byte [r8 + 0x18], 1
je 0x14016cfc4
mov r15, qword [r8]
mov r12, qword [r8 + 8]
mov ebp, dword [r8 + 0x10]
mov r13d, dword [r8 + 0x14]
mov rsi, r15
cmp r13d, 1
je 0x14016d258
mov al, byte [rbx + 8]
test al, al
jne 0x14016cf25
mov rax, qword [fcn.1401a83e0]
lea rcx, [0x1401930c0]
cmp rax, rcx
jne 0x14016cfef
mov qword [rsp + 0x20], rbx
lea rbx, [rsp + 0x48]
mov qword [rbx], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbx]
movabs rcx, 0x8637bd05af7
cmp rax, rcx
jge 0x14016d2ba
imul rax, rax, 0xf4240
cqo
idiv qword [0x14032e5f0]
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x48], rax
mov al, byte [rbx + 8]
cmp al, 1
je 0x14016d2a3
test rbx, rbx
movabs r9, 0xaaaaaaaaaaaaaaaa
je 0x14016d256
mov rax, qword [rsp + 0x48]
mov qword [rbx], rax
mov byte [rbx + 8], 1
mov al, 1
test al, al
je 0x14016d256
cmp qword [rbx], rsi
jge 0x14016cfff
cmp qword [rdi + 0x250], 0
jne 0x14016cfc4
mov al, 1
test r15, r15
je 0x14016cfff
mov rdi, qword [rdi + 0x30]
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x38], ebp
mov dword [rsp + 0x3c], r13d
mov byte [rsp + 0x40], al
mov dword [rsp + 0x41], 0xaaaaaaaa
mov dword [rsp + 0x44], 0xaaaaaaaa
mov rax, qword [rdi]
mov rax, qword [rax + 0x20]
lea rcx, [0x1401a8e60]
cmp rax, rcx
jne 0x14016cfdc
mov eax, dword [rdi + 0x1b0]
cmp eax, 4
je 0x14016d15b
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
cmp rcx, qword [0x1402db040]
je 0x14016cfb3
call fcn.1401ac870
int3
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor eax, eax
mov r15, r14
mov r12, r9
mov ebp, 0xaaaaaaaa
mov r13d, 0xaaaaaaaa
jmp 0x14016cf4f
lea r8, [rsp + 0x28]
mov rcx, rdi
mov rdx, rbx
call qword [0x1402cbd20]
jmp 0x14016cf9c
lea rcx, [rsp + 0x48]
call qword [0x1402cbd20]
jmp 0x14016cef9
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [0x1402cbd20]
jmp 0x14016cf9c
mov rcx, qword [rsp + 0x28]
cmp ebp, 1
je 0x14016d3d1
mov rsi, rcx
jmp 0x14016d06c
lea rcx, [rsp + 0x48]
call qword [0x1402cbd20]
jmp 0x14016d100
mov r14, rbx
test ebp, ebp
jne 0x14016d012
mov rcx, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
lea rax, [r15 + rsi]
add rax, 2
cmp rax, 2
jb 0x14016d31f
lea rax, [rcx + rsi]
sar rax, 0x3f
btc rax, 0x3f
add rsi, rcx
cmovo rsi, rax
mov r12, rcx
mov qword [rsp + 0x48], r12
mov rax, qword [0x1402dd7b8]
shr rax, 1
mov edx, 0x3e8
mul rdx
jo 0x14016d34d
cmp rax, 0x3e81
jae 0x14016d34d
cmp r12, r15
je 0x14016d2ee
mov al, byte [r14 + 8]
test al, al
jne 0x14016d124
mov rax, qword [fcn.1401a83e0]
lea rcx, [0x1401930c0]
cmp rax, rcx
jne 0x14016d025
lea rbx, [rsp + 0x48]
mov qword [rbx], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbx]
movabs rcx, 0x8637bd05af7
cmp rax, rcx
jge 0x14016d3aa
imul rax, rax, 0xf4240
cqo
idiv qword [0x14032e5f0]
mov qword [rsp + 0x48], rax
mov al, byte [r14 + 8]
cmp al, 1
je 0x14016d340
test r14, r14
je 0x14016d256
mov rax, qword [rsp + 0x48]
mov qword [r14], rax
mov byte [r14 + 8], 1
mov al, 1
test al, al
je 0x14016d256
movabs rax, 0x141dd76000
mov rbx, r14
add rax, qword [r14]
movabs r15, 0x7fffffffffffffff
cmovno r15, rax
cmp r15, r12
cmovge r15, r12
mov ebp, dword [rsp + 0x3c]
mov al, byte [rsp + 0x40]
jmp 0x14016d176
movabs r15, 0x7fffffffffffffff
mov ebp, dword [rsp + 0x3c]
cmp byte [rsp + 0x40], 1
je 0x14016d035
xor eax, eax
mov rdi, qword [rdi + 0x230]
mov qword [rsp + 0x48], r15
xor ecx, ecx
mov edx, 0
cmp ebp, 2
je 0x14016d193
mov rdx, qword [rsp + 0x30]
test al, 1
cmovne rcx, rdx
mov qword [rsp + 0x50], rcx
mov al, byte [rbx + 8]
test al, al
jne 0x14016d220
mov rsi, rbx
mov rax, qword [fcn.1401a83e0]
lea rcx, [0x1401930c0]
cmp rax, rcx
jne 0x14016d249
lea rbx, [rsp + 0x68]
mov qword [rbx], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbx]
movabs rcx, 0x8637bd05af7
cmp rax, rcx
jge 0x14016d2f8
imul rax, rax, 0xf4240
cqo
idiv qword [0x14032e5f0]
mov qword [rsp + 0x68], rax
mov rbx, rsi
mov al, byte [rsi + 8]
cmp al, 1
je 0x14016d2e1
test rbx, rbx
je 0x14016d256
mov rax, qword [rsp + 0x68]
mov qword [rbx], rax
mov byte [rbx + 8], 1
mov al, 1
test al, al
je 0x14016d256
mov rax, qword [rbx]
lea rdx, [rsp + 0x48]
mov qword [rdx + 0x10], rax
mov byte [rdx + 0x18], 0
mov rax, qword [rdi]
mov rax, qword [rax + 0x20]
mov rcx, rdi
call qword [0x1402cbd20]
jmp 0x14016cf9c
lea rcx, [rsp + 0x68]
call qword [0x1402cbd20]
jmp 0x14016d1ff
ud2
movabs rax, 0x7fffffffffffffff
lea rcx, [r12 + rax]
add rcx, 2
cmp rcx, 2
jae 0x14016d289
cmp r15, r12
je 0x14016d41d
lea rsi, [rax + 1]
test r12, r12
cmovs rsi, rax
jmp 0x14016ce8d
xor ecx, ecx
cmp r15, r12
setns cl
add rcx, rax
mov rsi, r15
sub rsi, r12
cmovo rsi, rcx
jmp 0x14016ce8d
mov rcx, qword [rsp + 0x48]
mov qword [rbx], rcx
movabs r9, 0xaaaaaaaaaaaaaaaa
jmp 0x14016cf25
mov rcx, qword [0x14032e5f0]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x14016ceef
mov rcx, qword [rsp + 0x68]
mov qword [rbx], rcx
jmp 0x14016d220
mov al, 1
mov rbx, r14
jmp 0x14016d176
mov rcx, qword [0x14032e5f0]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x14016d1fa
cmp rcx, rsi
je 0x14016d06c
lea rax, [r15 + rcx]
add rax, 2
mov r12, rcx
cmp rax, 1
ja 0x14016d06f
int3
mov rcx, qword [rsp + 0x48]
mov qword [r14], rcx
jmp 0x14016d124
mov rax, qword [0x1402dd7b8]
mov r12, rcx
test al, 1
je 0x14016d098
lea rbx, [rsp + 0x68]
mov qword [rbx], r9
mov rax, qword [0x1402dd7b8]
shr rax, 1
mov ecx, 0x3e8
mul rcx
mov r9, 0xffffffffffffffff
cmovno r9, rax
test r9, r9
cmovs r9, r15
lea rcx, [rsp + 0x48]
mov rdx, rbx
xor r8d, r8d
call fcn.1401a7a20
mov r12, qword [rbx]
cmp rsi, r12
cmovl r12, rsi
jmp 0x14016d098
mov rcx, qword [0x14032e5f0]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x14016d0fb
mov rax, qword [rsp + 0x30]
lea rdx, [r15 + rax]
add rdx, 2
cmp rdx, 2
jb 0x14016d405
xor edx, edx
cmp rcx, rax
setns dl
movabs r8, 0x7fffffffffffffff
add r8, rdx
mov r12, rcx
sub r12, rax
cmovo r12, r8
jmp 0x14016d415
cmp rcx, rax
je 0x14016d420
lea r12, [r15 + 1]
test rax, rax
cmovs r12, r15
mov rsi, rcx
jmp 0x14016d06f
int3
int3