Function at 0x14004f5dc
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.140004be4
nop
lea r13, [0x1400cc650]
or r12, 0xffffffffffffffff
mov rax, r12
inc rax
cmp word [r13 + rax*2], r15w
jne 0x14004f624
mov r8d, eax
mov rdx, r13
lea rcx, [rbp - 0x20]
call fcn.140004638
lea rcx, str.SoftwareMicrosoftMediaPlayerPreferencesHME
mov rax, r12
inc rax
cmp word [rcx + rax*2], r15w
jne 0x14004f648
mov r8d, eax
mov rdx, rcx
lea rcx, [rbp - 0x20]
call fcn.140004638
mov rax, r12
inc rax
cmp word [r13 + rax*2], r15w
jne 0x14004f664
mov r8d, eax
mov rdx, r13
lea rcx, [rbp - 0x20]
call fcn.140004638
test r14, r14
jne 0x14004f688
mov eax, r15d
jmp 0x14004f695
mov rax, r12
inc rax
cmp word [r14 + rax*2], r15w
jne 0x14004f68b
mov r8d, eax
mov rdx, r14
lea rcx, [rbp - 0x20]
call fcn.140004638
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]
mov r14d, 0x80070000
test eax, eax
je 0x14004f7b8
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x14004f7b8
test rsi, rsi
jne 0x14004f6f6
mov eax, r15d
jmp 0x14004f703
mov rax, r12
inc rax
cmp word [rsi + rax*2], r15w
jne 0x14004f6f9
mov r8d, eax
mov rdx, rsi
lea rcx, [rbp - 0x20]
call fcn.140005040
mov rax, r12
inc rax
cmp word [r13 + rax*2], r15w
jne 0x14004f715
mov r8d, eax
mov rdx, r13
lea rcx, [rbp - 0x20]
call fcn.140004638
mov rax, r12
lea rdx, str.SoftwareMicrosoftMediaPlayerPreferencesHME
inc rax
cmp word [rdx + rax*2], r15w
jne 0x14004f739
mov r8d, eax
lea rcx, [rbp - 0x20]
call fcn.140004638
lea rdx, [0x1400d11c0]
mov rax, r12
inc rax
cmp word [rdx + rax*2], r15w
jne 0x14004f759
mov r8d, eax
lea rcx, [rbp - 0x20]
call fcn.140004638
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]
test eax, eax
je 0x14004f7a3
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
jmp 0x14004f7a6
mov ebx, r15d
test ebx, ebx
jns 0x14004f7b8
mov ebx, r15d
mov dword [rdi], 1
jmp 0x14004fa1c
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]
test eax, eax
je 0x14004f803
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
mov r13d, 8
test ebx, ebx
js 0x14004f98f
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]
test eax, eax
je 0x14004f85a
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14004f98f
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]
test eax, eax
je 0x14004f8ab
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14004f98f
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]
test eax, eax
je 0x14004f8f5
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14004f98f
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]
test eax, eax
je 0x14004f946
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14004f98f
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]
test eax, eax
je 0x14004f98f
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
cmp dword [rdi + 0x14], r15d
jne 0x14004fa1c
test ebx, ebx
js 0x14004fa1c
mov ecx, dword [rbp + 0x58]
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov qword [rdi + 0x20], rax
mov ecx, 0x8007000e
test rax, rax
cmove ebx, ecx
test ebx, ebx
js 0x14004fa1c
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]
mov esi, eax
test eax, eax
je 0x14004fa01
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov qword [rdi + 0x20], r15
movzx ebx, si
or ebx, r14d
test esi, esi
cmovle ebx, esi
test ebx, ebx
js 0x14004fa1c
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 0x14004fa2c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
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 0x14004fa53
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [str.__f_]
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