Function at 0x40895e
Capabilities:
Create thread
Query environment variable

Disassembly:
push 0xc
mov eax, 0x43ee72
call fcn.00413c7c
push str.launching_program
call fcn.0040f3f5
push 0x34
call fcn.004137f4
xor esi, esi
mov edi, eax
mov ebx, 0x1770
mov dword [ebp - 0x14], edi
pop ecx
pop ecx
cmp dword [0x462368], esi
je 0x4089b3
push ebx
call fcn.004137f4
mov dword [edi], eax
push dword [0x462368]
push str.exe4j.semaphoreName
push str._D_s_s
push eax
call fcn.00403394
add esp, 0x14
inc esi
cmp byte [0x460ba0], 0
je 0x4089db
push ebx
call fcn.004137f4
mov dword [esp], str.exe4j.manualJre
push str._D_strue
push eax
mov dword [edi + esi*4], eax
call fcn.00403394
add esp, 0xc
inc esi
cmp byte [0x463b1c], 0x69
jne 0x408a03
push ebx
call fcn.004137f4
mov dword [esp], str.exe4j.isInstall4j
push str._D_strue
push eax
mov dword [edi + esi*4], eax
call fcn.00403394
add esp, 0xc
inc esi
push ebx
call fcn.004137f4
mov dword [edi + esi*4], eax
call fcn.00404641
push eax
push 0x441b00
push str._D_s_s
push dword [edi + esi*4]
call fcn.00403394
push ebx
call fcn.004137f4
mov dword [edi + esi*4 + 4], eax
call fcn.00404641
push eax
push str.sun.java.command
push str._D_s_s
push dword [edi + esi*4 + 4]
call fcn.00403394
push ebx
call fcn.004137f4
push 0x4623a0
push str.exe4j.tempDir
push str._D_s_s
push eax
mov dword [edi + esi*4 + 8], eax
call fcn.00403394
add esi, 3
push ebx
mov dword [ebp - 0x10], esi
call fcn.004137f4
add esp, 0x40
mov dword [edi + esi*4], eax
cmp byte [0x463b1d], 0
je 0x408a8f
cmp byte [0x463b1e], 0
jne 0x408a8f
or eax, 0xffffffff
jmp 0x408a94
call fcn.00401662
push eax
push str.exe4j.unextractedPosition
push str._D_s_d
push dword [edi + esi*4]
call fcn.00403394
mov ebx, 0x2ee0
push ebx
call fcn.004137f4
push str._Djava.library.path
push eax
mov dword [edi + esi*4 + 4], eax
call fcn.00403394
mov eax, dword [ebp - 0x10]
mov esi, dword [edi + esi*4 + 4]
push dword [edi + eax*4 + 4]
call fcn.0041f750
push esi
mov edi, eax
call fcn.0041f750
mov esi, dword [ebp - 0x10]
add esp, 0x24
sub ebx, eax
push ebx
mov ebx, dword [ebp - 0x14]
mov ecx, dword [ebx + esi*4 + 4]
add ecx, edi
push ecx
push 0x442444
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push str.MANPATH
add esi, 2
call fcn.00425916
pop ecx
test eax, eax
jne 0x408b3b
push 0x1770
call fcn.004137f4
mov esi, dword [ebp - 0x10]
pop ecx
mov dword [ebx + esi*4 + 8], eax
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
push eax
push str.exe4j.consoleCodepage
push str._D_scp_d
push dword [ebx + esi*4 + 8]
call fcn.00403394
add esp, 0x10
add esi, 3
and dword [ebx + esi*4], 0
push 0x24
call fcn.004137b6
mov esi, eax
pop ecx
mov dword [ebp - 0x14], esi
and dword [ebp - 4], 0
test esi, esi
je 0x408b72
push dword [ebp + 8]
mov ecx, esi
call fcn.00406624
mov al, byte [ebp + 0xc]
mov byte [esi + 0x1c], al
mov al, byte [ebp + 0x10]
mov byte [esi + 0x1d], al
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x20], eax
jmp 0x408b74
xor esi, esi
push dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
push ebx
push eax
call fcn.00408017
xor ebx, ebx
add esp, 0xc
xor edi, edi
cmp dword [esi + 0x10], ebx
jle 0x408be3
mov eax, dword [esi + 0x14]
mov eax, dword [eax + ebx*8]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x408bcb
push 4
push str._Xss
push eax
call fcn.0041f7e0
add esp, 0xc
test eax, eax
jne 0x408bcb
mov eax, dword [ebp - 0x14]
add eax, 4
push eax
call fcn.004090b0
pop ecx
test edx, edx
jl 0x408bcb
jg 0x408bc9
test eax, eax
je 0x408bcb
mov edi, eax
inc ebx
cmp ebx, dword [esi + 0x10]
jl 0x408b91
lea eax, [edi - 1]
mov ebx, 0x10000
cmp eax, 0xfffe
cmovbe edi, ebx
jmp 0x408be8
mov ebx, 0x10000
push edi
push str.used_stack_size__d
call fcn.0040f3f5
pop ecx
pop ecx
lea eax, [ebp - 0x18]
push eax
push ebx
push esi
push 0x4090a0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x408c18
push esi
call fcn.00408c44
pop ecx
jmp 0x408c3e
and dword [ebp - 0x14], 0
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], 0
setne al
call fcn.00413c59
ret