Function at 0x140001370
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x2d0
mov rax, qword [0x140007010]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
mov r14, rcx
mov rbp, rdx
lea rcx, str.ntdll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.RtlCreateProcessParametersEx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edx, edx
lea rcx, [rsp + 0xb0]
mov r8d, 0x208
mov qword [0x140007708], rax
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0xb0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor edx, edx
lea rcx, [rsp + 0x68]
lea r8d, [rdx + 1]
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
xor r15d, r15d
mov rcx, rbp
mov qword [rsp + 0x60], r15
call fcn.1400015a0
lea rcx, [rsp + 0xb0]
mov rsi, rax
call fcn.1400015a0
lea rcx, str.C:WindowsSystem32
mov rdi, rax
call fcn.1400015a0
mov rcx, rbp
mov rbx, rax
call fcn.1400015a0
mov rcx, qword [rsp + 0x68]
mov rdx, rax
mov dword [rsp + 0x50], 1
mov r9, rdi
mov qword [rsp + 0x48], r15
mov r8, rbx
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rsi
call qword [0x140007708]
test eax, eax
je 0x14000148d
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.RtlCreateProcessParametersEx_failed
call fcn.140001a60
jmp 0x140001561
mov rdx, qword [rsp + 0x60]
mov rcx, r14
call fcn.1400011d0
test rax, rax
jne 0x1400014b1
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.___Cannot_make_a_remote_copy_of_parameters:
jmp 0x140001548
xorps xmm0, xmm0
mov qword [rsp + 0x70], rax
mov r9d, 0x30
mov qword [rsp + 0x20], r15
lea r8, [rsp + 0x78]
xor edx, edx
mov rcx, r14
movups xmmword [rsp + 0x78], xmm0
movups xmmword [rsp + 0x88], xmm0
movups xmmword [rsp + 0x98], xmm0
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
jne 0x14000153b
mov rdx, qword [rsp + 0x80]
lea r9d, [rax + 8]
add rdx, 0x20
mov qword [rsp + 0x20], r15
lea r8, [rsp + 0x70]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x14000159a
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Cannot_update_Params_
call fcn.140001a60
mov rcx, rax
lea rdx, [0x140001c30]
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__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.___Cannot_update_PEB:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov ebx, eax
call fcn.140001a60
mov edx, ebx
mov rcx, rax
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__::operator___unsigned_long_int____ptr64]
lea rdx, [0x140001c30]
mov rcx, rax
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__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor al, al
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.140002260
mov rbx, qword [rsp + 0x310]
add rsp, 0x2d0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov al, 1
jmp 0x140001573