Function at 0x140039928
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 0x140039ac4
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.140025224
test eax, eax
jle 0x140039985
movzx eax, ax
or eax, edi
test eax, eax
js 0x140039a84
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 0x1400399c6
movzx eax, ax
or eax, edi
test eax, eax
js 0x140039a84
cmp dword [rbp + 0x28], 1
jne 0x140039a78
mov rax, qword [rbp + 0x40]
test rax, rax
je 0x140039a16
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.140039628
lea rcx, [rbp - 0x28]
call fcn.1400519b4
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.140025224
test eax, eax
jle 0x140039a45
movzx eax, ax
or eax, edi
test eax, eax
js 0x140039a78
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 0x140039b32
mov rax, qword [rbp + 0x40]
test rax, rax
je 0x140039ac4
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.140039628
lea rcx, [rbp - 0x28]
call fcn.1400519b4
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.140025224
test eax, eax
jle 0x140039af3
movzx eax, ax
or eax, edi
test eax, eax
js 0x140039b39
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 0x140039b30
movzx eax, ax
or eax, edi
test eax, eax
js 0x140039b39
cmp dword [rbp + 0x28], 1
sete bl
lea rcx, [rbp + 0x40]
call fcn.1400280a8
mov eax, ebx
add rsp, 0x58
pop r14
pop rdi
pop rbx
pop rbp
ret