Function at 0x48a6d4
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 0x48abd2
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x38]
mov eax, ebx
call fcn.00409560
mov eax, dword [ebp - 0x38]
call fcn.00409228
test al, al
jne 0x48a730
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 0x48aba9
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 0x48ab98
xor eax, eax
push ebp
push 0x48ab91
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov dl, 1
mov eax, dword [0x41a53c]
call fcn.0041f668
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x48ab61
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.00404a04
test eax, eax
jle 0x48a7b0
push 0x48abe8
mov eax, dword [ebp - 4]
push dword [eax + 4]
push 0x48ac00
lea eax, [ebp - 0x3c]
mov edx, 3
call fcn.00404ac4
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x10]
call fcn.0041f7a4
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
call fcn.00404a04
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0xffffffff
jle 0x48a80b
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 0x48a80b
cmp dword [ebp - 0x20], 0
jbe 0x48a80b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
cmp eax, dword [ebp - 0x1c]
je 0x48a80b
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 0x48a8a0
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 0x48a85c
cmp dword [ebp - 0x20], 0
jbe 0x48a85c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp eax, dword [ebp - 0x1c]
je 0x48a85c
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 0x48a8a0
cmp dword [ebp - 0x20], 0
jbe 0x48a8a0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp eax, dword [ebp - 0x1c]
je 0x48a8a0
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 [0x41a3d0]
call fcn.0041f26c
mov dword [ebp - 0x2c], eax
xor eax, eax
push ebp
push 0x48ab44
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
test eax, eax
jle 0x48ab1d
mov dword [ebp - 0x34], eax
xor eax, eax
push ebp
push 0x48aaf0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov byte [eax], 0
cmp dword [ebp - 0x24], 0
jle 0x48a927
push 0
push 0x84400000
mov eax, dword [ebp - 0x24]
test eax, eax
jns 0x48a902
call fcn.00403858
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
call fcn.00404bfc
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00404bfc
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetOpenUrlA
mov ebx, eax
jmp 0x48a948
push 0
push 0x84400000
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00404bfc
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetOpenUrlA
mov ebx, eax
test ebx, ebx
je 0x48aacb
mov eax, dword [ebp - 4]
cmp word [eax + 0x1a], 0
je 0x48a993
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 0x48a9cd
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 0x48ab14
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
push eax
lea eax, [ebp - 0x30]
mov ecx, 1
mov edx, dword [0x48a6b0]
call fcn.00405db8
add esp, 4
cmp dword [ebp - 0x14], 0
jbe 0x48aaaa
mov eax, dword [ebp - 0x30]
call fcn.00405bfc
test eax, eax
jns 0x48aa05
call fcn.00403858
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 0x48aa1e
cmp eax, dword [edx - 4]
jb 0x48aa23
call fcn.00403858
lea eax, [edx + eax]
push eax
push ebx
call sub.wininet.dll_InternetReadFile
test eax, eax
je 0x48aaaa
cmp dword [ebp - 0x18], 0
jbe 0x48aaaa
xor eax, eax
mov edx, dword [ebp - 0x30]
test edx, edx
je 0x48aa45
cmp eax, dword [edx - 4]
jb 0x48aa4a
call fcn.00403858
add edx, eax
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jns 0x48aa58
call fcn.00403858
mov eax, dword [ebp - 0x2c]
call fcn.0041efbc
mov eax, dword [ebp - 4]
cmp word [eax + 0x22], 0
je 0x48aa8e
mov eax, dword [ebp - 0x2c]
call fcn.0041ed8c
push eax
sar eax, 0x1f
cmp eax, edx
pop eax
je 0x48aa80
call fcn.00403858
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 0x48aaaa
cmp dword [ebp - 0x14], 0
ja 0x48a9f4
mov eax, dword [ebp - 4]
cmp word [eax + 0x2a], 0
je 0x48aac1
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 0x48ab1d
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 0x48ab14
dec dword [ebp - 0x34]
jne 0x48a8d5
mov eax, dword [ebp - 0x2c]
call fcn.0041ed8c
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 0x48ab4b
mov eax, dword [ebp - 0x2c]
call fcn.00403920
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 0x48abd9
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.00404770
lea eax, [ebp - 0x30]
mov edx, dword [0x48a6b0]
call fcn.00405ed8
ret