Function at 0x140111ad0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
sete al
add rsp, 0x28
ret
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x108
mov rdi, rcx
mov rax, qword [0x14029a038]
xor rax, rsp
mov qword [rsp + 0x100], rax
test rdx, rdx
jle 0x140111e1e
mov rbx, rdx
movaps xmm0, xmmword [0x140270690]
movaps xmmword [rsp + 0xd0], xmm0
movaps xmmword [rsp + 0xe0], xmm0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xf0], rax
xor ecx, ecx
mov byte [rsp + 0xd0], cl
xorps xmm1, xmm1
movups xmmword [rsp + 0xd8], xmm1
mov qword [rsp + 0xe8], rcx
lea rsi, [rsp + 0x68]
movaps xmmword [rsi - 8], xmm0
movaps xmmword [rsi + 8], xmm0
movaps xmmword [rsi + 0x18], xmm0
movaps xmmword [rsi + 0x28], xmm0
movaps xmmword [rsi + 0x38], xmm0
movaps xmmword [rsi + 0x48], xmm0
mov qword [rsi + 0x58], rax
mov byte [rsi - 8], cl
movups xmmword [rsi], xmm1
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi + 0x20], xmm1
movups xmmword [rsi + 0x30], xmm1
movups xmmword [rsi + 0x40], xmm1
mov qword [rsi + 0x50], rcx
cmp byte [rdi + 8], cl
jne 0x140111cce
movabs r13, 0x7fffffffffffffff
movabs rbp, 0x8637bd05af7
cmp rbx, r13
je 0x140111cad
mov rax, qword [0x14029bf90]
lea rcx, [0x140179e10]
cmp rax, rcx
jne 0x140111df2
lea r14, [rsp + 0x38]
mov qword [r14], 0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [r14]
cmp rax, rbp
jge 0x140111ebe
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402a2810]
mov r15, rax
lea rax, [r15 + rbx]
sar rax, 0x3f
btc rax, 0x3f
add r15, rbx
cmovo r15, rax
mov r14, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
movabs r12, 0x20c49ba5e353f7cf
cmp rbx, r13
je 0x140111c60
mov rax, rbx
shr rax, 3
mul r12
mov rax, rdx
shr rax, 4
imul rcx, rax, 0x3e8
cmp rcx, rbx
adc rax, 0
mov rcx, rax
shr rcx, 0x20
neg rcx
mov edx, 0
sbb edx, edx
or edx, eax
mov rcx, qword [rdi]
call r14
test eax, eax
je 0x140111c67
jmp 0x140111d44
mov edx, 0xffffffff
jmp 0x140111c51
mov bl, 1
test byte [0x14029c8d0], 0x19
jne 0x140111e49
cmp byte [rsp + 0x60], 0
jne 0x140111cb5
cmp byte [rsp + 0xd0], 0
jne 0x140111cbf
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.14017e7b0
mov eax, ebx
add rsp, 0x108
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r15, r13
jmp 0x140111c09
mov rcx, rsi
call fcn.140111f10
jmp 0x140111c7d
lea rcx, [rsp + 0xd8]
call fcn.140007200
jmp 0x140111c87
call fcn.140105b90
mov qword [rsp + 0x38], rdi
mov rcx, qword [0x1402a0ca0]
test rcx, rcx
jne 0x140111db2
mov qword [rsp + 0xd8], 0
mov qword [rsp + 0xe8], 0
mov bpl, 1
mov byte [rsp + 0xd0], bpl
lea rdx, str.TimedWait
lea r8, str....._base_synchronizationwaitable_event.cc
lea r14, [rsp + 0x38]
mov rcx, r14
mov r9d, 0x26
call fcn.140120f60
mov rcx, rsi
mov rdx, r14
xor r8d, r8d
call fcn.140112280
mov byte [rsp + 0x60], bpl
jmp 0x140111b8d
mov rax, qword [0x14029bf90]
lea rcx, [0x140179e10]
cmp rax, rcx
jne 0x140111e08
mov qword [rsp + 0x38], 0
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x38]
cmp rax, rbp
jge 0x140111ee8
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402a2810]
xor ecx, ecx
cmp r15, rax
setns cl
add rcx, r13
mov rbx, r15
sub rbx, rax
cmovo rbx, rcx
test rbx, rbx
jg 0x140111c1a
xor ebx, ebx
jmp 0x140111c76
mov r14, rax
call fcn.1401bb300
mov qword [rsp + 0xd8], rax
test rax, rax
je 0x140111cf4
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
mov rcx, rax
mov rdx, r14
xor r8d, r8d
mov r9b, 0x30
call fcn.1401bab30
mov dword [rsp + 0xe0], eax
jmp 0x140111cf4
lea r14, [rsp + 0x30]
mov rcx, r14
call qword [case.0x1401e7f70.0]
mov r15, qword [r14]
jmp 0x140111bf5
lea rbx, [rsp + 0x38]
mov rcx, rbx
call qword [case.0x1401e7f70.0]
mov rax, qword [rbx]
jmp 0x140111d8d
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.14017e7b0
mov rcx, rdi
add rsp, 0x108
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp 0x1400d6d90
xor rdi, qword [0x14029f540]
lea rax, [0x1400778d0]
mov qword [rsp + 0x50], rax
lea rax, [0x140284998]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea rdx, [0x14029c8d0]
lea r8, str.WaitableEvent::Wait_Complete
lea r9, [0x1402780e8]
mov cl, 0x49
call fcn.140075040
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 8]
test rax, rax
je 0x140111c76
mov rcx, qword [rsp + 0x40]
call qword [case.0x1401e7f70.0]
jmp 0x140111c76
mov rcx, qword [0x1402a2810]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
mov r15, rax
add r15, r8
jmp 0x140111bf5
mov rcx, qword [0x1402a2810]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x140111d8d