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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e7151
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x53d9f8]
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.00495690
test eax, eax
jne 0x4965b2
lea eax, [ebp - 0x230]
mov ecx, ebx
push eax
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x254]
push eax
call fcn.00495360
mov eax, 0x80004005
jmp 0x4969d6
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 0x4967b4
mov ecx, str.chunked
lea eax, [ebp - 0x210]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x496636
test dx, dx
je 0x496632
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x496636
add eax, 4
add ecx, 4
test dx, dx
jne 0x496610
xor eax, eax
jmp 0x49663b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4967b4
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 0x4966cd
lea esp, [esp]
mov ecx, dword [ebp - 0x23c]
test ecx, ecx
je 0x4966de
lea eax, [ecx + esi]
cmp eax, edi
jae 0x49678a
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 0x4966eb
mov eax, dword [ebp - 0x244]
test eax, eax
je 0x4966eb
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 0x496670
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x240], eax
cmp eax, 0x12
jne 0x49675a
xor eax, eax
mov dword [ebp - 0x22c], eax
jmp 0x496790
push str.InternetReadFile_fail.
lea ecx, [ebp - 0x228]
call fcn.00404c50
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.00498040
mov edx, dword [ebp - 0x214]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x49678a
mov ecx, dword [ebp - 0x228]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x496780
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x496780
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.00404c50
lea eax, [ebp - 0x228]
mov dword [ebp - 4], 0
push eax
push dword [ebp - 0x240]
jmp 0x496710
push edx
push ecx
call fcn.004bee2d
add esp, 8
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x24c]
test ecx, ecx
je 0x49679c
mov dword [ecx], esi
cmp eax, 0x80004005
je 0x496908
test eax, eax
js 0x4969b0
jmp 0x496981
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 0x49685b
cmp dword [ebp - 0x234], 0
je 0x496981
mov ebx, edi
test ebx, ebx
je 0x496981
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 0x496846
test ecx, ecx
je 0x496846
cmp esi, edi
jb 0x496811
mov eax, dword [ebp - 0x24c]
test eax, eax
je 0x496981
mov dword [eax], esi
jmp 0x496981
push 0x13
xor eax, eax
mov dword [ebp - 0x218], 0
push str.HttpQueryInfo_fail.
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x214], 7
mov word [ebp - 0x228], ax
call fcn.004033b0
mov dword [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042c430
mov ecx, eax
call fcn.0044fbe0
lea eax, [ebp - 0x228]
push eax
call fcn.0042c430
mov ecx, eax
call fcn.0044fbf0
mov edx, dword [ebp - 0x214]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x4968fe
mov ecx, dword [ebp - 0x228]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4968f4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x496754
push edx
push ecx
call fcn.004bee2d
add esp, 8
mov dword [ebp - 0x22c], 0x80004005
cmp dword [ebp + 0x30], 0
je 0x4969b0
mov edx, dword [ebp - 0x234]
test edx, edx
je 0x4969b0
test edi, edi
je 0x4969b0
xor esi, esi
mov dword [ebp - 0x240], esi
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 0x496963
test eax, eax
je 0x496963
mov edx, dword [ebp - 0x234]
cmp esi, edi
jb 0x496930
mov eax, dword [ebp - 0x24c]
test eax, eax
je 0x49696f
mov dword [eax], esi
test ecx, ecx
je 0x4969b0
test esi, esi
je 0x4969b0
mov dword [ebp - 0x22c], 0
mov eax, dword [ebp - 0x258]
test eax, eax
je 0x4969b0
mov ecx, dword [ebp - 0x238]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.00497e70
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.00495360
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.004bee49
mov esp, ebp
pop ebp
ret 0x30