Function at 0x140010ba0
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x60
xor edi, edi
lea rcx, [rbp - 0x10]
mov qword [rbp + 0x38], rdi
call fcn.14003a4e4
lea ebx, [rdi + 4]
or word [rbp - 4], bx
lea rcx, [rbp - 0x10]
call fcn.140010978
test eax, eax
js 0x140010c23
mov rdx, qword [rbp - 0x10]
lea rax, [rbp + 0x38]
lea r9d, [rdi + 3]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140010c23
mov rcx, qword [rbp + 0x38]
lea rdx, str.UsageTracking
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rbp + 0x38]
lea rdx, str.ForceUsageTracking
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp + 0x38], rdi
mov qword [rsp + 0x40], rdi
lea rax, [rbp + 0x38]
mov qword [rsp + 0x38], rax
lea rdx, str.SoftwareMicrosoftMediaPlayerPreferences
mov qword [rsp + 0x30], rdi
xor r9d, r9d
mov dword [rsp + 0x28], 3
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140010eb2
mov rcx, qword [rbp + 0x38]
lea rdx, str.UsageTracking
mov dword [rbp + 0x20], edi
mov dword [rbp + 0x28], edi
mov dword [rbp + 0x30], ebx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rbp + 0x38]
lea rdx, str.ForceUsageTracking
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rbp + 0x38]
lea rdx, str.SQMLaunchIndex
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [0x14005167c]
lea r9, [rbp + 0x20]
cmp dword [0x140051670], edi
lea rdx, str.MetadataRetrieval
mov rcx, qword [rbp + 0x38]
cmove eax, edi
mov dword [rbp + 0x30], ebx
mov dword [0x14005167c], eax
xor r8d, r8d
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x28]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140010cf9
mov eax, dword [0x1400516a8]
cmp dword [rbp + 0x20], ebx
cmove eax, dword [rbp + 0x28]
mov dword [0x1400516a8], eax
mov rcx, qword [rbp + 0x38]
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x20]
lea rax, [rbp + 0x28]
mov dword [rbp + 0x30], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SendUserGUID
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140010d54
cmp dword [rbp + 0x20], ebx
jne 0x140010d3c
mov al, byte [rbp + 0x28]
and al, 1
mov byte [0x1400516c8], al
jmp 0x140010d54
movzx ecx, byte [0x1400516c8]
cmp dword [rbp + 0x20], 3
movzx eax, byte [rbp + 0x28]
cmove ecx, eax
mov byte [0x1400516c8], cl
mov rcx, qword [rbp + 0x38]
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x20]
lea rax, [rbp + 0x28]
mov dword [rbp + 0x30], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SilentAcquisition
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140010d98
mov eax, dword [0x1400516b0]
cmp dword [rbp + 0x20], ebx
cmove eax, dword [rbp + 0x28]
mov dword [0x1400516b0], eax
mov rcx, qword [rbp + 0x38]
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x20]
lea rax, [rbp + 0x28]
mov dword [rbp + 0x30], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.DisableMRUMusic
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140010ddc
mov eax, dword [0x140051674]
cmp dword [rbp + 0x20], ebx
cmove eax, dword [rbp + 0x28]
mov dword [0x140051674], eax
mov rcx, qword [rbp + 0x38]
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x20]
lea rax, [rbp + 0x28]
mov dword [rbp + 0x30], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.DisableMRUPictures
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140010e20
mov eax, dword [0x1400516c4]
cmp dword [rbp + 0x20], ebx
cmove eax, dword [rbp + 0x28]
mov dword [0x1400516c4], eax
mov rcx, qword [rbp + 0x38]
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x20]
lea rax, [rbp + 0x28]
mov dword [rbp + 0x30], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.DisableMRUVideo
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140010e64
mov eax, dword [0x140051690]
cmp dword [rbp + 0x20], ebx
cmove eax, dword [rbp + 0x28]
mov dword [0x140051690], eax
mov rcx, qword [rbp + 0x38]
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x20]
lea rax, [rbp + 0x28]
mov dword [rbp + 0x30], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.DisableMRUPlaylists
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140010ea8
mov eax, dword [0x140051694]
cmp dword [rbp + 0x20], ebx
cmove eax, dword [rbp + 0x28]
mov dword [0x140051694], eax
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.14001857c
lea rcx, [rbp - 0x10]
call fcn.14003aa74
add rsp, 0x60
pop rdi
pop rbx
pop rbp
ret