Function at 0x407260
Capabilities:
Delete file
Download and write a file
Get http content length
Read data from internet
Receive and write data from server to client
Receive data
Timestomp file
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x40e146
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x150
push ebx
push ebp
mov ebp, dword [esp + 0x16c]
push esi
mov esi, ecx
push edi
push ecx
mov edi, 1
mov eax, esp
mov dword [esp + 0x24], esp
push ebp
push eax
mov dword [esp + 0x3c], edi
call fcn.00404660
add esp, 8
call fcn.00404550
add esp, 4
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push 2
push 0xc0000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebp
push 0x412598
push edi
push esi
mov dword [esp + 0x2c], eax
call fcn.00405580
mov eax, dword [esp + 0x180]
add esp, 0x10
lea ecx, [esp + 0x34]
lea edx, [esp + 0x18]
push ebx
push ecx
push edx
mov dword [esp + 0x24], edi
mov edi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
push 0x20000005
push eax
mov dword [esp + 0x48], 4
call edi
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0xe8]
push ecx
push ebx
push 0x406
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [esp + 0x170]
lea eax, [esp + 0x20]
push ebx
lea ecx, [esp + 0x54]
push eax
push ecx
push 0x4000000b
push edx
mov dword [esp + 0x34], 0x10
call edi
lea eax, [esp + 0x48]
lea ecx, [esp + 0x50]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_3
mov dword [esp + 0x168], ebx
mov dword [esp + 0x14], 0x100
xor edi, edi
cmp dword [esi + 0x60], ebx
je 0x4074de
mov ecx, dword [esp + 0x170]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x64]
push 0x100
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp eax, ebx
je 0x4074fe
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x14]
push ebx
push edx
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x68]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
add edi, edx
cmp eax, ebx
jne 0x4073d0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0x3ff00000
jmp 0x4073f4
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], ebx
fild qword [esp + 0x40]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ebx
fild qword [esp + 0x38]
fdivp st(1)
fmul qword [0x40fca0]
fstp qword [esp + 0x24]
push 1
lea eax, [esp + 0x30]
push ebp
push eax
call fcn.00404700
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [eax]
push edi
push ecx
push edx
lea eax, [esp + 0x30]
push 0x41283c
push eax
mov byte [esp + 0x190], 1
call sub.MFC42.DLL_CString::Format
add esp, 0x28
lea ecx, [esp + 0x2c]
mov byte [esp + 0x168], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
push 2
push ecx
mov ecx, esi
call fcn.00405540
mov edx, dword [esi + 0xe8]
push ebx
push edi
push 0x402
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp byte [esp + 0x178], bl
je 0x407476
mov eax, dword [esp + 0x10]
push ebx
push eax
mov ecx, esi
call fcn.004060f0
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0x14], 0x100
je 0x407367
cmp dword [esi + 0x60], ebx
je 0x4074de
push ebp
lea edx, [esp + 0x14]
push 0x41255c
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x1c]
push eax
push 1
push esi
call fcn.00405580
mov ecx, dword [esp + 0x28]
mov edx, dword [esi + 0xa8]
add esp, 0x18
push ecx
push ebx
push 0x181
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x48]
push eax
push ebx
push ebx
push ecx
mov dword [esi + 0x7c], ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 0x60], ebx
jne 0x407528
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [esi + 0x7c], 0xc
jmp 0x40752c
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
mov dword [esi + 0x7c], 0x65
mov dword [esp + 0x168], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x407542
mov ebx, dword [esp + 0x30]
lea ecx, [esp + 0x10]
mov dword [esp + 0x168], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, ebx
mov ecx, dword [esp + 0x160]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x15c
ret 0xc