Function at 0x140167730
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 rsi, rdx
mov rdi, rcx
mov rax, qword [0x14029b028]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov bpl, 1
cmp byte [r8], 0
je 0x1401678b4
mov r15, qword [r8 + 8]
mov r14, qword [r8 + 0x10]
mov r13d, dword [r8 + 0x18]
mov r12d, dword [r8 + 0x1c]
cmp byte [rsi], 0
je 0x14016777d
mov rax, qword [rsi + 8]
jmp 0x1401677db
mov rax, qword [fcn.140106270]
lea rcx, [0x140181ca0]
cmp rax, rcx
jne 0x140167a1a
lea rbx, [rsp + 0x20]
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 0x140167b51
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402b6458]
cmp byte [rsi], 0
mov qword [rsi + 8], rax
jne 0x1401677db
mov byte [rsi], 1
mov rdx, r15
cmp r12d, 1
je 0x140167b05
cmp rax, rdx
jge 0x1401678c7
cmp qword [rdi + 0x230], 0
jne 0x1401678b4
test r15, r15
je 0x1401678c7
mov al, 1
xor ebp, ebp
mov rdi, qword [rdi + 0x30]
mov byte [rsp + 0x48], al
mov eax, 0xaaaaaaaa
mov dword [rsp + 0x49], eax
mov dword [rsp + 0x4c], eax
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], r14
mov dword [rsp + 0x60], r13d
mov dword [rsp + 0x64], r12d
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x68], rax
mov rax, qword [rdi]
mov rax, qword [rax + 0x20]
lea rcx, [0x140182a60]
cmp rax, rcx
jne 0x140167a59
movabs rax, 0x7fffffffffffffff
mov r13, rax
test bpl, bpl
jne 0x14016787a
cmp r12d, 1
je 0x140167a6f
mov r13, r15
cmp qword [rdi + 0x178], r13
je 0x140167895
mov qword [rdi + 0x178], r13
mov ecx, dword [rdi + 0x1a0]
cmp ecx, 4
je 0x1401678da
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140186020
nop
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor r12d, r12d
xor r13d, r13d
xor r14d, r14d
xor r15d, r15d
xor eax, eax
jmp 0x14016780c
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [0x1402c9008]
jmp 0x140167895
mov cl, byte [rsi]
cmp r13, rax
jne 0x140167985
mov rdi, qword [rdi + 0x228]
mov qword [rsp + 0x20], rax
test cl, cl
jne 0x140167979
mov rax, qword [fcn.140106270]
lea rcx, [0x140181ca0]
cmp rax, rcx
jne 0x140167a30
lea rbx, [rsp + 0x40]
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 0x140167ab7
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402b6458]
cmp byte [rsi], 0
mov qword [rsi + 8], rax
jne 0x140167957
mov byte [rsi], 1
lea rdx, [rsp + 0x20]
mov qword [rdx + 8], rax
mov byte [rdx + 0x10], 0
mov rax, qword [rdi]
mov rax, qword [rax + 0x20]
mov rcx, rdi
call qword [0x1402c9008]
jmp 0x140167895
mov rax, qword [rsi + 8]
jmp 0x140167957
mov rax, qword [rsi + 8]
jmp 0x1401679e7
test cl, cl
jne 0x14016797f
mov rax, qword [fcn.140106270]
lea rcx, [0x140181ca0]
cmp rax, rcx
jne 0x140167a46
lea rbx, [rsp + 0x20]
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 0x140167ade
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402b6458]
cmp byte [rsi], 0
mov qword [rsi + 8], rax
jne 0x1401679e7
mov byte [rsi], 1
movabs rcx, 0x141dd76000
add rcx, rax
movabs rdx, 0x7fffffffffffffff
cmovno rdx, rcx
cmp rdx, r13
cmovge rdx, r13
mov rdi, qword [rdi + 0x228]
mov qword [rsp + 0x20], rdx
jmp 0x140167957
lea rbx, [rsp + 0x40]
mov rcx, rbx
call qword [0x1402c9008]
mov rax, qword [rbx]
jmp 0x1401677cf
lea rbx, [rsp + 0x38]
mov rcx, rbx
call qword [0x1402c9008]
mov rax, qword [rbx]
jmp 0x14016794b
lea rbx, [rsp + 0x40]
mov rcx, rbx
call qword [0x1402c9008]
mov rax, qword [rbx]
jmp 0x1401679db
lea r8, [rsp + 0x48]
mov rcx, rdi
mov rdx, rsi
call qword [0x1402c9008]
jmp 0x140167895
lea rcx, [rax + r14]
add rcx, 2
cmp rcx, 2
jae 0x140167a96
cmp r15, r14
je 0x140167b78
lea r13, [rax + 1]
test r14, r14
cmovs r13, rax
jmp 0x14016787a
xor ecx, ecx
cmp r15, r14
setns cl
movabs rdx, 0x7fffffffffffffff
add rdx, rcx
sub r15, r14
cmovo r15, rdx
jmp 0x140167877
mov rcx, qword [0x1402b6458]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x14016794b
mov rcx, qword [0x1402b6458]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x1401679db
movabs rcx, 0x7fffffffffffffff
lea rdx, [r14 + rcx]
add rdx, 2
cmp rdx, 2
jae 0x140167b32
cmp r15, r14
je 0x140167b4e
lea rdx, [rcx + 1]
test r14, r14
cmovs rdx, rcx
jmp 0x1401677e8
xor r8d, r8d
cmp r15, r14
setns r8b
add r8, rcx
mov rdx, r15
sub rdx, r14
cmovo rdx, r8
jmp 0x1401677e8
int3
mov rcx, qword [0x1402b6458]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x1401677cf
int3