Function at 0x402a86
Capabilities:
Terminate process

Disassembly:
sub esp, 0x24c
push ebx
xor ebx, ebx
cmp byte [0x40b0e2], bl
push ebp
push esi
push edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebx
je 0x402aaf
call fcn.0040351c
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
mov edi, dword [esp + 0x260]
or ebp, 0xffffffff
mov ecx, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x2c]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x2c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push 0x4093f8
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x30]
mov ecx, ebp
repne scasb al, byte es:[edi]
dec edi
mov esi, str.lib_
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, dword [esp + 0x268]
mov ecx, ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
mov ecx, ebp
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x30]
mov ecx, ebp
repne scasb al, byte es:[edi]
dec edi
mov esi, str.jvm.cfg
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x30]
push eax
movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
pop ecx
cmp esi, ebx
pop ecx
mov dword [esp + 0x28], esi
jne 0x402b72
cmp byte [esp + 0x268], 0
jne 0x402b6b
lea eax, [esp + 0x2c]
push 1
push eax
push str.Error:_could_not_open___s
call fcn.004035c3
add esp, 0xc
push 1
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, ebp
jmp 0x402ef2
push esi
lea eax, [esp + 0x148]
push 0x118
push eax
call dword [sym.imp.MSVCRT.dll_fgets]
add esp, 0xc
test eax, eax
je 0x402eb2
jmp 0x402b96
or ebp, 0xffffffff
inc dword [esp + 0x10]
cmp byte [esp + 0x144], 0x23
je 0x402e8f
cmp byte [esp + 0x144], 0x2d
je 0x402bd2
lea eax, [esp + 0x2c]
push eax
mov eax, dword [sym.imp.MSVCRT.dll__iob]
push dword [esp + 0x14]
add eax, 0x40
push str.Warning:_no_leading___on_line__d_of___s_n
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0x10
mov eax, dword [esp + 0x14]
cmp eax, dword [0x40b0ec]
jl 0x402be5
push eax
call fcn.00402efd
pop ecx
lea edi, [esp + 0x144]
or ecx, 0xffffffff
xor eax, eax
push dword [0x40806c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
and byte [esp + ecx + 0x147], al
lea eax, [esp + 0x148]
push eax
call dword [sym.imp.MSVCRT.dll_strcspn]
cmp byte [esp + eax + 0x14c], 0
lea esi, [esp + eax + 0x14c]
pop ecx
pop ecx
jne 0x402c37
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x14]
push 0x409444
jmp 0x402d74
and byte [esi], 0
push dword [0x40806c]
inc esi
push esi
call dword [sym.imp.MSVCRT.dll_strspn]
add esi, eax
pop ecx
pop ecx
cmp byte [esi], 0
jne 0x402c64
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x14]
push str.Warning:_missing_VM_type_on_line__d_of___s_n
jmp 0x402d74
mov edi, dword [sym.imp.MSVCRT.dll_strncmp]
push 5
push str.KNOWN
push esi
call edi
add esp, 0xc
test eax, eax
je 0x402dc2
push 0xa
push str.ALIASED_TO
push esi
call edi
add esp, 0xc
test eax, eax
jne 0x402cec
push dword [0x40806c]
mov edi, dword [sym.imp.MSVCRT.dll_strcspn]
push esi
call edi
add esi, eax
pop ecx
pop ecx
cmp byte [esi], 0
je 0x402cbe
push dword [0x40806c]
push esi
call dword [sym.imp.MSVCRT.dll_strspn]
add esi, eax
pop ecx
pop ecx
cmp byte [esi], 0
jne 0x402cd1
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x14]
push str.Warning:_missing_VM_alias_on_line__d_of___s_n
jmp 0x402d74
push dword [0x40806c]
mov dword [esp + 0x1c], esi
push esi
call edi
and byte [eax + esi], 0
pop ecx
pop ecx
push 1
pop ebp
jmp 0x402dc4
push 4
push str.WARN
push esi
call edi
add esp, 0xc
test eax, eax
jne 0x402d01
push 2
jmp 0x402ce6
push 6
push str.IGNORE
push esi
call edi
add esp, 0xc
test eax, eax
push 5
je 0x402ce6
push str.ERROR
push esi
call edi
add esp, 0xc
test eax, eax
jne 0x402d27
push 3
jmp 0x402ce6
push 0xf
push str.IF_SERVER_CLASS
push esi
call edi
add esp, 0xc
test eax, eax
jne 0x402da2
push dword [0x40806c]
mov edi, dword [sym.imp.MSVCRT.dll_strcspn]
push esi
call edi
add esi, eax
pop ecx
pop ecx
cmp byte [esi], 0
je 0x402d66
push dword [0x40806c]
push esi
call dword [sym.imp.MSVCRT.dll_strspn]
add esi, eax
pop ecx
pop ecx
cmp byte [esi], 0
jne 0x402d88
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x14]
push str.Warning:_missing_server_class_VM_on_line__d_of___s_n
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0x10
jmp 0x402dc4
push dword [0x40806c]
mov dword [esp + 0x28], esi
push esi
call edi
and byte [eax + esi], 0
pop ecx
pop ecx
push 4
jmp 0x402ce6
lea eax, [esp + 0x2c]
push eax
mov eax, dword [sym.imp.MSVCRT.dll__iob]
push dword [esp + 0x14]
add eax, 0x40
push str.Warning:_unknown_VM_type_on_line__d_of___s_n
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0x10
xor ebp, ebp
cmp byte [0x40b0e2], 0
je 0x402de7
lea eax, [esp + 0x144]
push eax
push dword [esp + 0x18]
push str.jvm.cfg__d______s___n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 0xc
cmp ebp, 0xffffffff
je 0x402e8f
mov esi, dword [sym.imp.MSVCRT.dll__strdup]
lea eax, [esp + 0x144]
push eax
call esi
pop ecx
mov ecx, dword [0x40b0e4]
mov dword [ebx + ecx], eax
mov eax, dword [0x40b0e4]
mov dword [ebx + eax + 4], ebp
mov eax, ebp
dec eax
je 0x402e4f
sub eax, 3
jne 0x402e88
push dword [esp + 0x24]
call esi
pop ecx
mov ecx, dword [0x40b0e4]
mov dword [ebx + ecx + 0xc], eax
cmp byte [0x40b0e2], 0
je 0x402e88
mov eax, dword [0x40b0e4]
add eax, ebx
push dword [eax + 0xc]
push str.VM_IF_SERVER_CLASS
push dword [eax]
push str.____name:__s__vmType:__s__server_class:__s_n
jmp 0x402e7f
push dword [esp + 0x18]
call esi
pop ecx
mov ecx, dword [0x40b0e4]
mov dword [ebx + ecx + 8], eax
cmp byte [0x40b0e2], 0
je 0x402e88
mov eax, dword [0x40b0e4]
add eax, ebx
push dword [eax + 8]
push str.VM_ALIASED_TO
push dword [eax]
push str.____name:__s__vmType:__s__alias:__s_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 0x10
inc dword [esp + 0x14]
add ebx, 0x10
mov esi, dword [esp + 0x28]
lea eax, [esp + 0x144]
push esi
push 0x118
push eax
call dword [sym.imp.MSVCRT.dll_fgets]
add esp, 0xc
test eax, eax
jne 0x402b93
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov esi, dword [esp + 0x18]
cmp byte [0x40b0e2], 0
pop ecx
mov dword [0x40b0e8], esi
je 0x402ef0
call fcn.0040351c
sub eax, dword [esp + 0x1c]
sbb edx, dword [esp + 0x20]
push edx
push eax
call fcn.00403562
push eax
push str._ld_micro_seconds_to_parse_jvm.cfg_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24c
ret