Function at 0x140102390
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x90
mov qword [rax - 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rax, qword [0x14044b080]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbp, rcx
mov dil, 1
call fcn.140039c50
mov rcx, rax
test rax, rax
je 0x1401026f0
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x14004487d.0]
add rax, 0x18
mov qword [rsp + 0x50], rax
lea r8, [rsp + 0x50]
lea rdx, [0x14035ad90]
lea rcx, str.AMDAfdAudioService
call fcn.140134250
mov esi, 0xffffffff
cmp eax, 1
jne 0x140102696
call fcn.140039c50
mov rcx, rax
test rax, rax
je 0x1401026e5
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x14004487d.0]
add rax, 0x18
mov qword [rsp + 0x58], rax
mov r9, qword [rsp + 0x50]
lea r8, str.SYSTEMCurrentControlSetControlClass
lea rdx, str._s_sGlobalSettings
lea rcx, [rsp + 0x58]
call fcn.14005e6c0
mov rbx, qword [rsp + 0x58]
mov qword [rsp + 0x30], rbx
lea rax, str.GetAMDDriverKey_strRegPath__s
mov qword [rsp + 0x28], rax
xor r14d, r14d
mov qword [rsp + 0x20], r14
lea r9d, [rsi + 4]
lea r8, [0x1404675c0]
mov edx, 0x393
lea rcx, str.d:jenkinsworkspacemainrel4_dellconsumermainrel4_dellconsumerplatform_vista_sharedcoinstallercapabilities.cpp
call fcn.140039f30
mov rdx, rbx
mov rcx, rbp
call fcn.140102700
test al, al
je 0x1401024af
mov rdx, rbx
mov rcx, rbp
call fcn.1401029b0
test al, al
jne 0x1401024b2
xor dil, dil
lea r8, str.DefaultCustomVolume
mov rdx, rbx
mov rcx, 0xffffffff80000002
call fcn.140058280
test eax, eax
jne 0x1401024e6
lea r8, str.MaximumCustomVolume
mov rdx, rbx
mov rcx, 0xffffffff80000002
call fcn.140058280
test eax, eax
je 0x1401024e8
mov al, 1
test dil, dil
je 0x140102675
test al, al
je 0x140102675
mov dword [rsp + 0x74], 1
mov eax, 0xa0ff
bswap eax
mov dword [rsp + 0x78], eax
mov eax, 0x100
bswap eax
mov dword [rsp + 0x7c], eax
mov edi, 0x80004005
mov dword [rsp + 0x70], r14d
mov qword [rsp + 0x68], r14
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1401025a1
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x74]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
lea rdx, str.CustomVolumeNodeEnable
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov edi, eax
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
add rbp, 0xb0
test edi, edi
sete cl
mov dword [rsp + 0x20], 1
lea r9, str.Write_AMD_custom_mic_gain_registry:_CustomVolumeNodeEnable___d
movzx r8d, cl
mov edx, 1
mov rcx, rbp
call fcn.14011e570
test edi, edi
jne 0x1401025fd
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x78]
lea r8, str.MinimumCustomVolume
mov rdx, rbx
mov rcx, 0xffffffff80000002
call fcn.1400573f0
test eax, eax
je 0x1401025fd
mov dil, 1
jmp 0x140102600
xor dil, dil
mov dword [rsp + 0x20], 0xffffffa0
lea r9, str.Write_AMD_custom_mic_gain_registry:_MinimumCustomVolume___d
movzx r8d, dil
mov edx, 1
mov rcx, rbp
call fcn.14011e570
test dil, dil
je 0x140102651
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x7c]
lea r8, str.StepCustomVolume
mov rdx, rbx
mov rcx, 0xffffffff80000002
call fcn.1400573f0
test eax, eax
je 0x140102651
mov dil, 1
jmp 0x140102654
xor dil, dil
mov dword [rsp + 0x20], 1
lea r9, str.Write_AMD_custom_mic_gain_registry:_StepCustomVolume___d
movzx r8d, dil
mov edx, 1
mov rcx, rbp
call fcn.14011e570
nop
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140102696
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14004487d.0]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], esi
sub esi, 1
jg 0x1401026b9
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [case.0x14004487d.0]
movzx eax, dil
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140202880
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
mov ecx, 0x80004005
call fcn.140039950
nop
mov ecx, 0x80004005
call fcn.140039950
int3