Function at 0x140007b40
Capabilities:
Accept command line arguments
Check if file exists
Create process on windows
Create process suspended
Get file attributes
Get file version info
Resume thread
Set console window title

Disassembly:
push r14
mov eax, 0x103b0
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.140002620
sub rsp, rax
call fcn.140001550
xor eax, eax
lea rdi, [rsp + 0x1a0]
mov ecx, 0x41
rep stosq qword [rdi], rax
lea rsi, [rsp + 0x1a0]
mov r8d, 0x104
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140007f04
lea rdx, [rsp + 0x5c]
mov rcx, rsi
mov dword [rsp + 0x5c], 0
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test eax, eax
jne 0x140007e67
mov ecx, 0xfffffff5
lea rbx, str..console.exe
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, 5
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
mov rdi, qword [sym.imp.SHLWAPI.dll_StrRStrIW]
lea r8, str..console.exe
jmp 0x140007bf1
mov r8, qword [rbx + 8]
add rbx, 8
test r8, r8
je 0x140007e46
xor edx, edx
mov rcx, rsi
call rdi
test rax, rax
je 0x140007be0
movabs rdi, 0x6500780065002e
mov word [rax + 8], 0
mov rcx, rsi
mov qword [rax], rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140007ef0
and eax, 0x10
mov r12d, eax
jne 0x140007ef0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateJobObjectW]
mov rbx, rax
test rax, rax
je 0x140007f81
mov r9d, 1
xor r8d, r8d
xor edx, edx
or rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov rbp, rax
test rax, rax
je 0x140007f9a
mov qword [rsp + 0x70], rbx
mov r13, qword [sym.imp.KERNEL32.dll_SetInformationJobObject]
lea r8, [rsp + 0x70]
mov r9d, 0x10
mov qword [rsp + 0x78], rax
mov edx, 7
mov rcx, rbx
call r13
test eax, eax
je 0x140007f4f
lea r8, [rsp + 0x110]
mov ecx, 0x24
mov eax, r12d
mov r9d, 0x90
mov rdi, r8
mov edx, 9
rep stosd dword [rdi], eax
mov rcx, rbx
mov dword [rsp + 0x120], 0x2000
call r13
test eax, eax
je 0x140007f68
lea r13, [rsp + 0x80]
lea rdx, [rsp + 0xa4]
mov eax, r12d
mov ecx, 6
mov rdi, r13
lea r14, [rsp + 0xa0]
mov dword [rsp + 0xa0], 0x68
rep stosd dword [rdi], eax
mov rdi, rdx
mov ecx, 0x19
rep stosd dword [rdi], eax
lea rdi, [rsp + 0x3b0]
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathGetArgsW]
or r8, 0xffffffffffffffff
mov edx, 0x7fff
mov rcx, rdi
lea r9, str._ls__ls
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.msvcrt.dll__snwprintf_s]
xor r8d, r8d
xor r9d, r9d
xor ecx, ecx
mov qword [rsp + 0x38], r8
mov rdx, rdi
mov qword [rsp + 0x30], r8
xor r8d, r8d
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r14
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140007f1d
mov rdx, qword [rsp + 0x80]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
je 0x140007f36
mov rcx, qword [rsp + 0x88]
lea r13, [rsp + 0x60]
lea r12, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0x88]
lea rdi, [rsp + 0x58]
mov r14, qword [sym.imp.KERNEL32.dll_CloseHandle]
call r14
xor ecx, ecx
xor edx, edx
mov rsi, qword [sym.imp.KERNEL32.dll_GetQueuedCompletionStatus]
mov dword [rsp + 0x58], edx
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x60], rcx
nop word [rax + rax]
mov r9, r13
mov r8, r12
mov rdx, rdi
mov rcx, rbp
mov dword [rsp + 0x20], 0xffffffff
call rsi
test eax, eax
je 0x140007e10
cmp rbx, qword [rsp + 0x68]
jne 0x140007de8
cmp dword [rsp + 0x58], 4
jne 0x140007de8
mov rcx, rbx
call r14
mov rcx, rbp
call r14
xor eax, eax
mov rcx, qword [rsp + 0x80]
lea rdx, [rsp + 0x54]
mov dword [rsp + 0x54], eax
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rsp + 0x80]
call r14
mov eax, dword [rsp + 0x54]
jmp 0x140007e55
lea rcx, str.Invalid_wrapper_executable_name._n
call fcn.140001450
or eax, 0xffffffff
add rsp, 0x103b0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov ecx, eax
call sub.msvcrt.dll_malloc
mov rdi, rax
test rax, rax
je 0x140007bac
mov edx, dword [rsp + 0x5c]
mov r9, rax
mov r8d, ebx
mov rcx, rsi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x140007e9d
mov rcx, rdi
call sub.msvcrt.dll_free
jmp 0x140007bac
xor r9d, r9d
xor r10d, r10d
lea rdx, str.StringFileInfo040904b0ProductName
mov rcx, rdi
mov qword [rsp + 0x3b0], r9
lea r8, [rsp + 0x3b0]
lea r9, [rsp + 0x110]
mov dword [rsp + 0x110], r10d
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140007e90
cmp dword [rsp + 0x110], 0
je 0x140007e90
mov rcx, qword [rsp + 0x3b0]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
jmp 0x140007e90
mov rdx, rsi
lea rcx, str.Main_executable__ls_not_found._n
call fcn.140001450
jmp 0x140007e52
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.GetModuleFileName_failed__error__d_n
mov edx, eax
call fcn.140001450
jmp 0x140007e52
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.CreateProcess_failed__error__d_n
mov edx, eax
call fcn.140001450
jmp 0x140007e52
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.AssignProcessToJobObject_failed__error__d_n
mov edx, eax
call fcn.140001450
jmp 0x140007e52
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.SetInformationJobObject_AssociateCompletionPortInformation__failed__error__d_n
mov edx, eax
call fcn.140001450
jmp 0x140007e52
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.SetInformationJobObject_ExtendedLimitInformation__failed__error__d_n
mov edx, eax
call fcn.140001450
jmp 0x140007e52
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.CreateJobObject_failed__error__d_n
mov edx, eax
call fcn.140001450
jmp 0x140007e52
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.CreateIoCompletionPort_failed__error__d_n
mov edx, eax
call fcn.140001450
jmp 0x140007e52