Function at 0x436aa0
Capabilities:
Get http content length
Query remote server for available data
Read data from internet
Receive data

Disassembly:
push 0xffffffffffffffff
push 0x5c86dc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x458
mov eax, dword [0x64aa84]
push ebx
mov ebx, ecx
mov dword [esp + 0x458], eax
mov eax, dword [ebx + 0xc8]
push ebp
xor ebp, ebp
cmp eax, ebp
je 0x436da1
mov ecx, dword [ebx + 0xc4]
push esi
push ebp
push 0x84000000
push ebp
push ebp
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
cmp esi, ebp
jne 0x436b21
mov eax, dword [ebx + 0xc8]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebx + 0x1c]
push ebp
push ebp
push 0x113
push ecx
mov dword [ebx + 0xc8], ebp
call dword [0x652d40]
jmp 0x436da0
push 0x400
lea ecx, [esp + 0x3c]
mov dword [esp + 0x1c], 4
mov dword [esp + 0x14], ebp
call fcn.005b6d27
mov dword [esp + 0x46c], ebp
push ebp
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x14]
push eax
push 0x20000005
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x436b75
mov ecx, dword [esp + 0xc]
mov edx, dword [ebx + 0x90]
push ecx
push ebp
push 0x406
push edx
call dword [0x652d40]
push edi
push ebp
push ebp
lea eax, [esp + 0x1c]
push eax
push esi
mov dword [esp + 0x20], ebp
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x436c15
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
mov ecx, dword [esp + 0x14]
cmp ecx, ebp
jbe 0x436c15
mov eax, dword [esp + 0x10]
add eax, ecx
mov ecx, dword [ebx + 0x90]
push ebp
push eax
push 0x402
push ecx
mov dword [esp + 0x20], eax
call dword [0x652d40]
mov eax, dword [esp + 0x14]
cmp eax, ebp
jbe 0x436c03
cmp eax, 0x400
jb 0x436bd0
mov eax, 0x400
lea edx, [esp + 0x18]
push edx
push eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x6c]
push eax
push esi
call edi
mov ecx, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x68]
push edx
lea ecx, [esp + 0x44]
call fcn.005b6f47
mov eax, dword [esp + 0x14]
sub eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
jne 0x436bc4
push ebp
push ebp
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x436b96
push ebp
push ebp
push ebp
lea ecx, [esp + 0x48]
call fcn.005b6f97
mov eax, dword [ebx + 0xd4]
xor edi, edi
cmp eax, 1
jne 0x436d3b
mov ecx, dword [0x6613c8]
add ecx, 4
push eax
push ecx
lea ecx, [esp + 0x38]
call fcn.005789d4
mov byte [esp + 0x470], 1
lea ecx, [esp + 0x20]
call fcn.005b0991
mov byte [esp + 0x470], 2
push 0x5e8d68
lea edx, [esp + 0x1c]
push 0x6615ec
push edx
call fcn.0040dc60
add esp, 0xc
mov byte [esp + 0x470], 3
mov eax, dword [eax]
push ebp
push 0x1001
push eax
lea ecx, [esp + 0x2c]
call fcn.005b0c2d
mov esi, eax
mov byte [esp + 0x470], 2
lea ecx, [esp + 0x18]
call fcn.00401b70
cmp esi, ebp
je 0x436d17
mov eax, dword [0x6613bc]
mov ebp, dword [eax + 0x654]
mov dword [eax + 0x654], edi
call fcn.005293f0
mov eax, dword [esp + 0x10]
push eax
call fcn.005abeeb
mov ecx, dword [esp + 0x14]
add esp, 4
push ecx
mov esi, eax
push esi
lea ecx, [esp + 0x44]
call fcn.005b6efa
mov edx, dword [esp + 0x10]
push edx
push esi
lea ecx, [esp + 0x28]
call fcn.005b06e4
lea ecx, [esp + 0x20]
call fcn.005b092f
push esi
call fcn.005abee6
add esp, 4
test ebp, ebp
mov edi, 1
je 0x436d0a
call fcn.00529390
mov eax, dword [0x6613bc]
mov dword [eax + 0x654], ebp
xor ebp, ebp
mov byte [esp + 0x470], 1
lea ecx, [esp + 0x20]
call fcn.005b09d0
mov byte [esp + 0x470], 0
lea ecx, [esp + 0x30]
call fcn.0057897a
jmp 0x436d60
cmp eax, ebp
jne 0x436d60
lea ecx, [esp + 0x3c]
push ecx
mov ecx, dword [0x6613d8]
call fcn.0047db20
mov edi, eax
cmp edi, ebp
je 0x436d60
mov ecx, dword [0x6613d8]
call fcn.0047ef80
mov edx, dword [ebx + 0xc8]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebx + 0x1c]
xor eax, eax
cmp edi, ebp
setne al
push ebp
mov dword [ebx + 0xc8], ebp
push eax
push 0x113
push ecx
call dword [0x652d40]
mov dword [esp + 0x470], 0xffffffff
lea ecx, [esp + 0x3c]
call fcn.005b710e
pop edi
pop esi
mov ecx, dword [esp + 0x460]
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x458]
pop ebx
call fcn.0057981f
add esp, 0x464
ret