Function at 0x40ff10
Capabilities:
Create http request
Print debug messages
Query remote server for available data
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2924
call fcn.005260d0
mov eax, dword [0x5a574c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, dword [ebp + 0x14]
push 0x100000
mov dword [ebp - 0x2924], eax
mov dword [ebp - 0x290c], ecx
mov dword [ebp - 0x2914], edx
call fcn.004261be
add esp, 4
mov ecx, esi
mov dword [ebp - 0x2910], eax
mov dword [ebp - 0x2920], eax
call fcn.0040fe60
push edi
push ebx
lea eax, [ebp - 0x108]
push 0x55394c
push eax
call fcn.00525791
add esp, 0x10
push 0
push 0
push 0
push 0
push str.cHttp_DownLoad
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
test eax, eax
jne 0x40ffda
mov ecx, dword [ebp - 0x2910]
push ecx
call fcn.004261b3
mov edx, dword [ebp - 0x290c]
add esp, 4
mov dword [edx], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x2914]
pop edi
pop esi
mov dword [ecx], eax
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00525222
mov esp, ebp
pop ebp
ret 0x14
push 0x40fe90
push eax
call dword [sym.imp.WININET.dll_InternetSetStatusCallback]
test eax, eax
je 0x40fffa
mov ecx, dword [0x5a6c44]
push str.INTERNET_INVALID_STATUS_CALLBACK
call fcn.00407510
mov eax, dword [esi]
push 0x15
push 0x4000000
push 0
push 0
lea edx, [ebp - 0x108]
push edx
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [esi + 4], eax
test eax, eax
jne 0x410063
mov ecx, dword [ebp - 0x2910]
push ecx
call fcn.004261b3
mov edx, dword [ebp - 0x290c]
add esp, 4
mov dword [edx], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x2914]
mov dword [ecx], eax
mov edx, dword [esi]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00525222
mov esp, ebp
pop ebp
ret 0x14
xor ebx, ebx
mov ecx, dword [esi + 4]
push 0
push 0
lea eax, [ebp - 0x291c]
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x4100fa
mov eax, dword [ebp - 0x291c]
test eax, eax
je 0x410149
cmp eax, 0x2800
jbe 0x41009e
mov eax, 0x2800
mov dword [ebp - 0x291c], eax
mov ecx, dword [esi + 4]
lea edx, [ebp - 0x2918]
push edx
push eax
lea eax, [ebp - 0x2908]
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x410116
mov edx, dword [ebp - 0x2918]
mov edi, dword [ebp - 0x2920]
push edx
lea eax, [ebp - 0x2908]
push eax
push edi
call fcn.00526760
mov eax, dword [ebp - 0x2918]
add edi, eax
add ebx, eax
add esp, 0xc
mov dword [ebp - 0x2920], edi
cmp ebx, 0x100000
ja 0x410132
test eax, eax
jne 0x410065
jmp 0x410149
mov ecx, dword [ebp - 0x290c]
mov dword [ecx], 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x2914]
mov dword [edx], eax
jmp 0x410149
mov eax, dword [ebp - 0x290c]
mov dword [eax], 5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x2914]
mov dword [ecx], eax
jmp 0x410149
mov edx, dword [ebp - 0x290c]
push str.memory_buffer_is_overflowed__require_more_memory._n
mov dword [edx], 6
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, esi
call fcn.0040fe60
mov eax, dword [ebp - 0x290c]
cmp dword [eax], 0
je 0x41017f
mov ecx, dword [ebp - 0x2910]
push ecx
call fcn.004261b3
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00525222
mov esp, ebp
pop ebp
ret 0x14
mov edx, dword [ebp - 0x2924]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2910]
pop edi
pop esi
mov dword [edx], ebx
xor ecx, ebp
pop ebx
call fcn.00525222
mov esp, ebp
pop ebp
ret 0x14