Function at 0x49b110
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 [0x567e00]
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 0x531e10
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.0049b400
test eax, eax
jne 0x49b1d9
lea eax, [ebp - 0x224]
mov ecx, esi
push eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.0049b0c0
pop esi
mov eax, 0x80004005
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c6f8b
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 0x49b3c0
cmp dword [ebp + 0x18], 0
jbe 0x49b3c0
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 0x49b331
mov ecx, str.chunked
lea eax, [ebp - 0x218]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x49b266
test dx, dx
je 0x49b262
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x49b266
add eax, 4
add ecx, 4
test dx, dx
jne 0x49b240
xor eax, eax
jmp 0x49b26b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x49b331
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 0x49b2f6
jmp 0x49b2a0
mov ecx, dword [ebp - 0x220]
test ecx, ecx
je 0x49b325
lea eax, [ecx + esi]
cmp eax, dword [ebp + 0x18]
jae 0x49b2da
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 0x49b310
mov eax, dword [ebp - 0x228]
test eax, eax
je 0x49b310
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 0x49b2a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x21c]
xor edx, edx
cmp eax, 0x12
cmove ecx, edx
mov dword [ebp - 0x21c], ecx
mov eax, dword [ebp - 0x23c]
test eax, eax
je 0x49b3bf
mov dword [eax], esi
jmp 0x49b3bf
mov dword [ebp - 0x21c], 0
jmp 0x49b310
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 0x49b3b5
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 0x49b3a7
test ecx, ecx
je 0x49b3a7
mov eax, dword [ebp + 0x18]
cmp esi, edi
jb 0x49b376
mov eax, dword [ebp - 0x23c]
test eax, eax
je 0x49b3bf
mov dword [eax], esi
jmp 0x49b3bf
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.0049b0c0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x21c]
xor ecx, ebp
pop esi
pop ebx
call fcn.004c6f8b
mov esp, ebp
pop ebp
ret 0x1c