Function at 0x140012a34
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows
Set environment variable
Terminate process

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1bf0
call fcn.14003ad30
sub rsp, rax
mov qword [rsp + 0xa0], 0xfffffffffffffffe
mov qword [rsp + 0x1c48], rbx
mov rax, qword [0x14004de00]
xor rax, rsp
mov qword [rsp + 0x1be0], rax
mov r13, r8
mov rbx, rdx
mov rdi, rcx
lea rdx, [0x14004175c]
lea rcx, [rsp + 0x470]
call fcn.14001c3c0
mov r8d, 0x175c
lea rdx, [rsp + 0x471]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetShortPathNameA]
xor r15d, r15d
cmp eax, r15d
jne 0x140012ace
mov rdx, rdi
lea rcx, str.Could_not_get_short_path_name_for__S
call fcn.140016394
mov rdx, rdi
lea rcx, [rsp + 0x471]
call fcn.14001c3c0
lea rdx, str.___version
lea rcx, [rsp + 0x470]
call fcn.14001c320
lea rcx, str._JAVA_OPTIONS
call fcn.14000d8f8
mov r12, rax
lea rcx, str.JAVA_TOOL_OPTIONS
call fcn.14000d8f8
mov rbp, rax
lea rcx, str.JDK_JAVA_OPTIONS
call fcn.14000d8f8
mov rsi, rax
mov r14d, 0x18
mov r8, r14
xor edx, edx
lea rcx, [rsp + 0x88]
call fcn.14001e190
mov dword [rsp + 0x88], r14d
mov r14d, 1
mov dword [rsp + 0x98], r14d
xor r9d, r9d
lea r8, [rsp + 0x88]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
cmp eax, r15d
jne 0x140012b78
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.CreatePipe_error___d_
call fcn.140016394
xor al, al
jmp 0x140012faa
xor r8d, r8d
mov edx, r14d
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
cmp eax, r15d
jne 0x140012ba9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.SetHandleInformation_error___d_
call fcn.140016394
xor al, al
jmp 0x140012faa
xor edx, edx
lea r8d, [rdx + 0x18]
lea rcx, [rsp + 0x70]
call fcn.14001e190
mov r14d, 0x68
mov r8, r14
xor edx, edx
lea rcx, [rsp + 0xb0]
call fcn.14001e190
mov dword [rsp + 0xb0], r14d
mov dword [rsp + 0xec], 0x101
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x110], rax
mov word [rsp + 0xf0], r15w
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x470]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, r15d
setne r14b
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x268], 0xf
mov qword [rsp + 0x260], r15
mov byte [rsp + 0x250], r15b
cmp r14b, r15b
je 0x140012cf9
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x60]
mov r8d, 0x200
lea rdx, [rsp + 0x270]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, r15d
je 0x140012ce9
mov eax, dword [rsp + 0x60]
cmp eax, r15d
je 0x140012ce9
mov r8, rax
lea rdx, [rsp + 0x270]
lea rcx, [rsp + 0x248]
call fcn.140007f04
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x60]
mov r8d, 0x200
lea rdx, [rsp + 0x270]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, r15d
jne 0x140012ca0
mov edx, 0xea60
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp r12, r15
je 0x140012d16
mov rdx, r12
lea rcx, str._JAVA_OPTIONS
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov rcx, r12
call fcn.14001c17c
cmp rbp, r15
je 0x140012d33
mov rdx, rbp
lea rcx, str.JAVA_TOOL_OPTIONS
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov rcx, rbp
call fcn.14001c17c
cmp rsi, r15
je 0x140012d50
mov rdx, rsi
lea rcx, str.JDK_JAVA_OPTIONS
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov rcx, rsi
call fcn.14001c17c
cmp r14b, r15b
jne 0x140012d9d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [rsp + 0x470]
lea rcx, str.Could_not_create_process__S__error__d_
call fcn.140016394
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp qword [rsp + 0x268], 0x10
jb 0x140012d96
mov rcx, qword [rsp + 0x250]
call fcn.14001c17c
xor al, al
jmp 0x140012faa
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [rsp + 0x50]
lea rcx, str.Exit_Code__d
call fcn.140016394
mov r11d, dword [rsp + 0x50]
cmp r11d, 0x103
jne 0x140012de9
lea rcx, str.Terminating_process
call fcn.140016394
mov edx, 1
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x140012e06
cmp r11d, r15d
je 0x140012e06
mov r9d, 0x8664
lea r8, str.1.0.0
mov rdx, rbx
mov rcx, rdi
call fcn.14000d5fc
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, r15b
cmp dword [rsp + 0x50], r15d
jne 0x140012f90
mov qword [rsp + 0x240], 0xf
mov qword [rsp + 0x238], r15
mov byte [rsp + 0x228], r15b
mov r9d, 1
mov r8d, r9d
lea rdx, [rsp + 0x248]
lea rcx, [rsp + 0x120]
call fcn.1400124f0
nop
lea rdx, [rsp + 0x220]
lea rcx, [rsp + 0x120]
call fcn.1400125d4
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
add rdx, rax
test byte [rdx + 0x10], 6
cmovne rdx, r15
cmp rdx, r15
je 0x140012f4d
lea rcx, [rsp + 0x228]
cmp qword [rsp + 0x240], 0x10
cmovae rcx, qword [rsp + 0x228]
lea rdx, str._version__
call fcn.14001e728
cmp rax, r15
je 0x140012f1d
lea rdi, [rax + 0xa]
mov edx, 0x22
mov rcx, rdi
call fcn.14001bd20
cmp rax, r15
je 0x140012ee5
sub eax, edi
jmp 0x140012ef0
mov rcx, rdi
call fcn.14001bd50
sub eax, 2
cmp eax, r15d
cmovl eax, r15d
movsxd rbx, eax
mov r8, rbx
mov rdx, rdi
mov rcx, r13
call fcn.14001c1a0
mov byte [rbx + r13], r15b
mov bl, 1
mov rdx, r13
lea rcx, str.Java_version2:__S
call fcn.140016394
lea rdx, [rsp + 0x220]
lea rcx, [rsp + 0x120]
call fcn.1400125d4
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
add rdx, rax
test byte [rdx + 0x10], 6
cmovne rdx, r15
cmp rdx, r15
jne 0x140012ea0
lea rcx, [rsp + 0x1b8]
call fcn.14000eeb0
lea r11, vtable.std::ios_base.0
mov qword [rsp + 0x1b8], r11
lea rcx, [rsp + 0x1b8]
call fcn.14001bae4
nop
cmp qword [rsp + 0x240], 0x10
jb 0x140012f90
mov rcx, qword [rsp + 0x228]
call fcn.14001c17c
nop
cmp qword [rsp + 0x268], 0x10
jb 0x140012fa8
mov rcx, qword [rsp + 0x250]
call fcn.14001c17c
mov al, bl
mov rcx, qword [rsp + 0x1be0]
xor rcx, rsp
call fcn.14001c510
mov rbx, qword [rsp + 0x1c48]
add rsp, 0x1bf0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret