Function at 0x402407
Capabilities:
Query environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
or ebx, 0xffffffff
push str.JDK_ALTERNATE_VM
mov dword [ebp - 8], ebx
call dword [sym.imp.MSVCR71.dll_getenv]
mov esi, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
lea eax, [eax*4 + 4]
push eax
call sub.jli.dll_JLI_MemAlloc
mov edi, eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [edi], eax
xor eax, eax
inc eax
cmp dword [ebp - 0x10], eax
pop ecx
pop ecx
mov ecx, dword [0x408054]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], eax
jle 0x4024f7
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov edx, dword [ebp - 0xc]
mov ebx, dword [eax + edx*4]
cmp byte [ebx], 0x2d
jne 0x4024dc
mov eax, ebx
call fcn.00401f0c
test eax, eax
jl 0x40248f
mov ecx, dword [0x408054]
mov dword [ebp - 8], eax
shl eax, 4
mov esi, dword [eax + ecx]
mov eax, dword [ebp + 8]
inc esi
dec dword [eax]
jmp 0x4024e5
push 0xa
push str._XXaltjvm
push ebx
call dword [sym.imp.MSVCR71.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x4024b9
push 0xc
push str._J_XXaltjvm
push ebx
call dword [sym.imp.MSVCR71.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x4024d6
mov ecx, dword [0x408054]
xor eax, eax
cmp byte [ebx + 1], 0x58
setne al
lea eax, [eax + eax + 0xa]
add eax, ebx
or dword [ebp - 8], 0xffffffff
mov esi, eax
jmp 0x4024e5
mov ecx, dword [0x408054]
mov eax, dword [ebp - 4]
inc dword [ebp - 4]
mov dword [edi + eax*4], ebx
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
jl 0x40245d
mov ebx, dword [ebp - 8]
mov eax, dword [ebp - 4]
and dword [edi + eax*4], 0
test esi, esi
mov edx, dword [ebp + 0xc]
mov dword [edx], edi
mov edx, dword [ebp + 8]
mov dword [edx], eax
jne 0x402547
mov esi, dword [ecx]
inc esi
cmp dword [ecx + 4], 4
jne 0x402527
call fcn.004035dc
cmp al, 1
jne 0x402527
mov eax, dword [0x408054]
mov esi, dword [eax + 0xc]
inc esi
cmp byte [0x40804a], 0
je 0x40262e
push esi
push str.Default_VM:__s_n
call dword [sym.imp.MSVCR71.dll_printf]
pop ecx
pop ecx
jmp 0x40262e
test ebx, ebx
jl 0x40262e
mov eax, ebx
shl eax, 4
xor edi, edi
cmp dword [eax + ecx + 4], 1
jne 0x402592
mov eax, ebx
shl eax, 4
mov eax, dword [eax + ecx + 8]
call fcn.00401f0c
cmp edi, dword [0x408058]
jg 0x4025ad
test eax, eax
jl 0x4025c3
mov ecx, dword [0x408054]
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
shl eax, 4
add eax, ecx
mov esi, dword [eax]
inc esi
inc edi
cmp dword [eax + 4], 1
je 0x40255d
shl ebx, 4
mov ebx, dword [ebx + ecx + 4]
dec ebx
dec ebx
je 0x402603
dec ebx
je 0x4025de
dec ebx
dec ebx
je 0x40262b
jmp 0x40262e
cmp byte [ebp + 0x10], 0
jne 0x4025fc
push 1
push str.Error:_Corrupt_jvm.cfg_file__cycle_in_alias_list.
call fcn.004034c6
pop ecx
pop ecx
jmp 0x4025f4
cmp byte [ebp + 0x10], 0
jne 0x4025fc
mov eax, dword [0x408054]
push 1
shl ebx, 4
push dword [ebx + eax + 8]
push str.Error:_Unable_to_resolve_VM_alias__s
jmp 0x4025ec
cmp byte [ebp + 0x10], 0
jne 0x4025fc
push 1
push esi
push str.Error:__s_VM_not_supported
call fcn.004034e9
add esp, 0xc
push 1
call dword [sym.imp.MSVCR71.dll_exit]
mov eax, str.ERROR
jmp 0x402630
cmp byte [ebp + 0x10], 0
jne 0x40262b
mov eax, dword [ecx]
inc eax
push eax
mov eax, dword [sym.imp.MSVCR71.dll__iob]
push esi
add eax, 0x40
push str.Warning:__s_VM_not_supported___s_VM_will_be_used_n
push eax
call dword [sym.imp.MSVCR71.dll_fprintf]
mov ecx, dword [0x408054]
add esp, 0x10
mov esi, dword [ecx]
inc esi
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret