Function at 0x4be464
Capabilities:
Create http request
Delete file
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffbcc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x1434], ecx
mov dword [ebp - 0x1430], ecx
mov dword [ebp - 0x142c], ecx
mov dword [ebp - 0x1420], ecx
mov dword [ebp - 0x1428], ecx
mov dword [ebp - 0x1424], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404e50
xor eax, eax
push ebp
push 0x4be761
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4be729
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00402cc4
lea edx, [ebp - 0x1424]
xor eax, eax
call fcn.00402c64
mov eax, dword [ebp - 0x1424]
lea edx, [ebp - 0x1420]
call fcn.00409b18
push dword [ebp - 0x1420]
mov eax, 0xffff
call fcn.00403358
lea ecx, [ebp - 0x1428]
mov edx, 4
call fcn.00409220
push dword [ebp - 0x1428]
push 0x4be778
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404d20
mov eax, dword [ebp - 0x18]
call fcn.004096f8
test al, al
jne 0x4be4cc
xor eax, eax
mov dword [ebp - 0xc], eax
xor edi, edi
push 0
push 0
push 0
push 0
push 0
call sub.wininet.dll_InternetOpenA
mov esi, eax
push 0
push 0x200000
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404e60
push eax
push esi
call sub.wininet.dll_InternetOpenUrlA
mov ebx, eax
test ebx, ebx
je 0x4be713
mov dword [ebp - 8], 0x1401
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x1419]
push eax
push 0x13
push ebx
call sub.wininet.dll_HttpQueryInfoA
push 0x4be780
lea eax, [ebp - 0x1419]
push eax
call sub.kernel32.dll_lstrcmpA
test eax, eax
jne 0x4be713
mov dword [ebp - 8], 0x1401
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x1419]
push eax
push 5
push ebx
call sub.wininet.dll_HttpQueryInfoA
lea edx, [ebp - 0x142c]
lea eax, [ebp - 0x1419]
call fcn.00409ff0
mov eax, dword [ebp - 0x142c]
xor edx, edx
call fcn.00409284
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jbe 0x4be713
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
mov eax, dword [ebp - 0x18]
call fcn.00404e60
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x4be713
mov eax, dword [0x4ce5bc]
mov eax, dword [eax + 0x2f8]
xor edx, edx
call fcn.0043ed9c
mov eax, dword [0x4ce5bc]
mov eax, dword [eax + 0x2f8]
mov edx, dword [ebp - 0x14]
call fcn.0043eda8
mov eax, dword [0x4ce5bc]
mov eax, dword [eax + 0x2f8]
xor edx, edx
call fcn.0043edb8
mov eax, dword [0x4ce5bc]
mov eax, dword [eax + 0x2f8]
call fcn.0044ddbc
lea eax, [ebp - 8]
push eax
push 0x1400
lea eax, [ebp - 0x1419]
push eax
push ebx
call sub.wininet.dll_InternetReadFile
cmp dword [ebp - 8], 0
jbe 0x4be6b9
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x1419]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_WriteFile_1
add edi, dword [ebp - 8]
mov eax, dword [0x4ce5bc]
mov eax, dword [eax + 0x2f8]
mov edx, edi
call fcn.0043edb8
mov eax, dword [0x4ce5bc]
mov eax, dword [eax + 0x2f8]
call fcn.0044ddbc
cmp dword [ebp - 8], 0
jne 0x4be65e
cmp edi, dword [ebp - 0x14]
jne 0x4be705
test edi, edi
jbe 0x4be705
push 0
lea edx, [ebp - 0x1430]
xor eax, eax
call fcn.00402c64
mov eax, dword [ebp - 0x1430]
call fcn.00404e60
push eax
call sub.kernel32.dll_SetFileAttributesA
lea edx, [ebp - 0x1434]
xor eax, eax
call fcn.00402c64
mov edx, dword [ebp - 0x1434]
mov eax, dword [ebp - 0x18]
call fcn.004bdf54
jmp 0x4be713
mov eax, dword [ebp - 0x18]
call fcn.00404e60
push eax
call sub.kernel32.dll_DeleteFileA
push ebx
call sub.wininet.dll_InternetCloseHandle
push esi
call sub.wininet.dll_InternetCloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4be733
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4be768
lea eax, [ebp - 0x1434]
mov edx, 6
call fcn.004049c4
lea eax, [ebp - 0x18]
call fcn.004049a0
lea eax, [ebp - 4]
call fcn.004049a0
ret