Function at 0x407dd0
Capabilities:
Copy file
Delete file
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x40d314
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x438
mov eax, dword [esp + 0x448]
push esi
mov esi, ecx
push eax
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0x20
mov dword [esp + 0x18], 0
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
push str..tmp
lea ecx, [esp + 8]
mov dword [esp + 0x448], 0
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator]
mov eax, dword [esp + 0x450]
test eax, eax
jne 0x407e46
lea ecx, [esp + 4]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esi + 0x2c]
push 0
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
push 5
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x407e86
lea ecx, [esp + 4]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
xor eax, eax
pop esi
mov ecx, dword [esp + 0x438]
mov dword fs:[0], ecx
add esp, 0x444
ret 8
lea ecx, [esp + 0x18]
push edi
push ecx
call dword [sym.imp.MSVCR71.dll_atol]
mov edi, eax
mov eax, dword [esi + 0x30]
add esp, 4
test eax, eax
je 0x407ead
push 0
push edi
push 0x504
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
push ebx
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x407f73
push 2
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, edi
jae 0x407f84
test eax, eax
je 0x407f06
mov edx, dword [esi + 0x2c]
push 0
push 0
push 0
push eax
push edx
call dword [sym.imp.WININET.dll_InternetSetFilePointer]
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
lea esp, [esp]
mov edx, dword [esi + 0x2c]
lea eax, [esp + 0x10]
push eax
push 0x400
lea ecx, [esp + 0x48]
push ecx
push edx
call edi
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x407f45
push 0
lea ecx, [esp + 0x20]
push ecx
push eax
lea edx, [esp + 0x4c]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x30]
test ecx, ecx
je 0x407f5f
push 0
push eax
push 0x502
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x1c]
test ecx, ecx
jne 0x407f6c
test eax, eax
ja 0x407f10
jmp 0x407f9a
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
xor eax, eax
jmp 0x408035
mov esi, dword [esi + 0x30]
test esi, esi
je 0x407f9a
push 0
push edi
push 0x502
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
lea ecx, [esp + 0xc]
mov byte [esp + 0x44c], 1
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
sub eax, 4
push eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Left]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x450], 2
call dword [0x40e230]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
push 0
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, 1
mov ecx, dword [esp + 0x444]
pop ebx
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x444
ret 8