Function at 0x40218e
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 0x4022cd
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 0x402288
push 0x4052f0
push dword [ebp - 4]
call sub.MSVCR71.dll_strcmp
test eax, eax
pop ecx
pop ecx
je 0x402288
mov eax, dword [ebp - 4]
cmp byte [eax], 0x2d
jne 0x4022b6
call fcn.00401cca
test eax, eax
jl 0x40223b
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 0x4022a7
push 0xa
push str._XXaltjvm
push dword [ebp - 4]
call dword [sym.imp.MSVCR71.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x402269
push 0xc
push str._J_XXaltjvm
push dword [ebp - 4]
call dword [sym.imp.MSVCR71.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x402283
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 0x4022a7
mov eax, dword [ebp - 4]
jmp 0x4022a3
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 0x4022a7
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 0x4021d9
mov eax, dword [ebp - 8]
jmp 0x4022c8
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 0x4022bb
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 0x40231d
mov eax, dword [0x408044]
mov esi, dword [eax]
inc esi
cmp dword [eax + 4], 4
jne 0x4022ff
call fcn.004033ae
cmp al, 1
jne 0x4022ff
mov eax, dword [0x408044]
mov esi, dword [eax + 0xc]
inc esi
cmp byte [0x40803a], 0
je 0x402316
push esi
push str.Default_VM:__s_n
call dword [sym.imp.MSVCR71.dll_printf]
pop ecx
pop ecx
mov eax, esi
jmp 0x40240a
mov esi, dword [ebp - 0xc]
test esi, esi
jl 0x402408
mov ecx, dword [0x408044]
mov eax, esi
shl eax, 4
xor ebx, ebx
cmp dword [eax + ecx + 4], 1
jne 0x402371
mov eax, esi
shl eax, 4
mov eax, dword [eax + ecx + 8]
call fcn.00401cca
cmp ebx, dword [0x408048]
jg 0x402388
test eax, eax
jl 0x40239e
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 0x40233c
shl esi, 4
mov esi, dword [esi + ecx + 4]
dec esi
dec esi
je 0x4023de
dec esi
je 0x4023b9
dec esi
dec esi
je 0x402400
jmp 0x402408
cmp byte [ebp + 0x10], 0
jne 0x4023d7
push 1
push str.Error:_Corrupt_jvm.cfg_file__cycle_in_alias_list.
call fcn.00403298
pop ecx
pop ecx
jmp 0x4023cf
cmp byte [ebp + 0x10], 0
jne 0x4023d7
mov eax, dword [0x408044]
push 1
shl esi, 4
push dword [esi + eax + 8]
push str.Error:_Unable_to_resolve_VM_alias__s
jmp 0x4023c7
cmp byte [ebp + 0x10], 0
jne 0x4023d7
push 1
push edi
push str.Error:__s_VM_not_supported
call fcn.004032bb
add esp, 0xc
push 1
call dword [sym.imp.MSVCR71.dll_exit]
mov eax, str.ERROR
jmp 0x40240a
cmp byte [ebp + 0x10], 0
jne 0x402400
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