Function at 0x1400779a0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
sete al
add rsp, 0x28
ret
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xd8
movapd xmmword [rsp + 0xc0], xmm6
mov rax, qword [0x140139028]
xor rax, rsp
mov qword [rsp + 0xb8], rax
lea rdi, [rcx + 8]
test rdx, rdx
jle 0x1400780b2
mov rsi, rdx
mov rbx, rcx
movapd xmm0, xmmword [0x140118af0]
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 [rcx + 0x10], al
je 0x140077b8d
movabs rax, 0x7fffffffffffffff
movabs r15, 0x8637bd05af7
cmp rsi, rax
je 0x140077b63
mov rax, qword [0x14013b540]
lea rcx, [0x14009ef00]
cmp rax, rcx
jne 0x140077f5a
lea r14, [rsp + 0x30]
mov qword [r14], 0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [r14]
cmp rax, r15
jge 0x140078088
imul rax, rax, 0xf4240
cqo
idiv qword [0x14014ab70]
mov r14, rax
lea rax, [r14 + rsi]
sar rax, 0x3f
btc rax, 0x3f
add r14, rsi
cmovo r14, rax
mov rbp, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea r15, [rsp + 0x30]
mov r13, qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
movabs r12, 0x20c49ba5e353f7cf
movabs rax, 0x7fffffffffffffff
cmp rsi, rax
je 0x140077b5c
mov rax, rsi
shr rax, 3
mul r12
mov rax, rdx
shr rax, 4
imul rcx, rax, 0x3e8
cmp rcx, rsi
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 rbp
test eax, eax
jne 0x140077e8a
mov sil, 1
cmp byte [rbx + 0x10], 0
je 0x140077b72
cmp byte [rsp + 0x90], 0
jne 0x140077c19
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.1400a19c0
mov eax, esi
movaps xmm6, xmmword [rsp + 0xc0]
add rsp, 0xd8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov edx, 0xffffffff
jmp 0x140077b0a
movabs r14, 0x7fffffffffffffff
jmp 0x140077aa8
mov qword [rsp + 0xa8], 0x9b
mov al, byte [0x14014a8bb]
test al, al
je 0x140077b20
jmp 0x140078112
lea rdx, str.TimedWait
lea r8, str....._base_synchronizationwaitable_event.cc
lea r14, [rsp + 0x30]
mov rcx, r14
mov r9d, 0x24
call fcn.1400595f0
cmp byte [rsp + 0x90], 0
jne 0x1400780e5
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 1
call fcn.1400787e0
mov qword [rsp + 0xa0], 0xa
mov al, byte [0x14014a82a]
test al, al
jne 0x140077dae
mov byte [rsp + 0x90], 1
jmp 0x140077a2c
movzx ecx, al
lea r8, [rsp + 0x30]
mov qword [r8], 0
lea rdx, [rsp + 0xb0]
mov r9d, 2
call fcn.14005ee10
jmp 0x140077c2f
mov qword [rsp + 0xb0], 0xa
mov al, byte [0x14014a82a]
test al, al
jne 0x140077bf5
movabs r14, 0xfffffffc00000000
call fcn.14009f890
mov r15d, dword [rax]
call fcn.14009f890
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 r12, qword [rsp + 0x50]
test r12, r12
je 0x140077d31
cmp qword [rsp + 0x58], 0
jne 0x140077d31
cmp byte [r12 + 0x19], 0
je 0x140077d31
mov rbx, qword [r12 + 0x28]
add rbx, 0x68
mov r13, rbx
and r13, r14
cmp r13, qword [0x14013b508]
jne 0x140077ca2
mov rcx, rbx
call fcn.140058e70
test rbx, rbx
je 0x1400780fc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140077f4c
mov qword [r12 + 0x20], 0
cmp byte [r12 + 0x3a], 0
jne 0x140077d0f
cmp byte [r12 + 0x38], 0
mov rax, qword [r12 + 0x28]
jne 0x140077f04
dec dword [rax + 0x130]
cmp byte [r12 + 0x19], 0
je 0x1400780ff
cmp byte [r12 + 0x18], 0
jne 0x140077d0f
cmp byte [r12 + 0x39], 0
mov rcx, qword [r12 + 0x28]
jne 0x140078150
dec dword [rcx + 0x134]
mov word [r12 + 0x38], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp r13, qword [0x14013b508]
jne 0x140077d31
mov rcx, rbx
call fcn.140058fd0
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.14009f890
mov dword [rax], r15d
cmp byte [rsp + 0x88], 0
je 0x140077d5c
mov rdi, qword [rsp + 0x80]
test rdi, rdi
jne 0x140077de0
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x140077d6e
mov rcx, qword [rsp + 0x68]
mov qword [rax], rcx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
and rax, r14
cmp rax, qword [0x14013b508]
je 0x14007807e
mov qword [rsp + 0x58], 0
mov rcx, qword [rsp + 0x50]
and r14, rcx
cmp r14, qword [0x14013b508]
jne 0x140077b2e
call fcn.14005ea50
jmp 0x140077b2e
movzx ecx, al
lea r9, [rsp + 0xb0]
mov qword [r9], r14
lea rax, str.ScopedBlockingCallWithBaseSyncPrimitives
lea r8, [rsp + 0xa8]
mov qword [r8], rax
lea rdx, [rsp + 0xa0]
call fcn.14000fcc0
jmp 0x140077be8
mov rax, qword [fcn.140081bb0]
lea rcx, [0x14009ef00]
cmp rax, rcx
jne 0x140078065
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
jge 0x14007816f
imul rax, rax, 0xf4240
cqo
idiv qword [0x14014ab70]
mov qword [rsp + 0xb0], rax
mov r12, qword [rsp + 0x78]
xor ecx, ecx
cmp rax, r12
setns cl
movabs r13, 0x7fffffffffffffff
add rcx, r13
mov r15, rax
sub r15, r12
cmovo r15, rcx
cmp r15, 0xf4240
jge 0x140077f73
mov rdi, qword [rsp + 0x80]
test rdi, rdi
je 0x140077d5c
lock dec dword [rdi]
jne 0x140077d5c
jmp 0x14007815a
mov rax, qword [0x14013b540]
lea rcx, [0x14009ef00]
cmp rax, rcx
jne 0x14007804f
mov qword [rsp + 0x30], 0
mov rcx, r15
call r13
mov rax, qword [rsp + 0x30]
movabs rcx, 0x8637bd05af7
cmp rax, rcx
jge 0x140078196
imul rax, rax, 0xf4240
cqo
idiv qword [0x14014ab70]
xor ecx, ecx
cmp r14, rax
setns cl
movabs rdx, 0x7fffffffffffffff
add rcx, rdx
mov rsi, r14
sub rsi, rax
cmovo rsi, rcx
jg 0x140077ac5
xor esi, esi
jmp 0x140077b20
mov rcx, qword [rax + 0x80]
mov rdx, qword [rax + 0x110]
dec rdx
mov qword [rax + 0x110], rdx
cmp rcx, qword [rax + 0x88]
je 0x140077f2e
cmp qword [rax + 0x120], rdx
jae 0x140077f3c
mov word [rax + 0xb8], 0
jmp 0x140077ce4
movzx ecx, word [rcx + 0x10]
mov word [rax + 0xb8], cx
jmp 0x140077ce4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x140077cbc
lea r14, [rsp + 0xb0]
mov rcx, r14
call qword [0x14012df40]
mov r14, qword [r14]
jmp 0x140077a94
mov ecx, 0x3938700
add rcx, qword [rdi + 0x1f0]
cmovo rcx, r13
cmp rcx, rax
jle 0x140078206
mov rax, qword [rdi + 0x1f0]
xor edx, edx
cmp r12, rax
setns dl
add rdx, r13
mov rcx, r12
sub rcx, rax
cmovo rcx, rdx
movabs rdx, 0x7fffffffffffffff
add rdx, rcx
add rdx, 2
cmp rdx, 2
jb 0x1400781ed
cvtsi2sd xmm0, rcx
divsd xmm0, qword [0x140126a40]
call fcn.1400d03d8
movsd xmm6, qword [0x140126a48]
ucomisd xmm6, xmm0
jb 0x1400781bd
maxsd xmm0, qword [0x140126a50]
cvttsd2si ebx, xmm0
movabs rax, 0x7fffffffffffffff
add rax, r15
add rax, 2
cmp rax, 2
jae 0x140078014
movsd xmm0, qword [0x140126a58]
jmp 0x140078024
xorps xmm0, xmm0
cvtsi2sd xmm0, r15
divsd xmm0, qword [0x140126a40]
call fcn.1400d0488
ucomisd xmm6, xmm0
jb 0x1400781d4
maxsd xmm0, qword [0x140126a50]
cvttsd2si r8d, xmm0
mov rcx, rdi
mov edx, ebx
call fcn.140003010
jmp 0x140077e6b
lea rsi, [rsp + 0x30]
mov rcx, rsi
call qword [0x14012df40]
mov rax, qword [rsi]
jmp 0x140077ed8
lea rbx, [rsp + 0xb0]
mov rcx, rbx
call qword [0x14012df40]
mov rax, qword [rbx]
jmp 0x140077e3a
call fcn.14005ea50
jmp 0x140077d86
mov rcx, qword [0x14014ab70]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
mov r14, rax
add r14, r8
jmp 0x140077a94
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.1400a19c0
mov rcx, rdi
movaps xmm6, xmmword [rsp + 0xc0]
add rsp, 0xd8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp 0x140054910
lea r15, [rsp + 0x50]
mov rcx, r15
call fcn.1400852c0
mov byte [r15 + 0x40], 0
jmp 0x140077bbc
int3
lea rcx, [0x14011bc04]
lea rdx, str....._third_partylibc_srcincludeoptional:801:_assertion_this__has_value___failed:_optional_operator_called_on_a_disengaged_value_n
call fcn.1400d43e0
movzx ecx, al
xor rdi, qword [0x140148dc0]
mov qword [rsp + 0x30], rdi
lea rax, str.WaitableEvent::Wait_Complete
lea r8, [rsp + 0xb0]
mov qword [r8], rax
mov qword [rsp + 0x20], r15
lea rdx, [rsp + 0xa8]
mov r9d, 3
call fcn.140060840
jmp 0x140077b20
call fcn.140100c40
jmp 0x140077d0f
mov rcx, rdi
call fcn.140033bc0
mov rcx, rdi
call fcn.14009f888
jmp 0x140077d5c
mov rcx, qword [0x14014ab70]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x140077e32
mov rcx, qword [0x14014ab70]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x140077ed8
xor eax, eax
ucomisd xmm0, qword [0x140126a50]
mov ebx, 0x7fffffff
cmovb ebx, eax
jmp 0x140077ff3
xor eax, eax
ucomisd xmm0, qword [0x140126a50]
mov r8d, 0x7fffffff
cmovb r8d, eax
jmp 0x140078040
xor ecx, ecx
cmp rax, r12
setg cl
lea rax, [0x140126a30]
movsd xmm0, qword [rax + rcx*8]
jmp 0x140077fc8
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, rax
call fcn.1400385e0
mov rbx, qword [rbx]
test rbx, rbx
je 0x140077f8c
lock dec dword [rbx]
jne 0x140077f8c
mov rcx, rbx
call fcn.140033bc0
mov rcx, rbx
call fcn.14009f888
jmp 0x140077f8c