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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42352b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xad0
mov eax, dword [0x42f040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xac8], edx
xorps xmm0, xmm0
mov byte [ebp - 0xab5], 0
xor eax, eax
mov dword [ebp - 0xa78], 0
movups xmmword [ebp - 0xa50], xmm0
mov dword [ebp - 0xa1c], 0
mov dword [ebp - 0xa40], 0
mov dword [ebp - 0xa3c], 7
mov word [ebp - 0xa50], ax
mov dword [ebp - 4], eax
movups xmmword [ebp - 0xa34], xmm0
mov dword [ebp - 0xa24], eax
mov dword [ebp - 0xa20], 7
mov word [ebp - 0xa34], ax
mov byte [ebp - 4], 1
cmp dword [ecx + 0x14], 7
mov dword [ebp - 0xaa8], eax
mov dword [ebp - 0xa8c], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0xaa4], eax
lea eax, [ebp - 0xa18]
mov dword [ebp - 0xa88], eax
mov eax, dword [ecx + 0x10]
movlpd qword [ebp - 0xab0], xmm0
movlpd qword [ebp - 0xa9c], xmm0
movlpd qword [ebp - 0xa94], xmm0
movlpd qword [ebp - 0xa80], xmm0
mov dword [ebp - 0xab4], 0x3c
mov dword [ebp - 0xaa0], pe_nt_image_headers32
mov dword [ebp - 0xa84], 0x400
jbe 0x402afb
mov ecx, dword [ecx]
lea edx, [ebp - 0xab4]
push edx
push 0
push eax
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x402ce5
push dword [ebp - 0xaa0]
xorps xmm0, xmm0
mov dword [ebp - 0xad0], 0
push dword [ebp - 0xaa4]
lea ecx, [ebp - 0xae0]
mov dword [ebp - 0xacc], 0
movups xmmword [ebp - 0xae0], xmm0
call fcn.00408ce0
lea eax, [ebp - 0xae0]
push eax
lea ecx, [ebp - 0xa50]
call fcn.00407640
mov ecx, dword [ebp - 0xacc]
cmp ecx, 7
jbe 0x402b9b
mov edx, dword [ebp - 0xae0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402b91
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402f51
push ecx
push edx
call fcn.0040ad34
add esp, 8
push dword [ebp - 0xa84]
xorps xmm0, xmm0
mov dword [ebp - 0xad0], 0
push dword [ebp - 0xa88]
lea ecx, [ebp - 0xae0]
mov dword [ebp - 0xacc], 0
movups xmmword [ebp - 0xae0], xmm0
call fcn.00408ce0
lea eax, [ebp - 0xae0]
push eax
lea ecx, [ebp - 0xa34]
call fcn.00407640
mov ecx, dword [ebp - 0xacc]
cmp ecx, 7
jbe 0x402c22
mov edx, dword [ebp - 0xae0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402c18
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402f51
push ecx
push edx
call fcn.0040ad34
add esp, 8
mov eax, dword [ebp - 0xaa8]
movzx edi, word [ebp - 0xa9c]
push 0
push 0
push 0
push 0
push str.Mozilla_5.0__Custom_Agent_
mov dword [ebp - 0xac4], eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov esi, eax
mov dword [ebp - 0xac0], esi
test esi, esi
je 0x402ce5
cmp dword [ebp - 0xa3c], 7
lea ecx, [ebp - 0xa50]
push 0
cmova ecx, dword [ebp - 0xa50]
push edi
push ecx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov edx, eax
mov dword [ebp - 0xabc], edx
test edx, edx
jne 0x402c8c
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x402ce5
cmp dword [ebp - 0xa20], 7
lea ecx, [ebp - 0xa34]
mov esi, 0x800000
cmova ecx, dword [ebp - 0xa34]
xor eax, eax
cmp dword [ebp - 0xac4], 2
cmove eax, esi
push eax
push 0
push 0
push 0
push ecx
push 0x42ba30
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov edi, eax
test edi, edi
jne 0x402d8c
push dword [ebp - 0xabc]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push dword [ebp - 0xac0]
call esi
mov byte [ebp - 0xab5], 0
mov ecx, dword [ebp - 0xa20]
cmp ecx, 7
jbe 0x402d2c
mov edx, dword [ebp - 0xa34]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402d22
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402f51
push ecx
push edx
call fcn.0040ad34
add esp, 8
mov ecx, dword [ebp - 0xa3c]
xor eax, eax
mov dword [ebp - 0xa24], 0
mov dword [ebp - 0xa20], 7
mov word [ebp - 0xa34], ax
cmp ecx, 7
jbe 0x402f2d
mov edx, dword [ebp - 0xa50]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402f23
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402f51
jmp 0x402f23
push 0
push 0
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x402db0
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x402dc4
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push edi
call esi
push dword [ebp - 0xabc]
jmp 0x402cdb
mov eax, dword [ebp - 0xac8]
mov ecx, eax
cmp dword [eax + 0x14], 7
jbe 0x402dd4
mov ecx, dword [eax]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xac4], eax
cmp eax, 0xffffffff
je 0x402db0
nop dword [eax + eax]
lea eax, [ebp - 0xa78]
mov dword [ebp - 0xa78], 0
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x402eb0
mov eax, dword [ebp - 0xa78]
test eax, eax
je 0x402eb0
push eax
call fcn.0040ad42
push dword [ebp - 0xa78]
mov esi, eax
push 0
push esi
call fcn.0040c560
add esp, 0x10
lea eax, [ebp - 0xa1c]
push eax
push dword [ebp - 0xa78]
push esi
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x402ea7
mov eax, dword [ebp - 0xa1c]
test eax, eax
je 0x402e8f
push 0
lea ecx, [ebp - 0xa38]
mov dword [ebp - 0xa38], 0
push ecx
push eax
push esi
push dword [ebp - 0xac4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402ea7
push esi
call fcn.0040ab02
add esp, 4
cmp dword [ebp - 0xa78], 0
ja 0x402e00
jmp 0x402eb0
push esi
call fcn.0040ab02
add esp, 4
push dword [ebp - 0xac4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push edi
call esi
push dword [ebp - 0xabc]
call esi
push dword [ebp - 0xac0]
call esi
mov eax, dword [ebp - 0xac8]
cmp dword [eax + 0x14], 7
jbe 0x402ee3
mov eax, dword [eax]
lea ecx, [ebp - 0xa74]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x402cec
cmp dword [ebp - 0xa58], 0
jl 0x402cec
jg 0x402f17
cmp dword [ebp - 0xa54], 0
jbe 0x402cec
mov byte [ebp - 0xab5], 1
jmp 0x402cec
push ecx
push edx
call fcn.0040ad34
add esp, 8
mov al, byte [ebp - 0xab5]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040aaf4
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00411475
int3