Function at 0x401537
Capabilities:
Query environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push str.JDK_ALTERNATE_VM
or ebx, 0xffffffff
call dword [sym.imp.MSVCRT.dll_getenv]
mov esi, eax
mov eax, dword [ebp + 8]
mov edi, dword [eax]
mov dword [ebp - 0x14], edi
lea eax, [edi*4 + 4]
push eax
call fcn.004020bf
pop ecx
mov dword [ebp - 0x10], eax
pop ecx
mov ecx, dword [ebp + 0xc]
push 1
mov ecx, dword [ecx]
mov ecx, dword [ecx]
mov dword [eax], ecx
pop ecx
cmp edi, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
jle 0x401629
lea ecx, [eax + 4]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ecx]
mov edi, dword [ecx + edx*4]
cmp byte [edi], 0x2d
je 0x4015a8
mov ecx, dword [ebp - 4]
inc dword [ebp - 8]
add dword [ebp - 4], 4
mov dword [ecx], edi
jmp 0x40161a
push edi
call fcn.00402f63
test eax, eax
pop ecx
jl 0x4015c9
mov ecx, dword [0x40afb4]
mov ebx, eax
shl eax, 4
mov esi, dword [eax + ecx]
mov eax, dword [ebp + 8]
inc esi
dec dword [eax]
jmp 0x401617
push 0xa
push str._XXaltjvm
push edi
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x4015f3
push 0xc
push str._J_XXaltjvm
push edi
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x40160b
xor eax, eax
cmp byte [edi + 1], 0x58
setne al
dec eax
and al, 0xfe
add eax, 0xc
add eax, edi
or ebx, 0xffffffff
mov esi, eax
jmp 0x401617
mov eax, dword [ebp - 4]
inc dword [ebp - 8]
add dword [ebp - 4], 4
mov dword [eax], edi
mov eax, dword [ebp - 0x10]
inc dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 0x14]
jl 0x40158a
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
xor edi, edi
mov dword [eax + ecx*4], edi
mov dword [edx], eax
mov eax, dword [ebp + 8]
cmp esi, edi
mov dword [eax], ecx
jne 0x40167f
mov eax, dword [0x40afb4]
mov esi, dword [eax]
inc esi
cmp dword [eax + 4], 4
jne 0x40165f
call fcn.004035fc
cmp al, 1
jne 0x40165f
mov eax, dword [0x40afb4]
mov esi, dword [eax + 0xc]
inc esi
cmp byte [0x40afb2], 0
je 0x401790
push esi
push str.Default_VM:__s_n
call dword [sym.imp.MSVCRT.dll_printf]
pop ecx
pop ecx
jmp 0x401790
cmp ebx, edi
jl 0x401790
mov ecx, dword [0x40afb4]
mov eax, ebx
shl eax, 4
cmp dword [eax + ecx + 4], 1
jne 0x4016cb
mov eax, ebx
shl eax, 4
push dword [eax + ecx + 8]
call fcn.00402f63
cmp edi, dword [0x40afb8]
pop ecx
jg 0x4016ea
test eax, eax
jl 0x401710
mov ecx, dword [0x40afb4]
mov ebx, eax
shl eax, 4
add eax, ecx
mov esi, dword [eax]
inc esi
inc edi
cmp dword [eax + 4], 1
je 0x401699
shl ebx, 4
mov ebx, dword [ebx + ecx + 4]
dec ebx
dec ebx
je 0x401765
dec ebx
je 0x401740
dec ebx
dec ebx
je 0x40178d
jmp 0x401790
cmp byte [ebp + 0x10], 0
jne 0x401706
push 1
push str.Error:_Corrupt_jvm.cfg_file__cycle_in_alias_list.
call fcn.00403598
pop ecx
pop ecx
push 1
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, 0x408378
jmp 0x401792
cmp byte [ebp + 0x10], 0
jne 0x401739
mov eax, dword [0x40afb4]
push 1
shl ebx, 4
push dword [ebx + eax + 8]
push str.Error:_Unable_to_resolve_VM_alias__s
call fcn.004035bb
add esp, 0xc
push 1
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, 0x4083a8
jmp 0x401792
cmp byte [ebp + 0x10], 0
jne 0x40175e
push 1
push esi
push str.Error:__s_VM_not_supported
call fcn.004035bb
add esp, 0xc
push 1
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, 0x408400
jmp 0x401792
cmp byte [ebp + 0x10], 0
jne 0x40178d
mov eax, dword [ecx]
inc eax
push eax
mov eax, dword [sym.imp.MSVCRT.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.MSVCRT.dll_fprintf]
mov ecx, dword [0x40afb4]
add esp, 0x10
mov esi, dword [ecx]
inc esi
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret