Function at 0x1800089a0
Capabilities:
Check if file exists
Create process on windows
Get comspec environment variable
Get file attributes
Query environment variable

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x2f8]
sub rsp, 0x3f0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1803b0b00]
xor rax, rsp
mov qword [rbp + 0x2e0], rax
mov rbx, rcx
mov qword [rbp - 0x60], rcx
mov byte [rbp + 0xc0], 0
xor edx, edx
mov r8d, 0x103
lea rcx, [rbp + 0xc1]
call fcn.18014af80
mov byte [rbp + 0x1d0], 0
xor edx, edx
mov r8d, 0x103
lea rcx, [rbp + 0x1d1]
call fcn.18014af80
mov byte [rbp - 0x50], 0
xor edx, edx
mov r8d, 0x103
lea rcx, [rbp - 0x4f]
call fcn.18014af80
mov r8d, 0x104
lea rdx, [rbp + 0xc0]
mov rcx, qword [0x1803cac60]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor esi, esi
test eax, eax
je 0x180008c36
mov r8d, 0x104
lea rdx, [rbp + 0xc0]
lea rcx, [rbp + 0xc0]
call qword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
je 0x180008c36
mov r8d, 0x104
lea rdx, [rbp + 0x1d0]
lea rcx, str.COMSPEC
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x180008c36
cmp qword [rbx + 0x18], 0x10
jb 0x180008a9e
mov rcx, qword [rbx]
jmp 0x180008aa1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x180008abe
mov rcx, rbx
call fcn.180008880
mov eax, 1
jmp 0x180008c63
test al, 0x10
je 0x180008aff
cmp qword [rbx + 0x18], 0x10
jb 0x180008ace
mov rdx, qword [rbx]
jmp 0x180008ad1
mov rdx, rbx
lea rcx, [0x180364de8]
call fcn.18000b040
mov rax, qword [str._c_rd_s_q]
mov qword [rbp - 0x50], rax
movzx eax, word [0x180364e00]
mov word [rbp - 0x48], ax
movzx eax, byte [0x180364e02]
mov byte [rbp - 0x46], al
jmp 0x180008b28
cmp qword [rbx + 0x18], 0x10
jb 0x180008b0b
mov rdx, qword [rbx]
jmp 0x180008b0e
mov rdx, rbx
lea rcx, [0x180364e08]
call fcn.18000b040
movabs rdx, 0x206c656420632f
mov qword [rbp - 0x50], rdx
cmp qword [rbx + 0x18], 0x10
jb 0x180008b34
mov r8, qword [rbx]
jmp 0x180008b37
mov r8, rbx
lea rdi, [rbp - 0x50]
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
xor edx, edx
nop word [rax + rax]
movzx eax, byte [r8 + rdx]
mov byte [rdi + rdx - 1], al
inc rdx
test al, al
jne 0x180008b50
lea rdi, [rbp - 0x50]
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
mov eax, dword [str.___nul]
mov dword [rdi - 1], eax
movzx eax, word [0x180364e1c]
mov word [rdi + 3], ax
movzx eax, byte [0x180364e1e]
mov byte [rdi + 5], al
mov dword [rsp + 0x30], reloc.WS2_32.dll_WSASetLastError
mov qword [rsp + 0x38], rsi
lea rax, str.open
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x1d0]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rsi
mov dword [rsp + 0x60], esi
mov dword [rsp + 0x34], 0x40
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x180008c36
mov edx, 0x40
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_SetPriorityClass]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0x100
call qword [sym.imp.KERNEL32.dll_SetPriorityClass]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov edx, send
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor r9d, r9d
lea r8, [rbp + 0xc0]
lea edx, [r9 + 5]
lea ecx, [rdx - 1]
call qword [sym.imp.SHELL32.dll_SHChangeNotify]
nop
mov rcx, rbx
call fcn.180008880
mov eax, 1
jmp 0x180008c63
lea rcx, [0x180364e28]
call fcn.18000b040
nop
cmp qword [rbx + 0x18], 0x10
jb 0x180008c52
mov rcx, qword [rbx]
call fcn.18000c5fc
mov qword [rbx + 0x18], send
mov qword [rbx + 0x10], rsi
mov byte [rbx], 0
xor eax, eax
mov rcx, qword [rbp + 0x2e0]
xor rcx, rsp
call fcn.180146c80
lea r11, [rsp + 0x3f0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret