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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3f0]
sub rsp, 0x4f0
xor r13d, r13d
mov r12, rcx
mov ebx, r13d
lea edi, [r13 + 0x5c]
mov r14d, 1
mov word [rsp + 0x30], r13w
cmp ebx, r14d
mov rcx, r12
lea edx, [r14 + 1]
lea eax, [rdx + 0x15]
cmove edx, eax
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x140002a9c
movzx edx, word [rsp + 0x30]
mov rcx, r13
test dx, dx
je 0x1400028ed
lea rax, [rsp + 0x30]
cmp dx, 0x2f
jne 0x1400028c5
mov word [rax], di
inc rcx
lea rax, [rsp + 0x30]
lea rax, [rax + rcx*2]
movzx edx, word [rax]
test dx, dx
jne 0x1400028bc
test rcx, rcx
je 0x1400028ed
cmp word [rax - 2], di
je 0x1400028ed
mov word [rax], di
mov word [rsp + rcx*2 + 0x32], r13w
lea rdx, [0x14000b458]
lea rcx, [rsp + 0x30]
call fcn.140001060
test ebx, ebx
je 0x140002919
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140002919
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, word [rsp + 0x30]
mov rcx, r13
test dx, dx
je 0x14000295c
lea rax, [rsp + 0x30]
cmp dx, 0x2f
jne 0x140002934
mov word [rax], di
inc rcx
lea rax, [rsp + 0x30]
lea rax, [rax + rcx*2]
movzx edx, word [rax]
test dx, dx
jne 0x14000292b
test rcx, rcx
je 0x14000295c
cmp word [rax - 2], di
je 0x14000295c
mov word [rax], di
mov word [rsp + rcx*2 + 0x32], r13w
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov eax, eax
lea r15, [rsp + 0x30]
mov edi, r13d
lea r15, [r15 + rax*2]
test edi, edi
lea rax, str.7_Zip_File_Manager.lnk
lea rdx, str.7_Zip_Help.lnk
mov r8, r15
cmove rdx, rax
movzx ecx, byte [rdx]
inc rdx
mov word [r8], cx
lea r8, [r8 + 2]
test cl, cl
jne 0x14000298c
lea rdx, [0x14000e510]
lea rcx, [rbp + 0x190]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rax, str.7zFM.exe
test edi, edi
lea rdx, str.7_zip.chm
cmove rdx, rax
lea rcx, [rbp + 0x190]
call fcn.140001060
test ebx, ebx
jne 0x1400029e6
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x140002a83
xor edx, edx
lea rax, [rbp + 0x438]
lea r9, [0x14000bf58]
mov qword [rsp + 0x20], rax
lea rcx, [0x14000bf78]
lea r8d, [rdx + 1]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test eax, eax
js 0x140002a7d
mov rcx, qword [rbp + 0x438]
lea rdx, [rbp + 0x190]
mov rax, qword [rcx]
call qword [rax + 0xa0]
mov rcx, qword [rbp + 0x438]
lea r8, [rbp + 0x440]
lea rdx, [0x14000bf68]
mov rax, qword [rcx]
call qword [rax]
mov esi, eax
test eax, eax
js 0x140002a70
mov rcx, qword [rbp + 0x440]
lea rdx, [rsp + 0x30]
mov r8d, 1
mov rax, qword [rcx]
call qword [rax + 0x30]
mov rcx, qword [rbp + 0x440]
mov esi, eax
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0x438]
mov rax, qword [rcx]
call qword [rax + 0x10]
test esi, esi
cmovne r14d, r13d
inc edi
cmp edi, 2
jb 0x140002975
test ebx, ebx
je 0x140002a97
test r14d, r14d
jne 0x140002aa7
mov edi, 0x5c
inc ebx
cmp ebx, 3
jb 0x140002870
mov rbx, qword [rsp + 0x530]
add rsp, 0x4f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret