Function at 0x140015fe0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ebx, ebx
mov edi, ecx
cmp dword [0x1402e9c8c], ebx
mov eax, ebx
je 0x140015fae
mov r8d, ecx
lea rdx, [0x140281950]
lea rcx, str.SOFTWAREDolbyPCEE4DynamicKeys
call fcn.140012cc0
cmp dword [0x1402e9c88], ebx
je 0x140015fcc
mov r8d, edi
lea rdx, [0x140281950]
lea rcx, str.SOFTWAREDolbyDolbyDigitalPlusDynamicKeys
call fcn.140012cc0
test eax, eax
setne bl
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
push rbp
push rbx
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x78
mov qword [rbp - 0x30], 0xfffffffffffffffe
xor esi, esi
mov dword [rbp + 0x28], esi
call fcn.140028d50
test eax, eax
je 0x140016100
call fcn.140028ed0
test eax, eax
jne 0x140016100
call fcn.140029050
test eax, eax
je 0x14001602a
mov eax, 1
add rsp, 0x78
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 1
call fcn.140029190
cmp dword [0x1402e9c8c], esi
je 0x140016053
lea r8, [rbp + 0x28]
lea rdx, [0x140281950]
lea rcx, str.SOFTWAREDolbyPCEE4DynamicKeys
call fcn.1400128c0
cmp dword [0x1402e9c88], esi
je 0x140016072
lea r8, [rbp + 0x28]
lea rdx, [0x140281950]
lea rcx, str.SOFTWAREDolbyDolbyDigitalPlusDynamicKeys
call fcn.1400128c0
lea rax, [rbp - 0x38]
mov qword [rbp + 0x30], rax
call fcn.14004adf0
mov rcx, rax
test rax, rax
je 0x140016289
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbp - 0x38], rax
lea rdi, str.DolbyPrevPreset
mov rdx, rdi
lea rcx, [rbp - 0x38]
call fcn.1400050a0
test al, al
jne 0x1400160da
mov rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x1400160c0
mov r8d, ebx
mov rdx, rdi
lea rcx, [rbp - 0x38]
call fcn.1400054e0
nop
mov r8d, dword [rbp + 0x28]
lea rdx, [rbp - 0x38]
lea rcx, str.SOFTWARERealtekRealtekEffectsBG
call fcn.140012b20
mov ecx, 3
add rsp, 0x78
pop rdi
pop rsi
pop rbx
pop rbp
jmp 0x140015f80
mov dword [rbp + 0x30], esi
call fcn.140029050
test eax, eax
je 0x14001601c
xor ecx, ecx
call fcn.140029190
cmp dword [0x1402e9c8c], esi
je 0x140016136
lea r8, [rbp + 0x30]
lea rdx, [0x140281950]
lea rcx, str.SOFTWAREDolbyPCEE4DynamicKeys
call fcn.1400128c0
cmp dword [0x1402e9c88], esi
je 0x140016155
lea r8, [rbp + 0x30]
lea rdx, [0x140281950]
lea rcx, str.SOFTWAREDolbyDolbyDigitalPlusDynamicKeys
call fcn.1400128c0
cmp dword [rbp + 0x30], 3
jne 0x14001601c
lea rax, [rbp - 0x40]
mov qword [rbp + 0x38], rax
call fcn.14004adf0
mov rcx, rax
test rax, rax
je 0x14001627e
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbp - 0x40], rax
lea rdi, str.DolbyPrevPreset
mov rdx, rdi
lea rcx, [rbp - 0x40]
call fcn.1400050a0
mov rbx, 0xffffffffffffffff
test al, al
jne 0x1400161ca
mov rax, rbx
nop word [rax + rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x1400161b0
mov r8d, eax
mov rdx, rdi
lea rcx, [rbp - 0x40]
call fcn.1400054e0
nop
mov qword [rbp - 0x28], rsi
mov dword [rbp - 0x20], esi
mov qword [rbp - 0x18], rsi
mov dword [rbp + 0x38], esi
mov r9d, 1
lea r8, str.SOFTWARERealtekRealtekEffectsBG
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x28]
call fcn.14000e2b0
test eax, eax
je 0x140016204
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x140016253
jmp 0x14001624d
mov dword [rbp + 0x40], 4
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x48]
xor r8d, r8d
mov rdx, qword [rbp - 0x40]
mov rdi, qword [rbp - 0x28]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140016245
cmp dword [rbp - 0x48], 4
jne 0x140016245
mov eax, dword [rbp + 0x38]
mov dword [rbp + 0x28], eax
test rdi, rdi
je 0x140016253
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rbp - 0x40]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x14001626e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov ecx, dword [rbp + 0x28]
add rsp, 0x78
pop rdi
pop rsi
pop rbx
pop rbp
jmp 0x140015f80
mov ecx, 0x80004005
call fcn.140005680
int3
mov ecx, 0x80004005
call fcn.140005680
int3