Function at 0x65186c
Capabilities:
Create http request
Get http content length
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov byte [0x6df684], 0
mov eax, dword [ebp + 8]
call fcn.0040a62c
push 0
push 0
push 0
mov eax, dword [ebp + 0x10]
push eax
push 0x651ab8
call sub.wininet.dll_InternetOpenW
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x24], 0x7d0
push 4
lea eax, [ebp - 0x24]
push eax
push 2
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetSetOptionW
push 0
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0
mov eax, ebx
call fcn.0040b2c4
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetOpenUrlW
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [0x6df67c], eax
xor eax, eax
mov dword [0x6df680], eax
mov dword [ebp - 0x1c], 4
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x6df67c
push 0x20000005
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_HttpQueryInfoW
xor eax, eax
push ebp
push 0x651933
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x4000
call fcn.00406ec8
mov dword [ebp - 0x14], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x65193d
xor eax, eax
push ebp
push 0x6519e0
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
je 0x651959
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
jmp 0x65197e
cmp dword [ebp - 4], 0
je 0x65197e
mov eax, dword [ebp - 4]
call fcn.00426be8
push 0xff00
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x448d9c]
call fcn.0046c574
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x6519d6
cmp byte [0x6df684], 0
jne 0x6519d6
lea eax, [ebp - 0x18]
push eax
push 0x4000
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetReadFile
test eax, eax
je 0x6519d6
cmp dword [ebp - 0x18], 0
jbe 0x6519bb
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x20]
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov eax, dword [ebp - 0x18]
add dword [0x6df680], eax
mov eax, dword [0x6d8488]
mov eax, dword [eax]
call fcn.006003a0
cmp dword [ebp - 0x18], 0
ja 0x651984
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x6519ea
xor eax, eax
push ebp
push 0x651a0a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
call fcn.00406ee4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x651a14
xor eax, eax
mov dword [0x6df680], eax
xor eax, eax
push ebp
push 0x651a53
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x20], 0
je 0x651a49
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
call dword [edx]
mov dword [0x6df680], eax
cmp dword [ebp - 8], 0
jne 0x651a49
mov eax, dword [ebp - 0x20]
call fcn.0040874c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x651a5d
cmp dword [0x6df680], 0
jne 0x651a76
cmp dword [ebp - 4], 0
je 0x651a9a
mov eax, dword [ebp - 4]
call fcn.00426be8
jmp 0x651a9a
cmp dword [ebp - 8], 0
je 0x651a8f
mov eax, dword [0x6df680]
xor edx, edx
push edx
push eax
mov eax, dword [ebp + 8]
call fcn.00426020
jmp 0x651a9a
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 4]
call fcn.0040aa0c
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetCloseHandle
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc