Function at 0x1400a2e5c
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push r14
sub rsp, 0x2b0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
mov rax, qword [0x1401411c8]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
mov r14, rcx
mov ebx, 0x208
mov r8d, ebx
xor edx, edx
lea rcx, [r11 - 0x228]
call sub.msvcrt.dll_memset
xor edi, edi
mov qword [rsp + 0x20], rdi
mov r9d, ebx
lea r8, [rsp + 0x90]
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionWebManagementService
lea rcx, str.WindowsDevicePortalService
call qword [sym.imp.api_ms_win_stateseparation_helpers_l1_1_0.dll_GetPersistedRegistryLocationW]
test eax, eax
je 0x1400a2ef1
mov rcx, qword [rsp + 0x2b8]
mov r9d, eax
lea r8, str.onecoreuap_adminwebbdiscoverywdpserviceregistrationhandler.cpp
lea edx, [rdi + 0x24]
call fcn.140008688
jmp 0x1400a316d
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [rsp + 0x90]
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
je 0x1400a2f57
mov edx, 0x27
lea r8, str.onecoreuap_adminwebbdiscoverywdpserviceregistrationhandler.cpp
mov r9d, eax
mov rcx, qword [rsp + 0x2b8]
call fcn.140008688
mov ebx, eax
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400a2f50
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
jmp 0x1400a316d
mov dword [rsp + 0x30], edi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, str.DnsSdTags
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
je 0x1400a2f8f
mov edx, 0x2c
jmp 0x1400a2f27
mov ecx, dword [rsp + 0x30]
add rcx, 2
lea rdx, [0x1400f80f4]
call fcn.1400c24ac
mov rbx, rax
mov qword [rsp + 0x48], rax
test rax, rax
jne 0x1400a2fdd
mov rcx, qword [rsp + 0x2b8]
mov ebx, 0x8007000e
mov r9d, ebx
lea r8, str.onecoreuap_adminwebbdiscoverywdpserviceregistrationhandler.cpp
lea edx, [rax + 0x30]
call fcn.140003684
nop
xor ecx, ecx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
jmp 0x1400a2f40
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, str.DnsSdTags
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
je 0x1400a3049
mov rcx, qword [rsp + 0x2b8]
mov r9d, eax
lea r8, str.onecoreuap_adminwebbdiscoverywdpserviceregistrationhandler.cpp
mov edx, 0x31
call fcn.140008688
mov esi, eax
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400a3042
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, esi
jmp 0x1400a316d
mov eax, dword [rsp + 0x30]
mov word [rax + rbx], di
mov rsi, rbx
cmp word [rsi], di
je 0x1400a3151
mov qword [rsp + 0x80], 7
mov qword [rsp + 0x78], rdi
mov word [rsp + 0x68], di
or r8, 0xffffffffffffffff
inc r8
cmp word [rsi + r8*2], di
jne 0x1400a3077
mov rdx, rsi
lea rcx, [rsp + 0x68]
call fcn.140007004
nop
mov r9b, byte [0x1401423c7]
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x58]
mov rcx, r14
call fcn.1400a05d4
nop
cmp qword [rsp + 0x80], 8
jb 0x1400a30c0
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop
cmp dword [0x140142444], 5
jb 0x1400a30dd
mov r8, rsi
lea rdx, str.WDP_DNSSD_tag_read:__S
mov ecx, 5
call fcn.14003929c
lea rax, section..data
mov rcx, qword [section..data]
cmp rcx, rax
je 0x1400a3114
test byte [rcx + 0x1c], 0x40
je 0x1400a3114
cmp byte [rcx + 0x19], 5
jb 0x1400a3114
mov edx, 0xa
mov r9, rsi
lea r8, [0x14010b418]
mov rcx, qword [rcx + 0x10]
call fcn.1400076d8
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], 0
jne 0x1400a3118
lea rsi, [rsi + rax*2]
add rsi, 2
jmp 0x1400a3054
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400a316b
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.1400c20a0
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret