Function at 0x402f80
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x40fc84
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x334
push ebx
push esi
mov esi, dword [esp + 0x34c]
xor ebx, ebx
cmp esi, ebx
mov dword [esp + 0x344], ebx
je 0x403220
mov eax, dword [esp + 0x350]
cmp dword [eax - 8], ebx
je 0x403220
lea ecx, [esp + 8]
mov dword [esp + 0x18], ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x1c], ebx
call sub.MFC42u.DLL_CString::CString_3
lea ecx, [esp + 0x14]
mov byte [esp + 0x344], 1
call sub.MFC42u.DLL_CString::CString_3
push str..lnk
lea ecx, [esp + 0x2c]
mov byte [esp + 0x348], 2
call sub.MFC42u.DLL_CString::CString_2
lea ecx, [esp + 0x10]
mov byte [esp + 0x344], 3
call sub.MFC42u.DLL_CString::CString_3
lea ecx, [esp + 0x134]
push 0x104
push ecx
push str.ProgramFiles
mov byte [esp + 0x350], 4
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [esp + 0x134]
lea ecx, [esp + 0x10]
push edx
call fcn.0040efa4
push str.Internet_Exploreriexplore.exe
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::operator
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::MakeLower
mov eax, dword [esi]
lea ecx, [esp + 0x18]
push ecx
push 0x40
push ebx
push esi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call dword [eax + 0x10]
cmp eax, ebx
jl 0x4031b3
lea edx, [esp + 0xc]
push edx
push 0x411dcc
push 1
push ebx
push 0x411dec
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x4031b3
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x1c]
push edx
push 0x411dfc
mov ecx, dword [eax]
push eax
call dword [ecx]
cmp eax, ebx
jl 0x4031b3
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x24]
push edx
lea edx, [esp + 0x24]
mov ecx, dword [eax]
push edx
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x4031b3
mov edx, dword [esp + 0x20]
mov eax, dword [esi]
lea ecx, [esp + 0x2c]
push ecx
push 0x8000
push edx
push esi
call dword [eax + 0x2c]
mov eax, dword [esp + 0x30]
lea ecx, [esp + 8]
push eax
call fcn.0040efa4
lea ecx, [esp + 8]
call sub.MFC42u.DLL_CString::MakeLower
mov ecx, dword [esp + 8]
mov eax, dword [ecx - 8]
mov ecx, dword [esp + 0x28]
sub eax, dword [ecx - 8]
push eax
push ecx
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::Find_2
cmp eax, 0xffffffff
je 0x403195
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 8]
push 2
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x14]
mov eax, dword [esp + 0xc]
push ebx
push ebx
lea ecx, [esp + 0x13c]
mov edx, dword [eax]
push 0x104
push ecx
push eax
call dword [edx + 0xc]
lea edx, [esp + 0x134]
lea ecx, [esp + 0x14]
push edx
call fcn.0040efa4
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::MakeLower
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
call sub.MFC42u.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x403195
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x350]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 8]
push 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x24]
push edx
lea edx, [esp + 0x24]
mov ecx, dword [eax]
push edx
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x4030d1
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4031c1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x4031cf
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x4031dd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0x10]
mov byte [esp + 0x344], 3
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x344], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x344], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x344], bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x350]
mov dword [esp + 0x344], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x33c]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x340
ret