Function at 0x40fe30
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.00525f60
mov eax, dword [0x5a674c]
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.00426026
add esp, 4
mov ecx, esi
mov dword [ebp - 0x2910], eax
mov dword [ebp - 0x2920], eax
call fcn.0040fe00
push edi
push ebx
lea eax, [ebp - 0x108]
push 0x5548d8
push eax
call fcn.00525601
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 0x40fefa
mov ecx, dword [ebp - 0x2910]
push ecx
call fcn.00426031
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.00525092
mov esp, ebp
pop ebp
ret 0x14
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 0x40ff61
mov eax, dword [ebp - 0x2910]
push eax
call fcn.00426031
mov ecx, dword [ebp - 0x290c]
add esp, 4
mov dword [ecx], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x2914]
mov dword [edx], eax
mov eax, dword [esi]
push eax
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.00525092
mov esp, ebp
pop ebp
ret 0x14
xor ebx, ebx
mov edx, dword [esi + 4]
push 0
push 0
lea ecx, [ebp - 0x291c]
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x40fff8
mov eax, dword [ebp - 0x291c]
test eax, eax
je 0x410047
cmp eax, 0x2800
jbe 0x40ff9c
mov eax, 0x2800
mov dword [ebp - 0x291c], eax
lea ecx, [ebp - 0x2918]
push ecx
push eax
mov eax, dword [esi + 4]
lea edx, [ebp - 0x2908]
push edx
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x410014
mov ecx, dword [ebp - 0x2918]
mov edi, dword [ebp - 0x2920]
push ecx
lea edx, [ebp - 0x2908]
push edx
push edi
call fcn.005265f0
mov eax, dword [ebp - 0x2918]
add edi, eax
add ebx, eax
add esp, 0xc
mov dword [ebp - 0x2920], edi
cmp ebx, 0x100000
ja 0x410030
test eax, eax
jne 0x40ff63
jmp 0x410047
mov eax, dword [ebp - 0x290c]
mov dword [eax], 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x2914]
mov dword [ecx], eax
jmp 0x410047
mov edx, dword [ebp - 0x290c]
mov dword [edx], 5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x2914]
mov dword [ecx], eax
jmp 0x410047
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.0040fe00
mov eax, dword [ebp - 0x290c]
cmp dword [eax], 0
je 0x41007d
mov ecx, dword [ebp - 0x2910]
push ecx
call fcn.00426031
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00525092
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.00525092
mov esp, ebp
pop ebp
ret 0x14