Function at 0x14004ef0c
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 [0x1400ddea8], dil
jne 0x14004f098
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.14001ec30
test eax, eax
jle 0x14004ef6f
movzx eax, ax
or eax, r14d
test eax, eax
js 0x14004f064
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 0x14004efb1
movzx eax, ax
or eax, r14d
test eax, eax
js 0x14004f064
cmp dword [rbp + 0x38], 1
jne 0x14004f058
mov rsi, qword [rbp + 0x50]
test rsi, rsi
je 0x14004eff5
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.14001ec30
test eax, eax
jle 0x14004f025
movzx eax, ax
or eax, r14d
test eax, eax
js 0x14004f058
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 [0x1400ddea8], 1
jmp 0x14004f108
mov rsi, qword [rbp + 0x50]
test rsi, rsi
je 0x14004f098
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.14001ec30
test eax, eax
jle 0x14004f0c8
movzx eax, ax
or eax, r14d
test eax, eax
js 0x14004f11d
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 0x14004f106
movzx eax, ax
or eax, r14d
test eax, eax
js 0x14004f11d
cmp dword [rbp + 0x38], 1
sete dil
lea rcx, [rbp + 0x50]
call fcn.140041b1c
mov eax, edi
jmp 0x14004f134
mov rcx, qword [rbp + 0x50]
test rcx, rcx
je 0x14004f132
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