Function at 0x14000657c
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r12
mov qword [rax + 0x20], r15
push rbp
lea rbp, [rax - 0x398]
sub rsp, 0x490
mov rax, qword [0x14000f068]
xor rax, rsp
mov qword [rbp + 0x380], rax
mov ecx, 0x40000047
xor ebx, ebx
call qword [sym.imp.SHELL32.dll_SHRestricted]
nop dword [rax + rax]
test eax, eax
jne 0x140006881
lea ecx, [rbx + 0x43]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
nop dword [rax + rax]
test eax, eax
jne 0x140006881
lea rax, [rsp + 0x40]
xor r8d, r8d
lea r15d, [rbx + 1]
mov qword [rsp + 0x20], rax
mov r9d, r15d
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionWindows
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140006881
and qword [rsp + 0x38], rbx
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x70], 0x11c
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetVersionExW]
nop dword [rax + rax]
test eax, eax
je 0x140006642
test byte [rbp + 0x88], 0x40
jne 0x14000664c
lea rdx, [rsp + 0x38]
call fcn.140008f48
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rbp + 0x180]
mov dword [rsp + 0x30], 0x1fe
lea r8, str.Load
mov qword [rsp + 0x20], rax
xor edx, edx
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
nop dword [rax + rax]
mov edi, 2
test eax, eax
jne 0x140006752
cmp dword [rsp + 0x34], r15d
jne 0x140006752
test byte [0x14000f901], 0x40
lea r12, str.SoftwareMicrosoftWindows_NTCurrentVersionWindows_Load
je 0x1400066db
and dword [rsp + 0x64], ebx
lea rax, [rsp + 0x48]
mov r9d, edi
mov qword [rsp + 0x20], rax
lea rdx, [0x14000ae30]
mov qword [rsp + 0x58], r12
mov dword [rsp + 0x60], 0x74
call fcn.1400026b0
mov rbx, qword [rsp + 0x38]
lea rcx, [rsp + 0x70]
mov edx, 0x104
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetWindowsDirectoryW]
nop dword [rax + rax]
test eax, eax
je 0x140006715
lea r9, [rsp + 0x70]
mov r8, rbx
mov edx, 7
lea rcx, [rbp + 0x180]
call fcn.140006348
jmp 0x140006717
xor eax, eax
xor ebx, ebx
test eax, eax
setne bl
test byte [0x14000f901], 0x40
je 0x140006752
and dword [rsp + 0x64], 0
lea rax, [rsp + 0x48]
mov r9d, edi
mov qword [rsp + 0x20], rax
lea rdx, [0x14000adb0]
mov qword [rsp + 0x58], r12
mov dword [rsp + 0x60], 0x74
call fcn.1400026b0
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rbp + 0x180]
mov dword [rsp + 0x30], 0x1fe
lea r8, [0x14000b8d8]
mov qword [rsp + 0x20], rax
xor edx, edx
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
nop dword [rax + rax]
test eax, eax
jne 0x140006853
cmp dword [rsp + 0x34], r15d
jne 0x140006853
test byte [0x14000f901], 0x40
lea r12, str.SoftwareMicrosoftWindows_NTCurrentVersionWindows_Run
je 0x1400067dc
and dword [rsp + 0x64], eax
lea rdx, [0x14000ae30]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x58], r12
mov r9d, edi
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x60], 0x72
call fcn.1400026b0
mov rdi, qword [rsp + 0x38]
lea rcx, [rsp + 0x70]
mov edx, 0x104
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetWindowsDirectoryW]
nop dword [rax + rax]
test eax, eax
je 0x140006814
lea r9, [rsp + 0x70]
mov r8, rdi
mov edx, r15d
lea rcx, [rbp + 0x180]
call fcn.140006348
jmp 0x140006816
xor eax, eax
test eax, eax
cmovne ebx, r15d
test byte [0x14000f901], 0x40
je 0x140006853
and dword [rsp + 0x64], 0
lea rax, [rsp + 0x48]
mov r9d, 2
mov qword [rsp + 0x20], rax
lea rdx, [0x14000adb0]
mov qword [rsp + 0x58], r12
mov dword [rsp + 0x60], 0x72
call fcn.1400026b0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x38]
and qword [rsp + 0x38], 0
test rcx, rcx
je 0x140006881
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x10]
call qword [0x14000abe0]
mov eax, ebx
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.140009590
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r12, qword [r11 + 0x20]
mov r15, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret