Function at 0x140080470
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.140004b74
nop
or r12, 0xffffffffffffffff
test rbx, rbx
jne 0x1400804bc
mov eax, r15d
jmp 0x1400804c9
mov rax, r12
inc rax
cmp word [rbx + rax*2], r15w
jne 0x1400804bf
mov r8d, eax
mov rdx, rbx
lea rcx, [rbp - 0x38]
call fcn.140004588
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 0x140080675
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 0x140080675
cmp dword [rbp + 0x58], 4
jne 0x140080675
mov eax, r15d
test eax, eax
jne 0x140080675
mov esi, r15d
cmp dword [rbp + 0x40], r15d
jbe 0x140080675
lea r13d, [r15 + 1]
mov rax, qword [0x140108fd0]
lea rcx, [0x140108fd0]
mov rax, qword [rax + 0x18]
call qword [case.0x14006e230.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.140008d6c
mov rax, qword [0x140108fd0]
lea rcx, [0x140108fd0]
mov rax, qword [rax + 0x18]
call qword [case.0x14006e230.0]
add rax, 0x18
mov qword [rbp - 0x28], rax
lea r8, [rbp - 0x28]
mov rdx, qword [rbp - 0x40]
lea rcx, [rbp - 0x18]
call fcn.1400b3940
mov rbx, qword [rbp - 0x28]
test eax, eax
js 0x14008061a
test r14, r14
je 0x14008061a
cmp dword [rbx - 0x10], r15d
jl 0x14008061a
mov rdx, r14
mov rcx, rbx
call fcn.14001ab50
test rax, rax
je 0x14008061a
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 0x14008063e
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14006e230.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 0x140080665
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14006e230.0]
add esi, r13d
cmp esi, dword [rbp + 0x40]
jb 0x14008057c
mov rbx, qword [rbp - 0x18]
test rbx, rbx
je 0x140080684
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 0x1400806ab
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [case.0x14006e230.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