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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50ab56
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x567e00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x238], ecx
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x34]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x234], eax
mov eax, dword [ebp + 0x28]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x24c], eax
mov eax, dword [ebp + 0x2c]
push eax
lea eax, [ebp - 0x230]
mov dword [ebp - 0x258], ebx
push eax
mov ebx, dword [ebp - 0x238]
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x254]
mov dword [ebp - 0x254], 0
push eax
push dword [ebp + 0x1c]
mov dword [ebp - 0x250], 0
push ecx
push dword [ebp + 0x14]
mov ecx, ebx
mov dword [ebp - 0x230], 0
push edx
push str.POST
push esi
push edi
mov dword [ebp - 0x22c], 0
call fcn.0049b400
test eax, eax
jne 0x49c592
lea eax, [ebp - 0x230]
mov ecx, ebx
push eax
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x254]
push eax
call fcn.0049b0c0
mov eax, 0x80004005
jmp 0x49c9c6
push 0x200
lea eax, [ebp - 0x210]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ebx, dword [ebp - 0x230]
lea eax, [ebp - 0x248]
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
add esp, 0xc
mov dword [ebp - 0x248], 0x100
push 0
push eax
lea eax, [ebp - 0x210]
push eax
push 0x3f
push ebx
call esi
mov edi, dword [ebp + 0x24]
test eax, eax
je 0x49c794
mov ecx, str.chunked
lea eax, [ebp - 0x210]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x49c616
test dx, dx
je 0x49c612
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x49c616
add eax, 4
add ecx, 4
test dx, dx
jne 0x49c5f0
xor eax, eax
jmp 0x49c61b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x49c794
xor esi, esi
mov dword [ebp - 0x22c], 0x80004005
push esi
push esi
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x244], esi
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x49c6ad
lea esp, [esp]
mov ecx, dword [ebp - 0x23c]
test ecx, ecx
je 0x49c6be
lea eax, [ecx + esi]
cmp eax, edi
jae 0x49c76a
lea eax, [ebp - 0x244]
push eax
mov eax, dword [ebp - 0x234]
push ecx
add eax, esi
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x49c6cb
mov eax, dword [ebp - 0x244]
test eax, eax
je 0x49c6cb
push 0
add esi, eax
mov dword [ebp - 0x244], 0
push 0
lea eax, [ebp - 0x23c]
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x49c650
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x240], eax
cmp eax, 0x12
jne 0x49c73a
xor eax, eax
mov dword [ebp - 0x22c], eax
jmp 0x49c770
push str.InternetReadFile_fail.
lea ecx, [ebp - 0x228]
call fcn.004050b0
lea eax, [ebp - 0x228]
mov dword [ebp - 4], 1
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp - 0x238]
call fcn.0049df60
mov edx, dword [ebp - 0x214]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x49c76a
mov ecx, dword [ebp - 0x228]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x49c760
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x49c760
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push str.InternetQueryDataAvailable_fail.
lea ecx, [ebp - 0x228]
call fcn.004050b0
lea eax, [ebp - 0x228]
mov dword [ebp - 4], 0
push eax
push dword [ebp - 0x240]
jmp 0x49c6f0
push edx
push ecx
call fcn.004c6f6f
add esp, 8
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x24c]
test ecx, ecx
je 0x49c77c
mov dword [ecx], esi
cmp eax, 0x80004005
je 0x49c8f4
test eax, eax
js 0x49c9a0
jmp 0x49c971
push 0
lea eax, [ebp - 0x248]
mov dword [ebp - 0x248], 0x100
push eax
lea eax, [ebp - 0x210]
push eax
push 5
push ebx
call esi
test eax, eax
je 0x49c83b
cmp dword [ebp - 0x234], 0
je 0x49c971
mov ebx, edi
test ebx, ebx
je 0x49c971
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
mov edi, eax
add esp, 4
cmp edi, ebx
cmova edi, ebx
xor esi, esi
mov dword [ebp - 0x23c], esi
lea eax, [ebp - 0x23c]
push eax
mov eax, ebx
sub eax, esi
push eax
mov eax, dword [ebp - 0x234]
add eax, esi
push eax
push dword [ebp - 0x230]
call dword [sym.imp.WININET.dll_InternetReadFile]
mov ecx, dword [ebp - 0x23c]
add esi, ecx
test eax, eax
je 0x49c826
test ecx, ecx
je 0x49c826
cmp esi, edi
jb 0x49c7f1
mov eax, dword [ebp - 0x24c]
test eax, eax
je 0x49c971
mov dword [eax], esi
jmp 0x49c971
push 0x13
xor eax, eax
mov dword [ebp - 0x228], 0
push str.HttpQueryInfo_fail.
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 7
mov word [ebp - 0x228], ax
call fcn.00403a70
mov dword [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.0042cd50
push esi
mov ecx, eax
call fcn.00450f60
call fcn.0042cd50
lea ecx, [ebp - 0x228]
push ecx
mov ecx, eax
call fcn.00450f70
mov edx, dword [ebp - 0x214]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x49c8ea
mov ecx, dword [ebp - 0x228]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x49c8e0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49c734
push edx
push ecx
call fcn.004c6f6f
add esp, 8
mov dword [ebp - 0x22c], 0x80004005
cmp dword [ebp + 0x30], 0
je 0x49c9a0
mov edx, dword [ebp - 0x234]
test edx, edx
je 0x49c9a0
test edi, edi
je 0x49c9a0
xor esi, esi
mov dword [ebp - 0x240], esi
lea esp, [esp]
lea eax, [ebp - 0x240]
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [edx + esi]
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov ecx, eax
mov eax, dword [ebp - 0x240]
add esi, eax
test ecx, ecx
je 0x49c953
test eax, eax
je 0x49c953
mov edx, dword [ebp - 0x234]
cmp esi, edi
jb 0x49c920
mov eax, dword [ebp - 0x24c]
test eax, eax
je 0x49c95f
mov dword [eax], esi
test ecx, ecx
je 0x49c9a0
test esi, esi
je 0x49c9a0
mov dword [ebp - 0x22c], 0
mov eax, dword [ebp - 0x258]
test eax, eax
je 0x49c9a0
mov ecx, dword [ebp - 0x238]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.0049ddb0
xor edx, edx
mov ecx, 0x80004005
test al, al
cmovne ecx, edx
mov dword [ebp - 0x22c], ecx
mov ecx, dword [ebp - 0x238]
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x254]
push eax
call fcn.0049b0c0
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c6f8b
mov esp, ebp
pop ebp
ret 0x30