Function at 0x409118
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x2f30]
mov eax, 0x2fb0
call fcn.0040f5e0
mov eax, dword [0x431920]
xor eax, ebp
mov dword [ebp + 0x2f2c], eax
push ebx
push esi
mov esi, dword [ebp + 0x2f38]
push edi
mov edi, dword [ebp + 0x2f44]
push 0x1770
lea eax, [ebp - 0x18]
push eax
push esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x2c], edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
jne 0x409178
push esi
push str.Could_not_get_short_path_name_for__S
call fcn.0040c1e2
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.0040f4d0
add esp, 0x10
lea eax, [ebp - 0x18]
push str.__version
push eax
call fcn.0040f4e0
lea eax, [ebp + 0x1758]
push eax
call fcn.0040531b
add esp, 0xc
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push 3
push 0xc0000000
lea eax, [ebp + 0x1758]
push eax
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x28], eax
cmp eax, 0xffffffff
je 0x4091f2
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 1
push ebx
lea eax, [ebp - 0x1c]
push eax
call edi
push eax
push dword [ebp - 0x28]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x4091ea
mov dword [ebp - 0x1c], ebx
push dword [ebp - 0x28]
call esi
mov edi, dword [ebp - 0x2c]
push 0x10
lea eax, [ebp - 0x3c]
push ebx
push eax
call fcn.00410e00
push 0x44
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.00410e00
mov eax, dword [ebp - 0x1c]
add esp, 0x18
mov dword [ebp - 0x40], eax
xor eax, eax
mov word [ebp - 0x50], ax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push ebx
push 0x20
push 1
push ebx
push ebx
lea eax, [ebp - 0x18]
push eax
push ebx
mov dword [ebp - 0x80], 0x44
mov dword [ebp - 0x54], 0x101
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x409291
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp + 0x1758]
push eax
lea eax, [ebp - 0x18]
push eax
push str.Could_not_create_process__S____S__error__d_
call fcn.0040c1e2
add esp, 0x10
push dword [ebp - 0x1c]
call esi
lea eax, [ebp + 0x1758]
push eax
call fcn.00413719
pop ecx
mov ecx, dword [ebp + 0x2f2c]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0040f5c8
add ebp, 0x2f30
leave
ret
push 0xea60
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x20]
push str.Exit_Code__d
call fcn.0040c1e2
cmp dword [ebp - 0x20], 0x103
pop ecx
pop ecx
jne 0x4092dc
push str.Terminating_process
call fcn.0040c1e2
pop ecx
push 1
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x4092fd
cmp dword [ebp - 0x20], ebx
je 0x4092fd
push str.1.0.0
push dword [ebp + 0x2f40]
push dword [ebp + 0x2f3c]
push dword [ebp - 0x24]
call fcn.00408f1a
add esp, 0x10
push dword [ebp - 0x3c]
call esi
push dword [ebp - 0x38]
call esi
push dword [ebp - 0x1c]
call esi
cmp dword [ebp - 0x20], ebx
jne 0x40926a
lea eax, [ebp + 0x1758]
push 0x42ac48
push eax
call fcn.00413702
push eax
mov dword [ebp - 0x24], eax
lea eax, [ebp + 0x2ec8]
push 0x64
push eax
call fcn.0041156e
add esp, 0x14
test eax, eax
je 0x4093ba
push 0xe
lea eax, [ebp + 0x2ec8]
push str.java_version__
push eax
call fcn.0040ffa1
add esp, 0xc
test eax, eax
jne 0x40936f
lea eax, [ebp + 0x2ed6]
push eax
call fcn.0040f0b0
mov esi, eax
lea eax, [ebp + 0x2ed6]
jmp 0x40939d
push 0x11
lea eax, [ebp + 0x2ec8]
push str.openjdk_version__
push eax
call fcn.0040ffa1
add esp, 0xc
test eax, eax
jne 0x4093ba
lea eax, [ebp + 0x2ed9]
push eax
call fcn.0040f0b0
mov esi, eax
lea eax, [ebp + 0x2ed9]
dec esi
dec esi
push esi
push eax
push edi
call fcn.0040f3a0
push edi
mov byte [edi + esi], bl
push str.Java_version:__S
mov bl, 1
call fcn.0040c1e2
add esp, 0x18
push dword [ebp - 0x24]
call fcn.004114f2
pop ecx
jmp 0x40926a