Function at 0x14004feec
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
mov rbp, rsp
sub rsp, 0x38
mov dword [rbp + 0x40], 4
xor edi, edi
mov r12, 0xffffffff80000002
mov r14d, 0x80070000
cmp byte [0x1400dfee8], dil
jne 0x140050078
mov qword [rbp + 0x50], rdi
lea rax, [rbp + 0x50]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x20019
lea r8, str.SOFTWAREMicrosoftWindows_SearchGatherWindowsSystemIndex
mov rdx, r12
call fcn.14001ec70
test eax, eax
jle 0x14004ff4f
movzx eax, ax
or eax, r14d
test eax, eax
js 0x140050044
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x48]
xor r8d, r8d
lea rdx, str.EnableFindMyFiles
mov rcx, qword [rbp + 0x50]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jle 0x14004ff91
movzx eax, ax
or eax, r14d
test eax, eax
js 0x140050044
cmp dword [rbp + 0x38], 1
jne 0x140050038
mov rsi, qword [rbp + 0x50]
test rsi, rsi
je 0x14004ffd5
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov qword [rbp + 0x50], rdi
lea rax, [rbp + 0x50]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 2
lea r8, str.SOFTWAREMicrosoftWindows_Search
mov rdx, r12
call fcn.14001ec70
test eax, eax
jle 0x140050005
movzx eax, ax
or eax, r14d
test eax, eax
js 0x140050038
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.EnableFindMyFiles
mov rcx, qword [rbp + 0x50]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov byte [0x1400dfee8], 1
jmp 0x1400500e8
mov rsi, qword [rbp + 0x50]
test rsi, rsi
je 0x140050078
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov qword [rbp + 0x50], rdi
lea rax, [rbp + 0x50]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x20019
lea r8, str.SOFTWAREMicrosoftWindows_Search
mov rdx, r12
call fcn.14001ec70
test eax, eax
jle 0x1400500a8
movzx eax, ax
or eax, r14d
test eax, eax
js 0x1400500fd
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x48]
xor r8d, r8d
lea rdx, str.EnableFindMyFiles
mov rcx, qword [rbp + 0x50]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jle 0x1400500e6
movzx eax, ax
or eax, r14d
test eax, eax
js 0x1400500fd
cmp dword [rbp + 0x38], 1
sete dil
lea rcx, [rbp + 0x50]
call fcn.140042a4c
mov eax, edi
jmp 0x140050114
mov rcx, qword [rbp + 0x50]
test rcx, rcx
je 0x140050112
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
xor eax, eax
add rsp, 0x38
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret