Function at 0x140050df8
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, [0x1400ae120]
or r12, 0xffffffffffffffff
mov rax, r12
inc rax
cmp word [r13 + rax*2], r15w
jne 0x140050e40
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 0x140050e64
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 0x140050e80
mov r8d, eax
mov rdx, r13
lea rcx, [rbp - 0x20]
call fcn.140004550
test r14, r14
jne 0x140050ea4
mov eax, r15d
jmp 0x140050eb1
mov rax, r12
inc rax
cmp word [r14 + rax*2], r15w
jne 0x140050ea7
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 0x140050fe0
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x140050fe0
test rsi, rsi
jne 0x140050f18
mov eax, r15d
jmp 0x140050f25
mov rax, r12
inc rax
cmp word [rsi + rax*2], r15w
jne 0x140050f1b
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 0x140050f37
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 0x140050f5b
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 0x140050f7b
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 0x140050fcb
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
jmp 0x140050fce
mov ebx, r15d
test ebx, ebx
jns 0x140050fe0
mov ebx, r15d
mov dword [rdi], 1
jmp 0x14005127e
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 0x140051031
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
mov r13d, 8
test ebx, ebx
js 0x1400511db
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 0x14005108e
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400511db
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 0x1400510e5
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400511db
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 0x140051135
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400511db
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 0x14005118c
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400511db
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 0x1400511db
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
cmp dword [rdi + 0x14], r15d
jne 0x14005127e
test ebx, ebx
js 0x14005127e
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 0x14005127e
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 0x140051263
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 0x14005127e
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 0x140051294
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 0x1400512bb
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [str._E_n_]
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