Function at 0x404700
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response
Reference http user-agent string
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46249d
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push esi
push edi
mov eax, dword [0x47e700]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x30], 0
mov dword [eax], 0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 3
call fcn.0042a268
mov ecx, eax
mov byte [ebp - 4], 2
test ecx, ecx
je 0x404b5d
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x34], edi
mov byte [ebp - 4], 6
call fcn.0042a268
mov ecx, eax
mov byte [ebp - 4], 5
test ecx, ecx
je 0x404b67
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 9
call fcn.0042a268
mov ecx, eax
mov byte [ebp - 4], 8
test ecx, ecx
je 0x404b71
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x70]
xorps xmm0, xmm0
mov dword [ebp - 0x20], ebx
push ecx
push ebx
mov dword [ebp - 0x6c], ebx
movlpd qword [ebp - 0x64], xmm0
movlpd qword [ebp - 0x58], xmm0
movlpd qword [ebp - 0x50], xmm0
movlpd qword [ebp - 0x48], xmm0
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x70], 0x3c
mov dword [ebp - 0x68], 0xffffffff
mov dword [ebp - 0x5c], 0xffffffff
mov dword [ebp - 0x40], 0xffffffff
mov dword [ebp - 0x38], 0xffffffff
push dword [eax - 0xc]
mov byte [ebp - 4], 0xa
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x404a7f
mov esi, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0xb
call fcn.0042a268
mov ecx, eax
mov byte [ebp - 4], 0xa
test ecx, ecx
je 0x404b7b
cmp dword [ebp - 0x18], ebx
jne 0x40484d
test esi, esi
jne 0x404b53
mov eax, dword [ecx]
push 2
push esi
call dword [eax]
mov esi, eax
test esi, esi
je 0x404b85
mov eax, dword [ebp - 0x30]
lea ecx, [esi + 0x10]
mov dword [ebp - 0x28], ecx
test eax, eax
js 0x404b53
cmp eax, dword [esi + 8]
jg 0x404b53
mov dword [esi + 4], eax
xor edx, edx
add eax, eax
mov word [eax + ecx], dx
test eax, eax
je 0x4048ba
test ecx, ecx
je 0x4048aa
mov edx, dword [ebp - 0x18]
push eax
test edx, edx
je 0x40489f
push edx
push ecx
call fcn.0043ce70
add esp, 0xc
jmp 0x4048ba
push 0
push ecx
call fcn.0043d3f0
add esp, 0xc
call fcn.004406ad
mov dword [eax], 0x16
call fcn.004403af
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xc
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401b30
mov byte [ebp - 4], 0xa
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4048e3
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x44]
lea ecx, [ebp - 0x30]
call fcn.00401840
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xd
call fcn.00401b30
mov edx, dword [ebp - 0x30]
or eax, 0xffffffff
mov byte [ebp - 4], 0xa
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40491a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 0
push 0
push 0
push str.Mozilla_5.0__Windows_NT_10.0_
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x404942
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0x1c]
jmp 0x404a85
mov esi, dword [ebp - 0x1c]
push 0
push dword [ebp - 0x58]
push esi
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov ecx, eax
mov dword [ebp - 0x2c], ecx
test ecx, ecx
je 0x404a7f
xor eax, eax
mov edx, 0x800000
cmp dword [ebp - 0x64], 2
cmove eax, edx
push eax
push 0
push 0
push 0
push dword [ebp - 0x24]
push 0x466c14
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov ebx, eax
mov dword [ebp - 0x18], ebx
test ebx, ebx
je 0x404a7f
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov ecx, eax
mov dword [ebp - 0x28], ecx
test ecx, ecx
je 0x4049b8
push 0
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax - 4], 1
jle 0x4049cf
push dword [eax - 0xc]
lea ecx, [ebp + 0xc]
call fcn.00403e00
mov eax, dword [ebp + 0xc]
push 0x466c34
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00440f24
add esp, 0xc
test eax, eax
jne 0x404a7f
cmp dword [ebp - 0x28], eax
je 0x404a88
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x404a7f
mov eax, dword [ebp - 0x10]
inc eax
push eax
call fcn.00429bb2
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x404a73
mov ecx, dword [ebp - 0x10]
inc ecx
push ecx
push 0
push ebx
call fcn.0043d3f0
add esp, 0xc
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x10]
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x404a58
push dword [ebp - 0x20]
push 1
push dword [ebp - 0x28]
push ebx
call fcn.0044a132
add esp, 0x10
push ebx
call fcn.00429bbb
mov ecx, dword [ebp + 0x10]
add esp, 4
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x18]
add dword [ecx], eax
test eax, eax
jmp 0x4049ec
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x10], 0
jmp 0x404a88
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x404a98
push eax
call fcn.00449e8f
add esp, 4
mov eax, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test ebx, ebx
je 0x404aa9
push ebx
call eax
mov eax, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x404ab3
push ecx
call eax
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x404ac1
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov edx, dword [ebp - 0x24]
or ebx, 0xffffffff
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x404ade
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x404af5
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x404b0c
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 8]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x404b26
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x404b3e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00403310
push 0x80004005
call fcn.00403310
push 0x80004005
call fcn.00403310
push 0x80004005
call fcn.00403310
push 0x80004005
call fcn.00403310
call fcn.00409700
int3