Function at 0x14008e880
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, 0x40
and dword [r8], 0
mov r12, r8
and dword [rdx], 0
mov rsi, rdx
mov rdi, rcx
xor edx, edx
mov r8d, 0x800
lea rcx, str.policymanager.dll
xor ebx, ebx
xor r15d, r15d
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
nop dword [rax + rax]
mov r14, rax
test rax, rax
je 0x14008e8fc
lea rdx, str.PolicyManager_GetPolicy
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
lea rdx, str.PolicyManager_FreeGetPolicyData
mov rcx, r14
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
mov r15, rax
and qword [rbp + 0x50], 0
and qword [rbp + 0x58], 0
test rbx, rbx
je 0x14008e97c
test r15, r15
je 0x14008e97c
lea r9, [rbp + 0x50]
mov dword [rbp + 0x58], 1
lea r8, [rbp + 0x58]
mov dword [rbp + 0x5c], 2
mov rdx, rdi
lea rcx, str.System
mov rax, rbx
call qword [str.PN_t_]
mov ebx, eax
test eax, eax
js 0x14008eaf1
mov rcx, qword [rbp + 0x50]
test rcx, rcx
je 0x14008e972
cmp dword [rcx + 4], 0
jne 0x14008e95a
and dword [rsi], 0
jmp 0x14008eb0c
cmp dword [rcx + 8], 1
jne 0x14008e972
mov eax, dword [rcx + 0x10]
mov dword [r12], eax
mov dword [rsi], 1
jmp 0x14008eb0c
mov ebx, 0x8007000d
jmp 0x14008eb0c
lea rbx, str.LimitEnhancedDiagnosticDataWindowsAnalytics
mov rcx, rdi
mov rdx, rbx
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x14008ea9b
lea rdx, str.ConfigureTelemetryOptInChangeNotification
mov rcx, rdi
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
jne 0x14008e9c3
lea rbx, str.DisableTelemetryOptInChangeNotification
jmp 0x14008ea9b
lea rdx, str.ConfigureTelemetryOptInSettingsUx
mov rcx, rdi
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
jne 0x14008e9e9
lea rbx, str.DisableTelemetryOptInSettingsUx
jmp 0x14008ea9b
lea rbx, str.DisableDeviceDelete
mov rcx, rdi
mov rdx, rbx
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x14008ea9b
lea rbx, str.DisableDiagnosticDataViewer
mov rcx, rdi
mov rdx, rbx
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x14008ea9b
lea rbx, str.AllowCommercialDataPipeline
mov rcx, rdi
mov rdx, rbx
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x14008ea9b
lea rbx, str.AllowTelemetry
mov rcx, rdi
mov rdx, rbx
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x14008ea9b
lea rbx, str.DisableOneSettingsDownloads
mov rcx, rdi
mov rdx, rbx
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x14008ea9b
lea rbx, str.EnableOneSettingsAuditing
mov rcx, rdi
mov rdx, rbx
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
jne 0x14008eb03
lea rax, [rbp + 0x48]
mov dword [rbp + 0x48], 4
mov qword [rsp + 0x30], rax
lea rdx, str.SoftwarePoliciesMicrosoftWindowsDataCollection
mov qword [rsp + 0x28], r12
mov r9d, 0x18
and qword [rsp + 0x20], 0
mov r8, rbx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14008eaf1
mov dword [rsi], 1
mov rcx, qword [rbp + 0x50]
cmp ebx, 0x80070002
jne 0x14008eb0c
xor ebx, ebx
and dword [rsi], ebx
jmp 0x14008eb0c
mov rcx, qword [rbp + 0x50]
mov ebx, 0x80070057
test rcx, rcx
je 0x14008eb2a
mov rax, r15
call qword [str.PN_t_]
test eax, eax
jns 0x14008eb2a
mov rcx, qword [rbp + 0x38]
mov r9d, eax
call fcn.14008f258
test r14, r14
je 0x14008eb3e
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop dword [rax + rax]
test ebx, ebx
jns 0x14008eb4e
mov rcx, qword [rbp + 0x38]
mov r9d, ebx
call fcn.14008faf0
mov eax, ebx
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret