Function at 0x1400069b8
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 qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
mov eax, 0x5a80
call fcn.140012000
sub rsp, rax
mov rax, qword [0x140019280]
xor rax, rsp
mov qword [rsp + 0x5a70], rax
mov r13d, 0x400
lea rdx, [rsp + 0xa70]
xor ecx, ecx
mov r8d, r13d
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rdx, [rsp + 0xa70]
lea rcx, [rsp + 0x1270]
call fcn.140007b34
lea rcx, [rsp + 0x1270]
mov edx, 0x5c
call fcn.140008e08
xor r12d, r12d
cmp rax, r12
je 0x140006fbf
lea rcx, [rsp + 0x1270]
cmp rax, rcx
jbe 0x140006a52
cmp word [rax - 2], 0x3a
jne 0x140006a52
mov word [rax + 2], r12w
jmp 0x140006a56
mov word [rax], r12w
lea rcx, [rsp + 0x1270]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea rcx, [rsp + 0x1270]
call fcn.140004180
mov edi, 0x13f0
cmp byte [0x14001e390], r12b
jne 0x140006aae
mov ecx, edi
call fcn.140005a58
lea ecx, [rdi + 3]
mov rbx, rax
call fcn.140005a58
mov r9d, 0x10024
mov r8, rbx
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x140006fbf
lea rdx, [0x140014dc4]
lea rcx, str.Uninstall.lst
xor r8d, r8d
call fcn.140001ca8
mov rsi, rax
cmp rax, r12
jne 0x140006b17
mov ecx, 0x13f4
call fcn.140005a58
lea r9, str.Uninstall.lst
lea rcx, [rsp + 0xe0]
mov r8, rax
mov edx, 0xc8
call fcn.140007768
mov ecx, edi
call fcn.140005a58
lea rdx, [rsp + 0xe0]
mov r9d, 0x10010
mov r8, rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x140006fbf
mov ecx, 0x13fa
call fcn.140005a58
mov ebx, 0x100
lea rcx, [rsp + 0x870]
mov rdx, rax
mov r8, rbx
call fcn.140005d44
mov ecx, edi
call fcn.140005a58
lea rcx, [rsp + 0x670]
mov r8, rbx
mov rdx, rax
call fcn.140005d44
call fcn.14000644c
lea rcx, [0x14001ba04]
call fcn.1400058dc
cmp byte [0x14001e391], r12b
jne 0x140006fbf
mov rbx, r12
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 0x140006b74
mov bpl, r12b
lea rcx, [rsp + 0x270]
mov r8, rsi
mov edx, r13d
mov edi, r12d
call fcn.140009604
cmp rax, r12
je 0x140006d7c
lea rcx, [rsp + 0x270]
call fcn.140005ce0
cmp byte [rsp + 0x270], r12b
je 0x140006d49
lea rdx, [rsp + 0x1270]
lea rcx, [rsp + 0x2a70]
call fcn.140007b34
lea rcx, [rsp + 0x2a70]
call fcn.140007fd4
lea rcx, [rsp + 0x270]
mov r8d, 0x1000000
lea rdx, [rsp + rax*2 + 0x2a70]
call fcn.140005e00
lea rcx, [rsp + 0x2a70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea rcx, [rsp + 0x2a70]
xor edx, edx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp ebx, 0xffffffff
je 0x140006c54
test bl, 0x10
je 0x140006c54
lea rcx, [rsp + 0x2a70]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
add edi, eax
jmp 0x140006d49
lea rcx, [rsp + 0x2a70]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
add edi, eax
cmp eax, r12d
jne 0x140006d49
cmp ebx, 0xffffffff
je 0x140006d49
lea rcx, [rsp + 0x2a70]
call fcn.14000424c
lea rcx, [rsp + 0xa70]
mov rbx, rax
call fcn.14000424c
mov rcx, rbx
mov rdx, rax
call fcn.140005e30
cmp eax, r12d
je 0x140006d49
lea rdx, str.Uninstall.lst
mov rcx, rbx
call fcn.140005e30
cmp eax, r12d
je 0x140006d49
mov bpl, 1
mov ebx, r12d
lea r9, [rsp + 0x2a70]
lea r8, str._s._d.tmp
lea rcx, [rsp + 0x1a70]
mov rdx, r13
mov dword [rsp + 0x20], ebx
call fcn.140007768
lea rcx, [rsp + 0x1a70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140006d05
inc ebx
cmp ebx, 0x3e8
jl 0x140006cc5
lea rdx, [rsp + 0x1a70]
lea rcx, [rsp + 0x2a70]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
cmp eax, r12d
jne 0x140006d35
lea rdx, [rsp + 0x2a70]
lea rcx, [rsp + 0x1a70]
call fcn.140007b34
xor edx, edx
lea rcx, [rsp + 0x1a70]
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
lea rcx, [rsp + 0x270]
mov r8, rsi
mov edx, r13d
call fcn.140009604
cmp rax, r12
jne 0x140006bbd
cmp edi, r12d
je 0x140006d7c
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call fcn.140009554
jmp 0x140006b9e
mov rcx, rsi
call fcn.140008b50
lea rcx, str.Uninstall.lst
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp bpl, r12b
je 0x140006dbd
cmp byte [0x14001e390], r12b
jne 0x140006dbd
lea r8, [rsp + 0x670]
lea rdx, [rsp + 0x870]
mov r9d, 0x10040
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
lea rdx, [rsp + 0x2270]
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rdx, str.Uninstall_Rar.Bat
lea rcx, [rsp + 0x2270]
call fcn.140007b08
lea rdx, [0x140014388]
lea rcx, [rsp + 0x2270]
xor r8d, r8d
call fcn.140001ca8
mov rbx, rax
cmp rax, r12
je 0x140006fbf
lea r9, [rsp + 0xa70]
lea r8, str.__s___wait_r_n
lea rcx, [rsp + 0x3a70]
mov rdx, r13
call fcn.140007768
lea rdx, [rsp + 0x3a70]
mov rcx, rbx
call fcn.1400063cc
lea rdx, [rsp + 0x5270]
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea r11, [rsp + 0xa70]
lea rax, [rsp + 0x5270]
mov qword [rsp + 0x28], r11
lea r9, [rsp + 0xa70]
lea r8, str.del___s__r_nrd___s__r_nif_not_exist___s__goto_done_r_n
lea rcx, [rsp + 0x3a70]
mov rdx, r13
mov qword [rsp + 0x20], rax
call fcn.140007768
mov edi, 5
lea rdx, [rsp + 0x3a70]
mov rcx, rbx
call fcn.1400063cc
sub rdi, 1
jne 0x140006e83
lea rax, [rsp + 0x2270]
lea r9, [rsp + 0xa70]
lea r8, str.:done_r_nif_exist___s____s___warning_r_ndel___s_
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xa70]
lea rcx, [rsp + 0x3a70]
mov rdx, r13
mov qword [rsp + 0x20], rax
call fcn.140007768
lea rdx, [rsp + 0x3a70]
mov rcx, rbx
call fcn.1400063cc
mov rcx, rbx
call fcn.140008b50
lea rdx, [rsp + 0x4270]
lea rcx, str.COMSPEC
mov r8d, r13d
mov word [rsp + 0x4270], r12w
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea r11, [rsp + 0x2270]
lea r9, [rsp + 0x4270]
lea r8, str._s__c___s_
lea rcx, [rsp + 0x4a70]
mov rdx, r13
mov qword [rsp + 0x20], r11
call fcn.140007768
lea ebx, [rdi + 0x68]
lea rcx, [rsp + 0x50]
mov r8, rbx
xor edx, edx
call fcn.140008aa0
lea rcx, [0x140014c48]
mov dword [rsp + 0x50], ebx
mov dword [rsp + 0x8c], 1
mov word [rsp + 0x90], r12w
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
call fcn.1400040f4
lea rdx, [rsp + 0x4a70]
neg eax
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x48], rax
sbb ecx, ecx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
not ecx
mov qword [rsp + 0x38], r12
and ecx, 8
mov qword [rsp + 0x30], r12
xor r9d, r9d
mov dword [rsp + 0x28], ecx
xor ecx, ecx
xor r8d, r8d
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov rcx, qword [rsp + 0x5a70]
xor rcx, rsp
call fcn.140008090
lea r11, [rsp + 0x5a80]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret