Function at 0x14000a904
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 - 0x9d98]
mov eax, 0x9e80
call fcn.14000b620
sub rsp, rax
mov rax, qword [0x1400318e0]
xor rax, rsp
mov qword [rbp + 0x9d70], rax
mov r12d, 0x800
lea rdx, [rbp + 0x1570]
mov r8d, r12d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rdx, [rbp + 0x1570]
lea rcx, [rbp + 0x2570]
call fcn.140012ab8
mov edx, 0x5c
lea rcx, [rbp + 0x2570]
call fcn.14000d168
xor r15d, r15d
test rax, rax
je 0x14000af36
lea rcx, [rbp + 0x2570]
cmp rax, rcx
jbe 0x14000a9a3
cmp word [rax - 2], 0x3a
jne 0x14000a9a3
mov word [rax + 2], r15w
jmp 0x14000a9a7
mov word [rax], r15w
lea rcx, [rbp + 0x2570]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov rdx, r12
lea rcx, [rbp + 0x2570]
call fcn.140005aac
cmp byte [0x140039750], r15b
mov esi, 0x13f2
jne 0x14000a9ff
mov ecx, esi
call fcn.140007684
lea ecx, [rsi + 3]
mov rbx, rax
call fcn.140007684
mov rdx, rax
mov r9d, 0x10024
mov r8, rbx
xor ecx, ecx
call fcn.140009c0c
cmp eax, 6
jne 0x14000af36
lea rdx, [0x140024d98]
lea rcx, str.Uninstall.lst
call fcn.140004fc4
mov rdi, rax
test rax, rax
jne 0x14000aa5c
mov ecx, 0x13f6
call fcn.140007684
mov r8, rax
lea r9, str.Uninstall.lst
mov edx, 0xc8
lea rcx, [rbp - 0x20]
call fcn.140003a5c
mov ecx, esi
call fcn.140007684
mov r8, rax
lea rdx, [rbp - 0x20]
mov r9d, 0x10010
xor ecx, ecx
call fcn.140009c0c
jmp 0x14000af36
mov ecx, 0x13fc
call fcn.140007684
mov ebx, 0x100
lea rcx, [rbp + 0x370]
mov r8d, ebx
mov rdx, rax
call fcn.140007c08
mov ecx, esi
call fcn.140007684
mov rdx, rax
lea rcx, [rbp + 0x170]
mov r8d, ebx
call fcn.140007c08
call fcn.140009e68
lea rcx, [0x140034480]
call fcn.14000773c
cmp byte [0x140039751], r15b
jne 0x14000af36
mov rbx, r15
lea rsi, str.winrar.gid
xor edx, edx
mov rcx, qword [rbx + rsi]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, qword [rbx + rsi]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
add rbx, 8
cmp rbx, 0x10
jb 0x14000aab7
mov r14b, r15b
mov r8, rdi
lea rcx, [rbp + 0xd70]
mov edx, r12d
mov esi, r15d
call fcn.140012c30
test rax, rax
je 0x14000acdf
lea rcx, [rbp + 0xd70]
call fcn.140011ec0
sub eax, 1
movsxd rcx, eax
js 0x14000ab40
mov al, byte [rbp + rcx + 0xd70]
cmp al, 0x20
ja 0x14000ab40
movsx rax, al
movabs rdx, 0x100002600
bt rdx, rax
jae 0x14000ab40
mov byte [rbp + rcx + 0xd70], r15b
sub rcx, 1
jns 0x14000ab13
cmp byte [rbp + 0xd70], r15b
je 0x14000acae
lea rdx, [rbp + 0x2570]
lea rcx, [rbp + 0x5570]
call fcn.140012ab8
lea rcx, [rbp + 0x5570]
call fcn.14000f238
mov r8d, 0x1000
lea rdx, [rbp + 0x5570]
sub r8, rax
lea rcx, [rbp + 0xd70]
lea rdx, [rdx + rax*2]
call fcn.140007ef0
lea rcx, [rbp + 0x5570]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor edx, edx
lea rcx, [rbp + 0x5570]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp ebx, 0xffffffff
je 0x14000abc8
test bl, 0x10
je 0x14000abc8
lea rcx, [rbp + 0x5570]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
add esi, eax
jmp 0x14000acae
lea rcx, [rbp + 0x5570]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
add esi, eax
test eax, eax
jne 0x14000acae
cmp ebx, 0xffffffff
je 0x14000acae
lea rcx, [rbp + 0x5570]
call fcn.14000611c
lea rcx, [rbp + 0x1570]
mov rbx, rax
call fcn.14000611c
mov rdx, rax
mov rcx, rbx
call fcn.140008250
test eax, eax
je 0x14000acae
lea rdx, str.Uninstall.lst
mov rcx, rbx
call fcn.140008250
test eax, eax
je 0x14000acae
mov r14b, 1
mov ebx, r15d
lea r9, [rbp + 0x5570]
mov dword [rsp + 0x20], ebx
lea r8, str._s._d.tmp
mov rdx, r12
lea rcx, [rbp + 0x3570]
call fcn.140003a5c
lea rcx, [rbp + 0x3570]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000ac70
inc ebx
cmp ebx, 0x3e8
jl 0x14000ac33
lea rdx, [rbp + 0x3570]
lea rcx, [rbp + 0x5570]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x14000ac9b
lea rdx, [rbp + 0x5570]
lea rcx, [rbp + 0x3570]
call fcn.140012ab8
xor edx, edx
lea rcx, [rbp + 0x3570]
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov r8, rdi
lea rcx, [rbp + 0xd70]
mov edx, r12d
call fcn.140012c30
test rax, rax
jne 0x14000aaff
test esi, esi
je 0x14000acdf
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call fcn.140012eac
jmp 0x14000aae1
mov rcx, rdi
call fcn.1400119bc
lea rcx, str.Uninstall.lst
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test r14b, r14b
je 0x14000ad1d
cmp byte [0x140039750], r15b
jne 0x14000ad1d
mov r9d, 0x10040
lea r8, [rbp + 0x170]
lea rdx, [rbp + 0x370]
xor ecx, ecx
call fcn.140009c0c
lea rdx, [rbp + 0x4570]
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rdx, str.Uninstall_Rar.Bat
lea rcx, [rbp + 0x4570]
call fcn.140012b28
lea rdx, [0x1400233e8]
lea rcx, [rbp + 0x4570]
call fcn.140004fc4
mov rbx, rax
test rax, rax
je 0x14000af36
mov esi, 0x400
lea r9, [rbp + 0x1570]
mov edx, esi
lea r8, str.__s___wait_r_n
lea rcx, [rbp + 0x570]
call fcn.140003a5c
lea rdx, [rbp + 0x570]
mov rcx, rbx
call fcn.14000af68
lea rdx, [rbp + 0x8d70]
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rax, [rbp + 0x1570]
mov edx, esi
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x1570]
lea rax, [rbp + 0x8d70]
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 + 0x570]
call fcn.140003a5c
mov edi, 5
lea rdx, [rbp + 0x570]
mov rcx, rbx
call fcn.14000af68
sub rdi, 1
jne 0x14000add8
lea rdx, str.:done_r_n
mov rcx, rbx
call fcn.14000af68
cmp byte [0x140039750], r15b
jne 0x14000ae3d
lea rax, [rbp + 0x1570]
mov rdx, rsi
lea r9, [rbp + 0x1570]
mov qword [rsp + 0x20], rax
lea r8, str.if_exist___s____s___warning_r_n
lea rcx, [rbp + 0x570]
call fcn.140003a5c
lea rdx, [rbp + 0x570]
mov rcx, rbx
call fcn.14000af68
lea r9, [rbp + 0x4570]
mov rdx, rsi
lea r8, str.del___s__r_n
lea rcx, [rbp + 0x570]
call fcn.140003a5c
lea rdx, [rbp + 0x570]
mov rcx, rbx
call fcn.14000af68
mov rcx, rbx
call fcn.1400119bc
mov r8d, r12d
mov word [rbp + 0x7d70], r15w
lea rdx, [rbp + 0x7d70]
lea rcx, str.COMSPEC
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea rax, [rbp + 0x4570]
mov rdx, rsi
lea r9, [rbp + 0x7d70]
mov qword [rsp + 0x20], rax
lea r8, str._s__c___s_
lea rcx, [rbp + 0x7570]
call fcn.140003a5c
mov ebx, 0x68
lea rcx, [rsp + 0x50]
mov r8d, ebx
xor edx, edx
call fcn.14000c360
lea rcx, [0x1400239dc]
mov dword [rsp + 0x50], ebx
mov dword [rbp - 0x74], 1
mov word [rbp - 0x70], r15w
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
call fcn.140005a20
neg eax
lea rdx, [rbp + 0x7570]
lea rax, [rbp - 0x40]
mov qword [rsp + 0x48], rax
sbb ecx, ecx
not ecx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
and ecx, 8
mov qword [rsp + 0x38], r15
xor r9d, r9d
mov qword [rsp + 0x30], r15
xor r8d, r8d
mov dword [rsp + 0x28], ecx
xor ecx, ecx
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov rcx, qword [rbp + 0x9d70]
xor rcx, rsp
call fcn.14000b690
lea r11, [rsp + 0x9e80]
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