Function at 0x140168c20
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 [0x14029c028]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov bpl, 1
cmp byte [r8], 0
je 0x140168c69
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 0x140168c7c
mov rax, qword [rsi + 8]
jmp 0x140168cda
xor r12d, r12d
xor r13d, r13d
xor r14d, r14d
xor r15d, r15d
xor eax, eax
jmp 0x140168d0b
mov rax, qword [fcn.14014f070]
lea rcx, [0x140183600]
cmp rax, rcx
jne 0x140168f06
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 0x14016903d
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402b7458]
cmp byte [rsi], 0
mov qword [rsi + 8], rax
jne 0x140168cda
mov byte [rsi], 1
mov rdx, r15
cmp r12d, 1
je 0x140168ff1
cmp rax, rdx
jge 0x140168db3
cmp qword [rdi + 0x230], 0
jne 0x140168c69
test r15, r15
je 0x140168db3
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, [0x140184430]
cmp rax, rcx
jne 0x140168f45
movabs rax, 0x7fffffffffffffff
mov r13, rax
test bpl, bpl
jne 0x140168d79
cmp r12d, 1
je 0x140168f5b
mov r13, r15
cmp qword [rdi + 0x178], r13
je 0x140168d94
mov qword [rdi + 0x178], r13
mov ecx, dword [rdi + 0x1a0]
cmp ecx, 4
je 0x140168dc6
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1401879f0
nop
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [0x1402ca008]
jmp 0x140168d94
mov cl, byte [rsi]
cmp r13, rax
jne 0x140168e71
mov rdi, qword [rdi + 0x228]
mov qword [rsp + 0x20], rax
test cl, cl
jne 0x140168e65
mov rax, qword [fcn.14014f070]
lea rcx, [0x140183600]
cmp rax, rcx
jne 0x140168f1c
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 0x140168fa3
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402b7458]
cmp byte [rsi], 0
mov qword [rsi + 8], rax
jne 0x140168e43
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 [0x1402ca008]
jmp 0x140168d94
mov rax, qword [rsi + 8]
jmp 0x140168e43
mov rax, qword [rsi + 8]
jmp 0x140168ed3
test cl, cl
jne 0x140168e6b
mov rax, qword [fcn.14014f070]
lea rcx, [0x140183600]
cmp rax, rcx
jne 0x140168f32
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 0x140168fca
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402b7458]
cmp byte [rsi], 0
mov qword [rsi + 8], rax
jne 0x140168ed3
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 0x140168e43
lea rbx, [rsp + 0x40]
mov rcx, rbx
call qword [0x1402ca008]
mov rax, qword [rbx]
jmp 0x140168cce
lea rbx, [rsp + 0x38]
mov rcx, rbx
call qword [0x1402ca008]
mov rax, qword [rbx]
jmp 0x140168e37
lea rbx, [rsp + 0x40]
mov rcx, rbx
call qword [0x1402ca008]
mov rax, qword [rbx]
jmp 0x140168ec7
lea r8, [rsp + 0x48]
mov rcx, rdi
mov rdx, rsi
call qword [0x1402ca008]
jmp 0x140168d94
lea rcx, [rax + r14]
add rcx, 2
cmp rcx, 2
jae 0x140168f82
cmp r15, r14
je 0x140169064
lea r13, [rax + 1]
test r14, r14
cmovs r13, rax
jmp 0x140168d79
xor ecx, ecx
cmp r15, r14
setns cl
movabs rdx, 0x7fffffffffffffff
add rdx, rcx
sub r15, r14
cmovo r15, rdx
jmp 0x140168d76
mov rcx, qword [0x1402b7458]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x140168e37
mov rcx, qword [0x1402b7458]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x140168ec7
movabs rcx, 0x7fffffffffffffff
lea rdx, [r14 + rcx]
add rdx, 2
cmp rdx, 2
jae 0x14016901e
cmp r15, r14
je 0x14016903a
lea rdx, [rcx + 1]
test r14, r14
cmovs rdx, rcx
jmp 0x140168ce7
xor r8d, r8d
cmp r15, r14
setns r8b
add r8, rcx
mov rdx, r15
sub rdx, r14
cmovo rdx, r8
jmp 0x140168ce7
int3
mov rcx, qword [0x1402b7458]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x140168cce
int3