Function at 0x401527
Capabilities:
Query environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
or esi, 0xffffffff
push str.JDK_ALTERNATE_VM
mov dword [ebp - 0xc], esi
call dword [sym.imp.MSVCRT.dll_getenv]
mov ebx, eax
mov eax, dword [ebp + 8]
mov edi, dword [eax]
mov dword [ebp - 0x10], edi
lea eax, [edi*4 + 4]
push eax
call fcn.00402135
pop ecx
pop ecx
mov ecx, eax
mov eax, dword [ebp + 0xc]
push 1
mov dword [ebp - 0x1c], ecx
mov eax, dword [eax]
pop edx
cmp edi, edx
mov dword [ebp - 4], edx
mov eax, dword [eax]
mov dword [ebp - 0x18], edx
mov dword [ecx], eax
jle 0x401695
add ecx, 4
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 0xc]
push 0xb
mov edi, 0x4082c8
pop ecx
mov eax, dword [eax]
mov esi, dword [eax + edx*4]
xor eax, eax
mov dword [ebp - 0x14], esi
repe cmpsb byte [esi], byte es:[edi]
je 0x401633
mov esi, dword [ebp - 0x14]
push 4
mov edi, 0x4082d4
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x401633
mov eax, dword [ebp - 0x14]
cmp byte [eax], 0x2d
jne 0x401669
push eax
call fcn.00402d4f
test eax, eax
pop ecx
jl 0x4015df
mov ecx, dword [0x40aed4]
mov dword [ebp - 0xc], eax
shl eax, 4
mov ebx, dword [eax + ecx]
mov eax, dword [ebp + 8]
inc ebx
dec dword [eax]
jmp 0x401620
mov esi, dword [ebp - 0x14]
mov edi, dword [sym.imp.MSVCRT.dll_strncmp]
push 0xa
push str._XXaltjvm
push esi
call edi
add esp, 0xc
test eax, eax
je 0x40160a
push 0xc
push str._J_XXaltjvm
push esi
call edi
add esp, 0xc
test eax, eax
jne 0x401625
xor ebx, ebx
cmp byte [esi + 1], 0x58
setne bl
dec ebx
and ebx, 0xfffffffe
add ebx, 0xc
add ebx, esi
or dword [ebp - 0xc], 0xffffffff
mov edx, dword [ebp - 0x18]
jmp 0x40165c
mov eax, dword [ebp - 8]
inc dword [ebp - 4]
add dword [ebp - 8], 4
mov dword [eax], esi
jmp 0x401620
mov ecx, dword [ebp - 8]
inc dword [ebp - 4]
add dword [ebp - 8], 4
mov eax, dword [ebp - 0x14]
inc edx
mov dword [ecx], eax
cmp edx, dword [ebp - 0x10]
jge 0x40165c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
inc dword [ebp - 4]
add dword [ebp - 8], 4
mov eax, dword [eax]
mov eax, dword [eax + edx*4]
mov dword [ecx], eax
inc edx
cmp edx, dword [ebp - 0x10]
mov dword [ebp - 0x18], edx
jl 0x40157f
cmp edx, dword [ebp - 0x10]
jge 0x4016e9
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
sub esi, edx
add dword [ebp - 4], esi
lea eax, [ecx + eax*4]
mov esi, dword [ebp + 0xc]
mov esi, dword [esi]
mov esi, dword [esi + edx*4]
mov dword [eax], esi
add eax, 4
inc edx
cmp edx, dword [ebp - 0x10]
jl 0x40167f
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
xor edi, edi
mov dword [ecx + eax*4], edi
mov dword [edx], ecx
mov ecx, dword [ebp + 8]
cmp ebx, edi
mov dword [ecx], eax
jne 0x4016f1
mov eax, dword [0x40aed4]
mov esi, dword [eax]
inc esi
cmp dword [eax + 4], 4
jne 0x4016cb
call fcn.004033e9
cmp al, 1
jne 0x4016cb
mov eax, dword [0x40aed4]
mov esi, dword [eax + 0xc]
inc esi
cmp byte [0x40aed2], 0
je 0x4016e2
push esi
push str.Default_VM:__s_n
call dword [sym.imp.MSVCRT.dll_printf]
pop ecx
pop ecx
mov eax, esi
jmp 0x401808
mov esi, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
jmp 0x401695
cmp esi, edi
jl 0x401806
mov ecx, dword [0x40aed4]
mov eax, esi
shl eax, 4
cmp dword [eax + ecx + 4], 1
jne 0x401741
mov eax, esi
shl eax, 4
push dword [eax + ecx + 8]
call fcn.00402d4f
cmp edi, dword [0x40aed8]
pop ecx
jg 0x401760
test eax, eax
jl 0x401786
mov ecx, dword [0x40aed4]
mov dword [ebp - 0xc], eax
shl eax, 4
add eax, ecx
mov esi, dword [ebp - 0xc]
mov ebx, dword [eax]
inc ebx
inc edi
cmp dword [eax + 4], 1
je 0x40170b
shl esi, 4
mov esi, dword [esi + ecx + 4]
dec esi
dec esi
je 0x4017db
dec esi
je 0x4017b6
dec esi
dec esi
je 0x401803
jmp 0x401806
cmp byte [ebp + 0x10], 0
jne 0x40177c
push 1
push str.Error:_Corrupt_jvm.cfg_file__cycle_in_alias_list.
call fcn.00403384
pop ecx
pop ecx
push 1
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, 0x408338
jmp 0x401808
cmp byte [ebp + 0x10], 0
jne 0x4017af
mov eax, dword [0x40aed4]
push 1
shl esi, 4
push dword [esi + eax + 8]
push str.Error:_Unable_to_resolve_VM_alias__s
call fcn.004033a7
add esp, 0xc
push 1
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, 0x408368
jmp 0x401808
cmp byte [ebp + 0x10], 0
jne 0x4017d4
push 1
push ebx
push str.Error:__s_VM_not_supported
call fcn.004033a7
add esp, 0xc
push 1
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, 0x4083c0
jmp 0x401808
cmp byte [ebp + 0x10], 0
jne 0x401803
mov eax, dword [ecx]
inc eax
push eax
mov eax, dword [sym.imp.MSVCRT.dll__iob]
push ebx
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 [0x40aed4]
add esp, 0x10
mov ebx, dword [ecx]
inc ebx
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret