Function at 0x18008fb70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x50
movzx eax, byte [rcx + 0x11]
movzx r15d, dl
mov rbx, rcx
test al, al
je 0x18008fefe
movzx eax, byte [rcx + 0x10]
test al, al
je 0x18008fba9
call sym.FactoryGameEGS_SignalProcessing.dll_private:_void___cdecl_Audio::FSpectrumAnalyzer::ResetSettings_void____ptr64
movsxd rsi, dword [rbx + 0xa4]
lea r12, str.Array_index_out_of_bounds:__lld_from_an_array_of_size__lld
movsxd rdx, dword [rbx + 0x88]
xor edi, edi
cmp esi, edx
mov ecx, edi
mov eax, edi
setl cl
test esi, esi
setns al
test eax, ecx
jne 0x18008fc06
mov r9, qword [rsp + 0x68]
lea rcx, str._Index___0____Index___ArrayNum_
mov qword [rsp + 0x30], rdx
mov r8d, 0x303
mov qword [rsp + 0x28], rsi
lea rdx, str.C:BuildAgent2work78a794e88763017dUE4EngineSourceRuntimeCorePublicContainersArray.h
mov qword [rsp + 0x20], r12
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 0x18008fc06
nop
int3
mov r8d, dword [rbx + 0x3c]
shl rsi, 4
add rsi, qword [rbx + 0x80]
cmp r8d, dword [rbx + 0x38]
cmovl r8d, dword [rbx + 0x38]
xor eax, eax
lock cmpxchg dword [rbx + 0x74], edi
mov edx, eax
xor eax, eax
lock cmpxchg dword [rbx + 0x78], edi
mov ecx, eax
cmp eax, edx
jl 0x18008fc38
sub ecx, edx
jmp 0x18008fc3f
mov eax, dword [rbx + 0x70]
sub eax, edx
add ecx, eax
cmp ecx, r8d
jb 0x18008fefe
mov qword [rsp + 0x70], rbp
xor eax, eax
mov rbp, qword [rbx + 0x48]
movaps xmmword [rsp + 0x40], xmm6
lock cmpxchg dword [rbx + 0x58], edi
mov r10d, eax
test r15b, r15b
je 0x18008fc94
mov eax, dword [rbx + 0x38]
lea rcx, [rbx + 0x60]
cdq
xor r8d, r8d
sub eax, edx
mov edx, dword [rbx + 0x38]
sar eax, 1
sub r10d, eax
movsxd r15, r10d
call fcn.1800a1e70
mov r8d, dword [rbx + 0x38]
lea rcx, [rbx + 0x60]
mov rdx, rbp
call fcn.180052c00
jmp 0x18008fcdf
xor eax, eax
lock cmpxchg dword [rbx + 0x74], edi
mov edx, eax
xor eax, eax
lock cmpxchg dword [rbx + 0x78], edi
mov ecx, eax
cmp eax, edx
jl 0x18008fcae
sub ecx, edx
jmp 0x18008fcb5
mov eax, dword [rbx + 0x70]
sub eax, edx
add ecx, eax
mov r8d, dword [rbx + 0x38]
mov eax, r8d
cdq
sub eax, edx
mov rdx, rbp
sar eax, 1
sub eax, ecx
lea rcx, [rbx + 0x60]
lea r15d, [r10 + rax]
call fcn.18008f970
mov edx, dword [rbx + 0x3c]
lea rcx, [rbx + 0x60]
call fcn.180090ca0
movss xmm0, dword [rbx + 0x14]
lea rcx, [rbx + 0x18]
maxss xmm0, dword [0x1800ecad4]
xorps xmm6, xmm6
mov rdx, rbp
cvtsi2sd xmm6, r15
cvtps2pd xmm0, xmm0
divsd xmm6, xmm0
call sym.FactoryGameEGS_SignalProcessing.dll_public:_void___cdecl_Audio::FWindow::ApplyToBuffer_float____ptr64____ptr64
mov rcx, qword [rbx + 0xe0]
lea r14, [0x1800e6974]
test rcx, rcx
je 0x18008fda7
mov rax, qword [rcx]
call qword [rax + 8]
cmp dword [rbx + 0x50], eax
je 0x18008fd53
mov r9, qword [rsp + 0x68]
lea rdx, str.C:BuildAgent2work78a794e88763017dUE4EngineSourceRuntimeSignalProcessingPrivateSpectrumAnalyzer.cpp
mov r8d, 0x445
mov qword [rsp + 0x20], r14
lea rcx, str.AnalysisTimeDomainBuffer.Num____FFT__NumInputFloats__
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 0x18008fd53
nop
int3
mov rcx, qword [rbx + 0xe0]
mov rax, qword [rcx]
call qword [rax + 8]
add eax, 2
cmp dword [rsi + 8], eax
je 0x18008fd92
mov r9, qword [rsp + 0x68]
lea rdx, str.C:BuildAgent2work78a794e88763017dUE4EngineSourceRuntimeSignalProcessingPrivateSpectrumAnalyzer.cpp
mov r8d, 0x446
mov qword [rsp + 0x20], r14
lea rcx, str.FFTOutput.Num____FFT__NumOutputFloats__
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 0x18008fd92
nop
int3
mov rcx, qword [rbx + 0xe0]
mov rdx, rbp
mov r8, qword [rsi]
mov rax, qword [rcx]
call qword [rax + 0x20]
jmp 0x18008fdc0
movsxd rax, dword [rsi + 8]
test eax, eax
jle 0x18008fdc0
mov rcx, qword [rsi]
mov r8, rax
shl r8, 2
xor edx, edx
call fcn.1800e3436
movsxd rsi, dword [rbx + 0xa4]
mov eax, edi
movsxd r9, dword [rbx + 0x98]
mov rbp, qword [rsp + 0x70]
cmp esi, r9d
setl al
test esi, esi
setns dil
test edi, eax
jne 0x18008fe1c
mov rax, r9
lea rdx, str.C:BuildAgent2work78a794e88763017dUE4EngineSourceRuntimeCorePublicContainersArray.h
mov r9, qword [rsp + 0x68]
lea rcx, str._Index___0____Index___ArrayNum_
mov qword [rsp + 0x30], rax
mov r8d, 0x303
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], r12
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 0x18008fe1c
nop
int3
mov rax, qword [rbx + 0x90]
lea rdi, [rbx + 0xa8]
movsd qword [rax + rsi*8], xmm6
movaps xmm6, xmmword [rsp + 0x40]
test rdi, rdi
jne 0x18008fe61
mov r9, qword [rsp + 0x68]
lea r8d, [rdi + 0x26]
lea rdx, str.C:BuildAgent2work78a794e88763017dUE4EngineSourceRuntimeCorePublicMiscScopeLock.h
mov qword [rsp + 0x20], r14
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 0x18008fe61
nop
int3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [rbx + 0xa4]
inc eax
and eax, 0x80000003
jge 0x18008fe80
dec eax
or eax, 0xfffffffc
inc eax
mov dword [rbx + 0xa4], eax
mov ecx, dword [rbx + 0xa4]
mov eax, dword [rbx + 0xa0]
cmp ecx, eax
jne 0x18008feb2
mov eax, dword [rbx + 0xa4]
inc eax
and eax, 0x80000003
jge 0x18008feac
dec eax
or eax, 0xfffffffc
inc eax
mov dword [rbx + 0xa4], eax
mov ecx, dword [rbx + 0xa4]
mov eax, dword [rbx + 0xa0]
cmp ecx, eax
jne 0x18008feec
mov r9, qword [rsp + 0x68]
lea rdx, str.C:BuildAgent2work78a794e88763017dUE4EngineSourceRuntimeSignalProcessingPrivateSpectrumAnalyzer.cpp
mov r8d, 0x492
mov qword [rsp + 0x20], r14
lea rcx, str.InputIndex___OutputIndex
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 0x18008feec
nop
int3
test rdi, rdi
je 0x18008fefa
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
jmp 0x18008ff00
xor al, al
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret