Function at 0x14001df80
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 [0x1401216d8]
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.14004b378
mov rcx, rax
mov eax, r14d
test rcx, rcx
setne al
test eax, eax
jne 0x14001dff2
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.14004b378
mov rcx, rax
mov eax, r14d
test rcx, rcx
setne al
test eax, eax
jne 0x14001e030
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, [0x1400dec08]
or rbp, 0xffffffffffffffff
test rdx, 0xffffffffffff0000
jne 0x14001e079
movzx edi, dx
mov ecx, edi
call fcn.14004b1a0
test rax, rax
je 0x14001e09a
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140005c00
mov rbx, qword [rsp + 0x40]
jmp 0x14001e09a
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.140005e50
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.140005e50
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 0x14001e6c7
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 0x14001e149
mov r14d, 1
mov edi, r14d
jmp 0x14001e196
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 0x14001e6c7
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 0x14001e221
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 0x14001e1fc
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 0x14001e21a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x14001e703
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 0x14001e610
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.140002500
test eax, eax
je 0x14001e5d3
mov rdx, qword [rsp + 0x78]
test rdx, rdx
jne 0x14001e28b
xor ecx, ecx
jmp 0x14001e29d
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.140005e50
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 0x14001e2d3
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.140004650
mov rbx, qword [rsp + 0x40]
lea eax, [rdi + 1]
movsxd rdx, eax
mov rcx, rbx
call fcn.140091030
test edi, edi
js 0x14001e605
cmp edi, dword [rbx - 0xc]
jg 0x14001e605
mov dword [rbx - 0x10], edi
mov word [rbx + rdi*2], 0
test r13b, 1
je 0x14001e353
cmp dword [rbx - 0x10], 0
jl 0x14001e32a
lea rdx, str.INTCAZAUDADDSERVICE
mov rcx, rbx
call fcn.140090a10
test rax, rax
je 0x14001e32a
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
jne 0x14001e45f
cmp dword [rbx - 0x10], 0
jl 0x14001e353
lea rdx, str.RTHDMIAZAUDSERVICE
mov rcx, rbx
call fcn.140090a10
test rax, rax
je 0x14001e353
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
jne 0x14001e45f
test r13b, 4
je 0x14001e3ab
cmp dword [rbx - 0x10], 0
jl 0x14001e382
lea rdx, str.INTELSST
mov rcx, rbx
call fcn.140090a10
test rax, rax
je 0x14001e382
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
jne 0x14001e45f
cmp dword [rbx - 0x10], 0
jl 0x14001e3ab
lea rdx, str.INTCADSP
mov rcx, rbx
call fcn.140090a10
test rax, rax
je 0x14001e3ab
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
jne 0x14001e45f
test r13b, 2
je 0x14001e3da
cmp dword [rbx - 0x10], 0
jl 0x14001e3da
lea rdx, str.RTKUSBAD
mov rcx, rbx
call fcn.140090a10
test rax, rax
je 0x14001e3da
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
jne 0x14001e45f
test r13b, 8
je 0x14001e5d3
cmp dword [rbx - 0x10], 0
jl 0x14001e409
lea rdx, str.INTCAUDIOBUS
mov rcx, rbx
call fcn.140090a10
test rax, rax
je 0x14001e409
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
jne 0x14001e45f
cmp dword [rbx - 0x10], 0
jl 0x14001e42e
lea rdx, str.INTCOED
mov rcx, rbx
call fcn.140090a10
test rax, rax
je 0x14001e42e
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
jne 0x14001e45f
cmp dword [rbx - 0x10], 0
jl 0x14001e5d3
lea rdx, str.INTCDMIC
mov rcx, rbx
call fcn.140090a10
test rax, rax
je 0x14001e5d3
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
je 0x14001e5d3
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 0x14001e5d3
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 0x14001e5d3
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.140092500
lea r8, [rsp + 0x2c0]
mov edx, 0x104
lea rcx, [rsp + 0xb0]
call fcn.140092500
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x88], rdx
call fcn.14004b378
mov rcx, rax
xor eax, eax
test rcx, rcx
setne al
test eax, eax
je 0x14001e5fa
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 0x14001e58c
movzx edi, cx
mov ecx, edi
call fcn.14004b1a0
test rax, rax
je 0x14001e5b6
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.140005c00
jmp 0x14001e5b6
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.140005e50
nop
lea rcx, [rsp + 0x60]
call fcn.140017870
test eax, eax
je 0x14001e5c8
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 0x14001e610
jmp 0x14001e250
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 0x14001e688
test r15d, r15d
jne 0x14001e688
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 0x14001e688
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 0x14001e6a4
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 0x14001e6c2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r15d
jmp 0x14001e703
lea rdx, [rbx - 0x18]
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14001e6e3
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 0x14001e701
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.140090720
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