Function at 0x140002c90
Capabilities:
Print debug messages
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x3c0]
sub rsp, 0x4c0
mov rax, qword [0x14004e038]
xor rax, rsp
mov qword [rbp + 0x3b0], rax
mov rax, qword [rcx + 0x2b8]
mov rsi, rcx
mov qword [rbp - 0x68], rax
mov rax, qword [rcx + 0x288]
mov byte [rcx + 0x2c0], 0
xor ecx, ecx
mov qword [rbp - 0x60], rax
call qword [sym.imp.ole32.dll_CoInitialize]
lea r8, [rsi + 0x374]
mov rcx, rsi
lea rdx, str.samsfpaspk.dat
call fcn.1400030d0
test al, al
jne 0x140002d0f
xor edi, edi
mov dword [rsi + 0x374], edi
jmp 0x1400030a6
cmp dword [rsi + 0x374], 0
je 0x1400030a6
movzx eax, byte [rsi + 0x2c0]
test al, al
jne 0x1400030a0
xor edi, edi
nop dword [rax]
cmp byte [0x140050d6a], dil
jne 0x1400030a0
xor r8d, r8d
lea rdx, [rbp - 0x68]
mov r9d, 0xffffffff
lea ecx, [r8 + 2]
call qword [sym.imp.api_ms_win_core_synch_l1_2_1.dll_WaitForMultipleObjects]
xor edx, edx
mov qword [rsp + 0x48], rdi
lea rax, [rsp + 0x48]
mov qword [rsp + 0x40], rdi
lea r9, [0x14004eba8]
mov qword [rsp + 0x38], rdi
lea rcx, [0x14004eb98]
mov qword [rsp + 0x30], rdi
lea r8d, [rdx + 0x17]
mov dword [rsp + 0x6c], 0xffffffff
mov dword [rsp + 0x7c], 0x40860000
mov dword [rsp + 0x78], edi
mov dword [rsp + 0x70], edi
mov dword [rsp + 0x74], edi
mov dword [rsp + 0x68], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoCreateInstance]
test eax, eax
jne 0x140003081
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x40]
xor edx, edx
mov rax, qword [rcx]
lea r8d, [rdx + 1]
call qword [rax + 0x20]
test eax, eax
jne 0x140003071
mov rcx, qword [rsp + 0x40]
lea r8, [rsp + 0x38]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
jne 0x140003061
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x50]
xor eax, eax
lea rdx, [0x140042450]
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov rax, qword [rcx]
call qword [rax + 0x28]
test eax, eax
jne 0x140002ea6
lea r8, str.SOFTWAREMicrosoftWindowsCurrentVersionMMDevicesAudioRender
mov edx, 0x200
lea rcx, [rbp - 0x50]
call fcn.140017e40
lea r8, [0x1400436ec]
mov edx, 0x200
lea rcx, [rbp - 0x50]
call fcn.140017ea8
mov r8, qword [rsp + 0x58]
lea rcx, [rbp - 0x50]
mov edx, 0x200
call fcn.140017ea8
lea r8, str.FxProperties
mov edx, 0x200
lea rcx, [rbp - 0x50]
call fcn.140017ea8
lea rax, [rsp + 0x30]
mov r9d, 0x2001b
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x50]
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x140003091
mov rcx, qword [rsp + 0x38]
lea r8, [rbp - 0x80]
lea rdx, [0x140042480]
mov ebx, 1
mov rax, qword [rcx]
call qword [rax + 0x28]
cmp dword [rbp - 0x78], ebx
jne 0x140002f6e
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140002f6e
lea rax, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, str.3BA0CD54_830F_4551_A6EB_F3EAB68E3700_4
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rdx, str.3BA0CD54_830F_4551_A6EB_F3EAB68E3700_1
lea rax, [rsp + 0x74]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rdx, str.3BA0CD54_830F_4551_A6EB_F3EAB68E3700_6
lea rax, [rsp + 0x78]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
cmp dword [rsp + 0x70], edi
jne 0x140002f67
cmp dword [rsp + 0x74], edi
jne 0x140002f67
mov ebx, edi
jmp 0x140002f6e
cmp dword [rsp + 0x78], edi
cmovne ebx, edi
test dword [rsi + 0x378], 0x100
je 0x140002f92
lea rcx, str.External_Render_Device_r_n
test ebx, ebx
jne 0x140002f8c
lea rcx, str.Internal_Render_Device_r_n
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14000303c
lea rax, [rsp + 0x68]
mov dword [rsp + 0x68], 4
mov qword [rsp + 0x28], rax
lea rdx, str.2b24be42_a892_11dc_8314_0800200c9a66_7
lea rax, [rsp + 0x6c]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rdx, str.BE73ED5B_FC1C_4875_AC4F_833FFF79CDAA_7
lea rax, [rsp + 0x7c]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
cmp ebx, 1
jne 0x140003007
or dword [rsp + 0x6c], 4
jmp 0x14000300f
mov eax, dword [rsp + 0x7c]
mov dword [rsp + 0x6c], eax
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x6c]
mov dword [rsp + 0x28], 4
lea rdx, str.2b24be42_a892_11dc_8314_0800200c9a66_7
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_PropVariantClear]
lea rcx, [rbp - 0x80]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_PropVariantClear]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140003061
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140003071
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140003081
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140003091
mov rax, qword [rcx]
call qword [rax + 0x10]
movzx eax, byte [rsi + 0x2c0]
test al, al
je 0x140002d30
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoUninitialize]
mov rcx, qword [rbp + 0x3b0]
xor rcx, rsp
call fcn.14000c610
lea r11, [rsp + 0x4c0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret