Function at 0x40f000
Capabilities:
Create http request
Get http content length
Read data from internet
Receive data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a615b
push eax
mov eax, 0x1028
mov dword fs:[0], esp
call fcn.0047f340
mov eax, dword [0x4d1788]
mov dword [esp + 0x1024], eax
push ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x1034], 1
call fcn.00499720
mov ebx, dword [esp + 0x1044]
push 0
push 0x1081
push ebx
lea ecx, [esp + 0x20]
mov byte [esp + 0x1040], 2
call fcn.004999bc
test eax, eax
jne 0x40f0cd
lea ecx, [esp + 0x14]
mov byte [esp + 0x1034], 1
call fcn.0049975f
mov eax, dword [esp + 0x1040]
add eax, 0xfffffff0
mov byte [esp + 0x1034], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f09e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebx - 0x10]
mov dword [esp + 0x1034], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f0c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 0x80004005
jmp 0x40f338
push ebp
push 0
push 0
push 0
push 1
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.1__ku6speedup_
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebp, eax
test ebp, ebp
mov dword [esp + 8], ebp
jne 0x40f154
lea ecx, [esp + 0x18]
mov byte [esp + 0x1038], 1
call fcn.0049975f
mov eax, dword [esp + 0x1044]
add eax, 0xfffffff0
mov byte [esp + 0x1038], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f125
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebx - 0x10]
mov dword [esp + 0x1038], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f14a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 0x80004005
jmp 0x40f337
push esi
push edi
call fcn.0047f3ee
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add esi, eax
push esi
mov esi, dword [esp + 0x1050]
push 0
push 0
push 0
push esi
push ebp
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov edi, eax
test edi, edi
jne 0x40f1ea
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [esp + 0x20]
mov byte [esp + 0x1040], 1
call fcn.0049975f
lea eax, [esi - 0x10]
mov byte [esp + 0x1040], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f1bb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebx - 0x10]
mov dword [esp + 0x1040], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f1e0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 0x80004005
jmp 0x40f335
xor esi, esi
push esi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x38]
push ecx
push 0x20000005
push edi
xor ebx, ebx
mov dword [esp + 0x30], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x40f215
mov ebx, dword [esp + 0x30]
lea edx, [esp + 0x14]
push edx
push 0x1000
lea eax, [esp + 0x3c]
push eax
push edi
mov dword [esp + 0x28], 0
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x40f2a4
mov ebp, dword [esp + 0x1058]
mov edi, edi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40f298
push eax
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x28]
call fcn.00499473
add esi, dword [esp + 0x14]
cmp ebx, esi
jae 0x40f261
mov ebx, esi
test ebp, ebp
je 0x40f27c
mov edx, dword [ebp]
push 0x4ae7d8
push 0
push ebx
push esi
push ebp
call dword [edx + 0x18]
cmp eax, 0x80004004
je 0x40f2a0
lea eax, [esp + 0x14]
push eax
push 0x1000
lea ecx, [esp + 0x3c]
push ecx
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x40f240
jmp 0x40f2a0
mov dword [esp + 0x18], 1
mov ebp, dword [esp + 0x10]
lea ecx, [esp + 0x20]
call fcn.004996be
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
push ebp
call esi
mov ebx, dword [esp + 0x18]
xor edx, edx
test ebx, ebx
setne dl
lea ecx, [esp + 0x20]
mov byte [esp + 0x1040], 1
dec edx
and edx, 0x80004005
mov esi, edx
call fcn.0049975f
mov eax, dword [esp + 0x104c]
add eax, 0xfffffff0
mov byte [esp + 0x1040], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f307
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1050]
add eax, 0xfffffff0
mov dword [esp + 0x1040], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f333
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, esi
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x102c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x1028]
pop ebx
call fcn.0047e6cd
add esp, 0x1034
ret