Function at 0x14008e770
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 0x14008e7ec
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 0x14008e86c
test r15, r15
je 0x14008e86c
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 0x14008e9e1
mov rcx, qword [rbp + 0x50]
test rcx, rcx
je 0x14008e862
cmp dword [rcx + 4], 0
jne 0x14008e84a
and dword [rsi], 0
jmp 0x14008e9fc
cmp dword [rcx + 8], 1
jne 0x14008e862
mov eax, dword [rcx + 0x10]
mov dword [r12], eax
mov dword [rsi], 1
jmp 0x14008e9fc
mov ebx, 0x8007000d
jmp 0x14008e9fc
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 0x14008e98b
lea rdx, str.ConfigureTelemetryOptInChangeNotification
mov rcx, rdi
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
jne 0x14008e8b3
lea rbx, str.DisableTelemetryOptInChangeNotification
jmp 0x14008e98b
lea rdx, str.ConfigureTelemetryOptInSettingsUx
mov rcx, rdi
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
jne 0x14008e8d9
lea rbx, str.DisableTelemetryOptInSettingsUx
jmp 0x14008e98b
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 0x14008e98b
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 0x14008e98b
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 0x14008e98b
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 0x14008e98b
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 0x14008e98b
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 0x14008e9f3
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 0x14008e9e1
mov dword [rsi], 1
mov rcx, qword [rbp + 0x50]
cmp ebx, 0x80070002
jne 0x14008e9fc
xor ebx, ebx
and dword [rsi], ebx
jmp 0x14008e9fc
mov rcx, qword [rbp + 0x50]
mov ebx, 0x80070057
test rcx, rcx
je 0x14008ea1a
mov rax, r15
call qword [str.PN_t_]
test eax, eax
jns 0x14008ea1a
mov rcx, qword [rbp + 0x38]
mov r9d, eax
call fcn.14008f148
test r14, r14
je 0x14008ea2e
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop dword [rax + rax]
test ebx, ebx
jns 0x14008ea3e
mov rcx, qword [rbp + 0x38]
mov r9d, ebx
call fcn.14008fae8
mov eax, ebx
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret