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

Disassembly:
push rbp
push rbx
push rdi
push r14
mov rbp, rsp
sub rsp, 0x58
mov dword [rbp + 0x30], 4
mov edi, 0x80070000
xor ebx, ebx
mov r14, 0xffffffff80000002
cmp byte [0x1400d1ebc], bl
jne 0x1400397d4
mov qword [rbp + 0x40], rbx
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x20019
lea r8, str.SOFTWAREMicrosoftWindows_SearchGatherWindowsSystemIndex
mov rdx, r14
call fcn.140024fd4
test eax, eax
jle 0x140039695
movzx eax, ax
or eax, edi
test eax, eax
js 0x140039794
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x28]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x38]
xor r8d, r8d
lea rdx, str.EnableFindMyFiles
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jle 0x1400396d6
movzx eax, ax
or eax, edi
test eax, eax
js 0x140039794
cmp dword [rbp + 0x28], 1
jne 0x140039788
mov rax, qword [rbp + 0x40]
test rax, rax
je 0x140039726
mov qword [rbp - 0x20], rax
mov byte [rbp - 0x28], bl
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov dword [rbp - 0x24], eax
mov rax, qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov qword [rbp - 0x18], rax
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x18]
call fcn.140039338
lea rcx, [rbp - 0x28]
call fcn.1400519a4
mov qword [rbp + 0x40], rbx
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 2
lea r8, str.SOFTWAREMicrosoftWindows_Search
mov rdx, r14
call fcn.140024fd4
test eax, eax
jle 0x140039755
movzx eax, ax
or eax, edi
test eax, eax
js 0x140039788
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0x28]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.EnableFindMyFiles
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov byte [0x1400d1ebc], 1
jmp 0x140039842
mov rax, qword [rbp + 0x40]
test rax, rax
je 0x1400397d4
mov qword [rbp - 0x18], rax
mov byte [rbp - 0x28], bl
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov dword [rbp - 0x24], eax
mov rax, qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov qword [rbp - 0x20], rax
lea rdx, [rbp - 0x18]
lea rcx, [rbp - 0x20]
call fcn.140039338
lea rcx, [rbp - 0x28]
call fcn.1400519a4
mov qword [rbp + 0x40], rbx
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x20019
lea r8, str.SOFTWAREMicrosoftWindows_Search
mov rdx, r14
call fcn.140024fd4
test eax, eax
jle 0x140039803
movzx eax, ax
or eax, edi
test eax, eax
js 0x140039849
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x28]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x38]
xor r8d, r8d
lea rdx, str.EnableFindMyFiles
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jle 0x140039840
movzx eax, ax
or eax, edi
test eax, eax
js 0x140039849
cmp dword [rbp + 0x28], 1
sete bl
lea rcx, [rbp + 0x40]
call fcn.140027e58
mov eax, ebx
add rsp, 0x58
pop r14
pop rdi
pop rbx
pop rbp
ret