Function at 0x14000f1c0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
xor r12d, r12d
mov qword [rax - 0x58], r12
mov qword [rax + 0x20], r12
mov esi, r12d
mov qword [rax - 0x40], r12
mov ebx, r12d
mov qword [rax - 0x50], rbx
lea r13d, [r12 + 0x28]
mov qword [rax - 0x48], r12
mov r14d, r12d
mov dword [rax + 0x10], r12d
lea ecx, [r12 + 0x10]
call fcn.14001ab30
mov r15, rax
mov qword [rsp + 0x60], rax
mov edi, r12d
test rax, rax
je 0x14000f469
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9d, [r12 + 9]
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionMMDevicesAudioRender
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000f469
mov r8, 0xffffffffffffffff
nop
test rbx, rbx
jne 0x14000f283
lea ecx, [r13 + 1]
mov eax, 2
mul rcx
cmovo rax, r8
mov rcx, rax
call fcn.14001ab30
mov rbx, rax
mov qword [rsp + 0x58], rax
mov edi, r12d
test rax, rax
je 0x14000f469
jmp 0x14000f28b
inc r14d
mov dword [rsp + 0x44], r14d
test rsi, rsi
je 0x14000f2a1
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, r12
mov qword [rsp + 0x68], r12
mov rcx, qword [rsp + 0xc8]
test rcx, rcx
je 0x14000f2bc
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0xc8], r12
mov dword [rsp + 0xc0], r13d
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0xc0]
mov r8, rbx
mov edx, r14d
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0xea
jne 0x14000f322
mov edx, 2
mov rcx, rbx
call fcn.140006580
mov rbx, r12
mov qword [rsp + 0x58], rbx
mov r13d, dword [rsp + 0xc0]
inc r13d
mov dword [rsp + 0x48], r13d
jmp 0x14000f247
mov edi, r12d
cmp eax, 0x103
je 0x14000f469
test eax, eax
jne 0x14000f469
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov r8, 0xffffffffffffffff
jne 0x14000f250
mov dword [rsp + 0xb0], 4
mov dword [rsp + 0xb8], 0x10
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0xb0]
xor r8d, r8d
lea rdx, str.DeviceState
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov r8, 0xffffffffffffffff
jne 0x14000f250
cmp dword [rsp + 0xb0], 4
jne 0x14000f250
mov dword [rsp + 0x40], r12d
mov eax, dword [r15]
and eax, 0xf
sub eax, 1
je 0x14000f3f2
cmp eax, 7
je 0x14000f3f2
mov dword [rsp + 0x40], 1
jmp 0x14000f250
mov dword [rsp + 0xb0], 3
mov dword [rsp + 0xb8], 0x10
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0xb0]
xor r8d, r8d
lea rdx, str.Role:0
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov r8, 0xffffffffffffffff
jne 0x14000f250
cmp dword [rsp + 0xb0], 3
jne 0x14000f250
cmp dword [rsp + 0xb8], 0x10
jne 0x14000f250
lea edi, [r8 + 2]
test rbx, rbx
je 0x14000f47b
mov edx, 2
mov rcx, rbx
call fcn.140006580
test r15, r15
je 0x14000f48d
mov edx, 1
mov rcx, r15
call fcn.140006580
test rsi, rsi
je 0x14000f49b
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0xc8]
test rcx, rcx
je 0x14000f4b6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0xc8], r12
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14000f4c6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret