Well, avast! doesn’t repair winsock entries if they are already corrupted. But yes, if avast! is removing an LSP entry (because it detected the underlying file as malicious), it tries to fix the corresponding registry entries as well.