Function at 0x14004fa2c
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 0x14004fbb8
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 0x14004fa8f
movzx eax, ax
or eax, r14d
test eax, eax
js 0x14004fb84
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 0x14004fad1
movzx eax, ax
or eax, r14d
test eax, eax
js 0x14004fb84
cmp dword [rbp + 0x38], 1
jne 0x14004fb78
mov rsi, qword [rbp + 0x50]
test rsi, rsi
je 0x14004fb15
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 0x14004fb45
movzx eax, ax
or eax, r14d
test eax, eax
js 0x14004fb78
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 0x14004fc28
mov rsi, qword [rbp + 0x50]
test rsi, rsi
je 0x14004fbb8
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 0x14004fbe8
movzx eax, ax
or eax, r14d
test eax, eax
js 0x14004fc3d
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 0x14004fc26
movzx eax, ax
or eax, r14d
test eax, eax
js 0x14004fc3d
cmp dword [rbp + 0x38], 1
sete dil
lea rcx, [rbp + 0x50]
call fcn.14004258c
mov eax, edi
jmp 0x14004fc54
mov rcx, qword [rbp + 0x50]
test rcx, rcx
je 0x14004fc52
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