Function at 0x1400ffbb0
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 rsi, rcx
mov rax, qword [0x140231028]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movaps xmm0, xmmword [0x1401fd0c0]
movaps xmmword [rsp + 0x50], xmm0
movabs r12, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x90], r12
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
movabs r15, 0x8637bd05af7
cmp byte [rcx + 8], al
je 0x1400ffdab
movabs r14, 0x7fffffffffffffff
mov r12, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea r13, [0x1400b3340]
lea rdi, [rsp + 0x30]
mov rbp, qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
movabs rbx, 0x20c49ba5e353f7cf
mov rcx, r14
mov edx, 0xffffffff
cmp rcx, r14
je 0x1400ffc95
mov rax, rcx
shr rax, 3
mul rbx
mov rax, rdx
shr rax, 4
imul rdx, rax, 0x3e8
cmp rdx, rcx
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 r12
test eax, eax
jne 0x1400ffcfb
cmp byte [rsi + 8], 0
je 0x1400ffce0
cmp byte [rsp + 0x90], 1
je 0x1400ffcd4
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14012c2d0
nop
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [rsp + 0x50]
call fcn.1401002c0
jmp 0x1400ffcaf
mov qword [rsp + 0xa0], 0x169
mov al, byte [0x1402436e9]
test al, al
je 0x1400ffca5
jmp 0x1401001e1
cmp eax, 0x102
jne 0x140100242
mov rax, qword [0x1402336c0]
cmp rax, r13
jne 0x140100107
mov qword [rsp + 0x30], 0
mov rcx, rdi
call rbp
mov rax, qword [rsp + 0x30]
cmp rax, r15
jge 0x14010028b
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402439e0]
xor edx, edx
cmp r14, rax
setns dl
add rdx, r14
mov rcx, r14
sub rcx, rax
cmovo rcx, rdx
jne 0x1400ffc59
jmp 0x1400ffca5
mov eax, dword [0x140249880]
mov ecx, dword [0x1402403d0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1401000a3
cmp byte [0x14024987c], 0
jne 0x1400ffe9c
jmp 0x1401000ec
mov al, byte [rbx + 0x20]
jmp 0x1400ffe63
mov rcx, rbx
call fcn.140097e00
jmp 0x1400ffe0d
lea rdx, str.TimedWait
lea r8, str....._base_synchronizationwaitable_event.cc
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r9d, 0x40
call fcn.1400c8fe0
cmp byte [rsp + 0x90], 1
je 0x140100199
movabs r14, 0xfffffffc00000000
mov eax, dword [0x1402403d0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov rbx, qword [rax + 0x170]
mov rax, rbx
and rax, r14
cmp rax, qword [0x140233688]
je 0x1400ffda1
mov qword [rsp + 0x50], rbx
mov eax, dword [0x1402403d0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea r13, [rax + 0x178]
mov rbx, qword [r13]
and r14, rbx
mov rax, rbx
cmp r14, qword [0x140233688]
je 0x140100188
lea rcx, [rsp + 0x50]
mov qword [rcx + 8], rbx
mov qword [rcx + 0x10], r13
mov qword [r13], rcx
mov qword [rcx + 0x18], rax
test rbx, rbx
jne 0x1400ffd99
xor eax, eax
mov byte [rsp + 0x70], al
xor eax, eax
mov byte [rsp + 0x78], al
mov byte [rsp + 0x88], al
mov ecx, dword [0x1402403d0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp byte [rcx + 0x198], al
je 0x1400ffd62
test rbx, rbx
jne 0x14010004d
mov r13, qword [rsp + 0x50]
test r13, r13
je 0x140100026
cmp qword [rsp + 0x58], 0
jne 0x140100026
cmp byte [r13 + 0x19], 1
jne 0x140100026
mov r14, qword [r13 + 8]
mov rax, qword [r14 + 0x38]
mov rax, qword [rax + 0x10]
mov eax, dword [rax]
test al, 1
jne 0x14010008b
mov ebx, dword [r14 + 0x50]
cmp dword [r14 + 0x54], ebx
jne 0x140100135
mov qword [rsp + 0xa0], r12
mov rbx, qword [r13 + 0x28]
mov rax, qword [rbx]
mov rax, qword [rax + 0x48]
lea rcx, [0x1401256b0]
cmp rax, rcx
jne 0x14010024e
mov ecx, 0x50
call fcn.1401298a8
mov qword [rax + 8], rbx
mov byte [rax + 0x40], 0
xorps xmm0, xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
lea rcx, fcn.140100a80
mov qword [rax], rcx
mov dword [rax + 0x48], 0
mov qword [rsp + 0xa0], rax
mov rbx, qword [r13 + 0x28]
add rbx, 0x68
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140100095
mov rax, qword [0x1402336c0]
lea rcx, [0x1400b3340]
lea r14, [rsp + 0xa8]
cmp rax, rcx
jne 0x1401000f6
mov qword [r14], 0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [r14]
cmp rax, r15
jge 0x140100264
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402439e0]
mov qword [r13 + 0x20], rax
cmp byte [r13 + 0x3b], 0
jne 0x1400fffe4
cmp byte [r13 + 0x19], 0
je 0x14010022f
cmp byte [r13 + 0x18], 0
jne 0x1400fffc9
mov rax, qword [r13 + 0x28]
inc dword [rax + 0x12c]
mov rax, qword [r13 + 0x28]
inc dword [rax + 0x128]
mov rcx, qword [r13 + 0x28]
mov rdx, qword [rsp + 0xa0]
call fcn.1401007b0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, qword [rsp + 0xa0]
mov qword [rsp + 0xa0], 0
test rcx, rcx
je 0x140100026
mov rax, qword [rcx]
mov rax, qword [rax]
lea rdx, [fcn.140100a80]
cmp rax, rdx
jne 0x14010021f
mov edx, 1
call fcn.140100a80
mov qword [rsp + 0x98], 0xb
mov al, byte [0x14024358b]
test al, al
jne 0x1401001af
mov byte [rsp + 0x90], 1
jmp 0x1400ffc28
cmp byte [rbx + 0x38], 1
jne 0x1400ffe9c
mov r14, qword [rbx + 0x30]
mov qword [rbx + 0x30], 0
test r14, r14
je 0x1400ffe9c
lock dec dword [r14]
jne 0x1400ffe9c
mov rcx, r14
call fcn.14001cfe0
mov rcx, r14
call fcn.1401298a0
jmp 0x1400ffe9c
mov ebx, 3
jmp 0x1400ffedb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x1400fff57
lea rcx, [0x140249880]
call fcn.1401299b4
cmp dword [0x140249880], 0xffffffff
jne 0x1400ffd87
mov rcx, qword [0x1402438f8]
test rcx, rcx
je 0x1401000d4
lea rdx, str.enable_background_thread_pool
call fcn.1400b6550
mov byte [0x14024987c], 1
lea rcx, [0x140249880]
call fcn.140129a1c
jmp 0x1400ffd87
mov rbx, qword [rsp + 0x58]
jmp 0x1400ffe93
mov rcx, r14
call qword [0x140223bc8]
mov rax, qword [r14]
jmp 0x1400fffa2
lea rcx, [rsp + 0x30]
call qword [0x140223bc8]
lea rax, [rsp + 0x30]
mov rax, qword [rax]
jmp 0x1400ffd42
mov eax, dword [rax + 0x38]
cmp eax, 3
je 0x1401002b5
xor edx, edx
cmp eax, 1
sete dl
jmp 0x140100156
mov eax, dword [0x1402403d0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + 0x168]
xor edx, edx
test rax, rax
jne 0x14010011f
cmp ebx, 7
jge 0x1401002b2
mov ecx, ebx
call fcn.1400264f0
mov eax, dword [0x1402403d0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov dword [rax + 0x154], ebx
mov dword [r14 + 0x54], ebx
jmp 0x1400ffee5
mov rcx, rbx
call fcn.140097e00
mov rax, qword [r13]
jmp 0x1400ffe43
lea rbx, [rsp + 0x50]
mov rcx, rbx
call fcn.1401002c0
mov byte [rbx + 0x40], 0
jmp 0x1400ffdda
movzx ecx, al
lea r9, [rsp + 0xa8]
mov qword [r9], rdi
lea rax, str.ScopedBlockingCallWithBaseSyncPrimitives
lea r8, [rsp + 0xa0]
mov qword [r8], rax
lea rdx, [rsp + 0x98]
call fcn.140183ea0
jmp 0x140100040
movzx ecx, al
xor rsi, qword [0x140241b20]
mov qword [rsp + 0x30], rsi
lea rax, str.WaitableEvent::Wait_Complete
lea r8, [rsp + 0xa8]
mov qword [r8], rax
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0xa0]
mov r9d, 3
call fcn.14001dfa0
jmp 0x1400ffca5
mov edx, 1
call qword [0x140223bc8]
jmp 0x140100026
lea rcx, [0x14020233c]
lea rdx, str....._third_partylibc_srcincludeoptional:795:_assertion_this__has_value___failed:_optional_operator_called_on_a_disengaged_value_n
call fcn.140163630
mov ecx, eax
call fcn.14018dcc0
jmp 0x1400ffd06
lea rdx, [rsp + 0xa0]
mov rcx, rbx
call qword [0x140223bc8]
jmp 0x1400fff3e
mov rcx, qword [0x1402439e0]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x1400fffa2
mov rcx, qword [0x1402439e0]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x1400ffd42
int3
mov edx, 3
jmp 0x140100156