rewrite winhttp downloader