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

Disassembly:
mov rax, rsp
push rbx
push rdi
sub rsp, 0xa8
mov qword [rax + 0x10], rbp
lea rbx, [rcx + 0x80]
mov qword [rax - 0x18], rsi
mov ebp, edx
mov qword [rax - 0x38], r15
mov r15, rcx
mov esi, r8d
lea rdi, [0x1800e6974]
test rbx, rbx
jne 0x1800a7c4e
mov r9, qword [rsp + 0xb8]
lea r8d, [rbx + 0x26]
lea rdx, str.C:BuildAgent2work78a794e88763017dUE4EngineSourceRuntimeCorePublicMiscScopeLock.h
mov qword [rsp + 0x20], rdi
lea rcx, str.SynchObject
call qword [sym.imp.FactoryGameEGS_Core.dll_public:_static_bool___cdecl_FDebug::CheckVerifyFailedImpl_char_const____ptr64__char_const____ptr64__int__void____ptr64__wchar_t_const____ptr64_]
test al, al
je 0x1800a7c4e
nop
int3
mov qword [rsp + 0x98], r12
mov rcx, rbx
mov qword [rsp + 0x90], r13
mov qword [rsp + 0x88], r14
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm7
movaps xmmword [rsp + 0x50], xmm8
movaps xmmword [rsp + 0x40], xmm9
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, r15
call fcn.18007ce00
mov rcx, r15
call fcn.18007d9b0
cmp dword [r15 + 0x78], 0
je 0x1800a7de4
lea rcx, [rsp + 0xd8]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [sym.imp.FactoryGameEGS_Core.dll_double_FGenericPlatformTime::SecondsPerCycle]
xorps xmm7, xmm7
cvtsi2sd xmm7, qword [rsp + 0xd8]
movsxd r13, dword [r15 + 0x78]
mov r14, qword [r15 + 0x70]
mov r12, r13
shl r12, 4
movsd xmm8, qword [0x1800f0e68]
xorps xmm0, xmm0
mulsd xmm7, qword [rax]
add r12, r14
movsd xmm9, qword [0x1800f0e50]
xorps xmm6, xmm6
cvtsi2sd xmm0, rsi
addsd xmm7, xmm8
mulsd xmm0, qword [0x1800f0df8]
addsd xmm7, xmm0
cmp dword [r15 + 0x78], r13d
je 0x1800a7d27
lea rcx, [rsp + 0xc0]
mov byte [rsp + 0xc0], 0
call fcn.1800e4f00
test al, al
je 0x1800a7d27
nop
int3
cmp r14, r12
je 0x1800a7de4
cmp qword [r14], 0
jne 0x1800a7d63
mov r9, qword [rsp + 0xb8]
lea rdx, str.C:BuildAgent2work78a794e88763017dUE4EngineSourceRuntimeCorePublicTemplatesSharedPointer.h
mov r8d, 0x473
mov qword [rsp + 0x20], rdi
lea rcx, str.IsValid__
call qword [sym.imp.FactoryGameEGS_Core.dll_public:_static_bool___cdecl_FDebug::CheckVerifyFailedImpl_char_const____ptr64__char_const____ptr64__int__void____ptr64__wchar_t_const____ptr64_]
test al, al
je 0x1800a7d63
nop
int3
mov rcx, qword [r14]
mov r8d, esi
mov edx, ebp
call sym.FactoryGameEGS_SignalProcessing.dll_public:_bool___cdecl_Audio::FPatchOutput::WaitUntilNumSamplesAvailable_int__unsigned_int____ptr64
movzx edi, al
cmp esi, 0xffffffff
je 0x1800a7dc1
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [sym.imp.FactoryGameEGS_Core.dll_double_FGenericPlatformTime::SecondsPerCycle]
xorps xmm0, xmm0
movaps xmm1, xmm7
cvtsi2sd xmm0, qword [rsp + 0x30]
mulsd xmm0, qword [rcx]
addsd xmm0, xmm8
subsd xmm1, xmm0
mulsd xmm1, xmm9
test dil, dil
jne 0x1800a7db6
comisd xmm1, xmm6
ja 0x1800a7dbc
jmp 0x1800a7de7
comisd xmm1, xmm6
jbe 0x1800a7dd2
cvttsd2si rsi, xmm1
test dil, dil
jne 0x1800a7dd4
lea rdi, [0x1800e6974]
jmp 0x1800a7d30
xor esi, esi
add r14, 0x10
lea rdi, [0x1800e6974]
jmp 0x1800a7d06
mov dil, 1
movaps xmm9, xmmword [rsp + 0x40]
movaps xmm8, xmmword [rsp + 0x50]
movaps xmm7, xmmword [rsp + 0x60]
movaps xmm6, xmmword [rsp + 0x70]
mov r15, qword [rsp + 0x80]
mov r14, qword [rsp + 0x88]
mov r13, qword [rsp + 0x90]
mov r12, qword [rsp + 0x98]
mov rsi, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0xc8]
test rbx, rbx
je 0x1800a7e3b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
movzx eax, dil
add rsp, 0xa8
pop rdi
pop rbx
ret