Function at 0x140002f3c
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0xc70
mov rax, qword [0x140018280]
xor rax, rsp
mov qword [rsp + 0xc60], rax
mov r12, rdx
mov qword [rsp + 0x40], rdx
mov r14, r8
mov r13, rcx
lea rdx, [rsp + 0x860]
mov r8d, 0x400
xor ecx, ecx
mov bpl, r9b
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rcx, [rsp + 0x860]
call fcn.140003e30
lea rdx, str.WinRAR.exe
mov rcx, rax
call fcn.140006ee8
lea rcx, [rsp + 0x38]
call qword [sym.imp.SHELL32.dll_SHGetMalloc]
call fcn.140003dbc
lea rcx, [rsp + 0x60]
cmp eax, 6
lea rsi, str.WinRAR.lnk
setge bl
xor dil, dil
call fcn.140002960
test bl, bl
je 0x14000300a
lea rcx, [rsp + 0x60]
call fcn.140003f08
lea rcx, [rsp + 0x60]
mov rdx, rsi
call fcn.140006ec4
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
lea rcx, [rsp + 0x60]
test eax, eax
setne dil
call fcn.1400029ac
lea rcx, [rsp + 0x60]
call fcn.140003f08
lea rcx, [rsp + 0x60]
mov rdx, rsi
call fcn.140006ec4
cmp byte [r13 + 0x14], 0
je 0x1400030e9
test bpl, bpl
je 0x14000304a
lea rcx, [rsp + 0x60]
xor edx, edx
call fcn.140001974
test al, al
jne 0x14000304a
test dil, dil
je 0x1400030f4
mov ecx, 0x13f9
call fcn.14000547c
and qword [rsp + 0x20], 0
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x860]
mov r8, rax
mov r9, r14
call fcn.140002810
test al, al
jne 0x1400030f4
test bl, bl
je 0x1400030f4
test bpl, bpl
je 0x1400030f4
lea rcx, [rsp + 0x60]
xor edx, edx
call fcn.140001974
test al, al
je 0x14000309e
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x1400030f4
lea rcx, [rsp + 0x60]
call fcn.140002960
lea rcx, [rsp + 0x60]
call fcn.140003f08
lea rcx, [rsp + 0x60]
mov rdx, rsi
call fcn.140006ec4
mov ecx, 0x13f9
call fcn.14000547c
and qword [rsp + 0x20], 0
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x860]
mov r8, rax
mov r9, r14
call fcn.140002810
jmp 0x1400030f4
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
neg bl
lea r8, [rsp + 0x30]
sbb edx, edx
xor ecx, ecx
and edx, 0xb
add edx, 0xb
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x60]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x28]
lea rcx, [rsp + 0x60]
call fcn.140003f08
lea rcx, [rsp + 0x60]
mov rdx, rsi
call fcn.140006ec4
cmp byte [r13 + 0x15], 0
je 0x140003188
test bpl, bpl
je 0x14000315e
lea rcx, [rsp + 0x60]
xor edx, edx
call fcn.140001974
test al, al
je 0x140003193
mov ecx, 0x13f9
call fcn.14000547c
and qword [rsp + 0x20], 0
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x860]
mov r8, rax
mov r9, r14
call fcn.140002810
jmp 0x140003193
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
lea rdi, [0x140013ac0]
mov ecx, 0x13ee
mov qword [rsp + 0x48], rdi
call fcn.14000547c
mov ecx, 0x13ef
mov qword [rsp + 0x50], rax
call fcn.14000547c
lea r8, [rsp + 0x30]
mov edx, 2
xor ecx, ecx
mov qword [rsp + 0x58], rax
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x60]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x28]
lea rcx, [rsp + 0x60]
call fcn.140003f08
lea rcx, [rsp + 0x60]
mov rdx, rdi
call fcn.140006ec4
lea rbx, str.WinRAR.exe
test bpl, bpl
je 0x140003226
lea rcx, [rsp + 0x60]
xor edx, edx
call fcn.140001974
test al, al
je 0x140003331
cmp byte [r13 + 0x16], 0
je 0x140003327
test r12, r12
je 0x140003243
lea rdx, [rsp + 0x60]
mov rcx, r12
call fcn.140006ee8
lea rcx, [rsp + 0x60]
call fcn.1400029f8
lea rcx, [rsp + 0x60]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
xor esi, esi
xor edi, edi
lea r12, str.WinRAR.exe
mov rax, qword [rdi + r12]
cmp byte [rax], 0
je 0x140003303
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x460]
call fcn.140006ee8
lea rcx, [rsp + 0x460]
call fcn.140003f08
mov rdx, qword [rsp + rdi + 0x48]
lea rcx, [rsp + 0x460]
call fcn.140006ec4
lea rdx, str..lnk
lea rcx, [rsp + 0x460]
call fcn.140006ec4
lea rcx, [rsp + 0x860]
call fcn.140003e30
mov rdx, qword [rdi + r12]
mov rcx, rax
call fcn.140006ee8
xor ebx, ebx
test esi, esi
mov ecx, 0x13f9
cmove rbx, r14
call fcn.14000547c
and qword [rsp + 0x20], 0
lea rdx, [rsp + 0x460]
lea rcx, [rsp + 0x860]
mov r8, rax
mov r9, rbx
call fcn.140002810
inc esi
add rdi, 8
cmp esi, 3
jb 0x140003265
mov r12, qword [rsp + 0x40]
lea rbx, str.WinRAR.exe
lea rdi, [0x140013ac0]
jmp 0x140003331
lea rcx, [rsp + 0x60]
call fcn.1400029f8
call fcn.140003dbc
test eax, eax
je 0x1400034ab
lea r8, [rsp + 0x30]
mov edx, 0x17
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x1400034ab
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x60]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x28]
lea rcx, [rsp + 0x60]
call fcn.140003f08
lea rcx, [rsp + 0x60]
mov rdx, rdi
call fcn.140006ec4
test bpl, bpl
je 0x1400033a8
lea rcx, [rsp + 0x60]
xor edx, edx
call fcn.140001974
test al, al
je 0x1400034ab
cmp byte [r13 + 0x16], 0
lea rcx, [rsp + 0x60]
je 0x1400034a6
call fcn.1400029f8
lea rcx, [rsp + 0x60]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test r12, r12
je 0x1400033ec
lea rcx, [rsp + 0x60]
xor edx, edx
call fcn.140001974
test al, al
je 0x1400033ec
lea rdx, [rsp + 0x60]
mov rcx, r12
call fcn.140006ee8
xor esi, esi
xor edi, edi
mov rax, qword [rdi + rbx]
cmp byte [rax], 0
je 0x140003495
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x460]
call fcn.140006ee8
lea rcx, [rsp + 0x460]
call fcn.140003f08
mov rdx, qword [rsp + rdi + 0x48]
lea rcx, [rsp + 0x460]
call fcn.140006ec4
lea rdx, str..lnk
lea rcx, [rsp + 0x460]
call fcn.140006ec4
lea rcx, [rsp + 0x860]
call fcn.140003e30
mov rdx, qword [rdi + rbx]
mov rcx, rax
call fcn.140006ee8
xor ebx, ebx
test esi, esi
mov ecx, 0x13f9
cmove rbx, r14
call fcn.14000547c
and qword [rsp + 0x20], 0
lea rdx, [rsp + 0x460]
lea rcx, [rsp + 0x860]
mov r8, rax
mov r9, rbx
call fcn.140002810
lea rbx, str.WinRAR.exe
inc esi
add rdi, 8
cmp esi, 3
jb 0x1400033f0
jmp 0x1400034ab
call fcn.1400029f8
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0xc60]
xor rcx, rsp
call fcn.140007160
lea r11, [rsp + 0xc70]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret