Function at 0x14001dd10
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.14004b0d0
mov rcx, rax
mov eax, r14d
test rcx, rcx
setne al
test eax, eax
jne 0x14001dd82
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.14004b0d0
mov rcx, rax
mov eax, r14d
test rcx, rcx
setne al
test eax, eax
jne 0x14001ddc0
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, [0x1400debf8]
or rbp, 0xffffffffffffffff
test rdx, 0xffffffffffff0000
jne 0x14001de09
movzx edi, dx
mov ecx, edi
call fcn.14004aef8
test rax, rax
je 0x14001de2a
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140005b70
mov rbx, qword [rsp + 0x40]
jmp 0x14001de2a
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.140005dc0
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.140005dc0
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 0x14001e457
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 0x14001ded9
mov r14d, 1
mov edi, r14d
jmp 0x14001df26
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 0x14001e457
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 0x14001dfb1
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 0x14001df8c
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 0x14001dfaa
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x14001e493
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 0x14001e3a0
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 0x14001e363
mov rdx, qword [rsp + 0x78]
test rdx, rdx
jne 0x14001e01b
xor ecx, ecx
jmp 0x14001e02d
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.140005dc0
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 0x14001e063
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.140090d90
test edi, edi
js 0x14001e395
cmp edi, dword [rbx - 0xc]
jg 0x14001e395
mov dword [rbx - 0x10], edi
mov word [rbx + rdi*2], 0
test r13b, 1
je 0x14001e0e3
cmp dword [rbx - 0x10], 0
jl 0x14001e0ba
lea rdx, str.INTCAZAUDADDSERVICE
mov rcx, rbx
call fcn.140090770
test rax, rax
je 0x14001e0ba
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
jne 0x14001e1ef
cmp dword [rbx - 0x10], 0
jl 0x14001e0e3
lea rdx, str.RTHDMIAZAUDSERVICE
mov rcx, rbx
call fcn.140090770
test rax, rax
je 0x14001e0e3
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
jne 0x14001e1ef
test r13b, 4
je 0x14001e13b
cmp dword [rbx - 0x10], 0
jl 0x14001e112
lea rdx, str.INTELSST
mov rcx, rbx
call fcn.140090770
test rax, rax
je 0x14001e112
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
jne 0x14001e1ef
cmp dword [rbx - 0x10], 0
jl 0x14001e13b
lea rdx, str.INTCADSP
mov rcx, rbx
call fcn.140090770
test rax, rax
je 0x14001e13b
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
jne 0x14001e1ef
test r13b, 2
je 0x14001e16a
cmp dword [rbx - 0x10], 0
jl 0x14001e16a
lea rdx, str.RTKUSBAD
mov rcx, rbx
call fcn.140090770
test rax, rax
je 0x14001e16a
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
jne 0x14001e1ef
test r13b, 8
je 0x14001e363
cmp dword [rbx - 0x10], 0
jl 0x14001e199
lea rdx, str.INTCAUDIOBUS
mov rcx, rbx
call fcn.140090770
test rax, rax
je 0x14001e199
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
jne 0x14001e1ef
cmp dword [rbx - 0x10], 0
jl 0x14001e1be
lea rdx, str.INTCOED
mov rcx, rbx
call fcn.140090770
test rax, rax
je 0x14001e1be
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
jne 0x14001e1ef
cmp dword [rbx - 0x10], 0
jl 0x14001e363
lea rdx, str.INTCDMIC
mov rcx, rbx
call fcn.140090770
test rax, rax
je 0x14001e363
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
je 0x14001e363
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 0x14001e363
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 0x14001e363
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.140092260
lea r8, [rsp + 0x2c0]
mov edx, 0x104
lea rcx, [rsp + 0xb0]
call fcn.140092260
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x88], rdx
call fcn.14004b0d0
mov rcx, rax
xor eax, eax
test rcx, rcx
setne al
test eax, eax
je 0x14001e38a
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 0x14001e31c
movzx edi, cx
mov ecx, edi
call fcn.14004aef8
test rax, rax
je 0x14001e346
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.140005b70
jmp 0x14001e346
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.140005dc0
nop
lea rcx, [rsp + 0x60]
call fcn.140017640
test eax, eax
je 0x14001e358
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 0x14001e3a0
jmp 0x14001dfe0
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 0x14001e418
test r15d, r15d
jne 0x14001e418
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 0x14001e418
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 0x14001e434
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 0x14001e452
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r15d
jmp 0x14001e493
lea rdx, [rbx - 0x18]
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14001e473
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 0x14001e491
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.140090480
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