Function at 0x14000bbe8
Capabilities:
Check if file exists
Create process on windows
Delete directory
Delete file
Get common file path
Get comspec environment variable
Get file attributes
Move file
Query environment variable
Self delete
Set current directory
Set file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rax - 0x9c08]
mov eax, 0x9cf0
call fcn.14000c9d0
sub rsp, rax
mov rax, qword [0x140039a88]
xor rax, rsp
mov qword [rbp + 0x9be0], rax
mov r12d, 0x800
lea rdx, [rbp + 0x23e0]
mov r8d, r12d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov r8d, r12d
lea rdx, [rbp + 0x23e0]
lea rcx, [rbp + 0x33e0]
call fcn.140008cbc
mov edx, 0x5c
lea rcx, [rbp + 0x33e0]
call fcn.14000f2f8
xor r15d, r15d
test rax, rax
je 0x14000c28c
lea rcx, [rbp + 0x33e0]
cmp rax, rcx
jbe 0x14000bc8a
cmp word [rax - 2], 0x3a
jne 0x14000bc8a
mov word [rax + 2], r15w
jmp 0x14000bc8e
mov word [rax], r15w
lea rcx, [rbp + 0x33e0]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov rdx, r12
lea rcx, [rbp + 0x33e0]
call fcn.140006364
cmp byte [0x140043900], r15b
mov edi, 0x13f2
jne 0x14000bce6
mov ecx, edi
call fcn.1400084d8
lea ecx, [rdi + 3]
mov rbx, rax
call fcn.1400084d8
mov rdx, rax
mov r9d, 0x10024
mov r8, rbx
xor ecx, ecx
call fcn.14000adec
cmp eax, 6
jne 0x14000c28c
lea rdx, [0x14002c078]
lea rcx, str.Uninstall.lst
call fcn.140005494
mov rsi, rax
test rax, rax
jne 0x14000bd43
mov ecx, 0x13f6
call fcn.1400084d8
mov r8, rax
lea r9, str.Uninstall.lst
mov edx, 0xc8
lea rcx, [rbp - 0x20]
call fcn.140003e04
mov ecx, edi
call fcn.1400084d8
mov r8, rax
lea rdx, [rbp - 0x20]
mov r9d, 0x10010
xor ecx, ecx
call fcn.14000adec
jmp 0x14000c28c
mov ecx, 0x13fc
call fcn.1400084d8
mov ebx, 0x100
lea rcx, [rbp + 0x9e0]
mov r8d, ebx
mov rdx, rax
call fcn.140008cbc
mov ecx, edi
call fcn.1400084d8
mov rdx, rax
lea rcx, [rbp + 0x7e0]
mov r8d, ebx
call fcn.140008cbc
call fcn.14000b04c
lea rcx, [0x14003c620]
call fcn.140008598
cmp byte [0x140043901], r15b
jne 0x14000c28c
mov rbx, r15
lea rdi, str.winrar.gid
xor edx, edx
mov rcx, qword [rbx + rdi]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, qword [rbx + rdi]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
add rbx, 8
cmp rbx, 0x10
jb 0x14000bd9e
mov r14b, r15b
mov r8, rsi
lea rcx, [rbp - 0x20]
mov edx, r12d
mov edi, r15d
call fcn.140018bd0
test rax, rax
je 0x14000bfc2
lea rcx, [rbp - 0x20]
call fcn.140017e20
sub eax, 1
movsxd rcx, eax
js 0x14000be19
movsx rax, byte [rbp + rcx - 0x20]
cmp al, 0x20
ja 0x14000be19
movabs rdx, 0x100002600
bt rdx, rax
jae 0x14000be19
mov byte [rbp + rcx - 0x20], r15b
sub rcx, 1
jns 0x14000bdf4
cmp byte [rbp - 0x20], r15b
je 0x14000bf94
mov r8, r12
lea rdx, [rbp + 0x33e0]
lea rcx, [rbp + 0x13e0]
call fcn.140008cbc
lea rcx, [rbp + 0x13e0]
call fcn.140017978
mov r8, r12
lea rdx, [rbp + 0x13e0]
sub r8, rax
lea rcx, [rbp - 0x20]
lea rdx, [rdx + rax*2]
call fcn.140008f8c
lea rcx, [rbp + 0x13e0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor edx, edx
lea rcx, [rbp + 0x13e0]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp ebx, 0xffffffff
je 0x14000bea3
test bl, 0x10
je 0x14000bea3
lea rcx, [rbp + 0x13e0]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
mov ecx, r15d
setne cl
add edi, ecx
jmp 0x14000bf94
lea rcx, [rbp + 0x13e0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
mov ecx, r15d
setne cl
add edi, ecx
test eax, eax
jne 0x14000bf94
cmp ebx, 0xffffffff
je 0x14000bf94
lea rcx, [rbp + 0x13e0]
call fcn.1400069e0
lea rcx, [rbp + 0x23e0]
mov rbx, rax
call fcn.1400069e0
mov rdx, rax
mov rcx, rbx
call fcn.1400092f0
test eax, eax
je 0x14000bf94
lea rdx, str.Uninstall.lst
mov rcx, rbx
call fcn.1400092f0
test eax, eax
je 0x14000bf94
mov r14b, 1
mov ebx, r15d
lea r9, [rbp + 0x13e0]
mov dword [rsp + 0x20], ebx
lea r8, str._s._u.tmp
mov rdx, r12
lea rcx, [rbp + 0x43e0]
call fcn.140003e04
lea rcx, [rbp + 0x43e0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000bf53
inc ebx
cmp ebx, 0x3e8
jb 0x14000bf16
lea rdx, [rbp + 0x43e0]
lea rcx, [rbp + 0x13e0]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x14000bf81
mov r8, r12
lea rdx, [rbp + 0x13e0]
lea rcx, [rbp + 0x43e0]
call fcn.140008cbc
xor edx, edx
lea rcx, [rbp + 0x43e0]
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov r8, rsi
lea rcx, [rbp - 0x20]
mov edx, r12d
call fcn.140018bd0
test rax, rax
jne 0x14000bde3
test edi, edi
je 0x14000bfc2
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call fcn.140018e28
jmp 0x14000bdc8
mov rcx, rsi
call fcn.140017390
lea rcx, str.Uninstall.lst
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor r8d, r8d
lea rcx, [rbp + 0x53e0]
mov rdx, r12
call fcn.14000a84c
mov r9, r12
lea r8, [rbp + 0x53e0]
lea rdx, str.WinRAR.exe.WebView2
lea rcx, [rbp + 0x53e0]
call fcn.140006910
lea rcx, [rbp + 0x53e0]
call fcn.14000513c
test al, al
je 0x14000c022
lea rcx, [rbp + 0x53e0]
call fcn.140001564
lea rdx, [rbp + 0x7be0]
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test r14b, r14b
je 0x14000c08d
cmp byte [0x140043900], r15b
jne 0x14000c08d
mov r9d, 0x10040
lea r8, [rbp + 0x7e0]
lea rdx, [rbp + 0x9e0]
xor ecx, ecx
call fcn.14000adec
lea rcx, [rbp + 0x7be0]
call fcn.1400069e0
mov rcx, rax
lea rdx, [0x140029e00]
call fcn.1400092f0
test eax, eax
jne 0x14000c08d
xor edx, edx
lea r8d, [rax + 4]
lea rcx, [rbp + 0x7be0]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
lea rdx, [rbp + 0x63e0]
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov r8, r12
lea rdx, str.Uninstall_Rar.Bat
lea rcx, [rbp + 0x63e0]
call fcn.140008c78
lea rdx, [0x14002a688]
lea rcx, [rbp + 0x63e0]
call fcn.140005494
mov rbx, rax
test rax, rax
je 0x14000c28c
mov esi, 0x400
lea r9, [rbp + 0x23e0]
mov edx, esi
lea r8, str.__s___wait_r_n
lea rcx, [rbp + 0xbe0]
call fcn.140003e04
lea rdx, [rbp + 0xbe0]
mov rcx, rbx
call fcn.14000c2bc
lea rax, [rbp + 0x23e0]
mov edx, esi
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x23e0]
lea rax, [rbp + 0x7be0]
lea r8, str.del___s__r_nrd___s__r_nif_not_exist___s__goto_done_r_n
mov qword [rsp + 0x20], rax
lea rcx, [rbp + 0xbe0]
call fcn.140003e04
mov edi, 5
lea rdx, [rbp + 0xbe0]
mov rcx, rbx
call fcn.14000c2bc
sub rdi, 1
jne 0x14000c13b
lea rdx, str.:done_r_n
mov rcx, rbx
call fcn.14000c2bc
cmp byte [0x140043900], r15b
jne 0x14000c1a0
lea rax, [rbp + 0x23e0]
mov rdx, rsi
lea r9, [rbp + 0x23e0]
mov qword [rsp + 0x20], rax
lea r8, str.if_exist___s____s___warning_r_n
lea rcx, [rbp + 0xbe0]
call fcn.140003e04
lea rdx, [rbp + 0xbe0]
mov rcx, rbx
call fcn.14000c2bc
lea r9, [rbp + 0x63e0]
mov rdx, rsi
lea r8, str.del___s__r_n
lea rcx, [rbp + 0xbe0]
call fcn.140003e04
lea rdx, [rbp + 0xbe0]
mov rcx, rbx
call fcn.14000c2bc
mov rcx, rbx
call fcn.140017390
mov r8d, r12d
mov word [rbp + 0x8be0], r15w
lea rdx, [rbp + 0x8be0]
lea rcx, str.COMSPEC
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea rax, [rbp + 0x63e0]
mov rdx, rsi
lea r9, [rbp + 0x8be0]
mov qword [rsp + 0x20], rax
lea r8, str._s__c___s_
lea rcx, [rbp + 0x73e0]
call fcn.140003e04
mov ebx, 0x68
lea rcx, [rsp + 0x50]
mov r8d, ebx
xor edx, edx
call fcn.14000d8e0
lea rcx, [0x14002ab3c]
mov dword [rsp + 0x50], ebx
mov dword [rbp - 0x74], 1
mov word [rbp - 0x70], r15w
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea rax, [rbp - 0x40]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rdx, [rbp + 0x73e0]
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor ecx, ecx
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov rcx, qword [rbp + 0x9be0]
xor rcx, rsp
call fcn.14000ca30
lea r11, [rsp + 0x9cf0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret