Function at 0x140063c30
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, 0xb8
mov rax, qword [0x140113040]
xor rax, rsp
mov qword [rsp + 0xb0], rax
lea r15, [rcx + 8]
test rdx, rdx
jle 0x1400640ab
mov rdi, rdx
mov rsi, rcx
vbroadcastss ymm0, dword [0x1400f27f0]
vmovups ymmword [rsp + 0x50], ymm0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x90], rax
vmovups ymmword [rsp + 0x70], ymm0
xor eax, eax
mov byte [rsp + 0x50], al
mov byte [rsp + 0x90], al
cmp byte [rcx + 0x10], al
je 0x140063e6d
movabs r14, 0x7fffffffffffffff
movabs r12, 0x8637bd05af7
cmp rdi, r14
je 0x140063dc8
mov rax, qword [0x140115510]
lea rcx, [0x14008f650]
cmp rax, rcx
jne 0x140064085
lea rbx, [rsp + 0x30]
mov qword [rbx], 0
mov rcx, rbx
vzeroupper
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbx]
mov rcx, qword [0x140124770]
cmp rax, r12
jge 0x1400640c1
imul rax, rax, 0xf4240
cqo
idiv rcx
mov qword [rsp + 0xa8], rax
mov r13, qword [rsp + 0xa8]
lea rax, [rdi + r13]
sar rax, 0x3f
btc rax, 0x3f
add r13, rdi
cmovo r13, rax
mov rbp, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
movabs rbx, 0x20c49ba5e353f7cf
cmp rdi, r14
je 0x140063dc1
mov rax, rdi
shr rax, 3
mul rbx
mov rax, rdx
shr rax, 4
imul rcx, rax, 0x3e8
cmp rcx, rdi
adc rax, 0
mov rcx, rax
shr rcx, 0x20
neg rcx
mov edx, 0
sbb edx, edx
or edx, eax
mov rcx, qword [r15]
vzeroupper
call rbp
test eax, eax
jne 0x140063df7
mov dil, 1
cmp byte [rsi + 0x10], 0
je 0x140063ddc
cmp byte [rsp + 0x90], 0
jne 0x140063dd0
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400931d0
mov eax, edi
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov edx, 0xffffffff
jmp 0x140063d7c
mov r13, r14
jmp 0x140063d34
lea rcx, [rsp + 0x50]
call fcn.14005a1d0
jmp 0x140063d9b
mov qword [rsp + 0xa0], 0x9b
mov al, byte [0x14012469b]
test al, al
je 0x140063d91
jmp 0x1400640f8
mov rax, qword [0x140115510]
lea rcx, [0x14008f650]
cmp rax, rcx
jne 0x14006409b
mov qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x30]
mov rcx, qword [0x140124770]
cmp rax, r12
jge 0x14006413b
imul rax, rax, 0xf4240
cqo
idiv rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
xor ecx, ecx
cmp r13, rax
setns cl
add rcx, r14
mov rdi, r13
sub rdi, rax
cmovo rdi, rcx
jg 0x140063d45
jmp 0x140064035
lea rdx, str.TimedWait
lea r8, str....._base_synchronizationwaitable_event.cc
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov r9d, 0x24
vzeroupper
call fcn.140056ee0
cmp byte [rsp + 0x90], 0
jne 0x1400640e1
mov eax, dword [0x140121718]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov r14, qword [rax + 0x168]
mov rax, qword [0x1401155a0]
and rax, r14
cmp rax, qword [0x140115588]
jne 0x140063ed4
mov rcx, r14
call fcn.140055410
mov qword [rsp + 0x50], r14
mov eax, dword [0x140121718]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea r12, [rax + 0x170]
mov r14, qword [r12]
mov rax, qword [0x1401155a0]
and rax, r14
cmp rax, qword [0x140115588]
jne 0x140063f12
mov rcx, r14
call fcn.140055410
lea rax, [rsp + 0x50]
mov qword [rax + 8], r14
mov qword [rax + 0x10], r12
mov rcx, qword [r12]
mov qword [r12], rax
mov qword [rax + 0x18], rcx
mov rax, qword [rax + 8]
test rax, rax
je 0x140063f9c
mov al, byte [rax + 0x20]
mov byte [rsp + 0x70], al
xor eax, eax
mov byte [rsp + 0x78], al
mov byte [rsp + 0x88], al
mov ecx, dword [0x140121718]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp byte [rcx + 0x180], al
je 0x140063fa0
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x140063fca
cmp byte [rax + 0x38], 0
je 0x140063fca
mov r14, qword [rax + 0x30]
mov qword [rax + 0x30], 0
test r14, r14
je 0x140063fca
lock dec dword [r14]
jne 0x140063fca
mov rcx, r14
call fcn.14000afe0
mov rcx, r14
call fcn.1400910b4
jmp 0x140063fca
xor eax, eax
jmp 0x140063f37
mov eax, dword [0x14012ac24]
mov ecx, dword [0x140121718]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14006403c
cmp byte [0x14012ac20], 0
je 0x140063f63
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140063fe3
cmp qword [rsp + 0x58], 0
jne 0x140063fe3
xor edx, edx
call fcn.140059530
mov qword [rsp + 0x98], 0xa
mov al, byte [0x14012460a]
test al, al
jne 0x140064006
mov byte [rsp + 0x90], 1
jmp 0x140063ca5
movzx ecx, al
lea r9, [rsp + 0xa8]
mov qword [r9], rbx
lea rax, str.ScopedBlockingCallWithBaseSyncPrimitives
lea r8, [rsp + 0xa0]
mov qword [r8], rax
lea rdx, [rsp + 0x98]
call fcn.14000ee40
jmp 0x140063ff9
xor edi, edi
jmp 0x140063d91
lea rcx, [0x14012ac24]
call fcn.140091164
cmp dword [0x14012ac24], 0xffffffff
jne 0x140063fc1
mov rcx, qword [0x140124838]
test rcx, rcx
je 0x14006406d
lea rdx, str.enable_background_thread_pool
call fcn.14000b0b0
mov byte [0x14012ac20], 1
lea rcx, [0x14012ac24]
call fcn.1400910f8
jmp 0x140063fc1
lea rcx, [rsp + 0xa8]
vzeroupper
call qword [0x1401093a8]
jmp 0x140063d18
lea rcx, [rsp + 0x30]
call qword [0x1401093a8]
jmp 0x140063e48
mov rcx, qword [r15]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
sete dil
jmp 0x140063d9b
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x140063d10
lea r14, [rsp + 0x50]
mov rcx, r14
call fcn.14005a1d0
mov byte [r14 + 0x40], 0
jmp 0x140063e9f
movzx ecx, al
xor r15, qword [0x140122bb8]
mov qword [rsp + 0x30], r15
lea rax, str.WaitableEvent::Wait_Complete
lea r8, [rsp + 0xa8]
mov qword [r8], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0xa0]
mov r9d, 3
call fcn.140069ef0
jmp 0x140063d91
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x140063e43