Function at 0x140130870
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, 0x98
mov rdi, rcx
mov rax, qword [0x14022d028]
xor rax, rsp
mov qword [rsp + 0x90], rax
movabs r9, 0xaaaaaaaaaaaaaaaa
lea rbp, [r9 - 0xaa]
cmp byte [r8 + 0x18], 0
mov ecx, 0xaaaaaaaa
je 0x14013096f
mov r15, qword [r8]
mov r12, qword [r8 + 8]
mov r13d, dword [r8 + 0x10]
mov r14d, dword [r8 + 0x14]
mov rsi, r15
cmp r14d, 1
je 0x140130c23
cmp byte [rdx + 8], 0
je 0x140130988
mov rax, qword [rdx]
cmp rax, rsi
jge 0x140130a1c
cmp qword [rdi + 0x240], 0
jne 0x14013096f
mov al, 1
test r15, r15
je 0x140130a1c
mov rdi, qword [rdi + 0x30]
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], r12
mov dword [rsp + 0x48], r13d
mov dword [rsp + 0x4c], r14d
mov byte [rsp + 0x50], al
mov dword [rsp + 0x51], ecx
mov dword [rsp + 0x54], ecx
mov rax, qword [rdi]
mov rax, qword [rax + 0x20]
lea rcx, [0x14013d740]
cmp rax, rcx
jne 0x140130c0d
mov eax, dword [rdi + 0x190]
cmp eax, 4
je 0x140130ad5
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140146540
nop
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor eax, eax
mov r15, rbp
mov r12, r9
mov r13d, 0xaaaaaaaa
mov r14d, 0xaaaaaaaa
jmp 0x140130900
mov qword [rsp + 0x30], rdx
mov rax, qword [fcn.1400fc780]
lea rcx, [0x140142f90]
cmp rax, rcx
jne 0x140130bd9
lea rbx, [rsp + 0x58]
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 0x140130c7d
imul rax, rax, 0xf4240
cqo
idiv qword [0x14023f400]
mov rdx, qword [rsp + 0x30]
mov ecx, 0xaaaaaaaa
mov qword [rsp + 0x58], rax
movabs r9, 0xaaaaaaaaaaaaaaaa
cmp byte [rdx + 8], 0
jne 0x140130c70
test rdx, rdx
je 0x140130c20
mov rax, qword [rsp + 0x58]
mov qword [rdx], rax
mov byte [rdx + 8], 1
jmp 0x1401308e2
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [0x14021f820]
jmp 0x14013094a
mov r15, rdx
mov rbx, qword [rdi + 0x210]
lea r14, [rsp + 0x38]
lea rdx, [rsp + 0x78]
mov rcx, r14
call fcn.140130fe0
cmp byte [r14 + 0x18], 0
je 0x140130cde
movabs rsi, 0x7fffffffffffffff
mov r9, qword [rsp + 0x38]
cmp dword [rsp + 0x4c], 1
mov r8, r9
je 0x140130ce1
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r14, [rsp + 0x80]
mov rcx, rbx
mov rdx, r14
call fcn.140131040
mov r14, qword [r14]
cmp r14, rsi
mov rdx, r15
je 0x140130afa
lea rbx, [rsp + 0x58]
mov rcx, rdx
mov rdx, rbx
call fcn.140131110
mov rdx, r15
movabs rax, 0x141dd76000
add rax, qword [rbx]
movabs rsi, 0x7fffffffffffffff
cmovno rsi, rax
cmp rsi, r14
cmovge rsi, r14
jmp 0x140130af2
mov qword [rsp + 0x80], r9
cmp byte [rsp + 0x50], 0
jne 0x140130a32
movabs rsi, 0x7fffffffffffffff
mov qword [rsp + 0x80], rsi
mov rdi, qword [rdi + 0x210]
mov qword [rsp + 0x58], rsi
xor eax, eax
cmp dword [rsp + 0x4c], 2
mov ecx, 0
je 0x140130b19
mov rcx, qword [rsp + 0x40]
cmp byte [rsp + 0x50], 0
cmove rcx, rax
mov qword [rsp + 0x60], rcx
cmp byte [rdx + 8], 0
je 0x140130b52
mov rax, qword [rdx]
lea rdx, [rsp + 0x58]
mov qword [rdx + 0x10], rax
mov byte [rdx + 0x18], 0
mov rax, qword [rdi]
mov rax, qword [rax + 0x20]
mov rcx, rdi
call qword [0x14021f820]
jmp 0x14013094a
mov rsi, rdx
mov rax, qword [fcn.1400fc780]
lea rcx, [0x140142f90]
cmp rax, rcx
jne 0x140130bfd
lea rbx, [rsp + 0x88]
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 0x140130cb7
imul rax, rax, 0xf4240
cqo
idiv qword [0x14023f400]
mov qword [rsp + 0x88], rax
cmp byte [rsi + 8], 0
jne 0x140130ca7
test rsi, rsi
je 0x140130ca4
mov rax, qword [rsp + 0x88]
mov qword [rsi], rax
mov byte [rsi + 8], 1
jmp 0x140130b30
lea rcx, [rsp + 0x58]
call qword [0x14021f820]
mov rdx, qword [rsp + 0x30]
movabs r9, 0xaaaaaaaaaaaaaaaa
mov ecx, 0xaaaaaaaa
jmp 0x1401309f8
lea rcx, [rsp + 0x88]
call qword [0x14021f820]
jmp 0x140130bb2
lea r8, [rsp + 0x38]
mov rcx, rdi
call qword [0x14021f820]
jmp 0x14013094a
int3
movabs rax, 0x7fffffffffffffff
lea rcx, [r12 + rax]
add rcx, 2
cmp rcx, 2
jb 0x140130c52
xor ecx, ecx
cmp r15, r12
setns cl
add rcx, rax
mov rsi, r15
sub rsi, r12
cmovo rsi, rcx
jmp 0x140130c66
cmp r15, r12
je 0x140130d2d
lea rsi, [rax + 1]
test r12, r12
cmovs rsi, rax
mov ecx, 0xaaaaaaaa
jmp 0x1401308d5
mov rax, qword [rsp + 0x58]
mov qword [rdx], rax
jmp 0x1401308e2
mov rcx, qword [0x14023f400]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x1401309df
int3
mov rax, qword [rsp + 0x88]
mov qword [rsi], rax
jmp 0x140130b30
mov rcx, qword [0x14023f400]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x140130baa
int3
mov rax, qword [rsp + 0x40]
lea rcx, [rsi + rax]
add rcx, 2
cmp rcx, 2
jae 0x140130d09
cmp r9, rax
je 0x140130d30
lea r8, [rsi + 1]
test rax, rax
cmovs r8, rsi
jmp 0x140130a76
xor ecx, ecx
cmp r9, rax
setns cl
movabs rdx, 0x7fffffffffffffff
add rdx, rcx
mov r8, r9
sub r8, rax
cmovo r8, rdx
jmp 0x140130a76
int3
int3