Function at 0x14004aac0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0x88
mov qword [rbp + 7], 0xfffffffffffffffe
xor edi, edi
mov dword [rbp + 0x6f], edi
mov dword [rbp + 0x77], edi
mov dword [rbp + 0x7f], edi
lea r8, str.SOFTWAREMicrosoftWindowsCurrentVersionWebManagementCore
lea rcx, [rbp - 0x21]
call fcn.1400292f4
lea r15d, [rdi + 8]
cmp byte [rbp - 0x19], dil
jne 0x14004ab0e
mov dword [rbp + 0x67], edi
jmp 0x14004ac7e
mov ebx, 4
mov dword [rbp - 0x11], ebx
lea rax, [rbp - 0x11]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x6f]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea esi, [rbx + 0xc]
mov r9d, esi
lea r8, str.restrictions
xor edx, edx
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
test eax, eax
jne 0x14004ab68
mov ecx, dword [rbp + 0x6f]
lea rdx, [0x140141540]
mov r8, r15
mov al, cl
and al, 1
mov byte [rdx], al
shr ecx, 1
inc rdx
sub r8, 1
jne 0x14004ab57
mov dword [rbp + 0x67], edi
cmp byte [rbp - 0x19], dil
je 0x14004ac7e
mov dword [rbp - 0xd], ebx
lea rax, [rbp - 0xd]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x67]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
mov r9d, esi
lea r8, str.enableAll
xor edx, edx
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
test eax, eax
jne 0x14004abae
cmp dword [rbp + 0x67], edi
ja 0x14004ac0b
cmp byte [rbp - 0x19], dil
je 0x14004ac7e
mov dword [rbp - 9], ebx
lea rax, [rbp - 9]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x77]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
mov r9d, esi
lea r8, str.capabilities
xor edx, edx
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
test eax, eax
jne 0x14004ac0b
mov ecx, dword [rbp + 0x77]
lea rdx, [0x140141548]
lea r8d, [rax + 0x11]
mov al, cl
and al, 1
mov byte [rdx], al
shr ecx, 1
inc rdx
sub r8, 1
jne 0x14004abfa
cmp byte [rbp - 0x19], dil
je 0x14004ac7e
mov dword [rbp - 5], ebx
lea rax, [rbp - 5]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
mov r9d, esi
lea r8, str.uninstallPolicies
xor edx, edx
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
test eax, eax
jne 0x14004ac7e
mov r8d, dword [rbp + 0x7f]
lea r9, [0x140141559]
mov rdx, r9
lea rax, [0x14014155d]
cmp rax, r9
sbb rcx, rcx
not rcx
and rcx, rbx
mov al, r8b
and al, 1
mov byte [rdx], al
shr r8d, 1
inc rdx
mov rax, rdx
sub rax, r9
cmp rax, rcx
jne 0x14004ac66
mov rcx, qword [rbp - 0x21]
test rcx, rcx
je 0x14004ac8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
cmp byte [0x140141558], dil
je 0x14004ad3a
mov esi, 0x340
mov ecx, esi
call fcn.1400c1958
mov qword [rbp - 0x29], rax
test rax, rax
je 0x14004acc3
lea rdx, str._api_bt_
mov rcx, rax
call fcn.140053f18
mov rbx, rax
jmp 0x14004acc6
mov rbx, rdi
mov rax, qword [0x1401423a0]
cmp rax, qword [0x1401423a8]
jne 0x14004ace2
call fcn.14004c10c
mov rax, qword [0x1401423a0]
mov qword [rax], rbx
add qword [0x1401423a0], r15
mov rcx, rsi
call fcn.1400c1958
mov qword [rbp - 0x29], rax
test rax, rax
je 0x14004ad11
lea rdx, str._api_iot_bt_
mov rcx, rax
call fcn.140053f18
mov rbx, rax
jmp 0x14004ad14
mov rbx, rdi
mov rax, qword [0x1401423a0]
cmp rax, qword [0x1401423a8]
jne 0x14004ad30
call fcn.14004c10c
mov rax, qword [0x1401423a0]
mov qword [rax], rbx
add qword [0x1401423a0], r15
mov r12d, 0x30
cmp byte [0x140141549], dil
je 0x14004ada1
mov ecx, r12d
call fcn.1400c1958
mov rbx, rax
mov qword [rbp - 0x29], rax
test rax, rax
je 0x14004ad78
lea rdx, str._api_wifi_
mov rcx, rax
call fcn.14004c630
lea rax, [0x1400f1848]
mov qword [rbx], rax
jmp 0x14004ad7b
mov rbx, rdi
mov rax, qword [0x1401423a0]
cmp rax, qword [0x1401423a8]
jne 0x14004ad97
call fcn.14004c10c
mov rax, qword [0x1401423a0]
mov qword [rax], rbx
add qword [0x1401423a0], r15
mov r13d, 0x68
cmp byte [0x14014154f], dil
je 0x14004ae9c
mov ecx, r13d
call fcn.1400c1958
mov qword [rbp - 0x29], rax
test rax, rax
je 0x14004add2
mov rcx, rax
call fcn.140062808
mov rbx, rax
jmp 0x14004add5
mov rbx, rdi
mov rax, qword [0x1401423a0]
cmp rax, qword [0x1401423a8]
jne 0x14004adf1
call fcn.14004c10c
mov rax, qword [0x1401423a0]
mov qword [rax], rbx
add qword [0x1401423a0], r15
mov ecx, 0xd0
call fcn.1400c1958
mov qword [rbp - 0x29], rax
test rax, rax
je 0x14004ae1b
mov rcx, rax
call fcn.14006643c
mov rbx, rax
jmp 0x14004ae1e
mov rbx, rdi
mov rax, qword [0x1401423a0]
cmp rax, qword [0x1401423a8]
jne 0x14004ae3a
call fcn.14004c10c
mov rax, qword [0x1401423a0]
mov qword [rax], rbx
add qword [0x1401423a0], r15
mov rcx, r12
call fcn.1400c1958
mov rbx, rax
mov qword [rbp - 0x29], rax
test rax, rax
je 0x14004ae73
lea rdx, str._api_eventlog_
mov rcx, rax
call fcn.14004c630
lea rax, [0x1400f2cb0]
mov qword [rbx], rax
jmp 0x14004ae76
mov rbx, rdi
mov rax, qword [0x1401423a0]
cmp rax, qword [0x1401423a8]
jne 0x14004ae92
call fcn.14004c10c
mov rax, qword [0x1401423a0]
mov qword [rax], rbx
add qword [0x1401423a0], r15
cmp byte [0x14014154b], dil
je 0x14004af80
mov rcx, r13
call fcn.1400c1958
mov rbx, rax
mov qword [rbp - 0x29], rax
lea rsi, str._Q_a_
test rax, rax
je 0x14004aeef
lea rdx, str._api_appx_
mov rcx, rax
call fcn.14004c630
mov qword [rbx], rsi
lea rcx, [rbx + 0x30]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_InitializeCriticalSectionEx]
mov byte [rbx + 0x58], dil
mov qword [rbx + 0x60], rdi
jmp 0x14004aef2
mov rbx, rdi
mov rax, qword [0x1401423a0]
cmp rax, qword [0x1401423a8]
jne 0x14004af0e
call fcn.14004c10c
mov rax, qword [0x1401423a0]
mov qword [rax], rbx
add qword [0x1401423a0], r15
mov rcx, r13
call fcn.1400c1958
mov rbx, rax
mov qword [rbp - 0x29], rax
test rax, rax
je 0x14004af57
lea rdx, str._api_app_
mov rcx, rax
call fcn.14004c630
mov qword [rbx], rsi
lea rcx, [rbx + 0x30]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_InitializeCriticalSectionEx]
mov byte [rbx + 0x58], dil
mov qword [rbx + 0x60], rdi
jmp 0x14004af5a
mov rbx, rdi
mov rax, qword [0x1401423a0]
cmp rax, qword [0x1401423a8]
jne 0x14004af76
call fcn.14004c10c
mov rax, qword [0x1401423a0]
mov qword [rax], rbx
add qword [0x1401423a0], r15
cmp byte [0x14014154e], dil
je 0x14004afe1
mov rcx, r12
call fcn.1400c1958
mov rbx, rax
mov qword [rbp - 0x29], rax
test rax, rax
je 0x14004afb8
lea rdx, str._api_wer_
mov rcx, rax
call fcn.14004c630
lea rax, [0x1400f1838]
mov qword [rbx], rax
jmp 0x14004afbb
mov rbx, rdi
mov rax, qword [0x1401423a0]
cmp rax, qword [0x1401423a8]
jne 0x14004afd7
call fcn.14004c10c
mov rax, qword [0x1401423a0]
mov qword [rax], rbx
add qword [0x1401423a0], r15
cmp byte [0x140141550], dil
je 0x14004b042
mov rcx, r12
call fcn.1400c1958
mov rbx, rax
mov qword [rbp - 0x29], rax
test rax, rax
je 0x14004b019
lea rdx, str._api_devicemanager_
mov rcx, rax
call fcn.14004c630
lea rax, [0x1400f1858]
mov qword [rbx], rax
jmp 0x14004b01c
mov rbx, rdi
mov rax, qword [0x1401423a0]
cmp rax, qword [0x1401423a8]
jne 0x14004b038
call fcn.14004c10c
mov rax, qword [0x1401423a0]
mov qword [rax], rbx
add qword [0x1401423a0], r15
cmp byte [0x140141554], dil
je 0x14004b094
mov ecx, 0x48
call fcn.1400c1958
mov qword [rbp - 0x29], rax
test rax, rax
je 0x14004b06b
mov rcx, rax
call fcn.14006cc44
mov rbx, rax
jmp 0x14004b06e
mov rbx, rdi
mov rax, qword [0x1401423a0]
cmp rax, qword [0x1401423a8]
jne 0x14004b08a
call fcn.14004c10c
mov rax, qword [0x1401423a0]
mov qword [rax], rbx
add qword [0x1401423a0], r15
cmp byte [0x14014154a], dil
je 0x14004b0f5
mov rcx, r12
call fcn.1400c1958
mov rbx, rax
mov qword [rbp - 0x29], rax
test rax, rax
je 0x14004b0cc
lea rdx, str._api_networking_
mov rcx, rax
call fcn.14004c630
lea rax, [0x1400f1828]
mov qword [rbx], rax
jmp 0x14004b0cf
mov rbx, rdi
mov rax, qword [0x1401423a0]
cmp rax, qword [0x1401423a8]
jne 0x14004b0eb
call fcn.14004c10c
mov rax, qword [0x1401423a0]
mov qword [rax], rbx
add qword [0x1401423a0], r15
cmp byte [0x14014154d], dil
je 0x14004b182
mov ecx, 0x88
call fcn.1400c1958
mov rbx, rax
mov qword [rbp - 0x29], rax
test rax, rax
je 0x14004b159
lea rdx, str._api_debug_dump_
mov rcx, rax
call fcn.14004c630
lea rax, [0x1400f1888]
mov qword [rbx], rax
mov qword [rbx + 0x40], rdi
lea rax, [0x1400f0e30]
mov qword [rbx + 0x38], rax
mov qword [rbx + 0x50], rdi
mov qword [rbx + 0x48], rax
lea rcx, [rbx + 0x58]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_InitializeCriticalSectionEx]
jmp 0x14004b15c
mov rbx, rdi
mov rax, qword [0x1401423a0]
cmp rax, qword [0x1401423a8]
jne 0x14004b178
call fcn.14004c10c
mov rax, qword [0x1401423a0]
mov qword [rax], rbx
add qword [0x1401423a0], r15
cmp byte [0x140141552], dil
je 0x14004b1e3
mov rcx, r12
call fcn.1400c1958
mov rbx, rax
mov qword [rbp - 0x29], rax
test rax, rax
je 0x14004b1ba
lea rdx, str._api_control_
mov rcx, rax
call fcn.14004c630
lea rax, [0x1400f1818]
mov qword [rbx], rax
jmp 0x14004b1bd
mov rbx, rdi
mov rax, qword [0x1401423a0]
cmp rax, qword [0x1401423a8]
jne 0x14004b1d9
call fcn.14004c10c
mov rax, qword [0x1401423a0]
mov qword [rax], rbx
add qword [0x1401423a0], r15
cmp byte [0x14014154c], dil
je 0x14004b244
mov rcx, r12
call fcn.1400c1958
mov rbx, rax
mov qword [rbp - 0x29], rax
test rax, rax
je 0x14004b21b
lea rdx, str._api_taskmanager_
mov rcx, rax
call fcn.14004c630
lea rax, [0x1400f17d0]
mov qword [rbx], rax
jmp 0x14004b21e
mov rbx, rdi
mov rax, qword [0x1401423a0]
cmp rax, qword [0x1401423a8]
jne 0x14004b23a
call fcn.14004c10c
mov rax, qword [0x1401423a0]
mov qword [rax], rbx
add qword [0x1401423a0], r15
cmp byte [0x140141548], dil
je 0x14004b32a
mov ecx, 0x280
call fcn.1400c1958
mov rsi, rax
mov qword [rbp - 0x29], rax
test rax, rax
je 0x14004b301
lea rdx, str._api_resourcemanager_
mov rcx, rax
call fcn.14004c630
nop
lea rax, [0x1400f17e0]
mov qword [rsi], rax
mov qword [rsi + 0x30], rdi
lea r14, [rsi + 0x38]
mov qword [rbp + 0xf], r14
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_InitializeCriticalSectionEx]
nop
mov qword [r14 + 0x28], rdi
lea rbx, [r14 + 0x30]
mov qword [rbp - 1], rbx
mov qword [rbx], rdi
mov qword [rbx + 8], rdi
call fcn.1400ad7f8
mov qword [rbx], rax
mov qword [r14 + 0x40], rdi
lea rcx, [r14 + 0x50]
call fcn.1400109b0
nop
mov ecx, 0x16000
mov dword [r14 + 0x48], ecx
call fcn.1400c1d60
mov rbx, rax
mov rcx, qword [r14 + 0x40]
cmp rax, rcx
je 0x14004b2f2
test rcx, rcx
je 0x14004b2ee
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [r14 + 0x40], rbx
lea rcx, [rsi + 0xe0]
call fcn.1400add20
nop
jmp 0x14004b304
mov rsi, rdi
mov rax, qword [0x1401423a0]
cmp rax, qword [0x1401423a8]
jne 0x14004b320
call fcn.14004c10c
mov rax, qword [0x1401423a0]
mov qword [rax], rsi
add qword [0x1401423a0], r15
cmp byte [0x140141553], dil
je 0x14004b38b
mov rcx, r12
call fcn.1400c1958
mov rbx, rax
mov qword [rbp - 1], rax
test rax, rax
je 0x14004b362
lea rdx, str._api_os_
mov rcx, rax
call fcn.14004c630
lea rax, str._h_t_
mov qword [rbx], rax
jmp 0x14004b365
mov rbx, rdi
mov rax, qword [0x1401423a0]
cmp rax, qword [0x1401423a8]
jne 0x14004b381
call fcn.14004c10c
mov rax, qword [0x1401423a0]
mov qword [rax], rbx
add qword [0x1401423a0], r15
cmp byte [0x140141551], dil
je 0x14004b404
mov rcx, r13
call fcn.1400c1958
mov rbx, rax
mov qword [rbp - 1], rax
test rax, rax
je 0x14004b3db
lea rdx, str._api_power_
mov rcx, rax
call fcn.14004c630
lea rax, [0x1400f17f8]
mov qword [rbx], rax
lea rcx, [rbx + 0x30]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_InitializeCriticalSectionEx]
mov qword [rbx + 0x58], rdi
mov eax, edi
xchg dword [rbx + 0x60], eax
jmp 0x14004b3de
mov rbx, rdi
mov rax, qword [0x1401423a0]
cmp rax, qword [0x1401423a8]
jne 0x14004b3fa
call fcn.14004c10c
mov rax, qword [0x1401423a0]
mov qword [rax], rbx
add qword [0x1401423a0], r15
cmp byte [0x140141555], dil
je 0x14004b465
mov rcx, r12
call fcn.1400c1958
mov rbx, rax
mov qword [rbp + 0x67], rax
test rax, rax
je 0x14004b43c
lea rdx, str._api_users_
mov rcx, rax
call fcn.14004c630
lea rax, str.Ps_t_
mov qword [rbx], rax
jmp 0x14004b43f
mov rbx, rdi
mov rax, qword [0x1401423a0]
cmp rax, qword [0x1401423a8]
jne 0x14004b45b
call fcn.14004c10c
mov rax, qword [0x1401423a0]
mov qword [rax], rbx
add qword [0x1401423a0], r15
cmp byte [0x140141556], dil
je 0x14004b4b2
mov ecx, WSAStartup
call fcn.1400c1958
mov qword [rbp + 0x67], rax
test rax, rax
je 0x14004b48c
mov rcx, rax
call fcn.14004a4f8
mov rdi, rax
mov rax, qword [0x1401423a0]
cmp rax, qword [0x1401423a8]
jne 0x14004b4a8
call fcn.14004c10c
mov rax, qword [0x1401423a0]
mov qword [rax], rdi
add qword [0x1401423a0], r15
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret