Function at 0x406270
Capabilities:
Get common file path
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x409428
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x154
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x5c], esi
mov dword [esp + 0x48], ebp
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x16c], 1
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi + 0x114]
add esi, 0x110
cmp eax, ebp
mov byte [esp + 0x16c], 2
je 0x4062dc
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esi + 4], ebp
push 0x1ed4
call sub.MFC42.DLL_operatornew
mov edi, eax
mov ecx, 0x7b5
xor eax, eax
mov dword [esi + 4], edi
add esp, 4
rep stosd dword es:[edi], eax
lea eax, [esp + 0x3c]
mov dword [esi + 8], 0x7b5
push eax
push 0x22
push ebp
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x60]
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea eax, [esp + 0x60]
lea ecx, [esp + 0x20]
push eax
call sub.MFC42.DLL_CString::CString_1
push str.History.IE5index.dat
lea ecx, [esp + 0x24]
mov byte [esp + 0x170], 3
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x58]
xor edi, edi
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x50]
mov byte [esp + 0x16c], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x16c], 5
call sub.MFC42.DLL_CString::CString
push 0x40cc48
lea ecx, [esp + 0x20]
mov byte [esp + 0x170], 6
call fcn.004082c4
mov ecx, dword [esp + 0x20]
push 0x40c9c4
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 8
cmp ebx, ebp
mov dword [esp + 0x40], ebx
jne 0x4063bc
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x1c]
push edx
push str.file:__s_notfound
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
jmp 0x406889
push 2
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_fseek]
push ebx
call ebp
push ebx
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push ebx
mov edi, eax
call ebp
push edi
call dword [sym.imp.MSVCRT.dll_malloc]
push ebx
push 1
push edi
push eax
mov dword [esp + 0x5c], eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x30
test edi, edi
jle 0x406885
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], ebp
push ebp
call fcn.00406130
add esp, 4
test eax, eax
jle 0x40686d
push eax
push ebp
call fcn.00406190
mov ebp, eax
add esp, 8
test ebp, ebp
mov dword [esp + 0x38], ebp
je 0x40686d
mov ecx, dword [ebp + 4]
push ecx
lea ecx, [esp + 0x14]
call fcn.004082c4
push str._http
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
je 0x40686d
push eax
push 0x40c9a4
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find_1
mov edi, eax
push str.http:__www.google.
lea ecx, [esp + 0x14]
add edi, 2
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
jne 0x406530
push str.http:__search.yahoo
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
jne 0x406530
push 0x40c968
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
jne 0x406530
lea edx, [edi + 5]
lea ecx, [esp + 0x10]
push edx
push 0x40c50c
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
jne 0x4064fe
push edi
push 0x40c964
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
jne 0x4064fe
push edi
push 0x40c960
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
jne 0x4064fe
push edi
push 0x40c95c
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x406530
sub eax, edi
lea ecx, [esp + 0x10]
push eax
lea eax, [esp + 0x50]
push edi
push eax
call sub.MFC42.DLL_CString::Mid_1
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x170], 7
call fcn.004083c0
mov byte [esp + 0x16c], 6
lea ecx, [esp + 0x4c]
jmp 0x40655d
lea ecx, [esp + 0x34]
push edi
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x170], 8
call fcn.004083c0
mov byte [esp + 0x16c], 6
lea ecx, [esp + 0x34]
call fcn.004082ac
mov ecx, dword [esp + 0x5c]
lea edx, [esp + 0x10]
lea eax, [esp + 0x44]
push edx
push eax
call fcn.00406940
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x170], 9
call fcn.004083c0
lea ecx, [esp + 0x44]
mov byte [esp + 0x16c], 6
call fcn.004082ac
xor ecx, ecx
xor edx, edx
mov cx, word [ebp + 0xe]
mov dx, word [ebp + 0xa]
xor eax, eax
push ecx
mov ax, word [ebp + 8]
push edx
cdq
mov ecx, 0x64
idiv ecx
push edx
lea edx, [esp + 0x20]
push str._02d_02d_02d
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x10]
lea edx, [esp + 0x54]
push ecx
push str.Total:
push edx
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x170], 0xa
call fcn.004083c0
lea ecx, [esp + 0x54]
mov byte [esp + 0x16c], 6
call fcn.004082ac
mov eax, dword [esp + 0x10]
push eax
mov ebp, eax
call sub.MFC42.DLL_HashKey
xor edx, edx
div dword [esi + 8]
mov eax, dword [esi + 4]
test eax, eax
je 0x406643
mov edi, dword [eax + edx*4]
test edi, edi
je 0x406643
mov eax, dword [edi + 8]
push ebp
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x40668a
mov edi, dword [edi]
test edi, edi
jne 0x40662b
mov dword [esp + 0x18], 1
mov eax, dword [esp + 0x10]
push eax
mov dword [esp + 0x28], eax
mov ebp, eax
call sub.MFC42.DLL_HashKey
xor edx, edx
div dword [esi + 8]
mov eax, dword [esi + 4]
test eax, eax
mov ebx, edx
je 0x40669c
mov edi, dword [eax + ebx*4]
test edi, edi
je 0x40669c
mov eax, dword [edi + 8]
push ebp
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x406698
mov edi, dword [edi]
test edi, edi
jne 0x406670
jmp 0x40669c
test edi, edi
je 0x406643
mov edi, dword [edi + 0xc]
inc edi
mov dword [esp + 0x18], edi
jmp 0x40664b
test edi, edi
jne 0x4066f9
mov eax, dword [esi + 4]
test eax, eax
jne 0x4066d2
mov ebp, dword [esi + 8]
lea edi, [ebp*4]
push edi
call sub.MFC42.DLL_operatornew
mov edx, eax
mov ecx, edi
mov dword [esi + 4], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov dword [esi + 8], ebp
mov ecx, esi
call fcn.00408120
mov edi, eax
mov eax, dword [esp + 0x24]
push eax
lea ecx, [edi + 8]
mov dword [edi + 4], ebx
call fcn.004082c4
mov ecx, dword [esi + 4]
mov edx, dword [ecx + ebx*4]
mov dword [edi], edx
mov eax, dword [esi + 4]
mov dword [eax + ebx*4], edi
mov ecx, dword [esp + 0x18]
mov dword [edi + 0xc], ecx
mov eax, dword [esp + 0x14]
push eax
mov ebp, eax
call sub.MFC42.DLL_HashKey
xor edx, edx
div dword [esi + 8]
mov eax, dword [esi + 4]
test eax, eax
je 0x406737
mov edi, dword [eax + edx*4]
test edi, edi
je 0x406737
mov eax, dword [edi + 8]
push ebp
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x40677e
mov edi, dword [edi]
test edi, edi
jne 0x40671f
mov dword [esp + 0x18], 1
mov eax, dword [esp + 0x14]
push eax
mov dword [esp + 0x28], eax
mov ebp, eax
call sub.MFC42.DLL_HashKey
xor edx, edx
div dword [esi + 8]
mov eax, dword [esi + 4]
test eax, eax
mov ebx, edx
je 0x406794
mov edi, dword [eax + ebx*4]
test edi, edi
je 0x406794
mov eax, dword [edi + 8]
push ebp
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x40678c
mov edi, dword [edi]
test edi, edi
jne 0x406764
jmp 0x406794
test edi, edi
je 0x406737
mov edi, dword [edi + 0xc]
inc edi
mov dword [esp + 0x18], edi
jmp 0x40673f
test edi, edi
jne 0x40683e
mov eax, dword [esi + 4]
test eax, eax
jne 0x4067ca
mov ebp, dword [esi + 8]
lea edi, [ebp*4]
push edi
call sub.MFC42.DLL_operatornew
mov edx, eax
mov ecx, edi
mov dword [esi + 4], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov dword [esi + 8], ebp
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x406800
mov eax, dword [esi + 0x18]
push 0x10
lea ecx, [esi + 0x14]
push eax
push ecx
call sub.MFC42.DLL_CPlex::Create
mov ecx, dword [esi + 0x18]
mov edx, ecx
shl edx, 4
dec ecx
test ecx, ecx
lea eax, [edx + eax - 0xc]
jl 0x406800
inc ecx
mov edx, dword [esi + 0x10]
mov dword [eax], edx
mov dword [esi + 0x10], eax
sub eax, 0x10
dec ecx
jne 0x4067f2
mov edi, dword [esi + 0x10]
mov ebp, dword [esi + 0xc]
inc ebp
push 1
mov eax, dword [edi]
mov dword [esi + 0xc], ebp
lea ebp, [edi + 8]
mov dword [esi + 0x10], eax
push ebp
call sub.MFC42.DLL_ConstructElements
mov ecx, dword [esp + 0x24]
mov dword [edi + 0xc], 0
push ecx
mov ecx, ebp
mov dword [edi + 4], ebx
call fcn.004082c4
mov edx, dword [esi + 4]
mov eax, dword [edx + ebx*4]
mov dword [edi], eax
mov ecx, dword [esi + 4]
mov dword [ecx + ebx*4], edi
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
mov dword [edi + 0xc], edx
call sub.MFC42.DLL_CString::operator
mov edi, dword [esp + 0x38]
mov ebx, dword [sym.imp.MSVCRT.dll_free]
mov ecx, dword [edi + 4]
push ecx
call ebx
push edi
call ebx
mov ebx, dword [esp + 0x48]
add esp, 8
mov ebp, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
inc ebp
dec eax
mov dword [esp + 0x30], ebp
mov dword [esp + 0x28], eax
jne 0x406405
mov edi, dword [esp + 0x2c]
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
push edi
call dword [sym.imp.MSVCRT.dll_free]
mov esi, dword [esp + 0x17c]
add esp, 8
lea edx, [esp + 0x1c]
mov ecx, esi
push edx
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x48], 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x16c], 5
call fcn.004082ac
lea ecx, [esp + 0x50]
mov byte [esp + 0x16c], 4
call fcn.004082ac
lea ecx, [esp + 0x58]
mov byte [esp + 0x16c], 3
call fcn.004082ac
lea ecx, [esp + 0x20]
mov byte [esp + 0x16c], 2
call fcn.004082ac
lea ecx, [esp + 0x10]
mov byte [esp + 0x16c], 1
call fcn.004082ac
lea ecx, [esp + 0x14]
mov byte [esp + 0x16c], 0
call fcn.004082ac
mov ecx, dword [esp + 0x164]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x160
ret 4