Function at 0x140023cd0
Capabilities:
Delete registry value
Get common file path
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x4e0
mov qword [rsp + 0x80], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rax, qword [0x14012e6d8]
xor rax, rsp
mov qword [rsp + 0x4d0], rax
mov r12d, r8d
mov dword [rsp + 0x70], r8d
mov dword [rsp + 0x68], edx
mov r13d, ecx
xor r14d, r14d
mov r15d, r14d
call fcn.140055b68
mov rcx, rax
mov eax, r14d
test rcx, rcx
setne al
test eax, eax
jne 0x140023d42
mov ecx, 0x80004005
call fcn.140001610
int3
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x34], r14d
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x48], r14d
call fcn.140055b68
mov rcx, rax
mov eax, r14d
test rcx, rcx
setne al
test eax, eax
jne 0x140023d80
mov ecx, 0x80004005
call fcn.140001610
int3
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x40], rbx
lea rdx, [0x1400e9c18]
or rbp, 0xffffffffffffffff
test rdx, 0xffffffffffff0000
jne 0x140023dc9
movzx edi, dx
mov ecx, edi
call fcn.140055990
test rax, rax
je 0x140023dea
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140006090
mov rbx, qword [rsp + 0x40]
jmp 0x140023dea
xor eax, eax
mov rcx, rbp
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rcx, [rsp + 0x40]
call fcn.1400062e0
mov rbx, qword [rsp + 0x40]
mov esi, 0x20219
mov eax, 0x20119
test r12d, r12d
cmovne esi, eax
xor eax, eax
mov rcx, rbp
lea rdi, str.SOFTWAREMicrosoftWindowsCurrentVersionAudio
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionAudio
lea rcx, [rsp + 0x50]
call fcn.1400062e0
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x20], rdx
mov r9d, esi
xor r8d, r8d
mov rsi, qword [rsp + 0x50]
mov rdx, rsi
mov ecx, 0x80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140024417
mov dword [rsp + 0x30], 4
mov dword [rsp + 0x34], 4
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, str.SecureAudioEngineProcess
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140023e99
mov r14d, 1
mov edi, r14d
jmp 0x140023ee6
mov dword [rsp + 0x30], 4
mov dword [rsp + 0x34], 4
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, str.DisableProtectedAudioDG
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, r14d
mov r14d, 1
test eax, eax
cmove edi, r14d
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x140024417
mov qword [rsp + 0x78], 0
mov dword [rsp + 0x6c], 0
mov r9d, 6
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov r12, rax
cmp rax, 0xffffffffffffffff
jne 0x140023f71
mov rcx, rbp
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
nop
lea rdx, [rbx - 0x18]
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x140023f4c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebp
add ebp, 0xffffffff
test ebp, ebp
jg 0x140023f6a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x140024453
mov dword [rsp + 0x90], SafeArrayDestroyData
mov dword [rsp + 0x58], 0
lea r8, [rsp + 0x90]
xor edx, edx
mov rcx, rax
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x140024360
nop
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x78]
mov r8d, 4
lea rdx, [rsp + 0x90]
mov rcx, r12
call fcn.140002510
test eax, eax
je 0x140024323
mov rdx, qword [rsp + 0x78]
test rdx, rdx
jne 0x140023fdb
xor ecx, ecx
jmp 0x140023fed
xor eax, eax
mov rcx, rbp
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov r8d, ecx
lea rcx, [rsp + 0x40]
call fcn.1400062e0
mov rbx, qword [rsp + 0x40]
movsxd rdi, dword [rbx - 0x10]
mov ecx, r14d
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140024023
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.140004670
mov rbx, qword [rsp + 0x40]
lea eax, [rdi + 1]
movsxd rdx, eax
mov rcx, rbx
call fcn.14009b820
test edi, edi
js 0x140024355
cmp edi, dword [rbx - 0xc]
jg 0x140024355
mov dword [rbx - 0x10], edi
mov word [rbx + rdi*2], 0
test r13b, 1
je 0x1400240a3
cmp dword [rbx - 0x10], 0
jl 0x14002407a
lea rdx, str.INTCAZAUDADDSERVICE
mov rcx, rbx
call fcn.14009b200
test rax, rax
je 0x14002407a
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
jne 0x1400241af
cmp dword [rbx - 0x10], 0
jl 0x1400240a3
lea rdx, str.RTHDMIAZAUDSERVICE
mov rcx, rbx
call fcn.14009b200
test rax, rax
je 0x1400240a3
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
jne 0x1400241af
test r13b, 4
je 0x1400240fb
cmp dword [rbx - 0x10], 0
jl 0x1400240d2
lea rdx, str.INTELSST
mov rcx, rbx
call fcn.14009b200
test rax, rax
je 0x1400240d2
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
jne 0x1400241af
cmp dword [rbx - 0x10], 0
jl 0x1400240fb
lea rdx, str.INTCADSP
mov rcx, rbx
call fcn.14009b200
test rax, rax
je 0x1400240fb
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
jne 0x1400241af
test r13b, 2
je 0x14002412a
cmp dword [rbx - 0x10], 0
jl 0x14002412a
lea rdx, str.RTKUSBAD
mov rcx, rbx
call fcn.14009b200
test rax, rax
je 0x14002412a
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
jne 0x1400241af
test r13b, 8
je 0x140024323
cmp dword [rbx - 0x10], 0
jl 0x140024159
lea rdx, str.INTCAUDIOBUS
mov rcx, rbx
call fcn.14009b200
test rax, rax
je 0x140024159
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
jne 0x1400241af
cmp dword [rbx - 0x10], 0
jl 0x14002417e
lea rdx, str.INTCOED
mov rcx, rbx
call fcn.14009b200
test rax, rax
je 0x14002417e
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
jne 0x1400241af
cmp dword [rbx - 0x10], 0
jl 0x140024323
lea rdx, str.INTCDMIC
mov rcx, rbx
call fcn.14009b200
test rax, rax
je 0x140024323
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
je 0x140024323
mov dword [rsp + 0x28], 0x20019
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov r8d, r14d
lea rdx, [rsp + 0x90]
mov rcx, r12
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov qword [rsp + 0x38], rax
cmp rax, 0xffffffffffffffff
je 0x140024323
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x34], 0x208
lea rcx, [rsp + 0x34]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x2c0]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, str.InfPath
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140024323
mov edx, 0x104
lea rcx, [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea r8, str.inf_
mov edx, 0x104
lea rcx, [rsp + 0xb0]
call fcn.14009ccf0
lea r8, [rsp + 0x2c0]
mov edx, 0x104
lea rcx, [rsp + 0xb0]
call fcn.14009ccf0
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x88], rdx
call fcn.140055b68
mov rcx, rax
xor eax, eax
test rcx, rcx
setne al
test eax, eax
je 0x14002434a
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0xb0]
lea rax, [rsp + 0xb0]
test rax, 0xffffffffffff0000
jne 0x1400242dc
movzx edi, cx
mov ecx, edi
call fcn.140055990
test rax, rax
je 0x140024306
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.140006090
jmp 0x140024306
xor eax, eax
mov rcx, rbp
lea rdi, [rsp + 0xb0]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x60]
call fcn.1400062e0
nop
lea rcx, [rsp + 0x60]
call fcn.14001b910
test eax, eax
je 0x140024318
add r15d, 1
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x58]
add eax, 1
mov dword [rsp + 0x58], eax
lea r8, [rsp + 0x90]
mov edx, eax
mov rcx, r12
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x140024360
jmp 0x140023fa0
mov ecx, 0x80004005
call fcn.140001610
int3
mov ecx, 0x80070057
call fcn.140001610
int3
mov rcx, r12
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
cmp dword [rsp + 0x68], 0
je 0x1400243d8
test r15d, r15d
jne 0x1400243d8
mov eax, 0xf013f
mov r9d, 0xf023f
cmp dword [rsp + 0x70], r15d
cmovne r9d, eax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, rsi
mov ecx, 0x80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400243d8
lea rdx, str.SecureAudioEngineProcess
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea rdx, str.DisableProtectedAudioDG
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rdx, [rbx - 0x18]
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400243f4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebp
add ebp, 0xffffffff
test ebp, ebp
jg 0x140024412
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r15d
jmp 0x140024453
lea rdx, [rbx - 0x18]
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140024433
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebp
add ebp, 0xffffffff
test ebp, ebp
jg 0x140024451
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
mov rcx, qword [rsp + 0x4d0]
xor rcx, rsp
call fcn.14009af10
lea r11, [rsp + 0x4e0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret