Function at 0x408880
Capabilities:
Delete file
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Send data
Send http request
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x145c
call fcn.004140b0
mov eax, dword [0x42a95c]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x145c], ecx
mov dword [ebp - 0x44c], 0x800
mov dword [ebp - 0x458], 0
mov eax, dword [ebp - 0x145c]
cmp dword [eax + 0x618], 4
jne 0x4088d2
mov ecx, dword [ebp - 0x458]
or ecx, 0x800000
mov dword [ebp - 0x458], ecx
mov edx, dword [ebp - 0x145c]
cmp dword [edx + 8], 0
je 0x4088fb
mov eax, dword [ebp - 0x145c]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [ebp - 0x145c]
mov dword [edx + 8], 0
push 0
mov eax, dword [ebp - 0x458]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp - 0x145c]
add ecx, 0x20c
push ecx
mov edx, dword [ebp - 0x145c]
add edx, 0x64c
push edx
mov eax, dword [ebp - 0x145c]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edx, dword [ebp - 0x145c]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x145c]
cmp dword [eax + 8], 0
jne 0x408954
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x408c4d
mov ecx, dword [ebp - 0x145c]
mov dword [ecx + 0x648], 0
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 0x145c]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x40898b
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x408c4d
push 0
lea ecx, [ebp - 0x44c]
push ecx
lea edx, [ebp - 0x1458]
push edx
push 0x16
mov eax, dword [ebp - 0x145c]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x4089c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x408c4d
push str.Content_Length
lea edx, [ebp - 0x1458]
push edx
call fcn.00408f10
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x408a42
mov eax, dword [ebp - 4]
add eax, 0x20
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
movzx edx, word [ecx]
push edx
call fcn.00413fd0
add esp, 4
test eax, eax
je 0x408a42
mov eax, dword [ebp - 0x145c]
mov ecx, dword [eax + 0x648]
imul ecx, ecx, 0xa
mov edx, dword [ebp - 0x145c]
mov dword [edx + 0x648], ecx
mov eax, dword [ebp - 4]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x145c]
mov eax, dword [edx + 0x648]
lea ecx, [ecx + eax - 0x30]
mov edx, dword [ebp - 0x145c]
mov dword [edx + 0x648], ecx
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
jmp 0x4089e7
mov ecx, dword [ebp - 0x145c]
cmp dword [ecx + 0x648], 0x9c40
jae 0x408a5e
mov eax, 1
jmp 0x408c4d
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x448], eax
cmp dword [ebp - 0x448], 0
jne 0x408a94
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x408c4d
cmp dword [ebp + 0xc], 0
je 0x408af0
mov eax, dword [ebp - 0x145c]
mov ecx, dword [eax + 0x648]
add ecx, 0x3ff
shr ecx, 0xa
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
push edx
push 0
push 0x37
call fcn.004129f0
add esp, 4
push eax
lea eax, [ebp - 0x1458]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea ecx, [ebp - 0x1458]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00409350
push 1
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.00409370
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x43c], 0x400
lea eax, [ebp - 0x454]
push eax
mov ecx, dword [ebp - 0x43c]
push ecx
lea edx, [ebp - 0x438]
push edx
mov eax, dword [ebp - 0x145c]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x408b5b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x450], eax
mov edx, dword [ebp - 0x448]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x450]
jmp 0x408c4d
push 0
lea ecx, [ebp - 0x444]
push ecx
mov edx, dword [ebp - 0x454]
push edx
lea eax, [ebp - 0x438]
push eax
mov ecx, dword [ebp - 0x448]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x408bb1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x450], eax
mov edx, dword [ebp - 0x448]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x450]
jmp 0x408c4d
mov ecx, dword [ebp - 0x440]
add ecx, 1
mov dword [ebp - 0x440], ecx
cmp dword [ebp + 0xc], 0
je 0x408c03
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x440]
push eax
push 0x37
call fcn.004129f0
add esp, 4
push eax
lea ecx, [ebp - 0x1458]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea edx, [ebp - 0x1458]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.00409350
mov ecx, dword [ebp + 0xc]
call fcn.004093c0
mov eax, dword [ebp - 0x43c]
cmp eax, dword [ebp - 0x454]
je 0x408afa
mov ecx, dword [ebp - 0x448]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x145c]
cmp dword [edx + 8], 0
je 0x408c4b
mov eax, dword [ebp - 0x145c]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [ebp - 0x145c]
mov dword [edx + 8], 0
xor eax, eax
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00413653
mov esp, ebp
pop ebp
ret 8