Function at 0x401700
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x402eef
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x330
push ebx
push esi
mov esi, ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x340], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x340], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x340], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x340], 3
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi + 4]
mov bl, 4
test eax, eax
mov byte [esp + 0x340], bl
je 0x401870
add esi, 8
lea ecx, [esp + 0x1c]
push esi
call fcn.00402902
lea eax, [esp + 0x14]
push 1
push eax
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
push 0x406020
push eax
call esi
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
setne byte [esp + 0xb]
call fcn.0040289c
mov al, byte [esp + 0xb]
test al, al
je 0x4017d0
push 0x406020
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::operator
push str.prgcommanualehmview32
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
mov byte [esp + 0x34c], 5
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x344], 6
call fcn.00402902
lea ecx, [esp + 0x14]
mov byte [esp + 0x340], 5
call fcn.0040289c
lea ecx, [esp + 0x18]
mov byte [esp + 0x340], bl
call fcn.0040289c
lea eax, [esp + 0x348]
lea ecx, [esp + 0x1c]
push eax
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x1c]
lea edx, [esp + 0xc]
push ecx
lea eax, [esp + 0x1c]
push edx
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x344], 7
call fcn.00402902
mov byte [esp + 0x340], bl
lea ecx, [esp + 0x18]
jmp 0x401a30
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push str.PathSispac
call sub.MFC42.DLL_CString::CString_1
push ecx
mov byte [esp + 0x348], 8
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.Parametri
call sub.MFC42.DLL_CString::CString_1
push ecx
mov byte [esp + 0x34c], 9
mov ecx, esp
mov dword [esp + 0x34], esp
push str.SISPAC.INI
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x24]
mov byte [esp + 0x34c], bl
push ecx
call fcn.00402150
add esp, 0x10
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x344], 0xa
call fcn.00402902
lea ecx, [esp + 0x18]
mov byte [esp + 0x340], bl
call fcn.0040289c
push 1
push 0x5c
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_3
lea edx, [esp + 0x18]
push 1
push edx
lea ecx, [esp + 0x28]
mov byte [esp + 0x348], 0xb
call sub.MFC42.DLL_CString::Right
mov ecx, dword [esp + 0x14]
mov eax, dword [eax]
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
push ecx
push eax
call esi
add esp, 8
lea ecx, [esp + 0x18]
test eax, eax
setne byte [esp + 0xb]
call fcn.0040289c
lea ecx, [esp + 0x14]
mov byte [esp + 0x340], bl
call fcn.0040289c
mov al, byte [esp + 0xb]
test al, al
je 0x401957
push 0x406020
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::operator
push str.prgcommanuale_
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_1
push eax
lea edx, [esp + 0x24]
lea eax, [esp + 0x18]
push edx
push eax
mov byte [esp + 0x34c], 0xc
call sub.MFC42.DLL_operator
lea ecx, [esp + 0x348]
lea edx, [esp + 0x18]
push ecx
push eax
push edx
mov byte [esp + 0x34c], 0xd
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x344], 0xe
call fcn.00402902
lea ecx, [esp + 0x18]
mov byte [esp + 0x340], 0xd
call fcn.0040289c
lea ecx, [esp + 0x14]
mov byte [esp + 0x340], 0xc
call fcn.0040289c
lea ecx, [esp + 0x10]
mov byte [esp + 0x340], bl
call fcn.0040289c
push str.prgcommanualehmview32
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x10]
push ecx
push eax
push edx
mov byte [esp + 0x34c], 0xf
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x344], 0x10
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x340], 0xf
call fcn.0040289c
mov byte [esp + 0x340], bl
lea ecx, [esp + 0x18]
call fcn.0040289c
lea eax, [esp + 0x130]
push eax
push str.Version
push str.SOFTWAREMicrosoftInternet_Explorer
call fcn.00401ff0
add esp, 0xc
test eax, eax
je 0x401c52
lea ecx, [esp + 0x130]
push ecx
lea ecx, [esp + 0x28]
call fcn.004028ae
push str.5.50
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
jne 0x401aa5
push 0x4060cc
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
jne 0x401aa5
push 0x4060c8
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
je 0x401c52
lea edx, [esp + 0x2c]
push edx
push str.Path
push str.SOFTWAREMicrosoftIE_SetupSetup
call fcn.00401ff0
add esp, 0xc
test eax, eax
je 0x401c52
lea eax, [esp + 0x2c]
lea ecx, [esp + 0xc]
push eax
call fcn.004028ae
push str._programfiles_
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
je 0x401b7c
lea ecx, [esp + 0x234]
push 0x104
push ecx
push str.programfiles
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
cmp eax, 0x104
ja 0x401b7c
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0xc]
mov eax, dword [edx - 8]
add eax, 0xfffffff2
push eax
lea eax, [esp + 0x14]
push eax
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x344], 0x11
call fcn.00402902
lea ecx, [esp + 0x10]
mov byte [esp + 0x340], bl
call fcn.0040289c
lea ecx, [esp + 0xc]
lea edx, [esp + 0x234]
push ecx
lea eax, [esp + 0x14]
push edx
push eax
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x344], 0x12
call fcn.00402902
lea ecx, [esp + 0x10]
mov byte [esp + 0x340], bl
call fcn.0040289c
push 1
push 0x5c
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x10]
push 1
push ecx
lea ecx, [esp + 0x14]
mov byte [esp + 0x348], 0x13
call sub.MFC42.DLL_CString::Right
mov edx, dword [esp + 0x14]
mov eax, dword [eax]
push edx
push eax
call esi
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne byte [esp + 0xb]
call fcn.0040289c
lea ecx, [esp + 0x14]
mov byte [esp + 0x340], bl
call fcn.0040289c
mov al, byte [esp + 0xb]
test al, al
je 0x401c06
push 0x406020
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_1
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x344], 0x14
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x340], bl
call fcn.0040289c
push str.Iexplore.exe
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_1
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x344], 0x15
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x340], bl
call fcn.0040289c
lea eax, [esp + 0xc]
lea ecx, [esp + 0x20]
push eax
call fcn.00402902
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::operator_1
push ecx
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call sub.MFC42.DLL_CString::CString_2
call fcn.00401f00
add esp, 4
lea ecx, [esp + 0x24]
mov esi, eax
mov byte [esp + 0x340], 3
call fcn.0040289c
lea ecx, [esp + 0xc]
mov byte [esp + 0x340], 2
call fcn.0040289c
lea ecx, [esp + 0x20]
mov byte [esp + 0x340], 1
call fcn.0040289c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x340], 0
call fcn.0040289c
lea ecx, [esp + 0x348]
mov dword [esp + 0x340], 0xffffffff
call fcn.0040289c
mov ecx, dword [esp + 0x338]
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x33c
ret 4