Function at 0x48a6cc
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 0x48abca
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x38]
mov eax, ebx
call fcn.00409558
mov eax, dword [ebp - 0x38]
call fcn.00409220
test al, al
jne 0x48a728
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 0x48aba1
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 0x48ab90
xor eax, eax
push ebp
push 0x48ab89
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov dl, 1
mov eax, dword [0x41a534]
call fcn.0041f660
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x48ab59
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 0x48a7a8
push 0x48abe0
mov eax, dword [ebp - 4]
push dword [eax + 4]
push 0x48abf8
lea eax, [ebp - 0x3c]
mov edx, 3
call fcn.00404ac4
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x10]
call fcn.0041f79c
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 0x48a803
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 0x48a803
cmp dword [ebp - 0x20], 0
jbe 0x48a803
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
cmp eax, dword [ebp - 0x1c]
je 0x48a803
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 0x48a898
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 0x48a854
cmp dword [ebp - 0x20], 0
jbe 0x48a854
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp eax, dword [ebp - 0x1c]
je 0x48a854
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 0x48a898
cmp dword [ebp - 0x20], 0
jbe 0x48a898
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp eax, dword [ebp - 0x1c]
je 0x48a898
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 [0x41a3c8]
call fcn.0041f264
mov dword [ebp - 0x2c], eax
xor eax, eax
push ebp
push 0x48ab3c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
test eax, eax
jle 0x48ab15
mov dword [ebp - 0x34], eax
xor eax, eax
push ebp
push 0x48aae8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov byte [eax], 0
cmp dword [ebp - 0x24], 0
jle 0x48a91f
push 0
push 0x84400000
mov eax, dword [ebp - 0x24]
test eax, eax
jns 0x48a8fa
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 0x48a940
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 0x48aac3
mov eax, dword [ebp - 4]
cmp word [eax + 0x1a], 0
je 0x48a98b
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 0x48a9c5
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 0x48ab0c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
push eax
lea eax, [ebp - 0x30]
mov ecx, 1
mov edx, dword [0x48a6a8]
call fcn.00405db8
add esp, 4
cmp dword [ebp - 0x14], 0
jbe 0x48aaa2
mov eax, dword [ebp - 0x30]
call fcn.00405bfc
test eax, eax
jns 0x48a9fd
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 0x48aa16
cmp eax, dword [edx - 4]
jb 0x48aa1b
call fcn.00403858
lea eax, [edx + eax]
push eax
push ebx
call sub.wininet.dll_InternetReadFile
test eax, eax
je 0x48aaa2
cmp dword [ebp - 0x18], 0
jbe 0x48aaa2
xor eax, eax
mov edx, dword [ebp - 0x30]
test edx, edx
je 0x48aa3d
cmp eax, dword [edx - 4]
jb 0x48aa42
call fcn.00403858
add edx, eax
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jns 0x48aa50
call fcn.00403858
mov eax, dword [ebp - 0x2c]
call fcn.0041efb4
mov eax, dword [ebp - 4]
cmp word [eax + 0x22], 0
je 0x48aa86
mov eax, dword [ebp - 0x2c]
call fcn.0041ed84
push eax
sar eax, 0x1f
cmp eax, edx
pop eax
je 0x48aa78
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 0x48aaa2
cmp dword [ebp - 0x14], 0
ja 0x48a9ec
mov eax, dword [ebp - 4]
cmp word [eax + 0x2a], 0
je 0x48aab9
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 0x48ab15
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 0x48ab0c
dec dword [ebp - 0x34]
jne 0x48a8cd
mov eax, dword [ebp - 0x2c]
call fcn.0041ed84
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 0x48ab43
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 0x48abd1
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.00404770
lea eax, [ebp - 0x30]
mov edx, dword [0x48a6a8]
call fcn.00405ed8
ret