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

Disassembly:
push 0xffffffffffffffff
push 0x4096b8
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 + 0x11c]
add esi, 0x118
cmp eax, ebp
mov byte [esp + 0x16c], 2
je 0x40647c
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 0x40dc48
lea ecx, [esp + 0x20]
mov byte [esp + 0x170], 6
call fcn.004084e8
mov ecx, dword [esp + 0x20]
push 0x40d9c4
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 8
cmp ebx, ebp
mov dword [esp + 0x40], ebx
jne 0x40655c
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 0x406a29
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 0x406a25
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], ebp
push ebp
call fcn.004062d0
add esp, 4
test eax, eax
jle 0x406a0d
push eax
push ebp
call fcn.00406330
mov ebp, eax
add esp, 8
test ebp, ebp
mov dword [esp + 0x38], ebp
je 0x406a0d
mov ecx, dword [ebp + 4]
push ecx
lea ecx, [esp + 0x14]
call fcn.004084e8
push str._http
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
je 0x406a0d
push eax
push 0x40d9a4
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 0x4066d0
push str.http:__search.yahoo
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
jne 0x4066d0
push 0x40d968
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
jne 0x4066d0
lea edx, [edi + 5]
lea ecx, [esp + 0x10]
push edx
push 0x40d524
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
jne 0x40669e
push edi
push 0x40d964
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
jne 0x40669e
push edi
push 0x40d960
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
jne 0x40669e
push edi
push 0x40d95c
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x4066d0
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.004085f0
mov byte [esp + 0x16c], 6
lea ecx, [esp + 0x4c]
jmp 0x4066fd
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.004085f0
mov byte [esp + 0x16c], 6
lea ecx, [esp + 0x34]
call fcn.004084dc
mov ecx, dword [esp + 0x5c]
lea edx, [esp + 0x10]
lea eax, [esp + 0x44]
push edx
push eax
call fcn.00406ae0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x170], 9
call fcn.004085f0
lea ecx, [esp + 0x44]
mov byte [esp + 0x16c], 6
call fcn.004084dc
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.004085f0
lea ecx, [esp + 0x54]
mov byte [esp + 0x16c], 6
call fcn.004084dc
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 0x4067e3
mov edi, dword [eax + edx*4]
test edi, edi
je 0x4067e3
mov eax, dword [edi + 8]
push ebp
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x40682a
mov edi, dword [edi]
test edi, edi
jne 0x4067cb
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 0x40683c
mov edi, dword [eax + ebx*4]
test edi, edi
je 0x40683c
mov eax, dword [edi + 8]
push ebp
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x406838
mov edi, dword [edi]
test edi, edi
jne 0x406810
jmp 0x40683c
test edi, edi
je 0x4067e3
mov edi, dword [edi + 0xc]
inc edi
mov dword [esp + 0x18], edi
jmp 0x4067eb
test edi, edi
jne 0x406899
mov eax, dword [esi + 4]
test eax, eax
jne 0x406872
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.00408350
mov edi, eax
mov eax, dword [esp + 0x24]
push eax
lea ecx, [edi + 8]
mov dword [edi + 4], ebx
call fcn.004084e8
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 0x4068d7
mov edi, dword [eax + edx*4]
test edi, edi
je 0x4068d7
mov eax, dword [edi + 8]
push ebp
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x40691e
mov edi, dword [edi]
test edi, edi
jne 0x4068bf
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 0x406934
mov edi, dword [eax + ebx*4]
test edi, edi
je 0x406934
mov eax, dword [edi + 8]
push ebp
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x40692c
mov edi, dword [edi]
test edi, edi
jne 0x406904
jmp 0x406934
test edi, edi
je 0x4068d7
mov edi, dword [edi + 0xc]
inc edi
mov dword [esp + 0x18], edi
jmp 0x4068df
test edi, edi
jne 0x4069de
mov eax, dword [esi + 4]
test eax, eax
jne 0x40696a
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 0x4069a0
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 0x4069a0
inc ecx
mov edx, dword [esi + 0x10]
mov dword [eax], edx
mov dword [esi + 0x10], eax
sub eax, 0x10
dec ecx
jne 0x406992
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.004084e8
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 0x4065a5
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.004084dc
lea ecx, [esp + 0x50]
mov byte [esp + 0x16c], 4
call fcn.004084dc
lea ecx, [esp + 0x58]
mov byte [esp + 0x16c], 3
call fcn.004084dc
lea ecx, [esp + 0x20]
mov byte [esp + 0x16c], 2
call fcn.004084dc
lea ecx, [esp + 0x10]
mov byte [esp + 0x16c], 1
call fcn.004084dc
lea ecx, [esp + 0x14]
mov byte [esp + 0x16c], 0
call fcn.004084dc
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