Function at 0x140077ed0
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, 0xb8
mov rax, qword [0x14013b028]
xor rax, rsp
mov qword [rsp + 0xb0], rax
lea rsi, [rcx + 8]
test rdx, rdx
jle 0x140078348
mov rbx, rdx
mov rdi, rcx
movaps xmm0, xmmword [0x14011bb10]
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 [rcx + 0x10], al
je 0x14007812a
movabs r12, 0x7fffffffffffffff
movabs r13, 0x8637bd05af7
cmp rbx, r12
je 0x14007805e
mov rax, qword [0x14013d540]
lea rcx, [0x14009f3c0]
cmp rax, rcx
jne 0x140078072
lea r14, [rsp + 0x30]
mov qword [r14], 0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [r14]
cmp rax, r13
jge 0x140078373
imul rax, rax, 0xf4240
cqo
idiv qword [0x14014cb70]
mov r14, rax
lea rax, [r14 + rbx]
sar rax, 0x3f
btc rax, 0x3f
add r14, rbx
cmovo r14, rax
mov rbp, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
movabs r15, 0x20c49ba5e353f7cf
cmp rbx, r12
je 0x140078057
mov rax, rbx
shr rax, 3
mul r15
mov rax, rdx
shr rax, 4
imul rcx, rax, 0x3e8
cmp rcx, rbx
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 rbp
test eax, eax
jne 0x1400780a6
mov bl, 1
cmp byte [rdi + 0x10], 0
je 0x14007808b
cmp byte [rsp + 0x90], 0
jne 0x140078066
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400a1ff0
mov eax, ebx
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov edx, 0xffffffff
jmp 0x140078012
mov r14, r12
jmp 0x140077fca
lea rcx, [rsp + 0x50]
call fcn.14005a8d0
jmp 0x140078031
lea r14, [rsp + 0xa8]
mov rcx, r14
call qword [0x140163008]
mov r14, qword [r14]
jmp 0x140077fb6
mov qword [rsp + 0xa0], 0x9b
mov al, byte [0x14014c8bb]
test al, al
je 0x140078027
jmp 0x1400783c1
mov rax, qword [0x14013d540]
lea rcx, [0x14009f3c0]
cmp rax, rcx
jne 0x14007810d
mov qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x30]
cmp rax, r13
jge 0x140078404
imul rax, rax, 0xf4240
cqo
idiv qword [0x14014cb70]
xor ecx, ecx
cmp r14, rax
setns cl
add rcx, r12
mov rbx, r14
sub rbx, rax
cmovo rbx, rcx
jg 0x140077fdb
xor ebx, ebx
jmp 0x140078027
lea rbx, [rsp + 0x30]
mov rcx, rbx
call qword [0x140163008]
mov rax, qword [rbx]
jmp 0x1400780eb
mov rcx, r15
call fcn.14005a1e0
jmp 0x14007818c
lea rdx, str.TimedWait
lea r8, str....._base_synchronizationwaitable_event.cc
lea r14, [rsp + 0x30]
mov rcx, r14
mov r9d, 0x24
call fcn.14007ef40
cmp byte [rsp + 0x90], 0
jne 0x1400783aa
movabs r12, 0xfffffffc00000000
mov eax, dword [0x140149910]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov r15, qword [rax + 0x168]
mov rax, r15
and rax, r12
cmp rax, qword [0x14013d508]
je 0x140078120
mov qword [rsp + 0x50], r15
mov eax, dword [0x140149910]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea r13, [rax + 0x170]
mov r15, qword [r13]
and r12, r15
cmp r12, qword [0x14013d508]
je 0x14007839d
lea rax, [rsp + 0x50]
mov qword [rax + 8], r15
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 0x140078254
xor ecx, ecx
mov byte [rsp + 0x70], cl
xor ecx, ecx
mov byte [rsp + 0x78], cl
mov byte [rsp + 0x88], cl
mov edx, dword [0x140149910]
mov r8, qword gs:[0x58]
mov rdx, qword [r8 + rdx*8]
cmp byte [rdx + 0x180], cl
je 0x140078259
test rax, rax
jne 0x1400782b7
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140078231
cmp qword [rsp + 0x58], 0
jne 0x140078231
xor edx, edx
call fcn.14009d230
mov qword [rsp + 0x98], 0xa
mov al, byte [0x14014c82a]
test al, al
jne 0x140078288
mov byte [rsp + 0x90], 1
jmp 0x140077f4e
mov cl, byte [rax + 0x20]
jmp 0x1400781e3
mov eax, dword [0x14015a48c]
mov ecx, dword [0x140149910]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400782f5
cmp byte [0x14015a488], 0
jne 0x140078218
jmp 0x14007833e
movzx ecx, al
lea r9, [rsp + 0xa8]
mov qword [r9], r14
lea rax, str.ScopedBlockingCallWithBaseSyncPrimitives
lea r8, [rsp + 0xa0]
mov qword [r8], rax
lea rdx, [rsp + 0x98]
call fcn.14000ef50
jmp 0x140078247
cmp byte [rax + 0x38], 0
je 0x140078218
mov r15, qword [rax + 0x30]
mov qword [rax + 0x30], 0
test r15, r15
je 0x140078218
lock dec dword [r15]
jne 0x140078218
mov rcx, r15
call fcn.1400022d0
mov rcx, r15
call fcn.14009fde8
jmp 0x140078218
lea rcx, [0x14015a48c]
call fcn.14009fe10
cmp dword [0x14015a48c], 0xffffffff
jne 0x14007827a
mov rcx, qword [0x14014cad8]
test rcx, rcx
je 0x140078326
lea rdx, str.enable_background_thread_pool
call fcn.14005e540
mov byte [0x14015a488], 1
lea rcx, [0x14015a48c]
call fcn.14009ff10
jmp 0x14007827a
mov rax, qword [rsp + 0x58]
jmp 0x14007820f
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400a1ff0
mov rcx, rsi
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp 0x140056360
mov rcx, qword [0x14014cb70]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
mov r14, rax
add r14, r8
jmp 0x140077fb6
mov rcx, r15
call fcn.14005a1e0
jmp 0x1400781bf
lea r15, [rsp + 0x50]
mov rcx, r15
call fcn.14005a8d0
mov byte [r15 + 0x40], 0
jmp 0x140078159
movzx ecx, al
xor rsi, qword [0x14014adc0]
mov qword [rsp + 0x30], rsi
lea rax, str.WaitableEvent::Wait_Complete
lea r8, [rsp + 0xa8]
mov qword [r8], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0xa0]
mov r9d, 3
call fcn.140065f20
jmp 0x140078027
mov rcx, qword [0x14014cb70]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x1400780eb