Function at 0x1400449c0
Capabilities:
Link many functions at runtime

Disassembly:
test rcx, rcx
je 0x140044dcf
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x50
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov rbx, rcx
cmp dword [rcx + 0x15c], 1
jne 0x140044dbb
cmp dword [0x1402eaa40], 0
jne 0x140044c13
lea rcx, str.SRCOM64.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x1402eaa48], rax
test rax, rax
je 0x140044c06
lea rdx, str.sffxInit
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402eaa50], rax
lea rdx, str.sffxFree
mov rcx, qword [0x1402eaa48]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402eaa58], rax
lea rdx, str.sffxGetPower
mov rcx, qword [0x1402eaa48]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402eaa60], rax
lea rdx, str.sffxSetPower
mov rcx, qword [0x1402eaa48]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402eaa68], rax
lea rdx, str.sffxGetUserControlValue
mov rcx, qword [0x1402eaa48]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402eaa70], rax
lea rdx, str.sffxSetUserControlValue
mov rcx, qword [0x1402eaa48]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402eaa78], rax
lea rdx, str.sffxResetPreset
mov rcx, qword [0x1402eaa48]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402eaa80], rax
lea rdx, str.sffxGetPreset
mov rcx, qword [0x1402eaa48]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402eaa88], rax
lea rdx, str.sffxSetPreset
mov rcx, qword [0x1402eaa48]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402eaa90], rax
lea rdx, str.sffxGetNumPresets
mov rcx, qword [0x1402eaa48]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402eaa98], rax
lea rdx, str.sffxGetDefaultPlaybackDevice
mov rcx, qword [0x1402eaa48]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402eaaa0], rax
lea rdx, str.sffxSetSelectedPlaybackDevice
mov rcx, qword [0x1402eaa48]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402eaaa8], rax
lea rdx, str.sffxGetNumPlaybackDevices
mov rcx, qword [0x1402eaa48]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402eaab0], rax
lea rdx, str.sffxGetPlaybackDeviceIndex
mov rcx, qword [0x1402eaa48]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402eaab8], rax
lea rdx, str.sffxSetJackState
mov rcx, qword [0x1402eaa48]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402eaac0], rax
lea rdx, str.sffxGetNumJackStates
mov rcx, qword [0x1402eaa48]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402eaac8], rax
lea rdx, str.sffxGetJackStateInfo
mov rcx, qword [0x1402eaa48]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402eaad0], rax
mov rax, qword [0x1402eaa50]
test rax, rax
je 0x140044c06
call rax
cmp eax, 0x80000001
je 0x140044c06
mov dword [0x1402eaa40], 1
jmp 0x140044c13
cmp dword [0x1402eaa40], 0
je 0x140044dbb
mov rcx, qword [rbx]
cmp dword [rcx - 8], 1
jle 0x140044c2a
mov edx, dword [rcx - 0x10]
mov rcx, rbx
call fcn.1400052d0
mov rcx, qword [rbx]
call qword [0x1402eaab8]
mov edi, eax
mov rcx, qword [rbx]
xor r14d, r14d
test rcx, rcx
jne 0x140044c42
mov eax, r14d
jmp 0x140044c53
movsxd rdx, dword [rcx - 0xc]
call fcn.1401ede08
test eax, eax
js 0x140044dde
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x140044dde
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rbx]
mov word [rax + rcx*2], r14w
mov ecx, edi
call qword [0x1402eaaa8]
call qword [0x1402eaac8]
mov ebp, eax
mov edi, r14d
test eax, eax
jle 0x140044dbb
nop dword [rax + rax]
mov dword [rsp + 0x70], r14d
lea rdx, [rsp + 0x70]
mov ecx, edi
call qword [0x1402eaad0]
test eax, eax
jne 0x140044db1
mov rcx, rbx
call fcn.14000bab0
test eax, eax
je 0x140044cc1
cmp dword [rsp + 0x70], 0
je 0x140044dd0
mov rcx, rbx
call fcn.14000b9d0
test eax, eax
jne 0x140044d7e
mov qword [rsp + 0x78], r14
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r9, [0x140281148]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x1402811c8]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x140044d21
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140044d85
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
jmp 0x140044d85
mov rcx, qword [rsp + 0x78]
mov rax, qword [rcx]
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x20], rdx
lea r9, [0x140281520]
mov r8d, 1
mov rdx, qword [rbx]
call qword [rax + 0x50]
test eax, eax
js 0x140044d0f
lea rcx, [rsp + 0x38]
cmp word [rsp + 0x38], 0x13
je 0x140044d5f
call qword [sym.imp.ole32.dll_PropVariantClear]
jmp 0x140044d0f
mov esi, dword [rsp + 0x40]
call qword [sym.imp.ole32.dll_PropVariantClear]
nop
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140044d7a
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
test esi, esi
je 0x140044d85
cmp dword [rsp + 0x70], 2
je 0x140044dd0
mov rcx, rbx
call fcn.14000be80
cmp eax, 2
jle 0x140044d9e
mov eax, dword [rsp + 0x70]
add eax, 0xfffffffc
cmp eax, 1
jbe 0x140044dd0
mov rcx, rbx
call fcn.14000be80
cmp eax, 2
jne 0x140044db1
cmp dword [rsp + 0x70], eax
je 0x140044dd0
inc edi
cmp edi, ebp
jl 0x140044c90
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
cmp edi, ebp
jge 0x140044dbb
mov ecx, edi
call qword [0x1402eaac0]
jmp 0x140044dbb
mov ecx, 0x80070057
call fcn.140005680
int3