Function at 0x4018ed
Capabilities:
Query environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
push ebx
push esi
push edi
mov esi, 0x4083e0
lea edi, [ebp - 0x140]
push 0x42
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
pop ecx
xor eax, eax
lea edi, [ebp - 0x12d]
and dword [ebp - 0x24], 0
and dword [ebp - 0x20], 0
or dword [ebp - 0x1c], 0xffffffff
rep stosd dword es:[edi], eax
push str._JAVA_VERSION_SET
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_getenv]
test eax, eax
pop ecx
je 0x401950
cmp byte [eax], 0
je 0x401bfb
push eax
call dword [sym.imp.MSVCRT.dll__strdup]
pop ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jmp 0x401bfb
mov eax, dword [ebp + 8]
lea eax, [eax*4 + 4]
push eax
call fcn.00402135
mov esi, dword [ebp + 0xc]
pop ecx
lea edi, [eax + 4]
mov dword [ebp - 8], eax
mov ecx, dword [esi]
mov dword [ebp - 4], edi
mov dword [eax], ecx
mov ebx, dword [esi + 4]
dec dword [ebp + 8]
add esi, 4
test ebx, ebx
mov dword [ebp + 0xc], esi
je 0x401a3f
cmp byte [ebx], 0x2d
jne 0x401a3f
push 9
push 0x408408
push ebx
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x4019ab
add ebx, 9
mov dword [ebp - 0x24], ebx
jmp 0x401971
push 0x15
mov edi, 0x408414
mov esi, ebx
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x4019c4
mov dword [ebp - 0x1c], 1
jmp 0x401a34
push 0x18
mov edi, 0x40842c
mov esi, ebx
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x4019d9
and dword [ebp - 0x1c], eax
jmp 0x401a34
push 5
mov edi, 0x408444
mov esi, ebx
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x4019f0
mov dword [ebp - 0x20], 1
push 0xb
mov edi, 0x40844c
mov esi, ebx
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x401a10
push 4
mov edi, 0x408458
mov esi, ebx
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x401a2b
cmp dword [ebp + 8], 2
jl 0x401a2b
mov eax, dword [ebp - 4]
add dword [ebp - 4], 4
dec dword [ebp + 8]
add dword [ebp + 0xc], 4
mov dword [eax], ebx
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax]
mov eax, dword [ebp - 4]
add dword [ebp - 4], 4
mov dword [eax], ebx
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp - 4]
jmp 0x401971
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp eax, ecx
jg 0x401a4c
xor ebx, ebx
jmp 0x401a57
mov ebx, dword [esi]
dec eax
mov dword [edi], ebx
add edi, 4
add esi, 4
mov edx, eax
dec eax
test edx, edx
jle 0x401a6c
inc eax
mov edx, dword [esi]
add esi, 4
mov dword [edi], edx
add edi, 4
dec eax
jne 0x401a5f
cmp dword [ebp - 0x20], ecx
mov dword [edi], ecx
je 0x401aab
cmp ebx, ecx
je 0x401aab
lea eax, [ebp - 0x18]
push eax
push ebx
call fcn.00403717
pop ecx
test eax, eax
pop ecx
je 0x401ab8
cmp eax, 0xffffffff
push 1
push ebx
jne 0x401a96
push str.Unable_to_access_jarfile__s
jmp 0x401a9b
push str.Invalid_or_corrupt_jarfile__s
call fcn.004033a7
add esp, 0xc
push 1
call dword [sym.imp.MSVCRT.dll_exit]
and byte [ebp - 0xc], 0
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x401ac2
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
cmp eax, 0xffffffff
je 0x401acd
mov byte [ebp - 0xc], al
cmp dword [ebp - 0x14], 0
je 0x401ae2
push dword [ebp - 0x14]
call dword [sym.imp.MSVCRT.dll__strdup]
pop ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
cmp dword [ebp - 0x10], 0
je 0x401b77
push dword [ebp - 0x10]
call fcn.004041a4
test eax, eax
pop ecx
jne 0x401b13
push 1
push dword [ebp - 0x10]
push str.Syntax_error_in_version_specification___s_
call fcn.004033a7
add esp, 0xc
push 1
call dword [sym.imp.MSVCRT.dll_exit]
lea eax, [ebp - 0x18]
push eax
call fcn.004033ec
cmp byte [0x40aed2], 0
pop ecx
mov ebx, eax
je 0x401b60
test ebx, ebx
mov edx, ebx
jne 0x401b33
mov edx, 0x4084c4
cmp byte [ebp - 0xc], 0
mov ecx, 0x4084cc
jne 0x401b43
mov ecx, str.false
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x401b4f
mov eax, str.null
push edx
push ecx
push eax
push str.JRE_Version___s__JRE_Restrict_Search___s_Selected___s_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 0x10
test ebx, ebx
jne 0x401ba2
push dword [ebp - 0x10]
push 0x408520
call fcn.0040403a
pop ecx
test eax, eax
pop ecx
je 0x401b88
call fcn.00403dc9
push dword [ebp - 8]
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
jmp 0x401bfb
push 1
push dword [ebp - 0x10]
push str.Unable_to_locate_JRE_meeting_specification___s_
call fcn.004033a7
add esp, 0xc
push 1
call dword [sym.imp.MSVCRT.dll_exit]
mov edi, dword [ebp - 0x14]
test edi, edi
je 0x401bd4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x140]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
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 eax, [ebp - 0x140]
push eax
call dword [sym.imp.MSVCRT.dll__putenv]
push dword [ebp - 8]
push ebx
call fcn.0040358e
call fcn.00403dc9
push dword [ebp - 8]
call dword [sym.imp.MSVCRT.dll_free]
add esp, 0x10
pop edi
pop esi
pop ebx
leave
ret