Function at 0x4d78b4
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffd24
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x12bc], ebx
mov dword [ebp - 0x12d8], ebx
mov dword [ebp - 0x12dc], ebx
mov dword [ebp - 0x12a8], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404f70
mov eax, dword [ebp - 8]
call fcn.00404f70
mov eax, dword [ebp - 0xc]
call fcn.00404f70
mov eax, dword [ebp + 0x14]
call fcn.00404f70
mov eax, dword [ebp + 0x10]
call fcn.00404f70
mov eax, dword [ebp + 0xc]
call fcn.00404f70
xor eax, eax
push ebp
push 0x4d7c72
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
push 0
push 0
push 0
push 0
push 0x4d7c84
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4d7954
mov eax, 0x4d7c9c
call fcn.00429c64
jmp 0x4d7c24
push 0
push 0
push 1
mov eax, dword [ebp - 0xc]
call fcn.00404f80
push eax
mov eax, dword [ebp - 8]
call fcn.00404f80
push eax
mov ax, word [ebp + 0x18]
push eax
mov eax, dword [ebp - 4]
call fcn.00404f80
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetConnectA
mov edi, eax
test edi, edi
jne 0x4d79cb
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
lea eax, [ebp - 0x12a8]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x12b0], eax
mov byte [ebp - 0x12ac], 0xb
lea edx, [ebp - 0x12b0]
xor ecx, ecx
mov eax, 0x4d7ccc
call fcn.00409d7c
mov eax, dword [ebp - 0x12a8]
call fcn.00429c64
jmp 0x4d7c24
mov eax, dword [ebp + 0x14]
call fcn.00404f80
push eax
push edi
call sub.wininet.dll_FtpSetCurrentDirectoryA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4d79f8
push edi
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
jmp 0x4d7c24
push 0
push 0
lea eax, [ebp - 0x1158]
push eax
mov eax, dword [ebp + 0x10]
call fcn.00404f80
push eax
push edi
call sub.wininet.dll_FtpFindFirstFileA
test eax, eax
je 0x4d7a1e
mov esi, dword [ebp - 0x1138]
jmp 0x4d7a47
push edi
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [0x4ddd7c]
mov eax, dword [eax + 0x344]
mov edx, 0x4d7cec
call fcn.0043a1cc
jmp 0x4d7c24
push 0
push 2
push 0x80000000
mov eax, dword [ebp + 0x10]
call fcn.00404f80
push eax
push edi
call sub.wininet.dll_FtpOpenFileA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4d7a7c
push edi
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
jmp 0x4d7c24
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x12a4]
call fcn.00403000
mov edx, 1
lea eax, [ebp - 0x12a4]
call fcn.004035f8
call fcn.00402c74
test eax, eax
je 0x4d7ac0
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetCloseHandle
push edi
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
jmp 0x4d7c24
xor ebx, ebx
mov dword [ebp - 0x18], 0x1000
cmp dword [ebp - 0x18], 0
jbe 0x4d7bfa
mov eax, dword [0x4db8cc]
mov eax, dword [eax]
call fcn.00459a6c
lea eax, [ebp - 0x18]
push eax
push 0x1000
lea eax, [ebp - 0x1018]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetReadFile
test eax, eax
je 0x4d7bfa
cmp dword [ebp - 0x18], 0
jbe 0x4d7b2a
cmp dword [ebp - 0x18], 0x1000
ja 0x4d7b2a
push 0
lea edx, [ebp - 0x1018]
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x12a4]
call fcn.0040315c
call fcn.00402bf4
add ebx, dword [ebp - 0x18]
imul eax, ebx, 0x64
mov dword [ebp - 0x12b0], eax
xor eax, eax
mov dword [ebp - 0x12ac], eax
fild qword [ebp - 0x12b0]
mov dword [ebp - 0x12b8], esi
xor eax, eax
mov dword [ebp - 0x12b4], eax
fild qword [ebp - 0x12b8]
fdivp st(1)
call fcn.00402cec
mov edx, eax
mov eax, dword [ebp + 8]
call fcn.0042ebe0
lea eax, [ebp - 0x12bc]
push eax
lea edx, [ebp - 0x12d8]
mov eax, ebx
call fcn.004d7778
mov eax, dword [ebp - 0x12d8]
mov dword [ebp - 0x12d4], eax
mov byte [ebp - 0x12d0], 0xb
lea edx, [ebp - 0x12dc]
mov eax, esi
call fcn.004d7778
mov eax, dword [ebp - 0x12dc]
mov dword [ebp - 0x12cc], eax
mov byte [ebp - 0x12c8], 0xb
mov eax, dword [ebp + 8]
call fcn.0042ea30
mov dword [ebp - 0x12c4], eax
mov byte [ebp - 0x12c0], 0
lea edx, [ebp - 0x12d4]
mov ecx, 2
mov eax, 0x4d7d04
call fcn.00409d7c
mov edx, dword [ebp - 0x12bc]
mov eax, dword [0x4ddd7c]
mov eax, dword [eax + 0x344]
call fcn.0043a1cc
cmp dword [ebp - 0x18], 0
ja 0x4d7ad3
lea eax, [ebp - 0x12a4]
call fcn.0040317c
call fcn.00402bf4
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetCloseHandle
push edi
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d7c79
lea eax, [ebp - 0x12dc]
mov edx, 2
call fcn.00404ae4
lea eax, [ebp - 0x12bc]
call fcn.00404ac0
lea eax, [ebp - 0x12a8]
call fcn.00404ac0
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404ae4
lea eax, [ebp + 0xc]
mov edx, 3
call fcn.00404ae4
ret