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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x53d9f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x1c]
push ebx
push esi
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp + 0x20]
push eax
lea eax, [ebp - 0x224]
mov dword [ebp - 0x240], ecx
mov ecx, dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x230]
mov dword [ebp - 0x238], ebx
push eax
lea eax, [ebp - 0x234]
mov dword [ebp - 0x234], 0
push eax
push 0
push 0
push 0
push ecx
push 0x50dc90
push edx
push esi
mov esi, dword [ebp - 0x240]
mov ecx, esi
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x21c], 0
call fcn.00495690
test eax, eax
jne 0x495479
lea eax, [ebp - 0x224]
mov ecx, esi
push eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.00495360
pop esi
mov eax, 0x80004005
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bee49
mov esp, ebp
pop ebp
ret 0x1c
push 0x212
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x22c], 0x100
test ebx, ebx
je 0x49564f
cmp dword [ebp + 0x18], 0
jbe 0x49564f
mov ebx, dword [ebp - 0x224]
lea eax, [ebp - 0x22c]
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
push edi
push 0
push eax
lea eax, [ebp - 0x218]
push eax
push 0x3f
push ebx
call esi
test eax, eax
je 0x4955c0
mov ecx, str.chunked
lea eax, [ebp - 0x218]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x495506
test dx, dx
je 0x495502
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x495506
add eax, 4
add ecx, 4
test dx, dx
jne 0x4954e0
xor eax, eax
jmp 0x49550b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4955c0
mov edi, dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
lea eax, [ebp - 0x220]
xor esi, esi
mov dword [ebp - 0x21c], 0x80004005
push esi
push esi
push eax
push ebx
mov dword [ebp - 0x228], esi
call edi
test eax, eax
je 0x495596
jmp 0x495540
mov ecx, dword [ebp - 0x220]
test ecx, ecx
je 0x4955a1
lea eax, [ecx + esi]
cmp eax, dword [ebp + 0x18]
jae 0x49557a
lea eax, [ebp - 0x228]
push eax
mov eax, dword [ebp - 0x238]
push ecx
add eax, esi
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4955ab
mov eax, dword [ebp - 0x228]
test eax, eax
je 0x4955ab
add esi, eax
push 0
push 0
lea eax, [ebp - 0x220]
mov dword [ebp - 0x228], 0
push eax
push ebx
call edi
test eax, eax
jne 0x495540
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x4955ab
mov dword [ebp - 0x21c], 0
mov eax, dword [ebp - 0x23c]
test eax, eax
je 0x49564e
mov dword [eax], esi
jmp 0x49564e
push 0
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x22c], 0x100
push eax
lea eax, [ebp - 0x218]
push eax
push 5
push ebx
call esi
test eax, eax
je 0x495644
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
mov edi, eax
add esp, 4
mov eax, dword [ebp + 0x18]
cmp edi, eax
cmova edi, eax
xor esi, esi
mov dword [ebp - 0x220], esi
lea ecx, [ebp - 0x220]
sub eax, esi
push ecx
push eax
mov eax, dword [ebp - 0x238]
add eax, esi
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov ecx, dword [ebp - 0x220]
add esi, ecx
test eax, eax
je 0x495636
test ecx, ecx
je 0x495636
mov eax, dword [ebp + 0x18]
cmp esi, edi
jb 0x495605
mov eax, dword [ebp - 0x23c]
test eax, eax
je 0x49564e
mov dword [eax], esi
jmp 0x49564e
mov dword [ebp - 0x21c], 0x80004005
pop edi
mov ecx, dword [ebp - 0x240]
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.00495360
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x21c]
xor ecx, ebp
pop esi
pop ebx
call fcn.004bee49
mov esp, ebp
pop ebp
ret 0x1c