Function at 0x140122b40
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 rdi, rcx
mov rax, qword [0x14022c040]
xor rax, rsp
mov qword [rsp + 0x70], rax
movabs r9, 0xaaaaaaaaaaaaaaaa
lea rsi, [r9 - 0xaa]
mov r10d, 0xaaaaaaaa
test byte [r8 + 0x18], 1
je 0x140122cd8
mov r15, qword [r8]
mov r12, qword [r8 + 8]
mov r13d, dword [r8 + 0x10]
mov r14d, dword [r8 + 0x14]
mov rbp, r15
cmp r14d, 1
je 0x140122f85
mov al, byte [rdx + 8]
test al, al
jne 0x140122c3e
mov qword [rsp + 0x20], rdx
mov rax, qword [fcn.1401241a0]
lea rcx, [0x140124260]
cmp rax, rcx
jne 0x140122f31
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 0x140122fd0
imul rax, rax, 0xf4240
cqo
idiv qword [0x14023e460]
mov rdx, qword [rsp + 0x20]
mov qword [rsp + 0x48], rax
movabs r9, 0xaaaaaaaaaaaaaaaa
mov r10d, 0xaaaaaaaa
mov al, byte [rdx + 8]
cmp al, 1
je 0x140122f78
test rdx, rdx
je 0x140122f46
mov rax, qword [rsp + 0x48]
mov qword [rdx], rax
mov byte [rdx + 8], 1
mov al, 1
test al, al
je 0x140122f46
cmp qword [rdx], rbp
jge 0x140122cf1
cmp qword [rdi + 0x250], 0
jne 0x140122cd8
mov al, 1
test r15, r15
je 0x140122cf1
mov rdi, qword [rdi + 0x30]
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x38], r13d
mov dword [rsp + 0x3c], r14d
mov byte [rsp + 0x40], al
mov dword [rsp + 0x41], r10d
mov dword [rsp + 0x44], r10d
mov rax, qword [rdi]
mov rax, qword [rax + 0x20]
lea rcx, [0x140132d90]
cmp rax, rcx
jne 0x140122f55
mov eax, dword [rdi + 0x1b0]
cmp eax, 4
je 0x140122e42
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
cmp rcx, qword [0x14022c040]
je 0x140122cc7
call fcn.1401363f0
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, rsi
mov r12, r9
mov r13d, 0xaaaaaaaa
mov r14d, 0xaaaaaaaa
jmp 0x140122c64
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [0x14021e390]
jmp 0x140122cb0
mov rcx, qword [rsp + 0x28]
cmp ebp, 1
je 0x1401230eb
mov rsi, rcx
jmp 0x140122d4e
mov r12, rdx
test ebp, ebp
jne 0x140122d04
mov rcx, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
lea rax, [r15 + rsi]
add rax, 2
cmp rax, 2
jb 0x140123035
lea rax, [rcx + rsi]
sar rax, 0x3f
btc rax, 0x3f
add rsi, rcx
cmovo rsi, rax
mov r14, rcx
mov qword [rsp + 0x48], r14
mov rax, qword [0x14022e6d8]
shr rax, 1
mov edx, 0x3e8
mul rdx
jo 0x140123064
cmp rax, 0x3e81
jae 0x140123064
cmp r14, r15
je 0x140123004
mov al, byte [r12 + 8]
test al, al
jne 0x140122e0a
mov rax, qword [fcn.1401241a0]
lea rcx, [0x140124260]
cmp rax, rcx
jne 0x140122f68
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 0x1401230c4
imul rax, rax, 0xf4240
cqo
idiv qword [0x14023e460]
mov qword [rsp + 0x48], rax
mov al, byte [r12 + 8]
cmp al, 1
je 0x140123056
test r12, r12
je 0x140122f46
mov rax, qword [rsp + 0x48]
mov qword [r12], rax
mov byte [r12 + 8], 1
mov al, 1
test al, al
je 0x140122f46
movabs rax, 0x141dd76000
mov rdx, r12
add rax, qword [r12]
movabs r15, 0x7fffffffffffffff
cmovno r15, rax
cmp r15, r14
cmovge r15, r14
mov ebp, dword [rsp + 0x3c]
mov al, byte [rsp + 0x40]
jmp 0x140122e5d
movabs r15, 0x7fffffffffffffff
mov ebp, dword [rsp + 0x3c]
cmp byte [rsp + 0x40], 1
je 0x140122d17
xor eax, eax
mov rdi, qword [rdi + 0x230]
mov qword [rsp + 0x48], r15
xor ecx, ecx
mov r8d, 0
cmp ebp, 2
je 0x140122e7b
mov r8, qword [rsp + 0x30]
test al, 1
cmovne rcx, r8
mov qword [rsp + 0x50], rcx
mov al, byte [rdx + 8]
test al, al
jne 0x140122f08
mov rsi, rdx
mov rax, qword [fcn.1401241a0]
lea rcx, [0x140124260]
cmp rax, rcx
jne 0x140122f48
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 0x14012300e
imul rax, rax, 0xf4240
cqo
idiv qword [0x14023e460]
mov qword [rsp + 0x68], rax
mov rdx, rsi
mov al, byte [rsi + 8]
cmp al, 1
je 0x140122ff7
test rdx, rdx
je 0x140122f46
mov rax, qword [rsp + 0x68]
mov qword [rdx], rax
mov byte [rdx + 8], 1
mov al, 1
test al, al
je 0x140122f46
mov rax, qword [rdx]
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 [0x14021e390]
jmp 0x140122cb0
lea rcx, [rsp + 0x48]
call qword [0x14021e390]
mov rdx, qword [rsp + 0x20]
jmp 0x140122c0c
ud2
lea rcx, [rsp + 0x68]
call qword [0x14021e390]
jmp 0x140122ee7
lea r8, [rsp + 0x28]
mov rcx, rdi
call qword [0x14021e390]
jmp 0x140122cb0
lea rcx, [rsp + 0x48]
call qword [0x14021e390]
jmp 0x140122de3
mov rcx, qword [rsp + 0x48]
mov qword [rdx], rcx
jmp 0x140122c3e
movabs rax, 0x7fffffffffffffff
lea rcx, [r12 + rax]
add rcx, 2
cmp rcx, 2
jae 0x140122fb6
cmp r15, r12
je 0x140123137
lea rbp, [rax + 1]
test r12, r12
cmovs rbp, rax
jmp 0x140122ba0
xor ecx, ecx
cmp r15, r12
setns cl
add rcx, rax
mov rbp, r15
sub rbp, r12
cmovo rbp, rcx
jmp 0x140122ba0
mov rcx, qword [0x14023e460]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x140122c02
mov rcx, qword [rsp + 0x68]
mov qword [rdx], rcx
jmp 0x140122f08
mov al, 1
mov rdx, r12
jmp 0x140122e5d
mov rcx, qword [0x14023e460]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x140122ee2
cmp rcx, rsi
je 0x140122d4e
lea rax, [r15 + rcx]
add rax, 2
mov r14, rcx
cmp rax, 1
ja 0x140122d51
int3
mov rcx, qword [rsp + 0x48]
mov qword [r12], rcx
jmp 0x140122e0a
mov rax, qword [0x14022e6d8]
mov r14, rcx
test al, 1
je 0x140122d7a
lea rbx, [rsp + 0x68]
mov qword [rbx], r9
mov rax, qword [0x14022e6d8]
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.140131820
mov rax, qword [rbx]
cmp rax, rsi
cmovl rsi, rax
mov r14, rsi
jmp 0x140122d7a
mov rcx, qword [0x14023e460]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x140122dde
mov rax, qword [rsp + 0x30]
lea rdx, [r15 + rax]
add rdx, 2
cmp rdx, 2
jb 0x14012311f
xor edx, edx
cmp rcx, rax
setns dl
movabs r8, 0x7fffffffffffffff
add r8, rdx
mov r14, rcx
sub r14, rax
cmovo r14, r8
jmp 0x14012312f
cmp rcx, rax
je 0x14012313a
lea r14, [r15 + 1]
test rax, rax
cmovs r14, r15
mov rsi, rcx
jmp 0x140122d51
int3
int3