Function at 0x1401cabb0
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, 0xa8
mov rsi, rcx
mov rax, qword [0x1402e0038]
xor rax, rsp
mov qword [rsp + 0xa0], rax
test rdx, rdx
jle 0x1401cb18f
mov rdi, rdx
movaps xmm0, xmmword [0x14029bb90]
movaps xmmword [rsp + 0x50], xmm0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x90], rax
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
xor eax, eax
mov byte [rsp + 0x50], al
mov byte [rsp + 0x90], al
cmp byte [rsi + 8], al
je 0x1401caeb3
movabs r15, 0x7fffffffffffffff
cmp rdi, r15
je 0x1401caccb
mov rax, qword [0x1402e38a8]
lea rcx, [0x140038fc0]
cmp rax, rcx
jne 0x1401cb169
lea rbx, [rsp + 0x30]
mov qword [rbx], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbx]
movabs rcx, 0x8637bd05af7
cmp rax, rcx
jl 0x1401caca2
mov rcx, qword [0x1402f3f50]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
mov rbx, rax
add rbx, r8
jmp 0x1401cacb5
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402f3f50]
mov rbx, rax
lea rax, [rbx + rdi]
sar rax, 0x3f
btc rax, 0x3f
add rbx, rdi
cmovo rbx, rax
jmp 0x1401cacce
mov rbx, r15
mov r13, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rbp, [0x140038fc0]
lea r14, [rsp + 0x30]
mov r12, qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
jmp 0x1401cad15
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402f3f50]
xor ecx, ecx
cmp rbx, rax
setns cl
add rcx, r15
mov rdi, rbx
sub rdi, rax
cmovo rdi, rcx
jle 0x1401cadc8
mov edx, 0xffffffff
cmp rdi, r15
je 0x1401cad5b
mov rax, rdi
shr rax, 3
movabs rcx, 0x20c49ba5e353f7cf
mul rcx
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 [rsi]
call r13
test eax, eax
je 0x1401cadc3
mov rax, qword [0x1402e38a8]
cmp rax, rbp
jne 0x1401cb0f2
mov qword [rsp + 0x30], 0
mov rcx, r14
call r12
mov rax, qword [rsp + 0x30]
movabs rcx, 0x8637bd05af7
cmp rax, rcx
jl 0x1401cacea
mov rcx, qword [0x1402f3f50]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x1401cacfa
mov sil, 1
jmp 0x1401cadca
xor esi, esi
cmp byte [rsp + 0x90], 0
jne 0x1401cadfa
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.14010fba0
mov eax, esi
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.14010ccdc
mov ebp, dword [rax]
call fcn.14010ccdc
mov dword [rax], 0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x50]
test rbx, rbx
je 0x1401cae32
cmp qword [rsp + 0x58], 0
je 0x1401cb01f
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.14010ccdc
mov dword [rax], ebp
cmp byte [rsp + 0x88], 0
je 0x1401cae5c
mov rdi, qword [rsp + 0x80]
test rdi, rdi
jne 0x1401cb108
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x1401cae6e
mov rcx, qword [rsp + 0x68]
mov qword [rax], rcx
movabs rdi, 0xfffffffc00000000
mov rcx, qword [rsp + 0x58]
mov rax, rcx
and rax, rdi
cmp rax, qword [0x1402e3948]
je 0x1401cb1ba
mov qword [rsp + 0x58], 0
mov rcx, qword [rsp + 0x50]
and rdi, rcx
cmp rdi, qword [0x1402e3948]
jne 0x1401cadd4
jmp 0x1401cb015
lea rdx, str.TimedWait
lea r8, str....._base_synchronizationwaitable_event.cc
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov r9d, 0x24
call fcn.14009b140
cmp byte [rsp + 0x90], 0
jne 0x1401cb1c4
movabs r15, 0xfffffffc00000000
mov eax, dword [0x1402f0db0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov r14, qword [rax + 0x188]
mov rax, r14
and rax, r15
cmp rax, qword [0x1402e3948]
jne 0x1401caf1d
mov rcx, r14
call fcn.140103420
mov qword [rsp + 0x50], r14
mov eax, dword [0x1402f0db0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea r12, [rax + 0x190]
mov r14, qword [r12]
and r15, r14
cmp r15, qword [0x1402e3948]
jne 0x1401caf54
mov rcx, r14
call fcn.140103420
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 0x1401cb00e
mov cl, byte [rax + 0x20]
mov byte [rsp + 0x70], cl
xor ecx, ecx
mov byte [rsp + 0x78], cl
mov byte [rsp + 0x88], cl
mov edx, dword [0x1402f0db0]
mov r8, qword gs:[0x58]
mov rdx, qword [r8 + rdx*8]
cmp byte [rdx + 0x200], cl
je 0x1401cb0bf
test rax, rax
je 0x1401cafd3
cmp byte [rax + 0x38], 0
je 0x1401cafd3
mov r14, qword [rax + 0x30]
mov qword [rax + 0x30], 0
test r14, r14
je 0x1401cafd3
lock dec dword [r14]
je 0x1401cb154
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1401caff4
cmp qword [rsp + 0x58], 0
jne 0x1401caff4
mov rax, qword [rcx]
mov rax, qword [rax + 8]
xor edx, edx
call qword [0x140318008]
test byte [0x1402e21a0], 0x19
jne 0x1401cb0d6
mov byte [rsp + 0x90], 1
jmp 0x1401cac2a
xor ecx, ecx
jmp 0x1401caf7d
call fcn.140103630
jmp 0x1401cadd4
mov rax, qword [rbx]
mov rax, qword [rax + 0x18]
lea rcx, [0x140087bf0]
cmp rax, rcx
jne 0x1401cb1db
cmp byte [rbx + 0x19], 0
je 0x1401cae32
mov r14, qword [rbx + 0x28]
add r14, 0x28
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1401cb182
mov qword [rbx + 0x20], 0
cmp byte [rbx + 0x3b], 0
jne 0x1401cb087
cmp byte [rbx + 0x39], 0
mov rcx, qword [rbx + 0x28]
jne 0x1401cb0b1
dec dword [rcx + 0x148]
cmp byte [rbx + 0x19], 0
je 0x1401cb1e9
cmp byte [rbx + 0x18], 0
je 0x1401cb09b
mov word [rbx + 0x39], 0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
jmp 0x1401cae32
cmp byte [rbx + 0x3a], 0
mov rcx, qword [rbx + 0x28]
jne 0x1401cb215
dec dword [rcx + 0x14c]
jmp 0x1401cb087
dec qword [rcx + 0x128]
call fcn.1400e8b80
jmp 0x1401cb077
call fcn.1400abf60
test al, al
jne 0x1401cafd3
mov rax, qword [rsp + 0x58]
jmp 0x1401cafad
lea rdx, [rsp + 0x98]
mov qword [rdx], rbx
lea rcx, str.ScopedBlockingCallWithBaseSyncPrimitives
call fcn.140075380
jmp 0x1401cb001
lea rdi, [rsp + 0x30]
mov rcx, rdi
call qword [0x140318008]
mov rax, qword [rdi]
jmp 0x1401cacfa
lea rbx, [rsp + 0x30]
mov rcx, rbx
call fcn.14009a150
mov rdx, qword [rsp + 0x78]
mov r8, qword [rbx]
mov rcx, rdi
call fcn.1400b44b0
mov rdi, qword [rsp + 0x80]
test rdi, rdi
je 0x1401cae5c
lock dec dword [rdi]
jne 0x1401cae5c
mov rcx, rdi
call fcn.1400e4e10
mov rcx, rdi
call fcn.14010cc0c
jmp 0x1401cae5c
mov rcx, r14
call fcn.1400e4e10
mov rcx, r14
call fcn.14010cc0c
jmp 0x1401cafd3
lea rbx, [rsp + 0x98]
mov rcx, rbx
call qword [0x140318008]
mov rbx, qword [rbx]
jmp 0x1401cacb5
mov rcx, r14
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x1401cb059
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.14010fba0
mov rcx, rsi
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp fcn.1400b8a70
call fcn.140103630
jmp 0x1401cae90
lea r14, [rsp + 0x50]
mov rcx, r14
call fcn.14006be40
mov byte [r14 + 0x40], 0
jmp 0x1401caee2
mov rcx, rbx
call qword [0x140318008]
jmp 0x1401cae32
lea rax, str.optional_operator_called_on_a_disengaged_value
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcincludeoptional
lea r9, str.this__has_value__
mov r8d, 0x3f9
call fcn.140165620
dec qword [rcx + 0x130]
call fcn.1400e8b80
jmp 0x1401cb087