Function at 0x140056778
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.140004a80
nop
lea r13, [0x1400da7c0]
or r12, 0xffffffffffffffff
mov rax, r12
inc rax
cmp word [r13 + rax*2], r15w
jne 0x1400567c0
mov r8d, eax
mov rdx, r13
lea rcx, [rbp - 0x20]
call fcn.1400044f8
lea rcx, str.SoftwareMicrosoftMediaPlayerPreferencesHME
mov rax, r12
inc rax
cmp word [rcx + rax*2], r15w
jne 0x1400567e4
mov r8d, eax
mov rdx, rcx
lea rcx, [rbp - 0x20]
call fcn.1400044f8
mov rax, r12
inc rax
cmp word [r13 + rax*2], r15w
jne 0x140056800
mov r8d, eax
mov rdx, r13
lea rcx, [rbp - 0x20]
call fcn.1400044f8
test r14, r14
jne 0x140056824
mov eax, r15d
jmp 0x140056831
mov rax, r12
inc rax
cmp word [r14 + rax*2], r15w
jne 0x140056827
mov r8d, eax
mov rdx, r14
lea rcx, [rbp - 0x20]
call fcn.1400044f8
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 0x140056954
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x140056954
test rsi, rsi
jne 0x140056892
mov eax, r15d
jmp 0x14005689f
mov rax, r12
inc rax
cmp word [rsi + rax*2], r15w
jne 0x140056895
mov r8d, eax
mov rdx, rsi
lea rcx, [rbp - 0x20]
call fcn.140004e40
mov rax, r12
inc rax
cmp word [r13 + rax*2], r15w
jne 0x1400568b1
mov r8d, eax
mov rdx, r13
lea rcx, [rbp - 0x20]
call fcn.1400044f8
mov rax, r12
lea rdx, str.SoftwareMicrosoftMediaPlayerPreferencesHME
inc rax
cmp word [rdx + rax*2], r15w
jne 0x1400568d5
mov r8d, eax
lea rcx, [rbp - 0x20]
call fcn.1400044f8
lea rdx, [0x1400df480]
mov rax, r12
inc rax
cmp word [rdx + rax*2], r15w
jne 0x1400568f5
mov r8d, eax
lea rcx, [rbp - 0x20]
call fcn.1400044f8
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 0x14005693f
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
jmp 0x140056942
mov ebx, r15d
test ebx, ebx
jns 0x140056954
mov ebx, r15d
mov dword [rdi], 1
jmp 0x140056bb8
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 0x14005699f
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
mov r13d, 8
test ebx, ebx
js 0x140056b2b
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 0x1400569f6
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140056b2b
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 0x140056a47
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140056b2b
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 0x140056a91
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140056b2b
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 0x140056ae2
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140056b2b
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 0x140056b2b
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
cmp dword [rdi + 0x14], r15d
jne 0x140056bb8
test ebx, ebx
js 0x140056bb8
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 0x140056bb8
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 0x140056b9d
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 0x140056bb8
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 0x140056bc8
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 0x140056bef
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [case.0x14006d218.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