Function at 0x14004f21c
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 0x14004f3a8
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 0x14004f27f
movzx eax, ax
or eax, r14d
test eax, eax
js 0x14004f374
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 0x14004f2c1
movzx eax, ax
or eax, r14d
test eax, eax
js 0x14004f374
cmp dword [rbp + 0x38], 1
jne 0x14004f368
mov rsi, qword [rbp + 0x50]
test rsi, rsi
je 0x14004f305
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 0x14004f335
movzx eax, ax
or eax, r14d
test eax, eax
js 0x14004f368
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 0x14004f418
mov rsi, qword [rbp + 0x50]
test rsi, rsi
je 0x14004f3a8
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 0x14004f3d8
movzx eax, ax
or eax, r14d
test eax, eax
js 0x14004f42d
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 0x14004f416
movzx eax, ax
or eax, r14d
test eax, eax
js 0x14004f42d
cmp dword [rbp + 0x38], 1
sete dil
lea rcx, [rbp + 0x50]
call fcn.140041dcc
mov eax, edi
jmp 0x14004f444
mov rcx, qword [rbp + 0x50]
test rcx, rcx
je 0x14004f442
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