Function at 0x140026120
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 [0x140134780]
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.14003c3f0
mov rcx, rax
mov eax, r14d
test rcx, rcx
setne al
test eax, eax
jne 0x140026192
mov ecx, 0x80004005
call fcn.140001120
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.14003c3f0
mov rcx, rax
mov eax, r14d
test rcx, rcx
setne al
test eax, eax
jne 0x1400261d0
mov ecx, 0x80004005
call fcn.140001120
int3
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x40], rbx
lea rdx, [0x1400ee798]
or rbp, 0xffffffffffffffff
test rdx, 0xffffffffffff0000
jne 0x140026219
movzx edi, dx
mov ecx, edi
call fcn.14003c170
test rax, rax
je 0x14002623a
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1400060c0
mov rbx, qword [rsp + 0x40]
jmp 0x14002623a
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.140006310
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.140006310
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 0x140026867
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 0x1400262e9
mov r14d, 1
mov edi, r14d
jmp 0x140026336
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 0x140026867
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 0x1400263c1
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 0x14002639c
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 0x1400263ba
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x1400268a3
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 0x1400267b0
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.140001ff0
test eax, eax
je 0x140026773
mov rdx, qword [rsp + 0x78]
test rdx, rdx
jne 0x14002642b
xor ecx, ecx
jmp 0x14002643d
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.140006310
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 0x140026473
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.140004410
mov rbx, qword [rsp + 0x40]
lea eax, [rdi + 1]
movsxd rdx, eax
mov rcx, rbx
call fcn.14009fd30
test edi, edi
js 0x1400267a5
cmp edi, dword [rbx - 0xc]
jg 0x1400267a5
mov dword [rbx - 0x10], edi
mov word [rbx + rdi*2], 0
test r13b, 1
je 0x1400264f3
cmp dword [rbx - 0x10], 0
jl 0x1400264ca
lea rdx, str.INTCAZAUDADDSERVICE
mov rcx, rbx
call fcn.14009f5d0
test rax, rax
je 0x1400264ca
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
jne 0x1400265ff
cmp dword [rbx - 0x10], 0
jl 0x1400264f3
lea rdx, str.RTHDMIAZAUDSERVICE
mov rcx, rbx
call fcn.14009f5d0
test rax, rax
je 0x1400264f3
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
jne 0x1400265ff
test r13b, 4
je 0x14002654b
cmp dword [rbx - 0x10], 0
jl 0x140026522
lea rdx, str.INTELSST
mov rcx, rbx
call fcn.14009f5d0
test rax, rax
je 0x140026522
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
jne 0x1400265ff
cmp dword [rbx - 0x10], 0
jl 0x14002654b
lea rdx, str.INTCADSP
mov rcx, rbx
call fcn.14009f5d0
test rax, rax
je 0x14002654b
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
jne 0x1400265ff
test r13b, 2
je 0x14002657a
cmp dword [rbx - 0x10], 0
jl 0x14002657a
lea rdx, str.RTKUSBAD
mov rcx, rbx
call fcn.14009f5d0
test rax, rax
je 0x14002657a
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
jne 0x1400265ff
test r13b, 8
je 0x140026773
cmp dword [rbx - 0x10], 0
jl 0x1400265a9
lea rdx, str.INTCAUDIOBUS
mov rcx, rbx
call fcn.14009f5d0
test rax, rax
je 0x1400265a9
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
jne 0x1400265ff
cmp dword [rbx - 0x10], 0
jl 0x1400265ce
lea rdx, str.INTCOED
mov rcx, rbx
call fcn.14009f5d0
test rax, rax
je 0x1400265ce
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
jne 0x1400265ff
cmp dword [rbx - 0x10], 0
jl 0x140026773
lea rdx, str.INTCDMIC
mov rcx, rbx
call fcn.14009f5d0
test rax, rax
je 0x140026773
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
je 0x140026773
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 0x140026773
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 0x140026773
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.1400a1c80
lea r8, [rsp + 0x2c0]
mov edx, 0x104
lea rcx, [rsp + 0xb0]
call fcn.1400a1c80
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x88], rdx
call fcn.14003c3f0
mov rcx, rax
xor eax, eax
test rcx, rcx
setne al
test eax, eax
je 0x14002679a
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 0x14002672c
movzx edi, cx
mov ecx, edi
call fcn.14003c170
test rax, rax
je 0x140026756
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.1400060c0
jmp 0x140026756
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.140006310
nop
lea rcx, [rsp + 0x60]
call fcn.14001c5a0
test eax, eax
je 0x140026768
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 0x1400267b0
jmp 0x1400263f0
mov ecx, 0x80004005
call fcn.140001120
int3
mov ecx, 0x80070057
call fcn.140001120
int3
mov rcx, r12
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
cmp dword [rsp + 0x68], 0
je 0x140026828
test r15d, r15d
jne 0x140026828
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 0x140026828
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 0x140026844
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 0x140026862
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r15d
jmp 0x1400268a3
lea rdx, [rbx - 0x18]
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140026883
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 0x1400268a1
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.1400a1970
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