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

Disassembly:
push ebp
lea ebp, [esp - 0x19a4]
mov eax, 0x19a4
call fcn.00413d20
push 0xffffffffffffffff
push 0x43f580
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x455834]
xor eax, ebp
mov dword [ebp + 0x19a0], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x19b8]
mov ebx, dword [ebp + 0x19ac]
mov dword [ebp - 0x34], eax
lea eax, [ebp + 0x30]
push 0x4436d8
push eax
mov dword [ebp - 0x30], ebx
call fcn.0041f650
pop ecx
pop ecx
push 0x175c
lea eax, [ebp + 0x31]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
jne 0x40d5a5
push ebx
push str.Could_not_get_short_path_name_for__S
call fcn.0040f3f5
lea eax, [ebp + 0x31]
push ebx
push eax
call fcn.0041f650
add esp, 0x10
lea eax, [ebp + 0x30]
push str.___version
push eax
call fcn.0041f660
push str._JAVA_OPTIONS
call fcn.0040e6a9
push str.JAVA_TOOL_OPTIONS
mov dword [ebp - 0x20], eax
call fcn.0040e6a9
push str.JDK_JAVA_OPTIONS
mov dword [ebp - 0x28], eax
call fcn.0040e6a9
push 0xc
pop esi
push esi
mov dword [ebp - 0x2c], eax
xor ebx, ebx
lea eax, [ebp - 0x50]
push ebx
push eax
call fcn.00415560
add esp, 0x20
mov dword [ebp - 0x50], esi
lea eax, [ebp - 0x50]
mov dword [ebp - 0x48], 1
push ebx
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x40d628
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreatePipe_error___d_
call fcn.0040f3f5
pop ecx
pop ecx
xor al, al
jmp 0x40d8f8
push ebx
push 1
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x40d646
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetHandleInformation_error___d_
jmp 0x40d61a
push 0x10
lea eax, [ebp - 0x44]
push ebx
push eax
call fcn.00415560
push 0x44
pop esi
push esi
lea eax, [ebp - 0x94]
push ebx
push eax
call fcn.00415560
mov eax, dword [ebp - 0x24]
add esp, 0x18
mov dword [ebp - 0x54], eax
xor eax, eax
mov word [ebp - 0x64], ax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x94], esi
push eax
lea eax, [ebp - 0x94]
mov dword [ebp - 0x68], 0x101
push eax
push ebx
push ebx
push 0x20
push 1
push ebx
push ebx
lea eax, [ebp + 0x30]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push dword [ebp - 0x24]
mov esi, eax
test esi, esi
setne byte [ebp - 0xd]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lea edi, [ebp]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x14], 0xf
mov byte [ebp], bl
mov dword [ebp - 4], ebx
test esi, esi
je 0x40d714
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, 0x200
jmp 0x40d6f0
cmp dword [ebp - 0x14], 0
je 0x40d706
push dword [ebp - 0x14]
lea eax, [ebp + 0x17a0]
push eax
lea ecx, [ebp]
call fcn.00403da2
push ebx
lea eax, [ebp - 0x14]
push eax
push edi
lea eax, [ebp + 0x17a0]
push eax
push dword [ebp - 0x18]
call esi
test eax, eax
jne 0x40d6d8
push 0xea60
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x20]
push str._JAVA_OPTIONS
call fcn.0040e215
push dword [ebp - 0x28]
push str.JAVA_TOOL_OPTIONS
call fcn.0040e215
push dword [ebp - 0x2c]
push str.JDK_JAVA_OPTIONS
call fcn.0040e215
add esp, 0x18
cmp byte [ebp - 0xd], 0
jne 0x40d76c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp + 0x30]
push eax
push str.Could_not_create_process__S__error__d_
call fcn.0040f3f5
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0xc
push dword [ebp - 0x18]
call esi
jmp 0x40d8ee
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x1c]
push str.Exit_Code__d
call fcn.0040f3f5
cmp dword [ebp - 0x1c], 0x103
pop ecx
pop ecx
jne 0x40d7a9
push str.Terminating_process
call fcn.0040f3f5
pop ecx
push 1
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x40d7d0
cmp dword [ebp - 0x1c], 0
je 0x40d7d0
push 0x14c
push str.1.0.0
push dword [ebp + 0x19b4]
push dword [ebp + 0x19b0]
push dword [ebp - 0x30]
call fcn.0040e75d
add esp, 0x14
push dword [ebp - 0x44]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x40]
call esi
push dword [ebp - 0x18]
call esi
cmp dword [ebp - 0x1c], 0
mov al, bl
mov byte [ebp - 0xd], al
jne 0x40d8ec
xor eax, eax
lea edi, [ebp + 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp + 0x28], ebx
mov dword [ebp + 0x2c], 0xf
mov byte [ebp + 0x18], bl
push 1
push 1
lea eax, [ebp]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp + 0x18f0]
call fcn.0040a849
mov byte [ebp - 4], 2
jmp 0x40d889
cmp dword [ebp + 0x2c], 0x10
lea eax, [ebp + 0x18]
push str._version__
cmovae eax, dword [ebp + 0x18]
push eax
call fcn.004156c0
pop ecx
pop ecx
test eax, eax
je 0x40d889
lea edi, [eax + 0xa]
push 0x22
push edi
call fcn.004147b0
pop ecx
pop ecx
test eax, eax
je 0x40d858
sub eax, edi
jmp 0x40d862
push edi
call fcn.0041f750
pop ecx
sub eax, 2
xor esi, esi
test eax, eax
cmovns esi, eax
push esi
push edi
mov edi, dword [ebp - 0x34]
push edi
call fcn.0041f860
push edi
push str.Java_version2:__S
mov byte [esi + edi], bl
mov byte [ebp - 0xd], 1
call fcn.0040f3f5
add esp, 0x14
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp + 0x18f0]
push eax
call fcn.0040a536
pop ecx
pop ecx
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
je 0x40d827
lea ecx, [ebp + 0x18f0]
call fcn.0040b053
mov eax, dword [ebp + 0x2c]
cmp eax, 0x10
jb 0x40d8e9
mov ecx, dword [ebp + 0x18]
inc eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], ecx
cmp eax, 0x1000
jb 0x40d8e0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.004013fa
mov eax, dword [ebp - 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x20]
push eax
push ecx
call fcn.004137e6
pop ecx
pop ecx
mov al, byte [ebp - 0xd]
mov bl, al
lea ecx, [ebp]
call fcn.004036e9
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x19a0]
xor ecx, ebp
call fcn.00413c4b
add ebp, 0x19a4
leave
ret