Function at 0x140051954
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x510
mov qword [rax - 0x468], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1400c9158]
xor rax, rsp
mov qword [rsp + 0x500], rax
mov rsi, r8
mov qword [rsp + 0xa8], r8
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x78], rdx
mov qword [rsp + 0xc0], r8
xor r12d, r12d
mov dword [rdx], r12d
test dword [0x1400ca100], 0x800
je 0x1400519d1
xor r8d, r8d
lea rdx, [0x1400a1e28]
lea rcx, [0x1400c8290]
call fcn.140053178
xor ecx, ecx
call fcn.14005049c
mov r15d, eax
mov rcx, qword [rsp + 0x538]
test eax, eax
jns 0x1400519f1
mov r9d, eax
mov edx, 0xad8
jmp 0x140051a3e
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
lea rdx, str.SOFTWAREMicrosoftWindows_Search
mov rcx, 0xffffffff80000002
call fcn.14001e334
mov r15d, eax
test eax, eax
jle 0x140051a29
movzx r15d, ax
or r15d, 0x80070000
mov rcx, qword [rsp + 0x538]
test r15d, r15d
jns 0x140051a4f
mov r9d, r15d
mov edx, 0xade
lea r8, str.onecoreuap_base_appmodel_search_search_search_service_setup.cxx
call fcn.14002c058
jmp 0x14005224e
call fcn.1400501d0
mov ecx, eax
mov rdx, rsi
call fcn.1400515f8
mov r15d, eax
mov rcx, qword [rsp + 0x538]
lea r13, str.onecoreuap_base_appmodel_search_search_search_service_setup.cxx
test eax, eax
jns 0x140051a84
mov r9d, eax
mov r8, r13
mov edx, 0xae4
call fcn.14002c058
mov word [rsp + 0x4f6], r12w
mov dword [rsp + 0x98], 0x206
mov dword [rsp + 0x9c], 2
test r15d, r15d
js 0x140051b14
lea rax, [rsp + 0x98]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x2f0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x9c]
lea r8, str.DataDirectory
xor edx, edx
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.api_ms_win_shcore_registry_l1_1_0.dll_SHGetValueW]
mov r15d, eax
test eax, eax
jle 0x140051af3
movzx r15d, ax
or r15d, 0x80070000
mov rcx, qword [rsp + 0x538]
test r15d, r15d
jns 0x140051bb6
mov r9d, r15d
mov r8, r13
mov edx, 0xaee
call fcn.14002c058
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x88], xmm0
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0xe0]
call sub.msvcrt.dll_memset
mov r8d, 0x104
lea rdx, [rsp + 0xe0]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0x88]
call fcn.140050374
nop
mov r9d, dword [rsi + 0x10]
mov r8, qword [rsi + 8]
mov edx, 0x7d5
lea rcx, [rsp + 0x88]
call fcn.1400503b4
mov dword [rsi + 0x14], eax
mov rcx, qword [rsi]
mov r10, qword [rcx + 0x20]
or r9d, 0xffffffff
mov r8d, eax
lea rdx, str.DataDirectory
mov rcx, rsi
mov rax, r10
call qword [case.0x140006f84.0]
nop
lea rcx, [rsp + 0x88]
call fcn.14002c0f0
test r15d, r15d
js 0x140052240
lea rcx, [rsp + 0x2f0]
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathRemoveBackslashW]
lea rdx, [rsp + 0x2f0]
lea rcx, [rsp + 0xa0]
call fcn.14000c5fc
nop
lea rdx, [0x140094958]
lea rcx, [rsp + 0x60]
call fcn.14000c5fc
nop
lea rdx, str.SystemIndex
lea rcx, [rsp + 0x68]
call fcn.14000c5fc
nop
lea rdx, str.Search.Gatherer
lea rcx, [rsp + 0xb0]
call fcn.14000c5fc
nop
lea rdx, str.Applications_
lea rcx, [rsp + 0x70]
call fcn.14000c5fc
nop
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x70]
call fcn.14004a084
mov r14, qword [rsp + 0xa0]
mov rdi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
test r14, r14
je 0x140051c66
test rdi, rdi
je 0x140051c66
test rbx, rbx
je 0x140051c66
cmp qword [rsp + 0xb0], r12
je 0x140051c66
cmp qword [rsp + 0x70], r12
jne 0x140051c84
mov r15d, 0x8007000e
mov rcx, qword [rsp + 0x538]
mov r9d, r15d
mov r8, r13
mov edx, 0xb07
call fcn.140020c10
test r15d, r15d
js 0x140052208
mov qword [rsp + 0x40], r12
lea rax, [rsp + 0x88]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r12d
lea rdx, str.SOFTWAREMicrosoftWindows_SearchCatalogListApplicationsWindowsCatalogsSystemIndex
mov rcx, 0xffffffff80000002
call fcn.14005d678
mov r15d, eax
test eax, eax
jle 0x140051cd1
movzx r15d, ax
or r15d, 0x80070000
mov rcx, qword [rsp + 0x538]
test r15d, r15d
jns 0x140051cf3
mov r9d, r15d
mov r8, r13
mov edx, 0xb11
call fcn.14002c058
jmp 0x140052208
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rax, qword [rsp + 0x50]
mov dword [rax], 1
test dword [0x1400ca100], 0x800
je 0x140051d31
mov r8d, 1
lea rdx, [0x1400a1e28]
lea rcx, [0x1400c8290]
call fcn.140053178
mov qword [rsp + 0x58], r12
test r14, r14
je 0x140051d64
xor ecx, ecx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
lea rcx, [rsp + 0xa0]
call fcn.14004ae24
mov qword [rsp + 0x58], rax
test rax, rax
jne 0x140051d64
mov ecx, 0x8007000e
call fcn.14004a3b0
lea rdx, [0x1400a1498]
lea rcx, [rsp + 0x58]
call fcn.14004a0e4
mov r9, rsi
mov r8, qword [rsp + 0xb0]
mov rsi, qword [rsp + 0x58]
mov rdx, rsi
mov rcx, rdi
call fcn.14004b538
mov r15d, eax
mov rcx, qword [rsp + 0x538]
test eax, eax
jns 0x140051db0
mov r9d, eax
mov r8, r13
mov edx, 0xb23
call fcn.14002c058
nop
jmp 0x140051df2
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test r15d, r15d
js 0x140052208
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
mov r9d, 2
lea rdx, str.Gathering_Manager
mov rcx, qword [rsp + 0xb8]
call fcn.14001e334
mov r15d, eax
test eax, eax
jle 0x140051e3d
movzx r15d, ax
or r15d, 0x80070000
test r15d, r15d
jns 0x140051ef5
mov rcx, qword [rsp + 0x538]
mov r9d, r15d
mov r8, r13
mov edx, 0xb32
call fcn.140020c10
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0xe0]
call sub.msvcrt.dll_memset
mov r8d, 0x104
lea rdx, [rsp + 0xe0]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0x78]
call fcn.140050374
nop
mov rsi, qword [rsp + 0xa8]
mov r9d, dword [rsi + 0x10]
mov r8, qword [rsi + 8]
mov edx, 0x7d7
lea rcx, [rsp + 0x78]
call fcn.1400503b4
mov dword [rsi + 0x14], eax
mov rcx, qword [rsi]
mov r10, qword [rcx + 0x20]
or r9d, 0xffffffff
mov r8d, eax
lea rdx, str.Gathering_Manager
mov rcx, rsi
mov rax, r10
call qword [case.0x140006f84.0]
nop
lea rcx, [rsp + 0x78]
call fcn.14002c0f0
jmp 0x140051f51
mov rsi, qword [rsp + 0xa8]
mov qword [rsp + 0x28], rsi
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9, rbx
mov r8, qword [rsp + 0x70]
mov rdx, rdi
mov rcx, qword [rsp + 0x88]
call fcn.14004d26c
mov r15d, eax
mov rcx, qword [rsp + 0x538]
test eax, eax
jns 0x140051f43
mov r9d, eax
mov r8, r13
mov edx, 0xb3b
call fcn.14002c058
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov qword [rsp + 0x58], r12
test r15d, r15d
js 0x140052100
mov r8d, 7
mov rax, qword [rsp + 0x50]
mov dword [rax], r8d
test dword [0x1400ca100], 0x800
je 0x140051f8c
lea rdx, [0x1400a1e28]
lea rcx, [0x1400c8290]
call fcn.140053178
mov rdx, rsi
lea rcx, [rsp + 0x58]
call fcn.14004f7e8
mov r15d, eax
mov rcx, qword [rsp + 0x538]
test eax, eax
jns 0x140051fb2
mov edx, 0xb49
jmp 0x1400520f4
mov r8d, 8
mov rax, qword [rsp + 0x50]
mov dword [rax], r8d
test dword [0x1400ca100], 0x800
je 0x140051fdf
lea rdx, [0x1400a1e28]
lea rcx, [0x1400c8290]
call fcn.140053178
mov r9, qword [rsp + 0x58]
mov r8, rsi
mov rdx, rbx
mov rcx, rdi
call fcn.14004d940
mov r15d, eax
mov rcx, qword [rsp + 0x538]
test eax, eax
jns 0x14005200b
mov edx, 0xb52
jmp 0x1400520f4
mov r8d, 9
mov rax, qword [rsp + 0x50]
mov dword [rax], r8d
test dword [0x1400ca100], 0x800
je 0x140052038
lea rdx, [0x1400a1e28]
lea rcx, [0x1400c8290]
call fcn.140053178
mov rdx, qword [rsp + 0x58]
mov rcx, rsi
call fcn.14004e564
mov r15d, eax
mov rcx, qword [rsp + 0x538]
test eax, eax
jns 0x14005205e
mov edx, 0xb5b
jmp 0x1400520f4
mov r8d, 0xa
mov rax, qword [rsp + 0x50]
mov dword [rax], r8d
test dword [0x1400ca100], 0x800
je 0x14005208b
lea rdx, [0x1400a1e28]
lea rcx, [0x1400c8290]
call fcn.140053178
mov rdx, qword [rsp + 0x58]
mov rcx, rsi
call fcn.14004ad08
mov r15d, eax
mov rcx, qword [rsp + 0x538]
test eax, eax
jns 0x1400520ae
mov edx, 0xb63
jmp 0x1400520f4
mov r8d, SafeArrayGetDim
mov rax, qword [rsp + 0x50]
mov dword [rax], r8d
test dword [0x1400ca100], 0x800
je 0x1400520db
lea rdx, [0x1400a1e28]
lea rcx, [0x1400c8290]
call fcn.140053178
call fcn.14004b038
mov r15d, eax
mov rcx, qword [rsp + 0x538]
test eax, eax
jns 0x140052100
mov edx, 0xb6e
mov r9d, eax
mov r8, r13
call fcn.14002c058
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140052117
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x140006f84.0]
test r15d, r15d
js 0x140052208
mov r8d, SafeArrayGetDim
mov rax, qword [rsp + 0x50]
mov dword [rax], r8d
test dword [0x1400ca100], 0x800
je 0x14005214d
lea rdx, [0x1400a1e28]
lea rcx, [0x1400c8290]
call fcn.140053178
mov ecx, 1
call fcn.14005049c
mov r15d, eax
test eax, eax
jns 0x140052208
mov rcx, qword [rsp + 0x538]
mov r9d, eax
mov r8, r13
mov edx, 0xb7b
call fcn.140020c10
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0xe0]
call sub.msvcrt.dll_memset
mov r8d, 0x104
lea rdx, [rsp + 0xe0]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0x78]
call fcn.140050374
nop
mov r9d, dword [rsi + 0x10]
mov r8, qword [rsi + 8]
mov edx, 0x7d6
lea rcx, [rsp + 0x78]
call fcn.1400503b4
mov dword [rsi + 0x14], eax
mov rdx, qword [rsi]
mov r10, qword [rdx + 0x20]
or r9d, 0xffffffff
mov r8d, eax
lea rdx, [0x140094ed0]
mov rcx, rsi
mov rax, r10
call qword [case.0x140006f84.0]
nop
lea rcx, [rsp + 0x78]
call fcn.14002c0f0
nop
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
mov rcx, r14
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, r15d
mov rcx, qword [rsp + 0x500]
xor rcx, rsp
call fcn.14002cdb0
lea r11, [rsp + 0x510]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret