Function at 0x140018b80
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x140067010]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov r15d, r8d
mov r14d, edx
mov rbx, rcx
xor edi, edi
xor edx, edx
mov qword [rsp + 0x30], rdi
mov r8d, 0x208
lea rcx, [rsp + 0x50]
mov rsi, r9
call fcn.140034ac0
lea rcx, str.Capture
mov qword [rsp + 0x28], rbx
test r14d, r14d
lea rax, str.Render
lea r9, str.SOFTWAREMicrosoftWindowsCurrentVersionMMDevicesAudio
mov edx, 0x104
cmovne rax, rcx
lea r8, str._s_s_sFxProperties
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call fcn.140009eb0
lea rax, [rsp + 0x30]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x50]
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x140018df3
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x3c]
mov dword [rsp + 0x38], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.e3c9c164_ad30_4aee_863e_01e4b0847f62_1
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x140018dda
cmp dword [rsp + 0x3c], edi
je 0x140018dda
lea edi, [rax + 1]
test r14d, r14d
je 0x140018dda
test r15d, r15d
je 0x140018dda
cmp dword [0x14006938c], eax
jne 0x140018dda
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rax, [rsp + 0x38]
cmp dword [0x140069388], r8d
mov qword [rsp + 0x20], rax
je 0x140018db4
mov edi, 4
lea rdx, str.e3c9c164_ad30_4aee_863e_01e4b0847f62_300
mov dword [rsp + 0x3c], edi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x140018dda
cmp dword [rsp + 0x38], 1
jne 0x140018dda
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x3c], edi
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.e3c9c164_ad30_4aee_863e_01e4b0847f62_3
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x140018dda
mov eax, dword [rsp + 0x38]
cmp eax, 0x10000
jne 0x140018d8a
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x3c], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.e3c9c164_ad30_4aee_863e_01e4b0847f62_4
mov edi, 1
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x140018dda
cmp dword [rsp + 0x38], 0x41
ja 0x140018dda
lea edi, [rax + 2]
jmp 0x140018dda
cmp eax, 0x1010000
jne 0x140018d98
mov edi, 3
jmp 0x140018dda
cmp eax, 0x10001
jne 0x140018da6
mov edi, 5
jmp 0x140018dda
cmp eax, 0x10100
jne 0x140018dda
mov edi, 6
jmp 0x140018dda
lea rdx, str.e3c9c164_ad30_4aee_863e_01e4b0847f62_100
mov dword [rsp + 0x3c], 4
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x140018dda
cmp dword [rsp + 0x38], 0
mov eax, 2
cmove edi, eax
test rsi, rsi
je 0x140018de1
mov dword [rsi], edi
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, 1
jmp 0x140018df5
mov eax, edi
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140032e60
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x270
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret