Function at 0x140018e20
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x160]
sub rsp, 0x260
mov rax, qword [0x140067010]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov r14d, r8d
mov r15d, edx
mov rbx, rcx
xor esi, esi
xor edx, edx
mov qword [rsp + 0x30], rsi
mov r8d, 0x208
lea rcx, [rsp + 0x40]
mov edi, r9d
call fcn.140034ac0
lea rcx, str.Capture
mov qword [rsp + 0x28], rbx
test r15d, r15d
lea rax, str.Render
lea r9, str.SOFTWAREMicrosoftWindowsCurrentVersionMMDevicesAudio
mov edx, 0x104
cmovne rax, rcx
lea r8, str._s_s_sFxProperties
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call fcn.140009eb0
lea rax, [rsp + 0x30]
xor r8d, r8d
lea r9d, [rsi + 2]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x40]
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x140019146
test r15d, r15d
je 0x1400190eb
test r14d, r14d
je 0x140019005
cmp dword [0x140069388], esi
je 0x140019005
test edi, edi
jne 0x140018eff
mov r8d, esi
jmp 0x140018f14
cmp dword [0x140069380], esi
mov ecx, 0x64
mov r8d, 4
cmovne r8d, ecx
mov rcx, qword [rsp + 0x30]
lea rdx, str.e3c9c164_ad30_4aee_863e_01e4b0847f62_1
call fcn.140027840
mov rcx, qword [rsp + 0x30]
lea rdx, str.e3c9c164_ad30_4aee_863e_01e4b0847f62_300
test edi, 0xfffffffb
setne sil
mov r8d, esi
call fcn.140027840
lea eax, [rdi - 1]
cmp eax, 1
jbe 0x140018f98
cmp edi, 3
jne 0x140018f76
mov dword [rsp + 0x38], 0x1010000
lea rax, [rsp + 0x38]
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
lea rdx, str.e3c9c164_ad30_4aee_863e_01e4b0847f62_3
jmp 0x140019120
cmp edi, 5
jne 0x140018f85
mov dword [rsp + 0x38], 0x10001
jmp 0x140018f58
cmp edi, 6
jne 0x140019134
mov dword [rsp + 0x38], 0x10100
jmp 0x140018f58
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
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 + 0x38], 0x10000
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
lea rdx, str.e3c9c164_ad30_4aee_863e_01e4b0847f62_4
mov eax, 0x50
mov r8d, 0x32
cmp edi, 1
cmove r8d, eax
call fcn.140027840
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, 1
jmp 0x140019148
test edi, edi
jne 0x14001900d
mov eax, esi
jmp 0x140019020
cmp dword [0x140069380], esi
mov eax, 4
mov ecx, 0x64
cmovne eax, ecx
mov rcx, qword [rsp + 0x30]
lea rdx, str.e3c9c164_ad30_4aee_863e_01e4b0847f62_1
mov dword [rsp + 0x38], eax
mov r9d, 4
lea rax, [rsp + 0x38]
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]
cmp edi, 1
jne 0x140019065
test r14d, r14d
je 0x140019065
cmp dword [0x14006938c], esi
mov eax, edi
je 0x140019067
mov eax, esi
mov rcx, qword [rsp + 0x30]
lea rdx, str.e3c9c164_ad30_4aee_863e_01e4b0847f62_100
mov dword [rsp + 0x38], eax
mov r9d, 4
lea rax, [rsp + 0x38]
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 + 0x30]
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 + 0x38], eax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
lea rdx, str.e3c9c164_ad30_4aee_863e_01e4b0847f62_200
jmp 0x14001911c
test edi, edi
je 0x140019103
cmp dword [0x140069380], 0
mov esi, 4
mov ecx, 0x64
cmovne esi, ecx
lea rcx, [rsp + 0x38]
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rcx
lea rdx, str.e3c9c164_ad30_4aee_863e_01e4b0847f62_1
mov dword [rsp + 0x38], esi
mov rcx, qword [rsp + 0x30]
mov r9d, 4
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, 1
jmp 0x140019148
mov eax, esi
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.140032e60
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x260
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret