Function at 0x40f3b0
Capabilities:
Check http status code
Connect to http server
Create http request
Get http content length
Read data from internet
Receive data
Reference http user-agent string
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x507304
mov eax, dword fs:[0]
push eax
sub esp, 0x49c
mov eax, dword [0x5503dc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x484], esi
mov ebx, ecx
mov dword [ebp - 0x488], ebx
mov dword [ebp - 0x47c], ebx
mov dword [ebp - 0x48c], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x45c], 0xf
mov dword [ebp - 0x460], 0
mov byte [ebp - 0x470], 0
push 0x400
xor edi, edi
lea eax, [ebp - 0x410]
push edi
push eax
call fcn.004debe0
mov dword [ebp - 0x458], edi
mov dword [ebp - 0x454], edi
mov dword [ebp - 0x480], 0xffffffff
mov dword [ebp - 0x41c], 4
mov dword [ebp - 0x420], 0x3a98
mov dword [ebp - 0x43c], 0xf
mov dword [ebp - 0x440], edi
mov byte [ebp - 0x450], 0
mov dword [ebp - 0x424], 0xf
mov dword [ebp - 0x428], edi
mov byte [ebp - 0x438], 0
sub esp, 0xc
mov byte [ebp - 4], 3
mov ecx, esp
mov dword [esi], 0xffffffff
mov dword [ebp - 0x474], 0x50
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], edi
cmp dword [ecx + 0x14], 0x10
jb 0x40f4b9
mov eax, dword [ecx]
jmp 0x40f4bb
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp + 8]
push 0
push eax
call fcn.00407e60
lea eax, [ebp - 0x474]
push eax
lea edx, [ebp - 0x438]
lea ecx, [ebp - 0x450]
call fcn.0040ef70
add esp, 0x1c
push 0
test al, al
jne 0x40f5ca
mov dword [ebx + 0x14], 0xf
mov ecx, ebx
mov dword [ebx + 0x10], 0
push 0x53f3ac
mov byte [ebx], al
call fcn.00407d60
mov eax, dword [ebp - 0x424]
cmp eax, 0x10
jb 0x40f52a
inc eax
lea ecx, [ebp - 0x438]
push eax
push dword [ebp - 0x438]
call fcn.00408290
mov eax, dword [ebp - 0x43c]
mov dword [ebp - 0x424], 0xf
mov dword [ebp - 0x428], 0
mov byte [ebp - 0x438], 0
cmp eax, 0x10
jb 0x40f563
inc eax
lea ecx, [ebp - 0x450]
push eax
push dword [ebp - 0x450]
call fcn.00408290
mov eax, dword [ebp - 0x45c]
mov dword [ebp - 0x43c], 0xf
mov dword [ebp - 0x440], 0
mov byte [ebp - 0x450], 0
cmp eax, 0x10
jb 0x40f59c
inc eax
lea ecx, [ebp - 0x470]
push eax
push dword [ebp - 0x470]
call fcn.00408290
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x45c], 0xf
mov dword [ebp - 0x460], 0
mov byte [ebp - 0x470], 0
cmp ecx, 0x10
jb 0x40f91d
inc ecx
push ecx
jmp 0x40f912
push 0
push 0
push 0
push str.Mozilla_5.0__Windows_NT_6.1__WOW64__rv:14.0__Gecko_20100101_Firefox_14.0.1
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
lea ecx, [ebp - 0x420]
push 4
push ecx
push 2
push eax
mov dword [ebp - 0x478], eax
call esi
push 4
lea eax, [ebp - 0x420]
push eax
push 8
push dword [ebp - 0x478]
call esi
push 4
lea eax, [ebp - 0x420]
push eax
push 7
push dword [ebp - 0x478]
call esi
mov ecx, dword [ebp - 0x478]
test ecx, ecx
je 0x40f84f
cmp dword [ebp - 0x43c], 0x10
lea eax, [ebp - 0x450]
push 0
cmovae eax, dword [ebp - 0x450]
push 0
push 3
push 0
push 0
push dword [ebp - 0x474]
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x47c], eax
test eax, eax
je 0x40f82d
cmp dword [ebp - 0x424], 0x10
lea edx, [ebp - 0x418]
push 0
push SysReAllocString
push edx
push 0
push str.HTTP_1.0
lea ecx, [ebp - 0x438]
mov dword [ebp - 0x418], str.text_html_application_xhtmlxml_application_xml_q0.9___q0.8
cmovae ecx, dword [ebp - 0x438]
push ecx
push 0x53c404
push eax
mov dword [ebp - 0x414], 0
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
test edi, edi
je 0x40f82d
push 0
push 0
push 4
push str._r_n_r_n
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x40f82d
mov esi, dword [ebp - 0x484]
lea eax, [ebp - 0x454]
push eax
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x41c], 4
push eax
push esi
push 0x20000013
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x40f82d
cmp dword [esi], 0xc8
jne 0x40f82d
lea eax, [ebp - 0x454]
mov dword [ebp - 0x41c], 4
push eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x458]
push eax
push 0x20000005
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x40f757
mov eax, dword [ebp - 0x458]
lea ecx, [ebp - 0x470]
push eax
mov dword [ebp - 0x480], eax
call fcn.00408c10
lea eax, [ebp - 0x474]
mov dword [ebp - 0x474], 0
push eax
push 0x400
lea eax, [ebp - 0x410]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x40f82d
mov ebx, dword [ebp - 0x480]
xor esi, esi
nop dword [eax + eax]
mov eax, dword [ebp - 0x474]
test eax, eax
je 0x40f827
push eax
add esi, eax
mov dword [ebp - 0x490], 0xf
lea eax, [ebp - 0x410]
mov dword [ebp - 0x494], 0
push eax
lea ecx, [ebp - 0x4a4]
mov byte [ebp - 0x4a4], 0
call fcn.00407d60
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x4a4]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x470]
call fcn.004080c0
lea ecx, [ebp - 0x4a4]
mov byte [ebp - 4], 3
call fcn.004078d0
cmp esi, ebx
jae 0x40f827
lea eax, [ebp - 0x474]
mov dword [ebp - 0x474], 0
push eax
push 0x400
lea eax, [ebp - 0x410]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x40f790
mov ebx, dword [ebp - 0x488]
push dword [ebp - 0x478]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
mov eax, dword [ebp - 0x47c]
test eax, eax
je 0x40f848
push eax
call esi
test edi, edi
je 0x40f84f
push edi
call esi
lea eax, [ebp - 0x470]
mov ecx, ebx
push eax
call fcn.00407990
mov eax, dword [ebp - 0x424]
cmp eax, 0x10
jb 0x40f87b
inc eax
lea ecx, [ebp - 0x438]
push eax
push dword [ebp - 0x438]
call fcn.00408290
mov eax, dword [ebp - 0x43c]
mov dword [ebp - 0x424], 0xf
mov dword [ebp - 0x428], 0
mov byte [ebp - 0x438], 0
cmp eax, 0x10
jb 0x40f8b4
inc eax
lea ecx, [ebp - 0x450]
push eax
push dword [ebp - 0x450]
call fcn.00408290
mov eax, dword [ebp - 0x45c]
mov dword [ebp - 0x43c], 0xf
mov dword [ebp - 0x440], 0
mov byte [ebp - 0x450], 0
cmp eax, 0x10
jb 0x40f8ed
inc eax
lea ecx, [ebp - 0x470]
push eax
push dword [ebp - 0x470]
call fcn.00408290
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x45c], 0xf
mov dword [ebp - 0x460], 0
mov byte [ebp - 0x470], 0
cmp eax, 0x10
jb 0x40f91d
inc eax
push eax
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.00408290
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c9018
mov esp, ebp
pop ebp
ret