Function at 0x1400b37f0
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, 0xf8
movapd xmmword [rsp + 0xe0], xmm8
movapd xmmword [rsp + 0xd0], xmm7
movapd xmmword [rsp + 0xc0], xmm6
mov rdi, rcx
mov rax, qword [0x140231028]
xor rax, rsp
mov qword [rsp + 0xb8], rax
test rdx, rdx
jle 0x1400b3ec0
mov rsi, rdx
movapd xmm0, xmmword [0x1401fd0c0]
movapd xmmword [rsp + 0x50], xmm0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x90], rax
movapd xmmword [rsp + 0x80], xmm0
movapd xmmword [rsp + 0x70], xmm0
movapd xmmword [rsp + 0x60], xmm0
xor eax, eax
mov byte [rsp + 0x50], al
mov byte [rsp + 0x90], al
cmp byte [rdi + 8], al
je 0x1400b39ea
movabs r12, 0x7fffffffffffffff
movabs r14, 0x8637bd05af7
cmp rsi, r12
je 0x1400b39c7
mov rax, qword [0x1402336c0]
lea rcx, [0x1400b3340]
cmp rax, rcx
jne 0x1400b3e55
lea rbx, [rsp + 0x30]
mov qword [rbx], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbx]
cmp rax, r14
jge 0x1400b3f04
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402439e0]
mov rbx, rax
lea rax, [rbx + rsi]
sar rax, 0x3f
btc rax, 0x3f
add rbx, rsi
cmovo rbx, rax
mov r15, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea r14, [rsp + 0x30]
mov rbp, qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
movabs r13, 0x20c49ba5e353f7cf
mov rcx, rsi
mov edx, 0xffffffff
cmp rcx, r12
je 0x1400b3963
mov rax, rcx
shr rax, 3
mul r13
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 [rdi]
call r15
test eax, eax
jne 0x1400b3c4b
mov sil, 1
cmp byte [rdi + 8], 0
je 0x1400b39cf
cmp byte [rsp + 0x90], 1
je 0x1400b3a52
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.14012c2d0
mov eax, esi
movaps xmm6, xmmword [rsp + 0xc0]
movaps xmm7, xmmword [rsp + 0xd0]
movaps xmm8, xmmword [rsp + 0xe0]
add rsp, 0xf8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rbx, r12
jmp 0x1400b3907
mov qword [rsp + 0xa8], 0x169
mov al, byte [0x1402436e9]
test al, al
je 0x1400b397a
jmp 0x1400b3f87
lea rdx, str.TimedWait
lea r8, str....._base_synchronizationwaitable_event.cc
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov r9d, 0x40
call fcn.1400c8fe0
cmp byte [rsp + 0x90], 1
je 0x1400b3ea9
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 1
call fcn.1400b4360
mov qword [rsp + 0xa0], 0xb
mov al, byte [0x14024358b]
test al, al
jne 0x1400b3f55
mov byte [rsp + 0x90], 1
jmp 0x1400b388b
mov qword [rsp + 0xb0], 0xb
mov al, byte [0x14024358b]
test al, al
jne 0x1400b3f2e
call fcn.1401298ec
mov ebp, dword [rax]
call fcn.1401298ec
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 r14, qword [rsp + 0x50]
test r14, r14
je 0x1400b3b1f
cmp qword [rsp + 0x58], 0
jne 0x1400b3b1f
cmp byte [r14 + 0x19], 1
jne 0x1400b3b1f
mov rbx, qword [r14 + 0x28]
add rbx, 0x68
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1400b3d0d
mov qword [r14 + 0x20], 0
cmp byte [r14 + 0x3b], 0
jne 0x1400b3b0f
mov rax, qword [r14 + 0x28]
cmp byte [r14 + 0x39], 1
je 0x1400b3cc5
dec dword [rax + 0x128]
cmp byte [r14 + 0x19], 0
je 0x1400b3fc5
cmp byte [r14 + 0x18], 0
jne 0x1400b3b0f
mov rcx, qword [r14 + 0x28]
cmp byte [r14 + 0x3a], 1
je 0x1400b3fd8
dec dword [rcx + 0x12c]
mov word [r14 + 0x39], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.1401298ec
mov dword [rax], ebp
cmp byte [rsp + 0x88], 1
jne 0x1400b3b45
mov rbx, qword [rsp + 0x80]
test rbx, rbx
jne 0x1400b3ba1
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x1400b3b57
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 [0x140233688]
je 0x1400b3e9f
mov qword [rsp + 0x58], 0
mov rcx, qword [rsp + 0x50]
and rdi, rcx
cmp rdi, qword [0x140233688]
jne 0x1400b3988
call fcn.1400980c0
jmp 0x1400b3988
mov rax, qword [fcn.1400b3290]
lea rcx, [0x1400b3340]
cmp rax, rcx
jne 0x1400b3e86
lea rdi, [rsp + 0x30]
mov qword [rdi], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rdi]
movabs rcx, 0x8637bd05af7
cmp rax, rcx
jge 0x1400b4033
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402439e0]
mov qword [rsp + 0xb0], rax
mov r15, qword [rsp + 0x78]
xor ecx, ecx
cmp rax, r15
setns cl
movabs r13, 0x7fffffffffffffff
add rcx, r13
mov r14, rax
sub r14, r15
cmovo r14, rcx
cmp r14, 0xf4240
jge 0x1400b3d1b
mov rdi, qword [rsp + 0x80]
test rdi, rdi
je 0x1400b3b45
lock dec dword [rdi]
jne 0x1400b3b45
jmp 0x1400b3ff7
cmp eax, 0x102
jne 0x1400b3fe2
mov rax, qword [0x1402336c0]
lea rcx, [0x1400b3340]
cmp rax, rcx
jne 0x1400b3e6e
mov qword [rsp + 0x30], 0
mov rcx, r14
call rbp
mov rax, qword [rsp + 0x30]
movabs rcx, 0x8637bd05af7
cmp rax, rcx
jge 0x1400b400c
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402439e0]
xor edx, edx
cmp rbx, rax
setns dl
add rdx, r12
mov rcx, rbx
sub rcx, rax
cmovo rcx, rdx
jg 0x1400b3927
xor esi, esi
jmp 0x1400b397a
mov rcx, qword [rax + 0x80]
mov rdx, qword [rax + 0x108]
dec rdx
mov qword [rax + 0x108], rdx
cmp rcx, qword [rax + 0x88]
je 0x1400b3cef
cmp qword [rax + 0x118], rdx
jae 0x1400b3cfd
mov word [rax + 0xb8], 0
jmp 0x1400b3ae8
movzx ecx, word [rcx + 0x10]
mov word [rax + 0xb8], cx
jmp 0x1400b3ae8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x1400b3ac4
mov ecx, 0x3938700
add rcx, qword [rbx + 0x1f0]
cmovo rcx, r13
cmp rcx, rax
jle 0x1400b408d
mov rax, qword [rbx + 0x1f0]
xor edx, edx
cmp r15, rax
setns dl
add rdx, r13
mov rcx, r15
sub rcx, rax
cmovo rcx, rdx
lea rdx, [r12 + rcx]
add rdx, 2
cmp rdx, 2
jb 0x1400b4074
cvtsi2sd xmm0, rcx
movsd xmm8, qword [0x14020ed50]
divsd xmm0, xmm8
call fcn.140160cb0
xor edi, edi
movsd xmm6, qword [0x14020ed58]
ucomisd xmm0, xmm6
mov eax, 0x7fffffff
cmovb eax, edi
movsd xmm7, qword [0x14020ed60]
ucomisd xmm7, xmm0
mov r15d, 0x7fffffff
maxsd xmm0, xmm6
cvttsd2si ebp, xmm0
cmovb ebp, eax
lea rax, [r12 + r14]
add rax, 2
cmp rax, 2
jae 0x1400b3dc5
movsd xmm0, qword [0x14020ed68]
jmp 0x1400b3dd2
xorps xmm0, xmm0
cvtsi2sd xmm0, r14
divsd xmm0, xmm8
call fcn.140160d60
ucomisd xmm0, xmm6
cmovb r15d, edi
ucomisd xmm7, xmm0
maxsd xmm0, xmm6
cvttsd2si r14d, xmm0
cmovb r14d, r15d
mov r15, qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
mov r13, qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
add r14d, ebp
cmp r14d, 0x3c
mov r12d, 0x3c
cmovl r12d, r14d
lea rdi, [rbx + 8]
mov rcx, rdi
call r15
test al, al
je 0x1400b3e4a
cmp ebp, r12d
jge 0x1400b3e35
movsxd rax, ebp
movsxd rcx, r12d
inc qword [rbx + rax*8 + 0x10]
inc rax
cmp rcx, rax
jne 0x1400b3e28
mov rcx, rdi
call r13
cmp r14d, 0x3d
jl 0x1400b3c2c
jmp 0x1400b405a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x1400b3e1d
lea rbx, [rsp + 0xb0]
mov rcx, rbx
call qword [0x140223bc8]
mov rbx, qword [rbx]
jmp 0x1400b38f3
lea rcx, [rsp + 0x30]
call qword [0x140223bc8]
lea rax, [rsp + 0x30]
mov rax, qword [rax]
jmp 0x1400b3ca3
lea rdi, [rsp + 0xb0]
mov rcx, rdi
call qword [0x140223bc8]
mov rax, qword [rdi]
jmp 0x1400b3bfb
call fcn.1400980c0
jmp 0x1400b3b79
lea r14, [rsp + 0x50]
mov rcx, r14
call fcn.1401002c0
mov byte [r14 + 0x40], 0
jmp 0x1400b3a19
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.14012c2d0
mov rcx, rdi
movaps xmm6, xmmword [rsp + 0xc0]
movaps xmm7, xmmword [rsp + 0xd0]
movaps xmm8, xmmword [rsp + 0xe0]
add rsp, 0xf8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp fcn.1400945a0
mov rcx, qword [0x1402439e0]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
mov rbx, rax
add rbx, r8
jmp 0x1400b38f3
movzx ecx, al
lea r8, [rsp + 0x30]
mov qword [r8], 0
lea rdx, [rsp + 0xb0]
mov r9d, 2
call fcn.1400a1f00
jmp 0x1400b3a6c
movzx ecx, al
lea r9, [rsp + 0xb0]
mov qword [r9], rbx
lea rax, str.ScopedBlockingCallWithBaseSyncPrimitives
lea r8, [rsp + 0xa8]
mov qword [r8], rax
lea rdx, [rsp + 0xa0]
call fcn.140183ea0
jmp 0x1400b3a45
movzx ecx, al
xor rdi, qword [0x140241b20]
mov qword [rsp + 0x30], rdi
lea rax, str.WaitableEvent::Wait_Complete
lea r8, [rsp + 0xb0]
mov qword [r8], rax
mov qword [rsp + 0x20], r14
lea rdx, [rsp + 0xa8]
mov r9d, 3
call fcn.14001dfa0
jmp 0x1400b397a
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
call fcn.14019ab50
jmp 0x1400b3b0f
cmp rsi, r12
jne 0x1400b3c56
mov ecx, eax
call fcn.14018dcc0
jmp 0x1400b3c56
mov rcx, rdi
call fcn.14001cfe0
mov rcx, rdi
call fcn.1401298a0
jmp 0x1400b3b45
mov rcx, qword [0x1402439e0]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x1400b3ca3
mov rcx, qword [0x1402439e0]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x1400b3bf3
mov rbx, qword [rbx + 0x1f8]
sub r14d, r12d
xor ebp, ebp
test rbx, rbx
jne 0x1400b3dfe
jmp 0x1400b3c2c
xor ecx, ecx
cmp rax, r15
setg cl
lea rax, [0x14020ed40]
movsd xmm0, qword [rax + rcx*8]
jmp 0x1400b3d67
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov rdx, rax
call fcn.1400643d0
mov rdi, qword [rdi]
test rdi, rdi
je 0x1400b3d34
lock dec dword [rdi]
jne 0x1400b3d34
mov rcx, rdi
call fcn.14001cfe0
mov rcx, rdi
call fcn.1401298a0
jmp 0x1400b3d34