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

Disassembly:
push ebp
lea ebp, [esp - 0x2f2c]
mov eax, 0x2fac
call fcn.0041d7b0
mov eax, dword [0x450970]
xor eax, ebp
mov dword [ebp + 0x2f28], eax
mov eax, dword [ebp + 0x2f34]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x2f40]
push 0x1770
lea ecx, [ebp + 0x1754]
push ecx
push eax
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea eax, [ebp + 0x1754]
push str.__version
push eax
call fcn.0041d6b0
lea eax, [ebp - 0x1c]
push eax
call fcn.004050a8
add esp, 0xc
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push 3
push 0xc0000000
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x2c], eax
cmp eax, 0xffffffff
je 0x408756
push 2
push 1
push ebx
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x408751
mov dword [ebp - 0x20], ebx
push dword [ebp - 0x2c]
call esi
push 0x10
lea eax, [ebp - 0x3c]
push ebx
push eax
call fcn.00420080
push 0x44
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.00420080
mov eax, dword [ebp - 0x20]
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 + 0x1754]
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 0x4087f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 0x1754]
push eax
push str.Could_not_create_process__S____S__error__d_
call fcn.0040b684
add esp, 0x10
push dword [ebp - 0x20]
call esi
lea eax, [ebp - 0x1c]
push eax
call fcn.0042195f
pop ecx
mov ecx, dword [ebp + 0x2f28]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0041d798
add ebp, 0x2f2c
leave
ret
push 0xea60
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x24]
push str.Exit_Code__d
call fcn.0040b684
cmp dword [ebp - 0x24], 0x103
pop ecx
pop ecx
jne 0x408840
push str.Terminating_process
call fcn.0040b684
pop ecx
push 1
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x408861
cmp dword [ebp - 0x24], ebx
je 0x408861
push str.1.0.0
push dword [ebp + 0x2f3c]
push dword [ebp + 0x2f38]
push dword [ebp - 0x28]
call fcn.00408404
add esp, 0x10
push dword [ebp - 0x3c]
call esi
push dword [ebp - 0x38]
call esi
push dword [ebp - 0x20]
call esi
cmp dword [ebp - 0x24], ebx
jne 0x4087d1
lea eax, [ebp - 0x1c]
push 0x43aa68
push eax
call fcn.00421948
push eax
mov dword [ebp - 0x28], eax
lea eax, [ebp + 0x2ec4]
push 0x64
push eax
call fcn.0041f72e
add esp, 0x14
test eax, eax
je 0x40891b
push 0xe
lea eax, [ebp + 0x2ec4]
push str.java_version__
push eax
call fcn.0041e171
add esp, 0xc
test eax, eax
jne 0x4088d0
lea eax, [ebp + 0x2ed2]
push eax
call fcn.0041d280
mov esi, eax
lea eax, [ebp + 0x2ed2]
jmp 0x4088fe
push 0x11
lea eax, [ebp + 0x2ec4]
push str.openjdk_version__
push eax
call fcn.0041e171
add esp, 0xc
test eax, eax
jne 0x40891b
lea eax, [ebp + 0x2ed5]
push eax
call fcn.0041d280
mov esi, eax
lea eax, [ebp + 0x2ed5]
dec esi
dec esi
push esi
push eax
push edi
call fcn.0041d570
push edi
mov byte [edi + esi], bl
push str.Java_version:__S
mov bl, 1
call fcn.0040b684
add esp, 0x18
push dword [ebp - 0x28]
call fcn.0041f6b2
pop ecx
jmp 0x4087d1