https://bugs.winehq.org/show_bug.cgi?id=42377
--- Comment #12 from Evgeniy Polyakov zbr@ioremap.net --- Yup, that sounds like the cause, it is consistent with what we see.
Another hint is that WSASend() sometimes immediately returns completed operation, i.e. without queuing anything, and probably sometimes in this case it returns number of bytes written in the previous operation - in this case there is no GetQueuedCompletionStatus() at least in the error trace, but maybe was wrecked previously.