Function at 0x1400803b0
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, 0x70
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov r14, rdx
mov rbx, rcx
xor r15d, r15d
mov dil, r15b
lea rdx, str.SoftwareMicrosoftMediaPlayerPreferencesHME_
lea rcx, [rbp - 0x38]
call fcn.140004a80
nop
or r12, 0xffffffffffffffff
test rbx, rbx
jne 0x1400803fc
mov eax, r15d
jmp 0x140080409
mov rax, r12
inc rax
cmp word [rbx + rax*2], r15w
jne 0x1400803ff
mov r8d, eax
mov rdx, rbx
lea rcx, [rbp - 0x38]
call fcn.1400044f8
mov rbx, r15
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x10], r15
mov qword [rbp - 8], r15
mov qword [rbp - 0x30], r15
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x20219
xor r8d, r8d
mov rdx, qword [rbp - 0x38]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400805b5
mov rbx, qword [rbp - 0x30]
mov qword [rbp - 0x18], rbx
mov dword [rbp + 0x50], 4
lea rax, [rbp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x58]
xor r8d, r8d
lea rdx, str.UserLiveIDs
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400805b5
cmp dword [rbp + 0x58], 4
jne 0x1400805b5
mov eax, r15d
test eax, eax
jne 0x1400805b5
mov esi, r15d
cmp dword [rbp + 0x40], r15d
jbe 0x1400805b5
lea r13d, [r15 + 1]
mov rax, qword [str.Xr_r_]
lea rcx, str.Xr_r_
mov rax, qword [rax + 0x18]
call qword [case.0x14006d218.0]
add rax, 0x18
mov qword [rbp - 0x40], rax
mov r9d, esi
lea r8, str.UserLiveIDs
lea rdx, str._s_d
lea rcx, [rbp - 0x40]
call fcn.140008b90
mov rax, qword [str.Xr_r_]
lea rcx, str.Xr_r_
mov rax, qword [rax + 0x18]
call qword [case.0x14006d218.0]
add rax, 0x18
mov qword [rbp - 0x28], rax
lea r8, [rbp - 0x28]
mov rdx, qword [rbp - 0x40]
lea rcx, [rbp - 0x18]
call fcn.1400b442c
mov rbx, qword [rbp - 0x28]
test eax, eax
js 0x14008055a
test r14, r14
je 0x14008055a
cmp dword [rbx - 0x10], r15d
jl 0x14008055a
mov rdx, r14
mov rcx, rbx
call fcn.14001a50c
test rax, rax
je 0x14008055a
sub rax, rbx
sar rax, 1
movzx edi, dil
test eax, eax
cmovns edi, r13d
lea rdx, [rbx - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x14008057e
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14006d218.0]
nop
mov rdx, qword [rbp - 0x40]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x1400805a5
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14006d218.0]
add esi, r13d
cmp esi, dword [rbp + 0x40]
jb 0x1400804bc
mov rbx, qword [rbp - 0x18]
test rbx, rbx
je 0x1400805c4
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rbp - 0x38]
add rdx, 0xffffffffffffffe8
mov ecx, r12d
lock xadd dword [rdx + 0x10], ecx
add ecx, r12d
test ecx, ecx
jg 0x1400805eb
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [case.0x14006d218.0]
mov al, dil
mov rbx, qword [rsp + 0xb8]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret