Function at 0x1400b0510
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, 0x138
movaps xmmword [rsp + 0x120], xmm6
mov rsi, rcx
mov rax, qword [0x1401f5028]
xor rax, rsp
mov qword [rsp + 0x118], rax
mov rax, qword [rdx]
test rax, rax
jle 0x1400b07ae
mov rdi, rdx
movaps xmm6, xmmword [0x1401c8a80]
movaps xmmword [rsp + 0xc0], xmm6
movaps xmmword [rsp + 0xd0], xmm6
mov byte [rsp + 0xc0], 0
movaps xmmword [rsp + 0x60], xmm6
movabs rcx, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xb0], rcx
movaps xmmword [rsp + 0xa0], xmm6
movaps xmmword [rsp + 0x90], xmm6
movaps xmmword [rsp + 0x80], xmm6
movaps xmmword [rsp + 0x70], xmm6
mov byte [rsp + 0x60], 0
cmp byte [rsi + 8], 0
jne 0x1400b07ce
movabs rbx, 0x7fffffffffffffff
movabs r12, 0x8637bd05af7
cmp rax, rbx
je 0x1400b07c3
mov rax, qword [0x1401f6fa8]
lea rcx, [0x1400eff50]
cmp rax, rcx
jne 0x1400b0789
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x40]
cmp rax, r12
jge 0x1400b08bd
imul rax, rax, 0xf4240
cqo
idiv qword [0x1401fe650]
mov qword [rsp + 0x100], rax
mov rcx, qword [rdi]
lea rdx, [rbx + rcx]
add rdx, 2
cmp rdx, 2
jb 0x1400b089a
xor edx, edx
mov rbp, rax
add rbp, rcx
setns dl
movabs rbp, 0x7fffffffffffffff
add rbp, rdx
add rax, rcx
cmovo rax, rbp
mov rdi, rax
test rcx, rcx
jle 0x1400b0775
mov r13, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r15d, 1
movabs r14, 0x20c49ba5e353f7cf
cmp rcx, rbx
je 0x1400b077f
mov rax, rcx
shr rax, 3
mul r14
mov rax, rdx
shr rax, 4
imul rbp, rax, 0x3e8
xor edx, edx
cmp rcx, rbp
setg dl
add rdx, rax
mov rax, rdx
shr rax, 0x20
jne 0x1400b077f
mov rcx, qword [rsi]
call r13
xor ecx, ecx
cmp eax, 0x102
sete cl
shl ecx, 2
test eax, eax
cmove ecx, r15d
mov eax, ecx
or eax, 4
cmp eax, 4
je 0x1400b071f
cmp ecx, 2
setne bl
cmp byte [rsp + 0x60], 0
jne 0x1400b086c
cmp byte [rsp + 0xc0], 0
jne 0x1400b0888
mov rcx, qword [rsp + 0x118]
xor rcx, rsp
call fcn.1400f32c0
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x120]
add rsp, 0x138
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [0x1401f6fa8]
lea rcx, [0x1400eff50]
cmp rax, rcx
jne 0x1400b079e
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x40]
cmp rax, r12
jge 0x1400b08e4
imul rax, rax, 0xf4240
cqo
idiv qword [0x1401fe650]
mov qword [rsp + 0x38], rax
mov rcx, rdi
sub rcx, rax
jg 0x1400b0676
mov ecx, 2
jmp 0x1400b06d2
mov edx, 0xffffffff
jmp 0x1400b06af
lea r15, [rsp + 0x100]
mov rcx, r15
call rax
mov rax, qword [r15]
jmp 0x1400b061f
lea rbp, [rsp + 0x38]
mov rcx, rbp
call rax
mov rax, qword [rbp]
jmp 0x1400b0769
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
sete bl
jmp 0x1400b06f1
mov rdi, rbx
mov rcx, rbx
jmp 0x1400b065f
call fcn.1400c18d0
mov qword [rsp + 0x40], rsi
mov rcx, qword [0x1401fead0]
test rcx, rcx
jne 0x1400b090b
mov qword [rsp + 0xc8], 0
mov qword [rsp + 0xd8], 0
mov byte [rsp + 0xc0], 1
lea rdx, str.TimedWait
lea r8, str..._.._base_synchronization_waitable_event_win.cc
lea rcx, [rsp + 0x40]
mov r9d, 0x58
call fcn.1400d4e70
cmp byte [rsp + 0x60], 0
je 0x1400b084b
test byte [0x1401f7030], 0x19
jne 0x1400b09c4
lea rbx, [rsp + 0x68]
mov rcx, rbx
call fcn.1400dcbb0
mov byte [rbx - 8], 0
lea rbx, [rsp + 0x68]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call fcn.1400b0e80
mov byte [rbx - 8], 1
mov rax, qword [rdi]
jmp 0x1400b05b1
test byte [0x1401f7030], 0x19
jne 0x1400b094b
lea rcx, [rsp + 0x68]
call fcn.1400dcbb0
jmp 0x1400b06e3
lea rcx, [rsp + 0xc8]
call fcn.1400c18e0
jmp 0x1400b06f1
mov rdi, rcx
cmp rax, rcx
je 0x1400b0656
add rax, rbx
add rax, 2
mov rdi, rcx
cmp rax, 1
ja 0x1400b0656
int3
mov rcx, qword [0x1401fe650]
cqo
idiv rcx
imul rbp, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, rbp
jmp 0x1400b0617
mov rcx, qword [0x1401fe650]
cqo
idiv rcx
imul rbp, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, rbp
jmp 0x1400b0764
mov rbx, rax
call fcn.140146bf0
mov qword [rsp + 0xc8], rax
test rax, rax
je 0x1400b07f4
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
mov rcx, rax
mov rdx, rbx
xor r8d, r8d
mov r9b, 0x30
call fcn.140146c30
mov dword [rsp + 0xd0], eax
jmp 0x1400b07f4
lea rsi, [rsp + 0x40]
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsi + 0x10], rax
movaps xmmword [rsi], xmm6
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov byte [rsp + 0x30], 0
lea r8, [0x1401f7030]
lea r9, [0x1401d1322]
mov rcx, rsi
mov dl, 0x45
call fcn.1400c3ef0
mov rdi, qword [rsi]
test rdi, rdi
je 0x1400b09b5
mov rbp, qword [rsp + 0x48]
lea rsi, [rsp + 0x100]
mov rcx, rsi
xor edx, edx
call fcn.1400ec270
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], rbp
mov rcx, rsi
call fcn.1400c3f10
lea rcx, [rsp + 0x40]
call fcn.1400ec280
jmp 0x1400b0879
lea rbx, [rsp + 0x100]
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rbx + 0x10], rax
movaps xmmword [rbx], xmm6
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov byte [rsp + 0x30], 0
lea r8, [0x1401f7030]
lea r9, [0x1401d1322]
mov rcx, rbx
mov dl, 0x45
call fcn.1400c3ef0
mov rbp, qword [rbx]
test rbp, rbp
je 0x1400b0a34
mov r14, qword [rsp + 0x108]
lea rbx, [rsp + 0xe8]
mov rcx, rbx
xor edx, edx
call fcn.1400ec270
mov qword [rbx + 8], rbp
mov qword [rbx + 0x10], r14
mov rcx, rbx
call fcn.1400c3f10
lea rcx, [rsp + 0x100]
call fcn.1400ec280
jmp 0x1400b083a