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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x5140
call fcn.14001b9f0
sub rsp, rax
mov qword [rsp + 0xb0], 0xfffffffffffffffe
mov qword [rsp + 0x5180], rbx
mov rax, qword [0x1400242f8]
xor rax, rsp
mov qword [rsp + 0x5130], rax
mov sil, r9b
mov r12, r8
mov qword [rsp + 0x50], r8
mov r15, rdx
mov qword [rsp + 0x60], rdx
mov r14, rcx
call fcn.140006254
xor edi, edi
cmp al, dil
je 0x1400053fe
mov r13d, 0x800
mov r8d, r13d
lea rdx, [rsp + 0x4130]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov r8, r13
lea rdx, str.WinRAR.exe
lea rcx, [rsp + 0x4130]
call fcn.140005a40
lea rcx, [rsp + 0x48]
call qword [sym.imp.SHELL32.dll_SHGetMalloc]
call fcn.140005504
cmp eax, 0x600
setae bl
mov bpl, dil
cmp bl, dil
je 0x140004c38
lea rcx, [rsp + 0x2120]
call fcn.140003a30
cmp al, dil
je 0x140004bf6
mov rdx, r13
lea rcx, [rsp + 0x2120]
call fcn.140005610
mov r8, r13
lea rdx, str.WinRAR.lnk
lea rcx, [rsp + 0x2120]
call fcn.140008570
lea rcx, [rsp + 0x2120]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, edi
setne bpl
lea rcx, [rsp + 0x68]
call qword [sym.imp.SHELL32.dll_SHGetMalloc]
lea r8, [rsp + 0x58]
mov edx, 0x19
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea rdx, [rsp + 0x2120]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x58]
call qword [rax + 0x28]
jmp 0x140004c4e
lea rcx, [rsp + 0x2120]
call fcn.140003a30
cmp al, dil
je 0x1400053fe
mov rdx, r13
lea rcx, [rsp + 0x2120]
call fcn.140005610
mov r8, r13
lea rdx, str.WinRAR.lnk
lea rcx, [rsp + 0x2120]
call fcn.140008570
cmp byte [r14 + 0x14], dil
je 0x140004d7f
cmp sil, dil
je 0x140004c9f
lea rcx, [rsp + 0x2120]
call fcn.140002258
cmp al, dil
jne 0x140004c9f
cmp bpl, dil
je 0x140004d8c
mov ecx, 0x13fb
call fcn.14000813c
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x2120]
lea rdx, [rsp + 0x4130]
mov cl, 1
call fcn.14000a1ac
cmp al, dil
jne 0x140004d8c
cmp bl, dil
je 0x140004d8c
cmp sil, dil
je 0x140004d8c
lea rcx, [rsp + 0x2120]
call fcn.140002258
cmp al, dil
je 0x140004d11
lea rcx, [rsp + 0x2120]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, edi
je 0x140004d8c
lea rcx, [rsp + 0x2120]
call fcn.140003a30
cmp al, dil
je 0x140004d8c
mov rdx, r13
lea rcx, [rsp + 0x2120]
call fcn.140005610
mov r8, r13
lea rdx, str.WinRAR.lnk
lea rcx, [rsp + 0x2120]
call fcn.140008570
mov ecx, 0x13fb
call fcn.14000813c
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x2120]
lea rdx, [rsp + 0x4130]
mov cl, 1
call fcn.14000a1ac
jmp 0x140004d8c
lea rcx, [rsp + 0x2120]
call fcn.1400021cc
neg bl
sbb edx, edx
and edx, 0xb
add edx, 0xb
lea r8, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea rdx, [rsp + 0x2120]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x40]
call qword [rax + 0x28]
mov rdx, r13
lea rcx, [rsp + 0x2120]
call fcn.140005610
mov r8, r13
lea rdx, str.WinRAR.lnk
lea rcx, [rsp + 0x2120]
call fcn.140008570
cmp byte [r14 + 0x15], dil
je 0x140004e3f
cmp sil, dil
je 0x140004e0a
lea rcx, [rsp + 0x2120]
call fcn.140002258
cmp al, dil
je 0x140004e4c
mov ecx, 0x13fb
call fcn.14000813c
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x2120]
lea rdx, [rsp + 0x4130]
mov cl, 1
call fcn.14000a1ac
jmp 0x140004e4c
lea rcx, [rsp + 0x2120]
call fcn.1400021cc
lea rcx, str.WinRAR.exe
call fcn.14001b8e8
mov qword [rsp + 0x90], rax
lea rcx, str.WinRAR.chm
call fcn.14001b8e8
mov qword [rsp + 0x98], rax
lea rcx, str.Rar.txt
call fcn.14001b8e8
mov qword [rsp + 0xa0], rax
mov ecx, 0x13f1
call fcn.14000813c
mov rcx, rax
call fcn.14001b8e8
mov qword [rsp + 0xa8], rax
lea rcx, [0x14001e088]
call fcn.14001b8e8
mov qword [rsp + 0x70], rax
mov ecx, 0x13ee
call fcn.14000813c
mov rcx, rax
call fcn.14001b8e8
mov qword [rsp + 0x78], rax
mov ecx, 0x13ef
call fcn.14000813c
mov rcx, rax
call fcn.14001b8e8
mov qword [rsp + 0x80], rax
mov ecx, 0x13f0
call fcn.14000813c
mov rcx, rax
call fcn.14001b8e8
mov qword [rsp + 0x88], rax
lea r8, [rsp + 0x40]
mov edx, 2
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea rdx, [rsp + 0x2120]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x40]
call qword [rax + 0x28]
mov rdx, r13
lea rcx, [rsp + 0x2120]
call fcn.140005610
mov r8, r13
lea rdx, [0x14001e088]
lea rcx, [rsp + 0x2120]
call fcn.140008570
mov r13d, 4
cmp sil, dil
je 0x140004f7b
lea rcx, [rsp + 0x2120]
call fcn.140002258
cmp al, dil
je 0x140005162
cmp byte [r14 + 0x16], dil
je 0x140005155
cmp r15, rdi
je 0x140004f9a
lea rdx, [rsp + 0x2120]
mov rcx, r15
call fcn.14000a6bc
cmp sil, dil
jne 0x14000507a
lea rcx, [rsp + 0x2120]
call fcn.140002258
cmp al, dil
je 0x14000506a
mov r9d, 0x802
lea r8, [rsp + 0x3120]
lea rdx, [0x14001e544]
lea rcx, [rsp + 0x2120]
call fcn.140005654
lea rcx, [rsp + 0xc0]
call fcn.140002a28
nop
lea rdx, [rsp + 0x3120]
lea rcx, [rsp + 0xc0]
call fcn.140002a5c
mov qword [rsp + 0x20e0], rdi
mov qword [rsp + 0x20e8], rdi
mov qword [rsp + 0x20f0], rdi
xor r8d, r8d
lea rdx, [rsp + 0x10d0]
lea rcx, [rsp + 0xc0]
call fcn.140002c1c
cmp al, dil
je 0x14000505d
lea rcx, [rsp + 0x10d0]
call fcn.1400021cc
xor r8d, r8d
lea rdx, [rsp + 0x10d0]
lea rcx, [rsp + 0xc0]
call fcn.140002c1c
cmp al, dil
jne 0x140005033
lea rcx, [rsp + 0xc0]
call fcn.140002a40
xor edx, edx
lea rcx, [rsp + 0x2120]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, edi
mov r12, rdi
mov r15, qword [rsp + 0x50]
mov ebx, 0x800
mov r9, rbx
lea r8, [rsp + 0x3120]
mov rdx, qword [rsp + r12 + 0x70]
lea rcx, [rsp + 0x2120]
call fcn.140005654
mov r8, rbx
lea rdx, str..lnk
lea rcx, [rsp + 0x3120]
call fcn.140008570
mov r8, rbx
mov rdx, qword [rsp + r12 + 0x90]
lea rcx, [rsp + 0x4130]
call fcn.140005a40
lea rcx, [rsp + 0x4130]
call fcn.140002258
cmp al, dil
je 0x14000513f
cmp sil, dil
je 0x1400050fe
lea rcx, [rsp + 0x3120]
call fcn.140002258
cmp al, dil
je 0x14000513f
mov rbx, rdi
cmp ebp, edi
cmove rbx, r15
mov ecx, 0x13fb
call fcn.14000813c
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x3120]
lea rdx, [rsp + 0x4130]
mov cl, 1
call fcn.14000a1ac
mov ebx, 0x800
inc ebp
add r12, 8
cmp ebp, r13d
jb 0x140005089
mov r15, qword [rsp + 0x60]
jmp 0x140005162
lea rcx, [rsp + 0x2120]
call fcn.140003a9c
lea r8, [rsp + 0x40]
mov edx, 0x17
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
cmp eax, edi
jne 0x1400053d2
lea rdx, [rsp + 0x2120]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x40]
call qword [rax + 0x28]
mov ebx, 0x800
mov rdx, rbx
lea rcx, [rsp + 0x2120]
call fcn.140005610
mov r8, rbx
lea rdx, [0x14001e088]
lea rcx, [rsp + 0x2120]
call fcn.140008570
cmp sil, dil
je 0x1400051e6
lea rcx, [rsp + 0x2120]
call fcn.140002258
cmp al, dil
je 0x1400053d2
cmp byte [r14 + 0x16], dil
je 0x1400053c5
cmp sil, dil
jne 0x1400052d0
lea rcx, [rsp + 0x2120]
call fcn.140002258
cmp al, dil
je 0x1400052c0
mov r9d, 0x802
lea r8, [rsp + 0x3120]
lea rdx, [0x14001e544]
lea rcx, [rsp + 0x2120]
call fcn.140005654
lea rcx, [rsp + 0xc0]
call fcn.140002a28
nop
lea rdx, [rsp + 0x3120]
lea rcx, [rsp + 0xc0]
call fcn.140002a5c
mov qword [rsp + 0x20e0], rdi
mov qword [rsp + 0x20e8], rdi
mov qword [rsp + 0x20f0], rdi
xor r8d, r8d
lea rdx, [rsp + 0x10d0]
lea rcx, [rsp + 0xc0]
call fcn.140002c1c
cmp al, dil
je 0x1400052b3
lea rcx, [rsp + 0x10d0]
call fcn.1400021cc
xor r8d, r8d
lea rdx, [rsp + 0x10d0]
lea rcx, [rsp + 0xc0]
call fcn.140002c1c
cmp al, dil
jne 0x140005289
lea rcx, [rsp + 0xc0]
call fcn.140002a40
xor edx, edx
lea rcx, [rsp + 0x2120]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp r15, rdi
je 0x1400052f7
lea rcx, [rsp + 0x2120]
call fcn.140002258
cmp al, dil
je 0x1400052f7
lea rdx, [rsp + 0x2120]
mov rcx, r15
call fcn.14000a6bc
mov ebp, edi
mov r12, rdi
mov r9, rbx
lea r8, [rsp + 0x3120]
mov rdx, qword [rsp + r12 + 0x70]
lea rcx, [rsp + 0x2120]
call fcn.140005654
mov r8, rbx
lea rdx, str..lnk
lea rcx, [rsp + 0x3120]
call fcn.140008570
mov r8, rbx
mov rdx, qword [rsp + r12 + 0x90]
lea rcx, [rsp + 0x4130]
call fcn.140005a40
lea rcx, [rsp + 0x4130]
call fcn.140002258
cmp al, dil
je 0x1400053b4
cmp sil, dil
je 0x140005371
lea rcx, [rsp + 0x3120]
call fcn.140002258
cmp al, dil
je 0x1400053b4
mov rbx, rdi
cmp ebp, edi
cmove rbx, qword [rsp + 0x50]
mov ecx, 0x13fb
call fcn.14000813c
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x3120]
lea rdx, [rsp + 0x4130]
mov cl, 1
call fcn.14000a1ac
mov ebx, 0x800
inc ebp
add r12, 8
cmp ebp, r13d
jb 0x1400052fc
jmp 0x1400053d2
lea rcx, [rsp + 0x2120]
call fcn.140003a9c
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + rdi + 0x90]
call fcn.14000a70c
mov rcx, qword [rsp + rdi + 0x70]
call fcn.14000a70c
add rdi, 8
sub r13, 1
jne 0x1400053dd
mov rcx, qword [rsp + 0x5130]
xor rcx, rsp
call fcn.14000a670
mov rbx, qword [rsp + 0x5180]
add rsp, 0x5140
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret