Function at 0x407880
Capabilities:
Create http request
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 0x4098ac
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x420
push ebx
push ebp
push esi
mov ebp, ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0x434], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x434], 4
call sub.MFC42.DLL_CString::CString
push 0x2f
lea ecx, [esp + 0x44c]
mov byte [esp + 0x438], 5
call sub.MFC42.DLL_CString::ReverseFind
inc eax
lea ecx, [esp + 0x448]
push eax
lea eax, [esp + 0x28]
push eax
call sub.MFC42.DLL_CString::Mid
mov ecx, dword [eax]
mov edx, dword [ebp + 0xec]
push ecx
push edx
lea eax, [esp + 0x18]
push str._s_s
push eax
mov byte [esp + 0x444], 6
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x24]
mov byte [esp + 0x434], 5
call fcn.004084dc
push 0
push 0
push 0
push 0
push str.FptD
xor bl, bl
call dword [sym.imp.WININET.dll_InternetOpenA]
lea ecx, [esp + 0x448]
mov esi, eax
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0x18]
push 0
push 0x80000000
push 0xffffffffffffffff
push 0
push edx
push esi
mov byte [esp + 0x44c], 7
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
test esi, esi
jne 0x4079a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2ee3
mov dword [esp + 0x14], eax
jne 0x407a57
lea eax, [esp + 0x20]
lea ecx, [esp + 0x2c]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
mov dword [esp + 0x2c], 0x400
call dword [sym.imp.WININET.dll_InternetGetLastResponseInfoA]
jmp 0x407a57
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x80
push 1
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4079d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x407a4b
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x34]
push 0x400
push edx
push esi
call ebx
test eax, eax
je 0x407a26
mov eax, dword [esp + 0x20]
test eax, eax
je 0x407a26
lea ecx, [esp + 0x2c]
push 0
push ecx
lea edx, [esp + 0x38]
push eax
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esp + 0x20]
lea ecx, [esp + 0x30]
push eax
push 0x400
push ecx
push esi
call ebx
test eax, eax
jne 0x4079f4
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push edx
push str.dnl_fl_sc__s_
push eax
mov bl, 1
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
mov ecx, ebp
call fcn.00405510
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
pop edi
jne 0x407a84
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x448]
push edx
push eax
lea ecx, [esp + 0x14]
push str.dnl_fail_f:__s__d:__d_
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea edx, [esp + 0xc]
mov ecx, ebp
push edx
call fcn.00405510
jmp 0x407aaa
lea eax, [esp + 0x10]
lea ecx, [esp + 0x444]
push eax
lea edx, [esp + 0x444]
push ecx
lea eax, [esp + 0x444]
push edx
push eax
mov ecx, ebp
call fcn.00407b50
mov bl, al
lea ecx, [esp + 0x18]
mov byte [esp + 0x434], 5
call fcn.004084dc
lea ecx, [esp + 0x10]
mov byte [esp + 0x434], 4
call fcn.004084dc
lea ecx, [esp + 0xc]
mov byte [esp + 0x434], 3
call fcn.004084dc
lea ecx, [esp + 0x43c]
mov byte [esp + 0x434], 2
call fcn.004084dc
lea ecx, [esp + 0x440]
mov byte [esp + 0x434], 1
call fcn.004084dc
lea ecx, [esp + 0x444]
mov byte [esp + 0x434], 0
call fcn.004084dc
lea ecx, [esp + 0x448]
mov dword [esp + 0x434], 0xffffffff
call fcn.004084dc
mov ecx, dword [esp + 0x42c]
pop esi
mov al, bl
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x42c
ret 0x10