Function at 0x1400b0ffc
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 0x1400b113a
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 0x1400b1094
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 0x1400b10dd
test byte [rcx + 0x1c], r14b
je 0x1400b10dd
mov edx, r14d
test esi, esi
cmove edx, eax
movzx eax, byte [rcx + 0x19]
cmp eax, edx
jb 0x1400b10dd
lea edx, [r14 + 0x27]
mov r9d, esi
lea r8, [0x1400e6f90]
mov rcx, qword [rcx + 0x10]
call fcn.1400035ec
test esi, esi
jne 0x1400b112a
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x20]
call fcn.1400b4124
mov r9d, eax
mov rcx, qword [0x140106190]
cmp rcx, r12
je 0x1400b112a
test byte [rcx + 0x1c], r14b
je 0x1400b112a
movzx eax, byte [rcx + 0x19]
test r9d, r9d
lea edx, [rsi + 5]
cmove r14d, edx
cmp eax, r14d
jb 0x1400b112a
lea edx, [rsi + 0x2a]
lea r8, [0x1400e6f90]
mov rcx, qword [rcx + 0x10]
call fcn.1400035ec
nop
test rdi, rdi
je 0x1400b117a
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400b117a
mov rdx, rcx
lea rcx, [rbp - 0x40]
call fcn.140004a80
nop
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x30]
call fcn.1400181f8
nop
mov rdx, qword [rbp - 0x40]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400b117a
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14006d218.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 0x1400b1254
mov esi, r15d
mov rdi, r15
lea r14d, [rax + 1]
cmp esi, dword [rbp - 0x28]
jge 0x1400b1246
test rdi, rdi
js 0x1400b1271
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 0x1400b1237
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 0x1400b1229
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 0x1400b11b5
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x50], r15
lea rcx, [rbp - 0x30]
call fcn.14001817c
mov eax, ebx
add rsp, 0x80
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0xc000008c
call fcn.140004f50
int3