Function at 0x401e30
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x402e68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
push ebx
lea eax, [ecx + 8]
push ebp
push esi
mov eax, dword [eax]
push edi
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
push 0x405258
push eax
mov dword [esp + 0x28], ecx
call edi
add esp, 8
lea ecx, [esp + 0x50]
test eax, eax
setne al
and eax, 0xff
xor ebp, ebp
mov dword [esp + 0x18], eax
mov dword [esp + 0x50], str.JRE_HOME
mov dword [esp + 0x54], str.JAVA_HOME
mov dword [esp + 0x30], ebp
mov dword [esp + 0x28], ecx
cmp dword [esp + 0x18], ebp
jne 0x4021d7
mov edx, dword [esp + 0x28]
mov eax, dword [edx]
push eax
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
cmp eax, ebp
je 0x4021ba
cmp byte [eax], 0
je 0x4021ba
push eax
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x8c], ebp
mov ecx, dword [eax - 8]
mov al, byte [ecx + eax - 1]
cmp al, 0x5c
je 0x401eef
cmp al, 0x2f
je 0x401eef
push 0x40514c
lea ecx, [esp + 0x20]
call fcn.00402b5c
lea ecx, [esp + 0x58]
mov dword [esp + 0x58], 0x405258
mov dword [esp + 0x5c], str.bin_
mov dword [esp + 0x60], str.jre_bin_
mov dword [esp + 0x64], str...jre_bin_
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x24], ecx
cmp dword [esp + 0x18], ebp
jne 0x4021a6
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x1c]
mov eax, dword [edx]
lea edx, [esp + 0x10]
push eax
push ecx
push edx
call sub.MFC42.DLL_operator
lea eax, [esp + 0x10]
push str.jvm.dll
lea ecx, [esp + 0x38]
push eax
push ecx
mov byte [esp + 0x98], 1
call sub.MFC42.DLL_operator
mov eax, dword [eax]
mov byte [esp + 0x8c], 2
push eax
call fcn.00401810
add esp, 4
lea ecx, [esp + 0x34]
mov esi, eax
mov byte [esp + 0x8c], 1
call sub.MFC42.DLL_CString::CString
cmp esi, ebp
jne 0x402153
lea ecx, [esp + 0x68]
call sub.MFC42.DLL_CFileFind::CFileFind
lea edx, [esp + 0x10]
push 0x4051b8
lea eax, [esp + 0x3c]
push edx
push eax
mov byte [esp + 0x98], 4
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push ebp
push eax
lea ecx, [esp + 0x70]
mov byte [esp + 0x94], 5
call sub.MFC42.DLL_CFileFind::FindFile
lea ecx, [esp + 0x38]
mov esi, eax
mov byte [esp + 0x8c], 4
call sub.MFC42.DLL_CString::CString
cmp esi, ebp
je 0x402112
lea ecx, [esp + 0x68]
call sub.MFC42.DLL_CFileFind::FindNextFileA
mov edx, dword [esp + 0x68]
push 0x10
lea ecx, [esp + 0x6c]
mov esi, eax
call dword [edx + 0x40]
cmp eax, ebp
je 0x4020de
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x68]
push eax
call sub.MFC42.DLL_CFileFind::GetFileName
mov eax, dword [eax]
push 0x4051b4
push eax
call edi
add esp, 8
lea ecx, [esp + 0x3c]
test eax, eax
setne bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x4020de
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x6c]
call sub.MFC42.DLL_CFileFind::GetFileName
mov eax, dword [eax]
push 0x4051b0
push eax
call edi
add esp, 8
lea ecx, [esp + 0x40]
test eax, eax
setne bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x4020de
lea edx, [esp + 0x48]
lea ecx, [esp + 0x68]
push edx
call sub.MFC42.DLL_CFileFind::GetFileName
push eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x48]
push eax
push ecx
mov byte [esp + 0x98], 6
call sub.MFC42.DLL_operator_1
push 0x4051a4
lea edx, [esp + 0x18]
push eax
push edx
mov byte [esp + 0x98], 7
call sub.MFC42.DLL_operator
lea ecx, [esp + 0x44]
mov byte [esp + 0x8c], 0xa
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x48]
mov byte [esp + 0x8c], 9
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x14]
push eax
call fcn.00401810
add esp, 4
test eax, eax
jne 0x4020e8
lea ecx, [esp + 0x14]
mov byte [esp + 0x8c], 4
call sub.MFC42.DLL_CString::CString
cmp esi, ebp
jne 0x401fda
jmp 0x402112
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [edx + 8]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], 1
mov byte [esp + 0x8c], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x68]
mov byte [esp + 0x8c], 1
call fcn.00402b0e
lea ecx, [esp + 0x10]
mov byte [esp + 0x8c], 0
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
inc eax
add edx, 4
cmp eax, 4
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], edx
jl 0x401f1b
jmp 0x4021a6
lea eax, [esp + 0x10]
push str.jvm.dll
lea ecx, [esp + 0x50]
push eax
push ecx
call sub.MFC42.DLL_operator
mov edx, dword [esp + 0x20]
push eax
mov byte [esp + 0x90], 3
lea ecx, [edx + 8]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x4c]
mov byte [esp + 0x8c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x18], 1
mov byte [esp + 0x8c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov dword [esp + 0x8c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
inc eax
add edx, 4
cmp eax, 2
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], edx
jl 0x401e92
mov dword [esp + 0x50], str.CLASS_PATH
mov dword [esp + 0x54], str.CLASSPATH
lea edi, [esp + 0x50]
mov ebx, 2
mov eax, dword [edi]
push eax
call dword [sym.imp.MSVCRT.dll_getenv]
mov esi, eax
add esp, 4
cmp esi, ebp
je 0x40221f
cmp byte [esi], 0
je 0x40221f
mov ecx, dword [esp + 0x20]
push 0x405118
call fcn.00402b5c
mov ecx, dword [esp + 0x20]
push esi
call fcn.00402b5c
add edi, 4
dec ebx
jne 0x4021f0
mov ecx, dword [esp + 0x84]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x80
ret