Function at 0x408c5a
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.0040ede0
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 0x408cba
push esi
push str.Could_not_get_short_path_name_for__S
call fcn.0040be55
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.0040ecd0
add esp, 0x10
lea eax, [ebp - 0x18]
push str.__version
push eax
call fcn.0040ece0
lea eax, [ebp + 0x1758]
push eax
call fcn.0040508a
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 0x408d34
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 0x408d2c
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.00411640
push 0x44
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.00411640
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 0x408dd3
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.0040be55
add esp, 0x10
push dword [ebp - 0x1c]
call esi
lea eax, [ebp + 0x1758]
push eax
call fcn.00412f1f
pop ecx
mov ecx, dword [ebp + 0x2f2c]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0040edc8
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.0040be55
cmp dword [ebp - 0x20], 0x103
pop ecx
pop ecx
jne 0x408e1e
push str.Terminating_process
call fcn.0040be55
pop ecx
push 1
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x408e3f
cmp dword [ebp - 0x20], ebx
je 0x408e3f
push str.1.0.0
push dword [ebp + 0x2f40]
push dword [ebp + 0x2f3c]
push dword [ebp - 0x24]
call fcn.00408a5c
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 0x408dac
lea eax, [ebp + 0x1758]
push 0x42a898
push eax
call fcn.00412f08
push eax
mov dword [ebp - 0x24], eax
lea eax, [ebp + 0x2ec8]
push 0x64
push eax
call fcn.00410cee
add esp, 0x14
test eax, eax
je 0x408efc
push 0xe
lea eax, [ebp + 0x2ec8]
push str.java_version__
push eax
call fcn.0040f7a1
add esp, 0xc
test eax, eax
jne 0x408eb1
lea eax, [ebp + 0x2ed6]
push eax
call fcn.0040e8b0
mov esi, eax
lea eax, [ebp + 0x2ed6]
jmp 0x408edf
push 0x11
lea eax, [ebp + 0x2ec8]
push str.openjdk_version__
push eax
call fcn.0040f7a1
add esp, 0xc
test eax, eax
jne 0x408efc
lea eax, [ebp + 0x2ed9]
push eax
call fcn.0040e8b0
mov esi, eax
lea eax, [ebp + 0x2ed9]
dec esi
dec esi
push esi
push eax
push edi
call fcn.0040eba0
push edi
mov byte [edi + esi], bl
push str.Java_version:__S
mov bl, 1
call fcn.0040be55
add esp, 0x18
push dword [ebp - 0x24]
call fcn.00410c72
pop ecx
jmp 0x408dac