Function at 0x48a8a8
Capabilities:
Create http request
Get http content length
Query remote server for available data
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x48ada6
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x38]
mov eax, ebx
call fcn.004097c8
mov eax, dword [ebp - 0x38]
call fcn.00409490
test al, al
jne 0x48a904
mov eax, dword [ebp - 8]
mov byte [eax], 1
mov eax, dword [ebp - 8]
mov dword [eax + 8], 0xffffffff
mov dword [eax + 0xc], 0xffffffff
jmp 0x48ad7d
push 0
push 0
push 0
push 0
push 0
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x48ad6c
xor eax, eax
push ebp
push 0x48ad65
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov dl, 1
mov eax, dword [0x41a710]
call fcn.0041f83c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x48ad35
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.00404c74
test eax, eax
jle 0x48a984
push 0x48adbc
mov eax, dword [ebp - 4]
push dword [eax + 4]
push 0x48add4
lea eax, [ebp - 0x3c]
mov edx, 3
call fcn.00404d34
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x10]
call fcn.0041f978
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
call fcn.00404c74
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0xffffffff
jle 0x48a9df
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push 2
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetQueryOptionA
test eax, eax
je 0x48a9df
cmp dword [ebp - 0x20], 0
jbe 0x48a9df
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
cmp eax, dword [ebp - 0x1c]
je 0x48a9df
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push 2
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetSetOptionA
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0xffffffff
jle 0x48aa74
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push 5
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetQueryOptionA
test eax, eax
je 0x48aa30
cmp dword [ebp - 0x20], 0
jbe 0x48aa30
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp eax, dword [ebp - 0x1c]
je 0x48aa30
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push 5
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetSetOptionA
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push 6
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetQueryOptionA
test eax, eax
je 0x48aa74
cmp dword [ebp - 0x20], 0
jbe 0x48aa74
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp eax, dword [ebp - 0x1c]
je 0x48aa74
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push 6
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetSetOptionA
push 0xffff
mov ecx, ebx
mov dl, 1
mov eax, dword [0x41a5a4]
call fcn.0041f440
mov dword [ebp - 0x2c], eax
xor eax, eax
push ebp
push 0x48ad18
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
test eax, eax
jle 0x48acf1
mov dword [ebp - 0x34], eax
xor eax, eax
push ebp
push 0x48acc4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov byte [eax], 0
cmp dword [ebp - 0x24], 0
jle 0x48aafb
push 0
push 0x84400000
mov eax, dword [ebp - 0x24]
test eax, eax
jns 0x48aad6
call fcn.00403ac8
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
call fcn.00404e6c
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00404e6c
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetOpenUrlA
mov ebx, eax
jmp 0x48ab1c
push 0
push 0x84400000
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00404e6c
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetOpenUrlA
mov ebx, eax
test ebx, ebx
je 0x48ac9f
mov eax, dword [ebp - 4]
cmp word [eax + 0x1a], 0
je 0x48ab67
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], 4
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x28]
push eax
push 0x20000005
push ebx
call sub.wininet.dll_HttpQueryInfoA
mov eax, dword [ebp - 0x28]
push eax
mov edi, dword [ebp - 4]
xor ecx, ecx
xor edx, edx
mov eax, dword [edi + 0x1c]
call dword [edi + 0x18]
push 0
push 0
lea eax, [ebp - 0x14]
push eax
push ebx
call sub.wininet.dll_InternetQueryDataAvailable
test eax, eax
jne 0x48aba1
mov eax, dword [ebp - 8]
mov byte [eax], 1
call sub.kernel32.dll_GetLastError
mov edx, dword [ebp - 8]
mov dword [edx + 4], eax
push 0x1f4
call sub.kernel32.dll_Sleep_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x48ace8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
push eax
lea eax, [ebp - 0x30]
mov ecx, 1
mov edx, dword [0x48a884]
call fcn.00406028
add esp, 4
cmp dword [ebp - 0x14], 0
jbe 0x48ac7e
mov eax, dword [ebp - 0x30]
call fcn.00405e6c
test eax, eax
jns 0x48abd9
call fcn.00403ac8
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
xor eax, eax
mov edx, dword [ebp - 0x30]
test edx, edx
je 0x48abf2
cmp eax, dword [edx - 4]
jb 0x48abf7
call fcn.00403ac8
lea eax, [edx + eax]
push eax
push ebx
call sub.wininet.dll_InternetReadFile
test eax, eax
je 0x48ac7e
cmp dword [ebp - 0x18], 0
jbe 0x48ac7e
xor eax, eax
mov edx, dword [ebp - 0x30]
test edx, edx
je 0x48ac19
cmp eax, dword [edx - 4]
jb 0x48ac1e
call fcn.00403ac8
add edx, eax
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jns 0x48ac2c
call fcn.00403ac8
mov eax, dword [ebp - 0x2c]
call fcn.0041f190
mov eax, dword [ebp - 4]
cmp word [eax + 0x22], 0
je 0x48ac62
mov eax, dword [ebp - 0x2c]
call fcn.0041ef60
push eax
sar eax, 0x1f
cmp eax, edx
pop eax
je 0x48ac54
call fcn.00403ac8
push eax
mov edi, dword [ebp - 4]
xor ecx, ecx
xor edx, edx
mov eax, dword [edi + 0x24]
call dword [edi + 0x20]
push 0
push 0
lea eax, [ebp - 0x14]
push eax
push ebx
call sub.wininet.dll_InternetQueryDataAvailable
test eax, eax
je 0x48ac7e
cmp dword [ebp - 0x14], 0
ja 0x48abc8
mov eax, dword [ebp - 4]
cmp word [eax + 0x2a], 0
je 0x48ac95
mov ebx, dword [ebp - 4]
xor ecx, ecx
xor edx, edx
mov eax, dword [ebx + 0x2c]
call dword [ebx + 0x28]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x48acf1
mov eax, dword [ebp - 8]
mov byte [eax], 1
call sub.kernel32.dll_GetLastError
mov edx, dword [ebp - 8]
mov dword [edx + 4], eax
push 0x1f4
call sub.kernel32.dll_Sleep_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x48ace8
dec dword [ebp - 0x34]
jne 0x48aaa9
mov eax, dword [ebp - 0x2c]
call fcn.0041ef60
mov ecx, dword [ebp - 8]
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48ad1f
mov eax, dword [ebp - 0x2c]
call fcn.00403b90
ret
mov eax, dword [ebp - 8]
mov byte [eax], 1
call sub.kernel32.dll_GetLastError
mov edx, dword [ebp - 8]
mov dword [edx + 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48adad
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.004049e0
lea eax, [ebp - 0x30]
mov edx, dword [0x48a884]
call fcn.00406148
ret