Function at 0x140008c70
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 [0x14006c038]
xor rax, rsp
mov qword [rbp + 0x3b0], rax
mov rax, qword [rcx + 0x588]
mov rsi, rcx
mov qword [rbp - 0x68], rax
mov rax, qword [rcx + 0x560]
mov byte [rcx + 0x438], 0
xor ecx, ecx
mov qword [rbp - 0x60], rax
call qword [sym.imp.ole32.dll_CoInitialize]
lea r8, [rsi + 0x638]
mov rcx, rsi
lea rdx, str.samsfpaspk.dat
call fcn.140011990
test al, al
jne 0x140008cef
xor edi, edi
mov dword [rsi + 0x638], edi
jmp 0x14000909d
cmp dword [rsi + 0x638], 0
je 0x14000909d
movzx eax, byte [rsi + 0x438]
test al, al
jne 0x140009097
xor edi, edi
nop dword [rax]
cmp byte [0x14006ef2a], dil
jne 0x140009097
xor r8d, r8d
lea rdx, [rbp - 0x68]
mov r9d, 0xffffffff
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
xor edx, edx
mov qword [rsp + 0x48], rdi
lea rax, [rsp + 0x48]
mov qword [rsp + 0x40], rdi
lea r9, [0x14006ccd8]
mov qword [rsp + 0x38], rdi
lea rcx, [0x14006ccc8]
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.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x140009078
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 0x140009068
mov rcx, qword [rsp + 0x40]
lea r8, [rsp + 0x38]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
jne 0x140009058
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x50]
xor eax, eax
lea rdx, [0x14005b0b8]
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 0x140008ea0
lea r8, str.SOFTWAREMicrosoftWindowsCurrentVersionMMDevicesAudioRender
mov edx, 0x200
lea rcx, [rbp - 0x50]
call fcn.140031158
lea r8, [0x14005d4c0]
mov edx, 0x200
lea rcx, [rbp - 0x50]
call fcn.1400310d4
mov r8, qword [rsp + 0x58]
lea rcx, [rbp - 0x50]
mov edx, 0x200
call fcn.1400310d4
lea r8, str.FxProperties
mov edx, 0x200
lea rcx, [rbp - 0x50]
call fcn.1400310d4
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.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140008ea0
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140008e96
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x40]
jmp 0x14000907d
mov rcx, qword [rsp + 0x38]
lea r8, [rbp - 0x80]
lea rdx, [0x14005b0a0]
mov ebx, 1
mov rax, qword [rcx]
call qword [rax + 0x28]
cmp dword [rbp - 0x78], ebx
jne 0x140008f68
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140008f68
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.ADVAPI32.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.ADVAPI32.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.ADVAPI32.dll_RegQueryValueExW]
cmp dword [rsp + 0x70], edi
jne 0x140008f61
cmp dword [rsp + 0x74], edi
jne 0x140008f61
mov ebx, edi
jmp 0x140008f68
cmp dword [rsp + 0x78], edi
cmovne ebx, edi
test byte [rsi + 0x63c], 0x80
je 0x140008f89
lea rcx, str.External_Render_Device_r_n
test ebx, ebx
jne 0x140008f83
lea rcx, str.Internal_Render_Device_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140009033
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.ADVAPI32.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.ADVAPI32.dll_RegQueryValueExW]
cmp ebx, 1
jne 0x140008ffe
or dword [rsp + 0x6c], 4
jmp 0x140009006
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.ADVAPI32.dll_RegSetValueExW]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ole32.dll_PropVariantClear]
lea rcx, [rbp - 0x80]
call qword [sym.imp.ole32.dll_PropVariantClear]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140009058
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140009068
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140009078
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140009088
mov rax, qword [rcx]
call qword [rax + 0x10]
movzx eax, byte [rsi + 0x438]
test al, al
je 0x140008d10
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rcx, qword [rbp + 0x3b0]
xor rcx, rsp
call fcn.140019840
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