Function at 0x402469
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 0x402559
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 0x40253e
mov eax, ebx
call fcn.00401f6e
test eax, eax
jl 0x4024f1
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 0x402547
push 0xa
push str._XXaltjvm
push ebx
call dword [sym.imp.MSVCR71.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x40251b
push 0xc
push str._J_XXaltjvm
push ebx
call dword [sym.imp.MSVCR71.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x402538
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 0x402547
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 0x4024bf
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 0x4025a9
mov esi, dword [ecx]
inc esi
cmp dword [ecx + 4], 4
jne 0x402589
call fcn.00403643
cmp al, 1
jne 0x402589
mov eax, dword [0x408054]
mov esi, dword [eax + 0xc]
inc esi
cmp byte [0x40804a], 0
je 0x402690
push esi
push str.Default_VM:__s_n
call dword [sym.imp.MSVCR71.dll_printf]
pop ecx
pop ecx
jmp 0x402690
test ebx, ebx
jl 0x402690
mov eax, ebx
shl eax, 4
xor edi, edi
cmp dword [eax + ecx + 4], 1
jne 0x4025f4
mov eax, ebx
shl eax, 4
mov eax, dword [eax + ecx + 8]
call fcn.00401f6e
cmp edi, dword [0x408058]
jg 0x40260f
test eax, eax
jl 0x402625
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 0x4025bf
shl ebx, 4
mov ebx, dword [ebx + ecx + 4]
dec ebx
dec ebx
je 0x402665
dec ebx
je 0x402640
dec ebx
dec ebx
je 0x40268d
jmp 0x402690
cmp byte [ebp + 0x10], 0
jne 0x40265e
push 1
push str.Error:_Corrupt_jvm.cfg_file__cycle_in_alias_list.
call fcn.0040352d
pop ecx
pop ecx
jmp 0x402656
cmp byte [ebp + 0x10], 0
jne 0x40265e
mov eax, dword [0x408054]
push 1
shl ebx, 4
push dword [ebx + eax + 8]
push str.Error:_Unable_to_resolve_VM_alias__s
jmp 0x40264e
cmp byte [ebp + 0x10], 0
jne 0x40265e
push 1
push esi
push str.Error:__s_VM_not_supported
call fcn.00403550
add esp, 0xc
push 1
call dword [sym.imp.MSVCR71.dll_exit]
mov eax, str.ERROR
jmp 0x402692
cmp byte [ebp + 0x10], 0
jne 0x40268d
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