Function at 0x4021e9
Capabilities:
Query environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
or dword [ebp - 0xc], 0xffffffff
push ebx
push esi
push edi
push str.JDK_ALTERNATE_VM
call dword [sym.imp.MSVCR71.dll_getenv]
mov edi, 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 esi, eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
xor ebx, ebx
inc ebx
cmp dword [ebp - 0x10], ebx
pop ecx
pop ecx
mov dword [esi], eax
mov dword [ebp - 8], ebx
jle 0x402328
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp - 8]
mov eax, dword [eax + ecx*4]
push str._classpath
push eax
mov dword [ebp - 4], eax
call sub.MSVCR71.dll_strcmp
test eax, eax
pop ecx
pop ecx
je 0x4022e3
push 0x405334
push dword [ebp - 4]
call sub.MSVCR71.dll_strcmp
test eax, eax
pop ecx
pop ecx
je 0x4022e3
mov eax, dword [ebp - 4]
cmp byte [eax], 0x2d
jne 0x402311
call fcn.00401cee
test eax, eax
jl 0x402296
mov ecx, dword [0x408044]
mov dword [ebp - 0xc], eax
shl eax, 4
mov edi, dword [eax + ecx]
mov eax, dword [ebp + 8]
inc edi
dec dword [eax]
jmp 0x402302
push 0xa
push str._XXaltjvm
push dword [ebp - 4]
call dword [sym.imp.MSVCR71.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x4022c4
push 0xc
push str._J_XXaltjvm
push dword [ebp - 4]
call dword [sym.imp.MSVCR71.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x4022de
mov eax, dword [ebp - 4]
xor ecx, ecx
cmp byte [eax + 1], 0x58
setne cl
lea ecx, [ecx + ecx + 0xa]
add ecx, eax
or dword [ebp - 0xc], 0xffffffff
mov edi, ecx
jmp 0x402302
mov eax, dword [ebp - 4]
jmp 0x4022fe
mov eax, dword [ebp - 4]
mov dword [esi + ebx*4], eax
mov eax, dword [ebp - 8]
inc ebx
inc eax
cmp eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jge 0x402302
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
mov eax, dword [ecx + eax*4]
mov dword [esi + ebx*4], eax
inc ebx
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jl 0x402234
mov eax, dword [ebp - 8]
jmp 0x402323
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
mov ecx, dword [ecx + eax*4]
mov dword [esi + ebx*4], ecx
inc ebx
inc eax
cmp eax, dword [ebp - 0x10]
jl 0x402316
and dword [esi + ebx*4], 0
test edi, edi
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jne 0x402378
mov eax, dword [0x408044]
mov esi, dword [eax]
inc esi
cmp dword [eax + 4], 4
jne 0x40235a
call fcn.004034f0
cmp al, 1
jne 0x40235a
mov eax, dword [0x408044]
mov esi, dword [eax + 0xc]
inc esi
cmp byte [0x40803a], 0
je 0x402371
push esi
push str.Default_VM:__s_n
call dword [sym.imp.MSVCR71.dll_printf]
pop ecx
pop ecx
mov eax, esi
jmp 0x402465
mov esi, dword [ebp - 0xc]
test esi, esi
jl 0x402463
mov ecx, dword [0x408044]
mov eax, esi
shl eax, 4
xor ebx, ebx
cmp dword [eax + ecx + 4], 1
jne 0x4023cc
mov eax, esi
shl eax, 4
mov eax, dword [eax + ecx + 8]
call fcn.00401cee
cmp ebx, dword [0x408048]
jg 0x4023e3
test eax, eax
jl 0x4023f9
mov ecx, dword [0x408044]
mov dword [ebp - 0xc], eax
mov esi, dword [ebp - 0xc]
shl eax, 4
add eax, ecx
mov edi, dword [eax]
inc edi
inc ebx
cmp dword [eax + 4], 1
je 0x402397
shl esi, 4
mov esi, dword [esi + ecx + 4]
dec esi
dec esi
je 0x402439
dec esi
je 0x402414
dec esi
dec esi
je 0x40245b
jmp 0x402463
cmp byte [ebp + 0x10], 0
jne 0x402432
push 1
push str.Error:_Corrupt_jvm.cfg_file__cycle_in_alias_list.
call fcn.00403369
pop ecx
pop ecx
jmp 0x40242a
cmp byte [ebp + 0x10], 0
jne 0x402432
mov eax, dword [0x408044]
push 1
shl esi, 4
push dword [esi + eax + 8]
push str.Error:_Unable_to_resolve_VM_alias__s
jmp 0x402422
cmp byte [ebp + 0x10], 0
jne 0x402432
push 1
push edi
push str.Error:__s_VM_not_supported
call fcn.0040338c
add esp, 0xc
push 1
call dword [sym.imp.MSVCR71.dll_exit]
mov eax, str.ERROR
jmp 0x402465
cmp byte [ebp + 0x10], 0
jne 0x40245b
mov eax, dword [ecx]
inc eax
push eax
mov eax, dword [sym.imp.MSVCR71.dll__iob]
push edi
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]
add esp, 0x10
mov eax, dword [0x408044]
mov edi, dword [eax]
inc edi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret