Function at 0x140057a88
Capabilities:
Accept command line arguments
Check if file exists
Create a process with modified i/o handles and window
Create process on windows
Get file attributes

Disassembly:
mov r11, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x790
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
mov rax, qword [0x140099938]
xor rax, rsp
mov qword [rsp + 0x780], rax
mov r13, rcx
xor r14d, r14d
mov edi, r14d
lea ebx, [r14 + 7]
mov qword [r11 - 0x6a8], rbx
mov qword [r11 - 0x6b0], r14
mov word [r11 - 0x6c0], r14w
or dword [rsp + 0x58], 0xffffffff
mov qword [r11 - 0x680], rbx
mov qword [r11 - 0x688], r14
mov word [r11 - 0x698], r14w
lea r8, str.______________________IN_n
lea r15, str.Win64PathThrough
mov rdx, r15
lea ecx, [rbx - 2]
call fcn.140009480
cmp dword [0x14009ba0c], r14d
je 0x140057f58
mov esi, 0x105
mov r8d, esi
lea rdx, [rsp + 0x150]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp r14w, word [rsp + 0x150]
je 0x140057ee8
lea rcx, [rsp + 0x150]
call fcn.14005b1c0
mov r8, rax
lea rdx, [rsp + 0x150]
lea rcx, [rsp + 0x118]
call fcn.140002280
lea rcx, [rsp + 0x120]
cmp qword [rsp + 0x138], 8
cmovae rcx, qword [rsp + 0x120]
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], 0x101
lea rax, [rsp + 0x360]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x570]
lea r8d, [r14 + 4]
lea rdx, [rsp + 0x140]
call fcn.14005cbe4
lea rcx, [rsp + 0x140]
call fcn.14005b1c0
mov r8, rax
lea rdx, [rsp + 0x140]
lea rcx, [rsp + 0xf0]
call fcn.140002280
lea rcx, [rsp + 0x570]
call fcn.14005b1c0
mov r8, rax
lea rdx, [rsp + 0x570]
lea rcx, [rsp + 0xf0]
call fcn.14000362c
lea rcx, [rsp + 0x360]
call fcn.14005b1c0
mov r8, rax
lea rdx, [rsp + 0x360]
lea rcx, [rsp + 0xf0]
call fcn.14000362c
cmp dword [0x14009ba1c], r14d
je 0x140057c67
lea rcx, str.64.EXE
call fcn.14005b1c0
mov r8, rax
lea rdx, str.64.EXE
lea rcx, [rsp + 0xf0]
call fcn.14000362c
jmp 0x140057c93
cmp dword [0x14009ba20], r14d
je 0x140057c93
lea rcx, str.IA64.EXE
call fcn.14005b1c0
mov r8, rax
lea rdx, str.IA64.EXE
lea rcx, [rsp + 0xf0]
call fcn.14000362c
lea r9, [rsp + 0xf8]
cmp qword [rsp + 0x110], 8
cmovae r9, qword [rsp + 0xf8]
lea r8, str.strWin64Exe.data__
mov rdx, r15
mov ecx, 4
call fcn.1400099b4
lea rcx, [rsp + 0xf8]
cmp qword [rsp + 0x110], 8
cmovae rcx, qword [rsp + 0xf8]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140057f58
lea rcx, [0x1400998c0]
mov rax, qword [0x1400998c0]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x50], rax
lea rbx, [rsp + 0xf8]
cmp qword [rsp + 0x110], 8
cmovae rbx, qword [rsp + 0xf8]
cmp rbx, r14
jne 0x140057d28
mov eax, r14d
jmp 0x140057d30
mov rcx, rbx
call fcn.14005b1c0
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.14000a188
lea rcx, [0x140077b2c]
call fcn.14005b1c0
mov r8d, eax
lea rdx, [0x140077b2c]
lea rcx, [rsp + 0x50]
call fcn.14000a8b0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x5c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov r12, rax
mov edi, 1
mov ebp, edi
cmp dword [rsp + 0x5c], edi
jle 0x140057dd9
lea rsi, [rax + 8]
mov rbx, qword [rsi]
cmp rbx, r14
jne 0x140057d95
mov eax, r14d
jmp 0x140057d9d
mov rcx, rbx
call fcn.14005b1c0
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.14000a8b0
lea rcx, [0x140077b2c]
call fcn.14005b1c0
mov r8d, eax
lea rdx, [0x140077b2c]
lea rcx, [rsp + 0x50]
call fcn.14000a8b0
add ebp, edi
add rsi, 8
cmp ebp, dword [rsp + 0x5c]
jl 0x140057d88
lea rcx, [rsp + 0x50]
call fcn.140057868
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbx, qword [rsp + 0x50]
mov r9, rbx
lea r8, str.strCmdLine
mov rdx, r15
mov ecx, 4
call fcn.1400099b4
mov esi, 0x68
mov r8, rsi
xor edx, edx
lea rcx, [rsp + 0x80]
call fcn.14005bb90
mov dword [rsp + 0x80], esi
mov ecx, edi
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140057e45
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.140009ea8
mov rbx, qword [rsp + 0x50]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, r14d
je 0x140057ebd
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or edx, 0xffffffff
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x58]
mov dword [r13], eax
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
cmp eax, r14d
jg 0x140057f53
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov ebx, 7
jmp 0x140057f58
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, str.GetModuleFileName_failed.__0x_1_x___n
mov rdx, r15
mov ecx, 2
call fcn.140009480
nop
cmp qword [rsp + 0x138], 8
jb 0x140057f1e
mov rcx, qword [rsp + 0x120]
call fcn.14005ab0c
mov qword [rsp + 0x138], rbx
mov qword [rsp + 0x130], r14
mov word [rsp + 0x120], r14w
cmp qword [rsp + 0x110], 8
jb 0x140057f4f
mov rcx, qword [rsp + 0xf8]
call fcn.14005ab0c
xor eax, eax
jmp 0x140057fb8
mov ebx, 7
lea r8, str.______________________OUT_n
mov rdx, r15
mov ecx, 5
call fcn.140009480
nop
cmp qword [rsp + 0x138], 8
jb 0x140057f85
mov rcx, qword [rsp + 0x120]
call fcn.14005ab0c
mov qword [rsp + 0x138], rbx
mov qword [rsp + 0x130], r14
mov word [rsp + 0x120], r14w
cmp qword [rsp + 0x110], 8
jb 0x140057fb6
mov rcx, qword [rsp + 0xf8]
call fcn.14005ab0c
mov eax, edi
mov rcx, qword [rsp + 0x780]
xor rcx, rsp
call fcn.14005bad0
lea r11, [rsp + 0x790]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret