There may be an issue with avast.setup not being able to connect with comodo firewall - Comodo config options. Advanced Attack Detection and Prevention. - To get there, open program, click Security", “advanced attack detection and prevention”, and click “configure,” Block all outgoing connections while booting.

So if comodo is slow in getting established even though a connection may be present (and probably recognised by avast) the connection is blocked.

Personally I believe the default check for avast update should be pushed back from 30 seconds so it doesn’t possibly get involved in any boot activity.

You need to edit the [InetWD] section of the C:\Program Files\Alwil Software\Avast4\Data\avast4.ini file and add the following line (depending on your connection type enter one or other of the Bold lines below):
Dial-up connections, add this line: RASWaitSeconds=120
Or
Broadband connections, add this line: AlwaysConnectedWaitSeconds=120

[InetWD] AlwaysConnectedWaitSeconds=120 Or RASWaitSeconds=120

The figure is seconds and the above equates to two minutes, you could try that and adjust upwards if required, 180, 240, etc.