Function at 0x140045be4
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x3c0]
sub rsp, 0x4c0
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov rax, qword [0x1400da318]
xor rax, rsp
mov qword [rbp + 0x3b0], rax
mov rdi, r9
mov r15, r8
mov r14, rdx
mov rsi, rcx
xor r12d, r12d
mov qword [rsp + 0x68], r12
mov r8, r9
lea rdx, [rsp + 0x68]
call fcn.14002140c
mov ebx, eax
cmp eax, 0x80040d61
jne 0x14004621a
mov qword [rsp + 0x60], r12
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [0x1400a59b0]
xor edx, edx
lea r8d, [r12 + 0x15]
lea rcx, [0x1400a59a0]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoCreateInstance]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [rbp + 0x3f8]
test eax, eax
jns 0x140045d2f
mov r9d, eax
lea r8, str.onecoreuap_base_appmodel_search_search_search_service_setup.cxx
mov edx, 0x1a4
call fcn.1400427b0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1a0]
call sub.msvcrt.dll_memset
mov r8d, 0x104
lea rdx, [rbp + 0x1a0]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
nop dword [rax + rax]
lea rdx, [rbp + 0x1a0]
lea rcx, [rsp + 0x40]
call fcn.14004a2bc
nop
mov r9d, dword [rdi + 0x10]
mov r8, qword [rdi + 8]
mov edx, 0x7d0
lea rcx, [rsp + 0x40]
call fcn.14004a310
mov dword [rdi + 0x14], eax
mov rdx, qword [rdi]
mov r10, qword [rdx + 0x20]
or r9d, 0xffffffff
mov r8d, eax
lea rdx, [0x1400b3770]
mov rcx, rdi
mov rax, r10
call qword [case.0x1400244c5.0]
nop
lea rcx, [rsp + 0x40]
call fcn.140029434
jmp 0x140046201
mov qword [rsp + 0x58], r12
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
lea rdx, [rsp + 0x58]
mov rax, qword [rax + 0x38]
call qword [case.0x1400244c5.0]
mov ebx, eax
mov rcx, qword [rbp + 0x3f8]
test eax, eax
jns 0x140045e00
mov r9d, eax
lea r8, str.onecoreuap_base_appmodel_search_search_search_service_setup.cxx
mov edx, 0x1aa
call fcn.1400427b0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1a0]
call sub.msvcrt.dll_memset
mov r8d, 0x104
lea rdx, [rbp + 0x1a0]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
nop dword [rax + rax]
lea rdx, [rbp + 0x1a0]
lea rcx, [rsp + 0x40]
call fcn.14004a2bc
nop
mov r9d, dword [rdi + 0x10]
mov r8, qword [rdi + 8]
mov edx, 0x7d0
lea rcx, [rsp + 0x40]
call fcn.14004a310
mov dword [rdi + 0x14], eax
mov rcx, qword [rdi]
mov r10, qword [rcx + 0x20]
or r9d, 0xffffffff
mov r8d, eax
lea rdx, [0x1400b3768]
mov rcx, rdi
mov rax, r10
call qword [case.0x1400244c5.0]
nop
lea rcx, [rsp + 0x40]
jmp 0x140045ef1
mov word [rbp + 0x3a6], r12w
mov dword [rsp + 0x50], 0x206
mov dword [rsp + 0x54], 2
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
lea r8, str.SOFTWAREMicrosoftWindows_Search
mov rdx, 0xffffffff80000002
call fcn.14000a928
mov ebx, eax
test eax, eax
jle 0x140045e4c
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [rbp + 0x3f8]
test ebx, ebx
jns 0x140045efb
mov r9d, ebx
lea r8, str.onecoreuap_base_appmodel_search_search_search_service_setup.cxx
mov edx, 0x1b5
call fcn.1400427b0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x70]
call sub.msvcrt.dll_memset
mov r8d, 0x104
lea rdx, [rbp - 0x70]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
nop dword [rax + rax]
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x30]
call fcn.14004a2bc
nop
mov r9d, dword [rdi + 0x10]
mov r8, qword [rdi + 8]
mov edx, 0x7d7
lea rcx, [rsp + 0x30]
call fcn.14004a310
mov dword [rdi + 0x14], eax
mov rcx, qword [rdi]
mov r10, qword [rcx + 0x20]
or r9d, 0xffffffff
mov r8d, eax
lea rdx, str.Windows_Search
mov rcx, rdi
mov rax, r10
call qword [case.0x1400244c5.0]
nop
lea rcx, [rsp + 0x30]
call fcn.140029434
jmp 0x1400461e9
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x1a0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x54]
lea r8, str.DefaultApplicationsPath
lea rdx, str.Gathering_Manager
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_shcore_registry_l1_1_0.dll_SHGetValueW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140045f44
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [rbp + 0x3f8]
test ebx, ebx
jns 0x140045fe9
mov r9d, ebx
lea r8, str.onecoreuap_base_appmodel_search_search_search_service_setup.cxx
mov edx, 0x1ba
call fcn.1400427b0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x70]
call sub.msvcrt.dll_memset
mov r8d, 0x104
lea rdx, [rbp - 0x70]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
nop dword [rax + rax]
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x30]
call fcn.14004a2bc
nop
mov r9d, dword [rdi + 0x10]
mov r8, qword [rdi + 8]
mov edx, 0x7d5
lea rcx, [rsp + 0x30]
call fcn.14004a310
mov dword [rdi + 0x14], eax
mov rcx, qword [rdi]
mov r10, qword [rcx + 0x20]
or r9d, 0xffffffff
mov r8d, eax
lea rdx, str.DefaultApplicationsPath
mov rcx, rdi
mov rax, r10
call qword [case.0x1400244c5.0]
nop
jmp 0x1400460de
xor r8d, r8d
lea rdx, [rbp + 0x1a0]
xor ecx, ecx
call qword [sym.imp.api_ms_win_shell_shdirectory_l1_1_0.dll_Ordinal_290]
nop dword [rax + rax]
test eax, eax
je 0x1400460ed
cmp eax, 0x50
je 0x1400460ed
cmp eax, 0xb7
je 0x1400460ed
mov ebx, 0x80070003
test eax, eax
jle 0x14004602e
movzx eax, ax
or eax, 0x80070000
mov rcx, qword [rbp + 0x3f8]
lea rdx, [rbp + 0x1a0]
mov qword [rsp + 0x28], rdx
lea rdx, str.GatherApplicationPath:__ls
mov qword [rsp + 0x20], rdx
mov r9d, eax
lea r8, str.onecoreuap_base_appmodel_search_search_search_service_setup.cxx
mov edx, 0x1d3
call fcn.14004a3d4
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x70]
call sub.msvcrt.dll_memset
mov r8d, 0x104
lea rdx, [rbp - 0x70]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
nop dword [rax + rax]
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x30]
call fcn.14004a2bc
nop
mov r9d, dword [rdi + 0x10]
mov r8, qword [rdi + 8]
mov edx, 0x7d4
lea rcx, [rsp + 0x30]
call fcn.14004a310
mov dword [rdi + 0x14], eax
mov rcx, qword [rdi]
mov r10, qword [rcx + 0x20]
or r9d, 0xffffffff
mov r8d, eax
lea rdx, [rbp + 0x1a0]
mov rcx, rdi
mov rax, r10
call qword [case.0x1400244c5.0]
nop
lea rcx, [rsp + 0x30]
call fcn.140029434
jmp 0x1400461d7
mov qword [rsp + 0x30], r12
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x20], rdx
mov r9, r15
mov r8, r14
mov rdx, rsi
mov rax, qword [rax + 0x50]
call qword [case.0x1400244c5.0]
mov ebx, eax
test eax, eax
jns 0x1400461c0
mov rcx, qword [rbp + 0x3f8]
mov r9d, eax
lea r8, str.onecoreuap_base_appmodel_search_search_search_service_setup.cxx
mov edx, 0x1cb
call fcn.14004a398
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x70]
call sub.msvcrt.dll_memset
mov r8d, 0x104
lea rdx, [rbp - 0x70]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
nop dword [rax + rax]
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x70]
call fcn.14004a2bc
nop
mov r9d, dword [rdi + 0x10]
mov r8, qword [rdi + 8]
mov edx, 0x7d3
lea rcx, [rsp + 0x70]
call fcn.14004a310
mov dword [rdi + 0x14], eax
mov rcx, qword [rdi]
mov r10, qword [rcx + 0x20]
or r9d, 0xffffffff
mov r8d, eax
mov rdx, rsi
mov rcx, rdi
mov rax, r10
call qword [case.0x1400244c5.0]
nop
lea rcx, [rsp + 0x70]
call fcn.140029434
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400461d7
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1400244c5.0]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140046201
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1400244c5.0]
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14004623a
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1400244c5.0]
jmp 0x14004623a
mov rcx, qword [rbp + 0x3f8]
test eax, eax
jns 0x14004623a
mov r9d, eax
lea r8, str.onecoreuap_base_appmodel_search_search_search_service_setup.cxx
mov edx, 0x1f9
call fcn.1400427b0
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140046251
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1400244c5.0]
mov eax, ebx
mov rcx, qword [rbp + 0x3b0]
xor rcx, rsp
call fcn.14002a310
add rsp, 0x4c0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret