Function at 0x140044610
Capabilities:
Link many functions at runtime

Disassembly:
test rcx, rcx
je 0x140044a1f
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 0x140044a0b
cmp dword [0x1402eaa40], 0
jne 0x140044863
lea rcx, str.SRCOM64.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x1402eaa48], rax
test rax, rax
je 0x140044856
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 0x140044856
call rax
cmp eax, 0x80000001
je 0x140044856
mov dword [0x1402eaa40], 1
jmp 0x140044863
cmp dword [0x1402eaa40], 0
je 0x140044a0b
mov rcx, qword [rbx]
cmp dword [rcx - 8], 1
jle 0x14004487a
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 0x140044892
mov eax, r14d
jmp 0x1400448a3
movsxd rdx, dword [rcx - 0xc]
call fcn.1401edae8
test eax, eax
js 0x140044a2e
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x140044a2e
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 0x140044a0b
nop dword [rax + rax]
mov dword [rsp + 0x70], r14d
lea rdx, [rsp + 0x70]
mov ecx, edi
call qword [0x1402eaad0]
test eax, eax
jne 0x140044a01
mov rcx, rbx
call fcn.14000b8a0
test eax, eax
je 0x140044911
cmp dword [rsp + 0x70], 0
je 0x140044a20
mov rcx, rbx
call fcn.14000b7c0
test eax, eax
jne 0x1400449ce
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, [0x140280f88]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x140280ff0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x140044971
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x1400449d5
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
jmp 0x1400449d5
mov rcx, qword [rsp + 0x78]
mov rax, qword [rcx]
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x20], rdx
lea r9, [0x140281350]
mov r8d, 1
mov rdx, qword [rbx]
call qword [rax + 0x50]
test eax, eax
js 0x14004495f
lea rcx, [rsp + 0x38]
cmp word [rsp + 0x38], 0x13
je 0x1400449af
call qword [sym.imp.ole32.dll_PropVariantClear]
jmp 0x14004495f
mov esi, dword [rsp + 0x40]
call qword [sym.imp.ole32.dll_PropVariantClear]
nop
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x1400449ca
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
test esi, esi
je 0x1400449d5
cmp dword [rsp + 0x70], 2
je 0x140044a20
mov rcx, rbx
call fcn.14000bc70
cmp eax, 2
jle 0x1400449ee
mov eax, dword [rsp + 0x70]
add eax, 0xfffffffc
cmp eax, 1
jbe 0x140044a20
mov rcx, rbx
call fcn.14000bc70
cmp eax, 2
jne 0x140044a01
cmp dword [rsp + 0x70], eax
je 0x140044a20
inc edi
cmp edi, ebp
jl 0x1400448e0
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 0x140044a0b
mov ecx, edi
call qword [0x1402eaac0]
jmp 0x140044a0b
mov ecx, 0x80070057
call fcn.140005680
int3