Function at 0x401000
Capabilities:
Create http request
Delete file
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Set file attributes
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x412a30
mov eax, dword fs:[0]
push eax
sub esp, 0x414
mov eax, dword [0x419184]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x419184]
xor eax, esp
push eax
lea eax, [esp + 0x428]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
mov esi, 1
push str.MSDN_Read
mov dword [esp + 0x444], esi
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebp, eax
mov dword [esp + 0x1c], ebp
cmp ebp, ebx
jne 0x4010c3
mov byte [esp + 0x430], bl
mov eax, dword [esp + 0x438]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40108c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x430], 0xffffffff
mov eax, dword [esp + 0x43c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401276
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x401276
mov ecx, dword [esp + 0x438]
push ebx
push 0x80000000
push ebx
push ebx
push ecx
push ebp
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, ebx
jne 0x401110
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov byte [esp + 0x430], bl
mov eax, dword [esp + 0x438]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x401080
cmp eax, 0x2ee3
je 0x401062
mov eax, dword [esp + 0x43c]
cmp dword [eax - 4], esi
jle 0x40113f
mov ecx, dword [eax - 0xc]
push ecx
lea edx, [esp + 0x440]
push edx
call fcn.004012d0
mov eax, dword [esp + 0x43c]
push ebx
push 2
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40116a
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
push ebp
call esi
jmp 0x401062
push 0x400
lea ecx, [esp + 0x28]
push ebx
push ecx
call fcn.00409ab0
add esp, 0xc
mov byte [esp + 0x24], bl
mov dword [esp + 0x14], ebx
lea edx, [esp + 0x18]
push edx
push 0x400
lea eax, [esp + 0x2c]
push eax
push edi
mov dword [esp + 0x28], ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
push 2
push ebx
push ebx
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x18]
cmp eax, ebx
jbe 0x4011cb
push ebx
lea ecx, [esp + 0x24]
push ecx
push eax
lea edx, [esp + 0x30]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x18]
add dword [esp + 0x14], eax
cmp ebp, ebx
je 0x4011d7
cmp eax, ebx
ja 0x401185
cmp dword [esp + 0x14], 0xa
jb 0x401239
lea eax, [esp + 0x24]
push str.404__
push eax
call fcn.00407850
add esp, 8
test eax, eax
jne 0x401239
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
mov ecx, dword [esp + 0x1c]
push ecx
call esi
mov edx, dword [esp + 0x43c]
push 2
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [esp + 0x438]
call fcn.004012b0
lea eax, [esp + 0x43c]
call fcn.004012b0
mov eax, dword [esp + 0x14]
jmp 0x401278
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x43c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
mov ecx, dword [esp + 0x1c]
push ecx
call esi
lea eax, [esp + 0x438]
call fcn.004012b0
lea eax, [esp + 0x43c]
call fcn.004012b0
xor eax, eax
mov ecx, dword [esp + 0x428]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.0040783d
add esp, 0x420
ret 8