Function at 0x40152c
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.0040213a
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 0x40169a
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 0x401638
mov esi, dword [ebp - 0x14]
push 4
mov edi, 0x4082d4
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x401638
mov eax, dword [ebp - 0x14]
cmp byte [eax], 0x2d
jne 0x40166e
push eax
call fcn.00402d63
test eax, eax
pop ecx
jl 0x4015e4
mov ecx, dword [0x40aff4]
mov dword [ebp - 0xc], eax
shl eax, 4
mov ebx, dword [eax + ecx]
mov eax, dword [ebp + 8]
inc ebx
dec dword [eax]
jmp 0x401625
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 0x40160f
push 0xc
push str._J_XXaltjvm
push esi
call edi
add esp, 0xc
test eax, eax
jne 0x40162a
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 0x401661
mov eax, dword [ebp - 8]
inc dword [ebp - 4]
add dword [ebp - 8], 4
mov dword [eax], esi
jmp 0x401625
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 0x401661
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 0x401584
cmp edx, dword [ebp - 0x10]
jge 0x4016ee
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 0x401684
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 0x4016f6
mov eax, dword [0x40aff4]
mov esi, dword [eax]
inc esi
cmp dword [eax + 4], 4
jne 0x4016d0
call fcn.004033fd
cmp al, 1
jne 0x4016d0
mov eax, dword [0x40aff4]
mov esi, dword [eax + 0xc]
inc esi
cmp byte [0x40aff2], 0
je 0x4016e7
push esi
push str.Default_VM:__s_n
call dword [sym.imp.MSVCRT.dll_printf]
pop ecx
pop ecx
mov eax, esi
jmp 0x40180d
mov esi, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
jmp 0x40169a
cmp esi, edi
jl 0x40180b
mov ecx, dword [0x40aff4]
mov eax, esi
shl eax, 4
cmp dword [eax + ecx + 4], 1
jne 0x401746
mov eax, esi
shl eax, 4
push dword [eax + ecx + 8]
call fcn.00402d63
cmp edi, dword [0x40aff8]
pop ecx
jg 0x401765
test eax, eax
jl 0x40178b
mov ecx, dword [0x40aff4]
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 0x401710
shl esi, 4
mov esi, dword [esi + ecx + 4]
dec esi
dec esi
je 0x4017e0
dec esi
je 0x4017bb
dec esi
dec esi
je 0x401808
jmp 0x40180b
cmp byte [ebp + 0x10], 0
jne 0x401781
push 1
push str.Error:_Corrupt_jvm.cfg_file__cycle_in_alias_list.
call fcn.00403398
pop ecx
pop ecx
push 1
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, 0x408338
jmp 0x40180d
cmp byte [ebp + 0x10], 0
jne 0x4017b4
mov eax, dword [0x40aff4]
push 1
shl esi, 4
push dword [esi + eax + 8]
push str.Error:_Unable_to_resolve_VM_alias__s
call fcn.004033bb
add esp, 0xc
push 1
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, 0x408368
jmp 0x40180d
cmp byte [ebp + 0x10], 0
jne 0x4017d9
push 1
push ebx
push str.Error:__s_VM_not_supported
call fcn.004033bb
add esp, 0xc
push 1
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, 0x4083c0
jmp 0x40180d
cmp byte [ebp + 0x10], 0
jne 0x401808
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 [0x40aff4]
add esp, 0x10
mov ebx, dword [ecx]
inc ebx
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret