Function at 0x140003670
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x338
mov rax, qword [0x140013008]
xor rax, rsp
mov qword [rsp + 0x320], rax
lea rcx, [0x14000e994]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x70], rax
lea rdx, str.RtlCreateProcessParametersEx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x98]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov rdx, qword [rsp + 0x360]
lea rcx, [rsp + 0x98]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rax, [rsp + 0x110]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov r8d, 0x104
lea rdx, [rsp + 0x110]
mov rcx, qword [rsp + 0x360]
call fcn.140003600
mov edx, 0x104
lea rcx, [rsp + 0x110]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
test rax, rax
jne 0x140003747
lea rdx, [rsp + 0x110]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rax, [rsp + 0xb8]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
lea rdx, [rsp + 0x110]
lea rcx, [rsp + 0xb8]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rax, [rsp + 0xe8]
lea rcx, str.C:WindowsSystem32
mov rdi, rax
mov rsi, rcx
mov ecx, 0x28
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0xc8]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
lea rdx, [rsp + 0xe8]
lea rcx, [rsp + 0xc8]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rax, [rsp + 0xa8]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
lea rax, [rsp + 0xd8]
lea rcx, str.Update
mov rdi, rax
mov rsi, rcx
mov ecx, 0xe
rep movsb byte [rdi], byte [rsi]
lea rdx, [rsp + 0xd8]
lea rcx, [rsp + 0xa8]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov r8d, 1
xor edx, edx
lea rcx, [rsp + 0x90]
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jne 0x14000383c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.failed_CreateEnvironmentBlock_Error_Code_is__x_n
call fcn.140001070
mov eax, 0xffffffff
jmp 0x140003972
mov qword [rsp + 0x88], 0
mov dword [rsp + 0x50], 1
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xb8]
lea r8, [rsp + 0xc8]
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0x88]
call qword [rsp + 0x78]
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x64], 0
je 0x1400038df
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.failed_RtlCreateProcessParametersEx_Error_Code_0x_x_n
call fcn.140001070
mov eax, 0xffffffff
jmp 0x140003972
mov r8d, 4
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x350]
call fcn.140003990
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x140003922
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.failed_Cannot_make_a_remote_copy_of_parameters_Error_Code_0x_x_n
call fcn.140001070
mov eax, 0xffffffff
jmp 0x140003972
mov rcx, qword [rsp + 0x350]
call fcn.140002e50
mov qword [rsp + 0x80], rax
mov r8, qword [rsp + 0x358]
mov rdx, qword [rsp + 0x350]
mov rcx, qword [rsp + 0x68]
call fcn.140003c90
test eax, eax
jne 0x140003970
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.failed_Cannot_update_Remote_PEB_Error_Code_0x_x_n
call fcn.140001070
mov eax, 0xffffffff
jmp 0x140003972
xor eax, eax
mov rcx, qword [rsp + 0x320]
xor rcx, rsp
call fcn.14000b3a0
add rsp, 0x338
pop rdi
pop rsi
ret