Function at 0x1400b03ec
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x38], 0xfffffffffffffffe
xor r15d, r15d
mov qword [rbp - 0x50], r15
mov qword [rbp + 0x58], r15
mov ebx, r15d
mov dword [rbp + 0x48], r15d
mov dword [rbp + 0x50], 4
mov dword [rbp + 0x40], 4
mov qword [rbp - 0x30], r15
mov qword [rbp - 0x28], r15
test rcx, rcx
jne 0x1400b052a
mov edi, r15d
mov qword [rbp - 0x20], r15
mov qword [rbp - 0x18], r15
mov qword [rbp - 0x10], r15
mov qword [rbp - 0x48], r15
lea rax, [rbp - 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftMediaPlayerPREFERENCESHME
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test eax, eax
jne 0x1400b0484
mov esi, r15d
mov rdi, qword [rbp - 0x48]
mov qword [rbp - 0x20], rdi
lea r12, [0x140106190]
mov eax, 5
lea r14d, [rax - 3]
mov rcx, qword [0x140106190]
cmp rcx, r12
je 0x1400b04cd
test byte [rcx + 0x1c], r14b
je 0x1400b04cd
mov edx, r14d
test esi, esi
cmove edx, eax
movzx eax, byte [rcx + 0x19]
cmp eax, edx
jl 0x1400b04cd
lea edx, [r14 + 0x27]
mov r9d, esi
lea r8, [0x1400e78a0]
mov rcx, qword [rcx + 0x10]
call fcn.140003634
test esi, esi
jne 0x1400b051a
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x20]
call fcn.1400b3638
mov r9d, eax
mov rcx, qword [0x140106190]
cmp rcx, r12
je 0x1400b051a
test byte [rcx + 0x1c], r14b
je 0x1400b051a
movzx eax, byte [rcx + 0x19]
test r9d, r9d
lea edx, [rsi + 5]
cmove r14d, edx
cmp eax, r14d
jl 0x1400b051a
lea edx, [rsi + 0x2a]
lea r8, [0x1400e78a0]
mov rcx, qword [rcx + 0x10]
call fcn.140003634
nop
test rdi, rdi
je 0x1400b056a
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400b056a
mov rdx, rcx
lea rcx, [rbp - 0x40]
call fcn.140004b74
nop
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x30]
call fcn.140018668
nop
mov rdx, qword [rbp - 0x40]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400b056a
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14006e230.0]
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
mov r12d, 0x20019
mov r9d, r12d
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftMediaPlayerPREFERENCESHME
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400b0651
mov esi, r15d
mov rdi, r15
lea r14d, [rax + 1]
cmp esi, dword [rbp - 0x28]
jge 0x1400b0643
test rdi, rdi
js 0x1400b0638
mov rax, qword [rbp - 0x30]
lea rcx, [rbp + 0x58]
mov qword [rsp + 0x20], rcx
mov r9d, r12d
xor r8d, r8d
mov rdx, qword [rdi + rax]
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400b0627
mov dword [rbp + 0x40], 4
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x50]
xor r8d, r8d
lea rdx, str.UsageTracking
mov rcx, qword [rbp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400b0619
cmp dword [rbp + 0x48], r15d
cmovne ebx, r14d
mov rcx, qword [rbp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp + 0x58], r15
add esi, r14d
add rdi, 8
test ebx, ebx
je 0x1400b05a5
jmp 0x1400b0643
mov ecx, 0xc000008c
call fcn.140005064
int3
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x50], r15
lea rcx, [rbp - 0x30]
call fcn.1400185e8
mov eax, ebx
add rsp, 0x80
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret