Function at 0x140086788
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 r12, rdx
mov rbx, rcx
xor r13d, r13d
mov r14b, r13b
lea rdx, str.SoftwareMicrosoftMediaPlayerPreferencesHME_
lea rcx, [rbp - 0x38]
call fcn.140004d1c
nop
test rbx, rbx
jne 0x1400867d0
mov eax, r13d
jmp 0x1400867de
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], r13w
jne 0x1400867d4
mov r8d, eax
mov rdx, rbx
lea rcx, [rbp - 0x38]
call fcn.1400046e8
mov rbx, r13
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x10], r13
mov qword [rbp - 8], r13
mov qword [rbp - 0x30], r13
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 0x1400869ae
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 0x1400869ae
cmp dword [rbp + 0x58], 4
jne 0x1400869ae
mov eax, r13d
test eax, eax
jne 0x1400869ae
mov r15d, r13d
cmp dword [rbp + 0x40], r13d
jbe 0x1400869ae
lea edi, [r13 + 1]
mov rax, qword [0x14014e920]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [fcn.140009050]
lea rcx, [0x14014e920]
call rbx
add rax, 0x18
mov qword [rbp - 0x40], rax
mov r9d, r15d
lea r8, str.UserLiveIDs
lea rdx, str._s_d
lea rcx, [rbp - 0x40]
call fcn.14000916c
mov rax, qword [0x14014e920]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [fcn.140009050]
lea rcx, [0x14014e920]
call rbx
add rax, 0x18
mov qword [rbp - 0x28], rax
lea r8, [rbp - 0x28]
mov rdx, qword [rbp - 0x40]
lea rcx, [rbp - 0x18]
call fcn.1400bdba4
mov rbx, qword [rbp - 0x28]
test eax, eax
js 0x140086939
test r12, r12
je 0x140086939
cmp dword [rbx - 0x10], r13d
jl 0x140086939
mov rdx, r12
mov rcx, rbx
call fcn.14001c6a0
test rax, rax
je 0x140086939
sub rax, rbx
sar rax, 1
movzx r14d, r14b
test eax, eax
cmovns r14d, edi
lea rsi, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rsi + 0x10], eax
sub eax, 1
jg 0x14008696a
mov rdi, qword [rsi]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140009050]
mov rdx, rsi
mov rcx, rdi
call rbx
mov edi, 1
mov rsi, qword [rbp - 0x40]
or eax, 0xffffffff
lock xadd dword [rsi - 8], eax
sub eax, 1
jg 0x14008699d
mov rdi, qword [rsi - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140009050]
lea rdx, [rsi - 0x18]
mov rcx, rdi
call rbx
mov edi, 1
add r15d, edi
cmp r15d, dword [rbp + 0x40]
jb 0x140086891
mov rbx, qword [rbp - 0x18]
test rbx, rbx
je 0x1400869bd
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rsi, qword [rbp - 0x38]
or ecx, 0xffffffff
lock xadd dword [rsi - 8], ecx
sub ecx, 1
jg 0x1400869eb
mov rdi, qword [rsi - 0x18]
mov r8, qword [rdi]
mov rbx, qword [r8 + 8]
mov rcx, rbx
call qword [fcn.140009050]
lea rdx, [rsi - 0x18]
mov rcx, rdi
call rbx
mov al, r14b
mov rbx, qword [rsp + 0xb8]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret