Function at 0x40d9b0
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e2e78
mov eax, dword fs:[0]
push eax
sub esp, 0x44c
mov eax, dword [0x50e5d4]
xor eax, ebp
mov dword [ebp - 0x38], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x448], ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], str.Accept:_image_gif__image_x_xbitmap__image_jpeg__image_pjpeg____r_nUser_Agent:_Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_
push 0
push 0
push 0
push 0
push str.Http
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40da27
xor eax, eax
jmp 0x40dc07
push 1
push 0
push 3
push 0
push 0
movzx eax, word [ebp + 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x40dbbf
push 1
push SysReAllocString
push 0
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x40dbbf
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x44c], edx
mov eax, dword [ebp - 0x44c]
add eax, 1
mov dword [ebp - 0x450], eax
mov ecx, dword [ebp - 0x44c]
mov dl, byte [ecx]
mov byte [ebp - 0x451], dl
add dword [ebp - 0x44c], 1
cmp byte [ebp - 0x451], 0
jne 0x40da93
mov eax, dword [ebp - 0x44c]
sub eax, dword [ebp - 0x450]
mov dword [ebp - 0x458], eax
push 0
push 0
mov ecx, dword [ebp - 0x458]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x40dbbf
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x448]
call fcn.0040d960
test eax, eax
je 0x40dbbf
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x444], 0
push 0x400
push 0
lea edx, [ebp - 0x443]
push edx
call fcn.004c36d0
add esp, 0xc
lea ecx, [ebp - 0x34]
call fcn.004ad6f9
mov dword [ebp - 4], 0
push 0
push 0x1001
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x34]
call fcn.004adb6f
test eax, eax
je 0x40dbb0
push 0x401
push 0
lea ecx, [ebp - 0x444]
push ecx
call fcn.004c36d0
add esp, 0xc
lea edx, [ebp - 0x24]
push edx
push 0x400
lea eax, [ebp - 0x444]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x40db99
mov edx, dword [ebp - 0x24]
mov byte [ebp + edx - 0x444], 0
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x444]
push ecx
lea ecx, [ebp - 0x34]
call fcn.004ad42f
jmp 0x40db9b
jmp 0x40dba1
cmp dword [ebp - 0x24], 0
jne 0x40db45
lea ecx, [ebp - 0x34]
call fcn.004ad693
mov dword [ebp - 0x1c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004ad801
cmp dword [ebp - 0x14], 0
je 0x40dbcf
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x20], 0
je 0x40dbdf
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x18], 0
je 0x40dbef
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x38]
xor ecx, ebp
call fcn.004bee8a
mov esp, ebp
pop ebp
ret 0x10