Function at 0x409742
Capabilities:
Create thread
Query environment variable

Disassembly:
push 8
mov eax, 0x42eb66
call fcn.00414362
push str.launching_program
call fcn.0040ea46
push 0x34
call fcn.00412d69
xor esi, esi
pop ecx
pop ecx
mov ebx, eax
mov edi, 0x1770
cmp dword [0x448ca8], esi
je 0x409794
push edi
call fcn.00412d69
mov dword [ebx], eax
push dword [0x448ca8]
push str.exe4j.semaphoreName
push str._D_s_s
push eax
call fcn.00414711
add esp, 0x14
inc esi
cmp byte [0x448c58], 0
je 0x4097bc
push edi
call fcn.00412d69
mov dword [esp], str.exe4j.manualJre
push str._D_strue
push eax
mov dword [ebx + esi*4], eax
call fcn.00414711
add esp, 0xc
inc esi
cmp byte [0x44a448], 0x69
jne 0x4097e4
push edi
call fcn.00412d69
mov dword [esp], str.exe4j.isInstall4j
push str._D_strue
push eax
mov dword [ebx + esi*4], eax
call fcn.00414711
add esp, 0xc
inc esi
push edi
call fcn.00412d69
mov dword [ebx + esi*4], eax
call fcn.00404acf
push eax
push str.exe4j.moduleName
push str._D_s_s
push dword [ebx + esi*4]
call fcn.00414711
push edi
inc esi
call fcn.00412d69
mov dword [ebx + esi*4], eax
call fcn.00404acf
push eax
push str.sun.java.command
push str._D_s_s
push dword [ebx + esi*4]
call fcn.00414711
push edi
inc esi
call fcn.00412d69
push 0x448cd8
push str.exe4j.tempDir
push str._D_s_s
push eax
mov dword [ebx + esi*4], eax
call fcn.00414711
push edi
inc esi
call fcn.00412d69
add esp, 0x40
mov dword [ebx + esi*4], eax
cmp byte [0x44a458], 0
je 0x40986a
cmp byte [0x44a459], 0
jne 0x40986a
or eax, 0xffffffff
jmp 0x40986f
call fcn.00401065
push eax
push str.exe4j.unextractedPosition
push str._D_s_d
push dword [ebx + esi*4]
call fcn.00414711
push 0x2ee0
inc esi
call fcn.00412d69
push str._Djava.library.path
push eax
mov dword [ebx + esi*4], eax
call fcn.00414711
push dword [ebx + esi*4]
call fcn.00413700
mov ecx, 0x2ee0
add esp, 0x20
sub ecx, eax
push ecx
push dword [ebx + esi*4]
call fcn.00413700
add eax, dword [ebx + esi*4]
pop ecx
push eax
push 0x432cd4
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push str.MANPATH
inc esi
call fcn.004169e9
pop ecx
test eax, eax
jne 0x4098fd
push edi
call fcn.00412d69
pop ecx
mov dword [ebx + esi*4], eax
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
push eax
push str.exe4j.consoleCodepage
push str._D_scp_d
push dword [ebx + esi*4]
call fcn.00414711
add esp, 0x10
inc esi
xor edi, edi
push 0x30
mov dword [ebx + esi*4], edi
call fcn.00413e43
pop ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], edi
cmp eax, edi
je 0x40992b
push dword [ebp + 0x14]
mov ecx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00407fb7
mov esi, eax
jmp 0x40992d
xor esi, esi
push dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
lea eax, [esi + 0x18]
push ebx
push eax
call fcn.00408d12
add esp, 0xc
cmp dword [esi + 0x1c], 0
mov dword [ebp - 0x10], edi
jle 0x409997
mov eax, dword [esi + 0x20]
mov ebx, dword [eax + edi*8]
test ebx, ebx
je 0x40997f
push 4
push str._Xss
push ebx
call fcn.00414651
add esp, 0xc
test eax, eax
jne 0x40997f
add ebx, 4
push ebx
call fcn.00406c6a
pop ecx
test edx, edx
jl 0x40997f
jg 0x40997c
test eax, eax
jbe 0x40997f
mov dword [ebp - 0x10], eax
inc edi
cmp edi, dword [esi + 0x1c]
jl 0x40994a
mov eax, dword [ebp - 0x10]
dec eax
cmp eax, 0xfffe
ja 0x409997
mov dword [ebp - 0x10], 0x10000
push dword [ebp - 0x10]
push str.used_stack_size__d
call fcn.0040ea46
pop ecx
pop ecx
lea eax, [ebp - 0x14]
push eax
push 0x10000
push esi
push 0x409732
push dword [ebp - 0x10]
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
jne 0x4099cf
push esi
call fcn.00409488
pop ecx
jmp 0x4099f6
and dword [ebp - 0x10], 0
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp - 0x10], eax
setne al
call fcn.0041443a
ret