Function at 0x47b244
Capabilities:
Get http content length
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5bcda6
mov eax, dword fs:[0]
push eax
sub esp, 0x448
mov eax, dword [0x6c0bc0]
xor eax, esp
mov dword [esp + 0x440], eax
push ebx
push esi
push edi
mov eax, dword [0x6c0bc0]
xor eax, esp
push eax
lea eax, [esp + 0x458]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
push eax
mov dword [esi + 0x58], eax
lea edi, [esi + 0x5c]
mov dword [edi], eax
lea eax, [esp + 0x24]
push eax
push edi
push 0x20000005
push dword [esi + 0x2c]
mov dword [esp + 0x34], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
mov ebx, str.CCoreWininet::ReadFile
jne 0x47b316
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push ebx
call fcn.004015a6
and dword [esp + 0x464], 0
push 0x1d4
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str..CoreWininet.cpp
call fcn.004015a6
mov byte [esp + 0x46c], 1
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str.wininet:_HttpQueryInfo_for_file_size_failed_
call fcn.004015a6
mov byte [esp + 0x470], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
or dword [esp + 0x474], 0xffffffff
call fcn.0040abe3
mov eax, dword [edi]
mov ecx, dword [esi + 0x54]
cmp ecx, eax
jae 0x47b324
mov eax, dword [edi]
mov dword [esi + 0x54], eax
and dword [esi + 0x40], 0
mov eax, dword [esi + 0x4c]
test eax, eax
jne 0x47b3c8
push 0x28
pop edi
push edi
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.0058ee10
lea eax, [esp + 0x58]
mov dword [esp + 0x44], eax
add esp, 0xc
mov eax, esi
mov dword [esp + 0x24], edi
mov dword [esp + 0x3c], 0x400
call fcn.0047b892
push esi
push 0
lea eax, [esp + 0x2c]
push eax
push dword [esi + 0x2c]
call dword [sym.imp.WININET.dll_InternetReadFileExA]
test eax, eax
jne 0x47b391
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x3e5
jne 0x47b44e
push 0xffffffffffffffff
mov eax, esi
call fcn.0047b878
xor edi, edi
cmp dword [esp + 0x3c], edi
jne 0x47b3a2
mov dword [esi + 0x40], 1
jmp 0x47b3bf
push dword [esp + 0x3c]
lea eax, [esp + 0x50]
push eax
call fcn.0047b6ce
test eax, eax
je 0x47b4c0
mov eax, dword [esp + 0x3c]
add dword [esi + 0x58], eax
cmp dword [esi + 0x40], edi
je 0x47b328
mov eax, dword [esi + 0x50]
mov ecx, dword [esi + 0x58]
add eax, ecx
mov dword [esi + 0x50], eax
mov dword [esi + 0x58], 0
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x47b4c5
push 1
push 0x219
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push ebx
call fcn.004015a6
mov dword [esp + 0x46c], 6
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str.wininet:_Operation_cancelled_by_caller.
call fcn.004015a6
mov byte [esp + 0x470], 7
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.inetreadfile
call fcn.004015a6
mov byte [esp + 0x474], 8
mov eax, dword [esi]
add eax, 0x10
push 0x4c7
or dword [esp + 0x478], 0xffffffff
mov ecx, esi
call dword [eax]
jmp 0x47b4bc
call edi
push 1
push 0x1f7
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push ebx
mov edi, eax
call fcn.004015a6
mov dword [esp + 0x46c], 3
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str.wininet:_InternetReadFileEx_failed_
call fcn.004015a6
mov byte [esp + 0x470], 4
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.inetreadfile
call fcn.004015a6
mov byte [esp + 0x474], 5
mov eax, dword [esi]
add eax, 0x10
push edi
or dword [esp + 0x478], 0xffffffff
mov ecx, esi
call dword [eax]
mov dword [esi + 0x58], 0
xor eax, eax
jmp 0x47b4c8
mov dword [esi + 0x58], edi
jmp 0x47b4bc
xor eax, eax
inc eax
mov ecx, dword [esp + 0x458]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x440]
xor ecx, esp
call fcn.0058cc82
mov esp, ebp
pop ebp
ret