Function at 0x1400209e0
Capabilities:
Set 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 [0x140079010]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov r14d, r8d
mov r15d, edx
mov rbx, rcx
xor esi, esi
xor edx, edx
mov qword [rsp + 0x40], rsi
mov r8d, 0x208
lea rcx, [rsp + 0x50]
mov edi, r9d
call fcn.1400423d0
lea rcx, str.Capture
test r15d, r15d
lea rax, str.Render
mov edx, 0x104
cmovne rax, rcx
lea r9, str.SOFTWAREMicrosoftWindowsCurrentVersionMMDevicesAudio
lea rcx, str.FxProperties
mov qword [rsp + 0x30], rcx
lea r8, str._s_s_s_s
mov qword [rsp + 0x28], rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call fcn.14000a160
lea rax, [rsp + 0x40]
xor r8d, r8d
lea r9d, [rsi + 2]
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 0x140020d48
test edi, edi
jne 0x140020aac
mov eax, esi
jmp 0x140020abf
cmp dword [0x14007b540], esi
mov eax, 4
mov ecx, 0x64
cmovne eax, ecx
mov rcx, qword [rsp + 0x40]
lea rdx, str.e3c9c164_ad30_4aee_863e_01e4b0847f62_1
mov dword [rsp + 0x48], eax
mov r9d, 4
lea rax, [rsp + 0x48]
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
test r15d, r15d
je 0x140020d36
test r14d, r14d
je 0x140020bee
cmp dword [0x14007b548], esi
je 0x140020bee
mov rcx, qword [rsp + 0x40]
lea rdx, str.e3c9c164_ad30_4aee_863e_01e4b0847f62_300
test edi, 0xfffffffb
setne sil
mov r8d, esi
call fcn.140031d40
lea eax, [rdi - 1]
cmp eax, 1
jbe 0x140020b81
cmp edi, 3
jne 0x140020b5f
mov dword [rsp + 0x48], 0x1010000
lea rax, [rsp + 0x48]
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
lea rdx, str.e3c9c164_ad30_4aee_863e_01e4b0847f62_3
jmp 0x140020d22
cmp edi, 5
jne 0x140020b6e
mov dword [rsp + 0x48], 0x10001
jmp 0x140020b41
cmp edi, 6
jne 0x140020d36
mov dword [rsp + 0x48], 0x10100
jmp 0x140020b41
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
mov dword [rsp + 0x28], 4
lea rdx, str.e3c9c164_ad30_4aee_863e_01e4b0847f62_3
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x48], 0x10000
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x40]
lea rdx, str.e3c9c164_ad30_4aee_863e_01e4b0847f62_4
mov eax, 0x50
mov r8d, 0x32
cmp edi, 1
cmove r8d, eax
call fcn.140031d40
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, 1
jmp 0x140020d4a
cmp dword [0x14007b52c], esi
je 0x140020c86
mov rcx, qword [rsp + 0x40]
lea rdx, str.e3c9c164_ad30_4aee_863e_01e4b0847f62_2
mov eax, esi
mov dword [rsp + 0x28], 4
test edi, edi
mov r9d, 4
setne al
xor r8d, r8d
mov dword [rsp + 0x48], eax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
test r14d, r14d
je 0x140020d36
mov rcx, qword [rsp + 0x40]
lea rdx, str.e3c9c164_ad30_4aee_863e_01e4b0847f62_400
mov r8d, esi
cmp edi, 1
sete r8b
call fcn.140031d40
mov rcx, qword [rsp + 0x40]
lea rdx, str.e3c9c164_ad30_4aee_863e_01e4b0847f62_500
cmp edi, 2
sete sil
mov r8d, esi
call fcn.140031d40
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, 1
jmp 0x140020d4a
cmp edi, 1
jne 0x140020c9a
test r14d, r14d
je 0x140020c9a
cmp dword [0x14007b54c], esi
mov eax, edi
je 0x140020c9c
mov eax, esi
mov rcx, qword [rsp + 0x40]
lea rdx, str.e3c9c164_ad30_4aee_863e_01e4b0847f62_100
mov dword [rsp + 0x48], eax
mov r9d, 4
lea rax, [rsp + 0x48]
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x40]
lea rdx, str.e3c9c164_ad30_4aee_863e_01e4b0847f62_2
mov eax, esi
mov dword [rsp + 0x28], 4
test edi, edi
mov r9d, 4
setne al
xor r8d, r8d
mov dword [rsp + 0x48], eax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
lea rcx, [rsp + 0x48]
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rcx
lea rdx, str.e3c9c164_ad30_4aee_863e_01e4b0847f62_200
mov dword [rsp + 0x48], esi
mov rcx, qword [rsp + 0x40]
mov r9d, 4
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, 1
jmp 0x140020d4a
mov eax, esi
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.1400406e0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x270
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret