Function at 0x140104e50
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 [0x140231040]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movaps xmm0, xmmword [0x1401fd000]
movaps xmmword [rsp + 0x50], xmm0
movabs r14, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x90], r14
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 0x14010504b
movabs r14, 0x7fffffffffffffff
mov r12, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea r13, [0x140116ab0]
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 0x140104f35
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 0x140104f9b
cmp byte [rsi + 8], 0
je 0x140104f80
cmp byte [rsp + 0x90], 0
jne 0x140104f74
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14012d2c0
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.1400ab6c0
jmp 0x140104f4f
mov qword [rsp + 0xa0], 0x164
mov al, byte [0x1402436e4]
test al, al
je 0x140104f45
jmp 0x140105434
cmp eax, 0x102
jne 0x140105495
mov rax, qword [0x140233700]
cmp rax, r13
jne 0x1401053c7
mov qword [rsp + 0x30], 0
mov rcx, rdi
call rbp
mov rax, qword [rsp + 0x30]
cmp rax, r15
jge 0x1401054ed
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402439e8]
xor edx, edx
cmp r14, rax
setns dl
add rdx, r14
mov rcx, r14
sub rcx, rax
cmovo rcx, rdx
jne 0x140104ef9
jmp 0x140104f45
mov eax, dword [0x140247eb0]
mov ecx, dword [0x1402403d8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140105363
cmp byte [0x140247eac], 0
jne 0x140105144
jmp 0x1401053ac
mov cl, byte [rax + 0x20]
jmp 0x14010510b
mov rcx, rbx
call fcn.1400a3490
jmp 0x1401050ad
lea rdx, str.TimedWait
lea r8, str....._base_synchronizationwaitable_event.cc
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r9d, 0x24
call fcn.1400dc8d0
cmp byte [rsp + 0x90], 0
jne 0x1401053ec
movabs r12, 0xfffffffc00000000
mov eax, dword [0x1402403d8]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov rbx, qword [rax + 0x170]
mov rax, rbx
and rax, r12
cmp rax, qword [0x1402336c8]
je 0x140105041
mov qword [rsp + 0x50], rbx
mov eax, dword [0x1402403d8]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea r13, [rax + 0x178]
mov rbx, qword [r13]
mov rax, rbx
and rax, r12
cmp rax, qword [0x1402336c8]
je 0x1401053df
lea rax, [rsp + 0x50]
mov qword [rax + 8], rbx
mov qword [rax + 0x10], r13
mov rcx, qword [r13]
mov qword [r13], rax
mov qword [rax + 0x18], rcx
mov rax, qword [rax + 8]
test rax, rax
jne 0x140105039
xor ecx, ecx
mov byte [rsp + 0x70], cl
xor ecx, ecx
mov byte [rsp + 0x78], cl
mov byte [rsp + 0x88], cl
mov edx, dword [0x1402403d8]
mov r8, qword gs:[0x58]
mov rdx, qword [r8 + rdx*8]
cmp byte [rdx + 0x198], cl
je 0x140105002
test rax, rax
jne 0x14010530e
mov r13, qword [rsp + 0x50]
test r13, r13
je 0x1401052e7
cmp qword [rsp + 0x58], 0
jne 0x1401052e7
cmp byte [r13 + 0x19], 0
je 0x1401052e7
mov rbp, qword [r13 + 8]
mov rax, qword [rbp + 0x38]
mov rax, qword [rax + 0x10]
mov eax, dword [rax]
test al, 1
jne 0x140105359
mov ebx, dword [rbp + 0x50]
cmp dword [rbp + 0x54], ebx
jne 0x1401054a1
mov qword [rsp + 0xa0], r14
mov rbx, qword [r13 + 0x28]
mov rax, qword [rbx]
mov rax, qword [rax + 0x48]
lea rcx, [0x1401241b0]
cmp rax, rcx
jne 0x1401054b0
mov ecx, 0x50
call fcn.14012aa30
mov r14, rax
and r12, rbx
cmp r12, qword [0x1402336c8]
jne 0x1401051cf
mov rcx, rbx
call fcn.1400a3490
mov qword [r14 + 8], rbx
mov byte [r14 + 0x40], 0
xorps xmm0, xmm0
movups xmmword [r14 + 0x10], xmm0
movups xmmword [r14 + 0x20], xmm0
lea rax, fcn.1401057c0
mov qword [r14], rax
mov dword [r14 + 0x48], 0
mov qword [rsp + 0xa0], r14
mov rbx, qword [r13 + 0x28]
add rbx, 0x68
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14010534b
mov rax, qword [0x140233700]
lea rcx, [0x140116ab0]
lea r14, [rsp + 0xa8]
cmp rax, rcx
jne 0x1401053b6
mov qword [r14], 0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [r14]
cmp rax, r15
jge 0x1401054c6
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402439e8]
mov qword [r13 + 0x20], rax
cmp byte [r13 + 0x3b], 0
jne 0x1401052a5
cmp byte [r13 + 0x19], 0
je 0x140105482
cmp byte [r13 + 0x18], 0
jne 0x14010528a
mov rax, qword [r13 + 0x28]
inc dword [rax + 0x134]
mov rax, qword [r13 + 0x28]
inc dword [rax + 0x130]
mov rcx, qword [r13 + 0x28]
mov rdx, qword [rsp + 0xa0]
call fcn.140105520
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, qword [rsp + 0xa0]
mov qword [rsp + 0xa0], 0
test rcx, rcx
je 0x1401052e7
mov rax, qword [rcx]
mov rax, qword [rax]
lea rdx, [fcn.1401057c0]
cmp rax, rdx
jne 0x140105472
mov edx, 1
call fcn.1401057c0
mov qword [rsp + 0x98], 0xa
mov al, byte [0x14024358a]
test al, al
jne 0x140105402
mov byte [rsp + 0x90], 1
jmp 0x140104ec8
cmp byte [rax + 0x38], 0
je 0x140105144
mov rbx, qword [rax + 0x30]
mov qword [rax + 0x30], 0
test rbx, rbx
je 0x140105144
lock dec dword [rbx]
jne 0x140105144
mov rcx, rbx
call fcn.140016d30
mov rcx, rbx
call fcn.14012aa6c
jmp 0x140105144
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x140105218
mov ebx, 3
jmp 0x140105182
lea rcx, [0x140247eb0]
call fcn.14012ad90
cmp dword [0x140247eb0], 0xffffffff
jne 0x140105027
mov rcx, qword [0x1402438f8]
test rcx, rcx
je 0x140105394
lea rdx, str.enable_background_thread_pool
call fcn.140107b20
mov byte [0x140247eac], 1
lea rcx, [0x140247eb0]
call fcn.14012ad24
jmp 0x140105027
mov rax, qword [rsp + 0x58]
jmp 0x14010513b
mov rcx, r14
call qword [0x1402233e0]
mov rax, qword [r14]
jmp 0x140105263
lea rcx, [rsp + 0x30]
call qword [0x1402233e0]
lea rax, [rsp + 0x30]
mov rax, qword [rax]
jmp 0x140104fe2
mov rcx, rbx
call fcn.1400a3490
jmp 0x1401050e3
lea rbx, [rsp + 0x50]
mov rcx, rbx
call fcn.1400ab6c0
mov byte [rbx + 0x40], 0
jmp 0x14010507a
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.140184750
jmp 0x140105301
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.1400ffe80
jmp 0x140104f45
mov edx, 1
call qword [0x1402233e0]
jmp 0x1401052e7
lea rcx, [0x14020310b]
lea rdx, str....._third_partylibc_srcincludeoptional:801:_assertion_this__has_value___failed:_optional_operator_called_on_a_disengaged_value_n
call fcn.140164a90
mov ecx, eax
call fcn.14018e7a0
jmp 0x140104fa6
mov ecx, ebx
call fcn.14001d220
mov dword [rbp + 0x54], ebx
jmp 0x14010518b
lea rdx, [rsp + 0xa0]
mov rcx, rbx
call qword [0x1402233e0]
jmp 0x1401051ff
mov rcx, qword [0x1402439e8]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x140105263
mov rcx, qword [0x1402439e8]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x140104fe2