Function at 0x1400157a0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push r14
push r15
lea rbp, [rsp - 0x3b0]
sub rsp, 0x4b0
mov rax, qword [0x14007d038]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
xor r15d, r15d
mov dword [rbp - 0x74], 4
xor eax, eax
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x40], r15
mov r14, rdx
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x48], r15
mov dword [rbp - 0x78], r15d
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rax
mov qword [rsp + 0x38], r15
mov dword [rbp - 0x6c], r15d
mov dword [rbp - 0x70], r15d
test rdx, rdx
je 0x140015b34
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
lea rax, [rsp + 0x50]
xor edx, edx
lea r9, [0x14007dcd8]
mov qword [rsp + 0x20], rax
lea r8d, [r15 + 0x17]
lea rcx, [0x14007dcc8]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x140015b21
mov rcx, qword [rsp + 0x50]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x4e0], rsi
lea r8d, [r15 + 0xf]
xor edx, edx
mov esi, r15d
mov rax, qword [rcx]
call qword [rax + 0x18]
test eax, eax
jne 0x140015b19
mov rcx, qword [rsp + 0x48]
lea rdx, [rbp - 0x78]
mov rax, qword [rcx]
call qword [rax + 0x18]
test eax, eax
jne 0x140015b0e
mov eax, dword [rbp - 0x78]
test eax, eax
je 0x140015b0e
mov qword [rsp + 0x4e8], rdi
mov edi, r15d
mov qword [rsp + 0x4d0], rbx
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [rsp + 0x48]
lea r8, [rsp + 0x40]
mov edx, edi
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
jne 0x140015adf
mov rcx, qword [rsp + 0x40]
lea r8, [rsp + 0x30]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
jne 0x140015acf
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x58]
xor eax, eax
lea rdx, [0x140068128]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov rax, qword [rcx]
call qword [rax + 0x28]
test eax, eax
jne 0x140015ab9
cmp qword [rsp + 0x60], r15
je 0x140015ab9
lea r8, str.SOFTWAREMicrosoftWindowsCurrentVersionMMDevicesAudioRender
mov edx, 0x200
lea rcx, [rbp - 0x60]
call fcn.14003c608
lea r8, [0x14006a5f0]
mov edx, 0x200
lea rcx, [rbp - 0x60]
call fcn.14003c584
mov r8, qword [rsp + 0x60]
lea rcx, [rbp - 0x60]
mov edx, 0x200
call fcn.14003c584
lea r8, str.FxProperties
mov edx, 0x200
lea rcx, [rbp - 0x60]
call fcn.14003c584
lea rax, [rsp + 0x38]
mov r9d, 0x2001b
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x60]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x30]
test eax, eax
je 0x1400159d2
test rcx, rcx
je 0x1400159b9
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140015af3
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x140015af3
mov rax, qword [rcx]
lea r8, [rsp + 0x58]
lea rdx, [0x140068110]
call qword [rax + 0x28]
cmp dword [rsp + 0x60], 1
jne 0x140015aa4
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140015ab9
lea rax, [rbp - 0x74]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, str.3BA0CD54_830F_4551_A6EB_F3EAB68E3700_4
lea rax, [rbp - 0x70]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
lea rdx, str.3BA0CD54_830F_4551_A6EB_F3EAB68E3700_6
mov ebx, eax
xor r9d, r9d
lea rax, [rbp - 0x74]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x6c]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test ebx, ebx
jne 0x140015aa4
test eax, eax
jne 0x140015aa4
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x70]
xor eax, eax
lea rdx, [0x1400680f8]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rax
mov rax, qword [rcx]
call qword [rax + 0x28]
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140015aa4
lea rdx, str.SUBSYS_
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
test rax, rax
je 0x140015aa4
movups xmm0, xmmword [rax + 0xe]
lea esi, [rbx + 1]
movaps xmmword [r14], xmm0
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140015ab9
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x38], r15
lea rcx, [rsp + 0x58]
call qword [sym.imp.ole32.dll_PropVariantClear]
lea rcx, [rsp + 0x70]
call qword [sym.imp.ole32.dll_PropVariantClear]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140015adf
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140015aef
mov rax, qword [rcx]
call qword [rax + 0x10]
test esi, esi
jne 0x140015afe
inc edi
cmp edi, dword [rbp - 0x78]
jb 0x1400158c0
mov rbx, qword [rsp + 0x4d0]
mov rdi, qword [rsp + 0x4e8]
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rsi, qword [rsp + 0x4e0]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.140024cf0
add rsp, 0x4b0
pop r15
pop r14
pop rbp
ret