Function at 0x40b5b0
Capabilities:
Query remote server for available data
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x490b50
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x4b9430]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x7c], eax
mov byte [ebp - 0x51], bl
mov dword [ebp - 0x78], 0x20
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x3c], 0xf
mov dword [ebp - 0x40], ebx
mov byte [ebp - 0x50], bl
push ebx
lea ecx, [ebp - 0x78]
push ecx
lea edx, [ebp - 0x34]
push edx
push 5
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x40b662
push 0xa
lea eax, [ebp - 0x34]
push ebx
push eax
mov byte [ebp - 0x51], 1
call fcn.0046080b
mov ecx, dword [ebp - 0x40]
add esp, 0xc
mov dword [ebp - 0x58], eax
cmp ecx, eax
ja 0x40b662
mov edx, eax
cmp dword [ebp - 0x3c], edx
je 0x40b662
push 1
mov esi, ecx
push eax
lea ecx, [ebp - 0x50]
call fcn.00405960
test al, al
je 0x40b662
cmp dword [ebp - 0x3c], 0x10
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x40], esi
jae 0x40b65f
lea eax, [ebp - 0x50]
mov byte [eax + esi], bl
push ebx
push ebx
lea ecx, [ebp - 0x60]
push ecx
push edi
mov dword [ebp - 0x5c], ebx
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
mov edi, eax
cmp edi, ebx
je 0x40b724
mov eax, dword [ebp - 0x60]
cmp eax, ebx
jbe 0x40b739
xor esi, esi
mov edi, eax
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
cmp eax, ebx
jbe 0x40b6c3
push eax
lea esi, [ebp - 0x74]
call fcn.0040c100
mov esi, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x70]
mov eax, esi
sub eax, ecx
add eax, edi
je 0x40b6ba
push eax
push ebx
push ecx
call fcn.00463ac0
add esp, 0xc
mov eax, dword [ebp - 0x60]
lea edx, [esi + edi]
mov dword [ebp - 0x70], edx
mov edx, dword [ebp - 0x64]
lea ecx, [ebp - 0x80]
push ecx
push eax
push esi
push edx
mov byte [ebp - 4], 1
call dword [sym.imp.WININET.dll_InternetReadFile]
mov edi, eax
cmp edi, ebx
je 0x40b729
mov eax, dword [ebp - 0x80]
cmp eax, ebx
jbe 0x40b729
add dword [ebp - 0x5c], eax
push eax
push esi
lea ecx, [ebp - 0x50]
call fcn.004057b0
mov byte [ebp - 4], bl
cmp esi, ebx
je 0x40b701
push esi
call fcn.0045d63f
add esp, 4
mov ecx, dword [ebp - 0x64]
push ebx
push ebx
lea eax, [ebp - 0x60]
push eax
push ecx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
mov edi, eax
cmp edi, ebx
jne 0x40b67c
mov byte [ebp - 0x51], bl
jmp 0x40b761
mov byte [ebp - 4], bl
cmp esi, ebx
je 0x40b739
push esi
call fcn.0045d63f
add esp, 4
cmp edi, ebx
je 0x40b724
cmp byte [ebp - 0x51], bl
je 0x40b74a
mov edx, dword [ebp - 0x58]
cmp dword [ebp - 0x5c], edx
jne 0x40b724
mov ecx, dword [ebp - 0x7c]
mov byte [ebp - 0x51], 1
cmp ecx, ebx
je 0x40b761
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x50]
push eax
call fcn.00405470
cmp dword [ebp - 0x3c], 0x10
jb 0x40b773
mov ecx, dword [ebp - 0x50]
push ecx
call fcn.0045d63f
add esp, 4
mov al, byte [ebp - 0x51]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0045d3b4
mov esp, ebp
pop ebp
ret