Function at 0x140051008
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x10], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov r14, r8
mov rsi, rdx
mov rdi, rcx
xor r15d, r15d
mov ebx, r15d
lea rcx, [rbp - 0x20]
call fcn.140004b44
nop
lea r13, [0x1400ae210]
or r12, 0xffffffffffffffff
mov rax, r12
inc rax
cmp word [r13 + rax*2], r15w
jne 0x140051050
mov r8d, eax
mov rdx, r13
lea rcx, [rbp - 0x20]
call fcn.140004550
lea rcx, str.SoftwareMicrosoftMediaPlayerPreferencesHME
mov rax, r12
inc rax
cmp word [rcx + rax*2], r15w
jne 0x140051074
mov r8d, eax
mov rdx, rcx
lea rcx, [rbp - 0x20]
call fcn.140004550
mov rax, r12
inc rax
cmp word [r13 + rax*2], r15w
jne 0x140051090
mov r8d, eax
mov rdx, r13
lea rcx, [rbp - 0x20]
call fcn.140004550
test r14, r14
jne 0x1400510b4
mov eax, r15d
jmp 0x1400510c1
mov rax, r12
inc rax
cmp word [r14 + rax*2], r15w
jne 0x1400510b7
mov r8d, eax
mov rdx, r14
lea rcx, [rbp - 0x20]
call fcn.140004550
mov qword [rbp - 0x18], r15
lea rax, [rbp - 0x18]
mov qword [rsp + 0x20], rax
mov r9d, 0x20119
xor r8d, r8d
mov rdx, qword [rbp - 0x20]
mov rcx, 0xffffffff80000003
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov r14d, 0x80070000
test eax, eax
je 0x1400511f0
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x1400511f0
test rsi, rsi
jne 0x140051128
mov eax, r15d
jmp 0x140051135
mov rax, r12
inc rax
cmp word [rsi + rax*2], r15w
jne 0x14005112b
mov r8d, eax
mov rdx, rsi
lea rcx, [rbp - 0x20]
call fcn.140004f30
mov rax, r12
inc rax
cmp word [r13 + rax*2], r15w
jne 0x140051147
mov r8d, eax
mov rdx, r13
lea rcx, [rbp - 0x20]
call fcn.140004550
mov rax, r12
lea rdx, str.SoftwareMicrosoftMediaPlayerPreferencesHME
inc rax
cmp word [rdx + rax*2], r15w
jne 0x14005116b
mov r8d, eax
lea rcx, [rbp - 0x20]
call fcn.140004550
lea rdx, str.Default
mov rax, r12
inc rax
cmp word [rdx + rax*2], r15w
jne 0x14005118b
mov r8d, eax
lea rcx, [rbp - 0x20]
call fcn.140004550
lea rax, [rbp - 0x18]
mov qword [rsp + 0x20], rax
mov r9d, 0x20119
xor r8d, r8d
mov rdx, qword [rbp - 0x20]
mov rcx, 0xffffffff80000003
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x1400511db
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
jmp 0x1400511de
mov ebx, r15d
test ebx, ebx
jns 0x1400511f0
mov ebx, r15d
mov dword [rdi], 1
jmp 0x14005148e
mov dword [rdi], r15d
mov dword [rbp + 0x58], 4
lea rax, [rbp + 0x58]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
mov esi, reloc.OLEAUT32.dll_SafeArrayGetDim
mov r9d, esi
lea r8, str.AccessPrivateContent
xor edx, edx
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
nop dword [rax + rax]
test eax, eax
je 0x140051241
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
mov r13d, 8
test ebx, ebx
js 0x1400513eb
mov eax, r15d
cmp dword [rbp + 0x50], r15d
setne al
mov dword [rdi + 4], eax
lea rax, [rbp + 0x58]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
mov r9d, esi
lea r8, str.ZeroStars
xor edx, edx
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
nop dword [rax + rax]
test eax, eax
je 0x14005129e
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400513eb
mov eax, r15d
cmp dword [rbp + 0x50], r15d
setne al
mov dword [rdi + 0x10], eax
lea rax, [rbp + 0x58]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
mov r9d, esi
lea r8, str.MinStars
xor edx, edx
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
nop dword [rax + rax]
test eax, eax
je 0x1400512f5
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400513eb
mov eax, dword [rbp + 0x50]
mov dword [rdi + 0xc], eax
lea rax, [rbp + 0x58]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
mov r9d, esi
lea r8, str.AllStars
xor edx, edx
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
nop dword [rax + rax]
test eax, eax
je 0x140051345
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400513eb
mov eax, r15d
cmp dword [rbp + 0x50], r15d
setne al
mov dword [rdi + 8], eax
lea rax, [rbp + 0x58]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
mov r9d, esi
lea r8, str.AllParentalRatings
xor edx, edx
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
nop dword [rax + rax]
test eax, eax
je 0x14005139c
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400513eb
mov eax, r15d
cmp dword [rbp + 0x50], r15d
setne al
mov dword [rdi + 0x14], eax
lea rax, [rbp + 0x58]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
mov r9d, r13d
lea r8, str.ParentalRatingData
xor edx, edx
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
nop dword [rax + rax]
test eax, eax
je 0x1400513eb
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
cmp dword [rdi + 0x14], r15d
jne 0x14005148e
test ebx, ebx
js 0x14005148e
mov ecx, dword [rbp + 0x58]
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
nop dword [rax + rax]
mov qword [rdi + 0x20], rax
mov ecx, 0x8007000e
test rax, rax
cmove ebx, ecx
test ebx, ebx
js 0x14005148e
lea rcx, [rbp + 0x58]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
mov r9d, r13d
lea r8, str.ParentalRatingData
xor edx, edx
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
nop dword [rax + rax]
mov esi, eax
test eax, eax
je 0x140051473
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov qword [rdi + 0x20], r15
movzx ebx, si
or ebx, r14d
test esi, esi
cmovle ebx, esi
test ebx, ebx
js 0x14005148e
mov ecx, dword [rbp + 0x58]
movabs rax, 0xaaaaaaaaaaaaaaab
mul rcx
shr rdx, 3
mov dword [rdi + 0x18], edx
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x1400514a4
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
nop
mov rdx, qword [rbp - 0x20]
add rdx, 0xffffffffffffffe8
mov ecx, r12d
lock xadd dword [rdx + 0x10], ecx
add ecx, r12d
test ecx, ecx
jg 0x1400514cb
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [case.0x1400688bc.0]
mov eax, ebx
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret