Function at 0x6d71c8a0
Capabilities:
Get common file path
Query environment variable

Disassembly:
sub esp, 0x114
lea eax, [esp + 4]
push ebx
push ebp
push esi
mov esi, 0x104
push edi
push esi
push eax
push str._ALT_JAVA_HOME_DIR
call fcn.6d71c87d
add esp, 0xc
test eax, eax
jne 0x6d71c908
lea eax, [esp + 0x14]
push esi
push eax
call fcn.6d71dd0c
mov esi, dword [sym.imp.MSVCRT.dll_strrchr]
lea eax, [esp + 0x1c]
push 0x5c
push eax
call esi
and byte [eax], 0
lea eax, [esp + 0x24]
push 0x5c
push eax
call esi
add esp, 0x18
test eax, eax
je 0x6d71c908
and byte [eax], 0
lea eax, [esp + 0x14]
push 0x5c
push eax
call esi
pop ecx
test eax, eax
pop ecx
je 0x6d71c908
and byte [eax], 0
or ebx, 0xffffffff
lea edi, [esp + 0x14]
mov ecx, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
inc esi
push esi
call fcn.6d71c250
mov edx, eax
pop ecx
test edx, edx
jne 0x6d71c93a
push str.char_in_C:_BUILD_AREA_jdk1.5.0_13_hotspot_srcoswin32_vmos_win32.cpp
push esi
call fcn.6d6c65d4
pop ecx
pop ecx
jmp 0x6d71cc4e
lea edi, [esp + 0x14]
mov ecx, ebx
xor eax, eax
push edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x6d7b2b04]
call fcn.6d645559
mov ebp, str._bin
mov ecx, ebx
mov edi, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x14]
mov edx, ecx
mov ecx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea esi, [edx + ecx + 1]
push esi
call fcn.6d71c250
mov edx, eax
pop ecx
test edx, edx
je 0x6d71c928
lea edi, [esp + 0x14]
mov ecx, ebx
xor eax, eax
push edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
mov ecx, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
mov ecx, ebx
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x6d7b2afc]
call fcn.6d645559
push 0x3b
push 0x5c
call fcn.6d71c522
pop ecx
test eax, eax
pop ecx
je 0x6d71cc4e
push str.PATH
call dword [sym.imp.MSVCRT.dll_getenv]
test eax, eax
pop ecx
mov dword [esp + 0x10], eax
je 0x6d71ca19
mov edi, eax
mov ecx, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jmp 0x6d71ca1b
xor ecx, ecx
lea esi, [ecx + 0x41a]
push esi
call fcn.6d71c250
mov ebp, eax
pop ecx
test ebp, ebp
jne 0x6d71ca3b
push str.char_in_C:_BUILD_AREA_jdk1.5.0_13_hotspot_srcoswin32_vmos_win32.cpp
push esi
call fcn.6d6c65d4
pop ecx
pop ecx
and byte [ebp], 0
lea eax, [esp + 0x14]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x14]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
and byte [eax], 0
pop ecx
pop ecx
lea edi, [esp + 0x14]
mov ecx, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x104
mov esi, edi
mov edx, ecx
mov edi, ebp
mov ecx, ebx
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]
mov edi, 0x6d79d1a4
mov ecx, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
mov ecx, ebx
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x18]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, 0x6d7856dc
mov ecx, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
mov ecx, ebx
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 + 0x14]
mov ecx, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
mov ecx, ebx
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
lea eax, [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x104
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, 0x6d7856dc
mov ecx, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
mov ecx, ebx
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 + 0x14]
mov ecx, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
mov ecx, ebx
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
cmp dword [esp + 0x10], eax
rep movsb byte es:[edi], byte [esi]
je 0x6d71cbbb
mov edi, 0x6d7856dc
mov ecx, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
mov ecx, ebx
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]
mov edi, dword [esp + 0x10]
mov ecx, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
mov ecx, ebx
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]
mov ecx, dword [0x6d7b2b00]
push ebp
call fcn.6d645559
push ebp
call fcn.6d71c29c
mov eax, dword [0x6d7b2b04]
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
push dword [eax + 4]
lea eax, [esp + 0x1c]
push str._slibext
push eax
call ebp
mov ecx, dword [0x6d7b2af4]
add esp, 0x10
lea eax, [esp + 0x14]
push eax
call fcn.6d645559
mov eax, dword [0x6d7b2b04]
mov ecx, ebx
mov edi, dword [eax + 4]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
add esi, 0xe
push esi
call fcn.6d71c250
mov edi, eax
pop ecx
test edi, edi
jne 0x6d71cc2a
push str.char_in_C:_BUILD_AREA_jdk1.5.0_13_hotspot_srcoswin32_vmos_win32.cpp
push esi
call fcn.6d6c65d4
pop ecx
pop ecx
mov eax, dword [0x6d7b2b04]
push str.libendorsed
push dword [eax + 4]
push str._s_s
push edi
call ebp
mov ecx, dword [0x6d7b2af8]
add esp, 0x10
push edi
call fcn.6d645559
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret