Function at 0x140039628
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 0x1400397c4
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 0x140039685
movzx eax, ax
or eax, edi
test eax, eax
js 0x140039784
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 0x1400396c6
movzx eax, ax
or eax, edi
test eax, eax
js 0x140039784
cmp dword [rbp + 0x28], 1
jne 0x140039778
mov rax, qword [rbp + 0x40]
test rax, rax
je 0x140039716
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.140039328
lea rcx, [rbp - 0x28]
call fcn.140051744
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 0x140039745
movzx eax, ax
or eax, edi
test eax, eax
js 0x140039778
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 0x140039832
mov rax, qword [rbp + 0x40]
test rax, rax
je 0x1400397c4
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.140039328
lea rcx, [rbp - 0x28]
call fcn.140051744
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 0x1400397f3
movzx eax, ax
or eax, edi
test eax, eax
js 0x140039839
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 0x140039830
movzx eax, ax
or eax, edi
test eax, eax
js 0x140039839
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