Function at 0x14004ff1c
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 0x1400500a8
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 0x14004ff7f
movzx eax, ax
or eax, r14d
test eax, eax
js 0x140050074
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 0x14004ffc1
movzx eax, ax
or eax, r14d
test eax, eax
js 0x140050074
cmp dword [rbp + 0x38], 1
jne 0x140050068
mov rsi, qword [rbp + 0x50]
test rsi, rsi
je 0x140050005
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 0x140050035
movzx eax, ax
or eax, r14d
test eax, eax
js 0x140050068
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 0x140050118
mov rsi, qword [rbp + 0x50]
test rsi, rsi
je 0x1400500a8
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 0x1400500d8
movzx eax, ax
or eax, r14d
test eax, eax
js 0x14005012d
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 0x140050116
movzx eax, ax
or eax, r14d
test eax, eax
js 0x14005012d
cmp dword [rbp + 0x38], 1
sete dil
lea rcx, [rbp + 0x50]
call fcn.140042a7c
mov eax, edi
jmp 0x140050144
mov rcx, qword [rbp + 0x50]
test rcx, rcx
je 0x140050142
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