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

Disassembly:
push 0xffffffffffffffff
push 0x4093d8
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 0x4062bc
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 0x40cc38
lea ecx, [esp + 0x20]
mov byte [esp + 0x170], 6
call fcn.004082a4
mov ecx, dword [esp + 0x20]
push 0x40c9bc
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 8
cmp ebx, ebp
mov dword [esp + 0x40], ebx
jne 0x40639c
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 0x406869
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 0x406865
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], ebp
push ebp
call fcn.00406110
add esp, 4
test eax, eax
jle 0x40684d
push eax
push ebp
call fcn.00406170
mov ebp, eax
add esp, 8
test ebp, ebp
mov dword [esp + 0x38], ebp
je 0x40684d
mov ecx, dword [ebp + 4]
push ecx
lea ecx, [esp + 0x14]
call fcn.004082a4
push str._http
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
je 0x40684d
push eax
push 0x40c99c
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 0x406510
push str.http:__search.yahoo
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
jne 0x406510
push 0x40c960
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
jne 0x406510
lea edx, [edi + 5]
lea ecx, [esp + 0x10]
push edx
push 0x40c504
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
jne 0x4064de
push edi
push 0x40c95c
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
jne 0x4064de
push edi
push 0x40c958
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
jne 0x4064de
push edi
push 0x40c954
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x406510
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.004083a6
mov byte [esp + 0x16c], 6
lea ecx, [esp + 0x4c]
jmp 0x40653d
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.004083a6
mov byte [esp + 0x16c], 6
lea ecx, [esp + 0x34]
call fcn.0040828c
mov ecx, dword [esp + 0x5c]
lea edx, [esp + 0x10]
lea eax, [esp + 0x44]
push edx
push eax
call fcn.00406920
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x170], 9
call fcn.004083a6
lea ecx, [esp + 0x44]
mov byte [esp + 0x16c], 6
call fcn.0040828c
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.004083a6
lea ecx, [esp + 0x54]
mov byte [esp + 0x16c], 6
call fcn.0040828c
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 0x406623
mov edi, dword [eax + edx*4]
test edi, edi
je 0x406623
mov eax, dword [edi + 8]
push ebp
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x40666a
mov edi, dword [edi]
test edi, edi
jne 0x40660b
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 0x40667c
mov edi, dword [eax + ebx*4]
test edi, edi
je 0x40667c
mov eax, dword [edi + 8]
push ebp
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x406678
mov edi, dword [edi]
test edi, edi
jne 0x406650
jmp 0x40667c
test edi, edi
je 0x406623
mov edi, dword [edi + 0xc]
inc edi
mov dword [esp + 0x18], edi
jmp 0x40662b
test edi, edi
jne 0x4066d9
mov eax, dword [esi + 4]
test eax, eax
jne 0x4066b2
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.00408100
mov edi, eax
mov eax, dword [esp + 0x24]
push eax
lea ecx, [edi + 8]
mov dword [edi + 4], ebx
call fcn.004082a4
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 0x406717
mov edi, dword [eax + edx*4]
test edi, edi
je 0x406717
mov eax, dword [edi + 8]
push ebp
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x40675e
mov edi, dword [edi]
test edi, edi
jne 0x4066ff
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 0x406774
mov edi, dword [eax + ebx*4]
test edi, edi
je 0x406774
mov eax, dword [edi + 8]
push ebp
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x40676c
mov edi, dword [edi]
test edi, edi
jne 0x406744
jmp 0x406774
test edi, edi
je 0x406717
mov edi, dword [edi + 0xc]
inc edi
mov dword [esp + 0x18], edi
jmp 0x40671f
test edi, edi
jne 0x40681e
mov eax, dword [esi + 4]
test eax, eax
jne 0x4067aa
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 0x4067e0
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 0x4067e0
inc ecx
mov edx, dword [esi + 0x10]
mov dword [eax], edx
mov dword [esi + 0x10], eax
sub eax, 0x10
dec ecx
jne 0x4067d2
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.004082a4
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 0x4063e5
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.0040828c
lea ecx, [esp + 0x50]
mov byte [esp + 0x16c], 4
call fcn.0040828c
lea ecx, [esp + 0x58]
mov byte [esp + 0x16c], 3
call fcn.0040828c
lea ecx, [esp + 0x20]
mov byte [esp + 0x16c], 2
call fcn.0040828c
lea ecx, [esp + 0x10]
mov byte [esp + 0x16c], 1
call fcn.0040828c
lea ecx, [esp + 0x14]
mov byte [esp + 0x16c], 0
call fcn.0040828c
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