Function at 0x140015dd0
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 0x140015d9e
mov r8d, ecx
lea rdx, [0x140281780]
lea rcx, str.SOFTWAREDolbyPCEE4DynamicKeys
call fcn.140012800
cmp dword [0x1402e9c88], ebx
je 0x140015dbc
mov r8d, edi
lea rdx, [0x140281780]
lea rcx, str.SOFTWAREDolbyDolbyDigitalPlusDynamicKeys
call fcn.140012800
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.140028a90
test eax, eax
je 0x140015ef0
call fcn.140028c10
test eax, eax
jne 0x140015ef0
call fcn.140028d90
test eax, eax
je 0x140015e1a
mov eax, 1
add rsp, 0x78
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 1
call fcn.140028ed0
cmp dword [0x1402e9c8c], esi
je 0x140015e43
lea r8, [rbp + 0x28]
lea rdx, [0x140281780]
lea rcx, str.SOFTWAREDolbyPCEE4DynamicKeys
call fcn.140012400
cmp dword [0x1402e9c88], esi
je 0x140015e62
lea r8, [rbp + 0x28]
lea rdx, [0x140281780]
lea rcx, str.SOFTWAREDolbyDolbyDigitalPlusDynamicKeys
call fcn.140012400
lea rax, [rbp - 0x38]
mov qword [rbp + 0x30], rax
call fcn.14004aa80
mov rcx, rax
test rax, rax
je 0x140016079
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 0x140015eca
mov rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x140015eb0
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.140012660
mov ecx, 3
add rsp, 0x78
pop rdi
pop rsi
pop rbx
pop rbp
jmp 0x140015d70
mov dword [rbp + 0x30], esi
call fcn.140028d90
test eax, eax
je 0x140015e0c
xor ecx, ecx
call fcn.140028ed0
cmp dword [0x1402e9c8c], esi
je 0x140015f26
lea r8, [rbp + 0x30]
lea rdx, [0x140281780]
lea rcx, str.SOFTWAREDolbyPCEE4DynamicKeys
call fcn.140012400
cmp dword [0x1402e9c88], esi
je 0x140015f45
lea r8, [rbp + 0x30]
lea rdx, [0x140281780]
lea rcx, str.SOFTWAREDolbyDolbyDigitalPlusDynamicKeys
call fcn.140012400
cmp dword [rbp + 0x30], 3
jne 0x140015e0c
lea rax, [rbp - 0x40]
mov qword [rbp + 0x38], rax
call fcn.14004aa80
mov rcx, rax
test rax, rax
je 0x14001606e
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 0x140015fba
mov rax, rbx
nop word [rax + rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x140015fa0
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.14000ddf0
test eax, eax
je 0x140015ff4
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x140016043
jmp 0x14001603d
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 0x140016035
cmp dword [rbp - 0x48], 4
jne 0x140016035
mov eax, dword [rbp + 0x38]
mov dword [rbp + 0x28], eax
test rdi, rdi
je 0x140016043
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 0x14001605e
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 0x140015d70
mov ecx, 0x80004005
call fcn.140005680
int3
mov ecx, 0x80004005
call fcn.140005680
int3