Function at 0x14003d5c0
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
mov eax, 0x1880
call fcn.1400ba8b0
sub rsp, rax
mov rax, qword [0x1400e0920]
xor rax, rsp
mov qword [rsp + 0x1870], rax
mov rbp, rdx
mov r14, r8
mov r13, rcx
lea rdx, [rsp + 0x870]
mov r8d, 0x400
xor ecx, ecx
mov r12b, r9b
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x870]
lea rdi, [0x1400c6580]
call fcn.140052abc
xor r15d, r15d
movzx ecx, word [rdi]
add rdi, 2
mov word [rax], cx
add rax, 2
cmp cx, r15w
jne 0x14003d628
lea rcx, [rsp + 0x38]
call qword [sym.imp.SHELL32.dll_SHGetMalloc]
call fcn.14003ec88
lea rcx, [rsp + 0x70]
cmp eax, 0x600
mov sil, r15b
setae bl
call fcn.14003cf6c
cmp bl, r15b
je 0x14003d6fb
lea rcx, [rsp + 0x70]
call fcn.14005254c
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x70]
repne scasw ax, word [rdi]
mov rax, qword [str.WinRAR.lnk]
lea rcx, [rsp + 0x70]
mov qword [rdi - 2], rax
mov rax, qword [0x1400c6f20]
mov qword [rdi + 6], rax
mov eax, dword [0x1400c6f28]
mov dword [rdi + 0xe], eax
movzx eax, word [0x1400c6f2c]
mov word [rdi + 0x12], ax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rsp + 0x48]
cmp eax, r15d
setne sil
call qword [sym.imp.SHELL32.dll_SHGetMalloc]
lea r8, [rsp + 0x40]
mov edx, 0x19
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x70]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + 0x28]
lea rcx, [rsp + 0x70]
call fcn.14005254c
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x70]
repne scasw ax, word [rdi]
mov rax, qword [str.WinRAR.lnk]
mov qword [rdi - 2], rax
mov rax, qword [0x1400c6f20]
mov qword [rdi + 6], rax
mov eax, dword [0x1400c6f28]
mov dword [rdi + 0xe], eax
movzx eax, word [0x1400c6f2c]
mov word [rdi + 0x12], ax
cmp byte [r13 + 0x14], r15b
je 0x14003d83c
cmp r12b, r15b
je 0x14003d766
lea rdx, [rsp + 0x70]
xor ecx, ecx
call fcn.1400310a8
cmp al, r15b
jne 0x14003d766
cmp sil, r15b
je 0x14003d846
mov ecx, 0x537
call fcn.140061d2c
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x870]
mov r9, r14
mov r8, rax
mov qword [rsp + 0x20], r15
call fcn.1400872e0
cmp al, r15b
jne 0x14003d846
cmp bl, r15b
je 0x14003d846
cmp r12b, r15b
je 0x14003d846
lea rcx, [rsp + 0x70]
call fcn.140031110
cmp al, r15b
je 0x14003d7c7
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, r15d
je 0x14003d846
lea rcx, [rsp + 0x70]
call fcn.14003cf6c
lea rcx, [rsp + 0x70]
call fcn.14005254c
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x70]
repne scasw ax, word [rdi]
mov rax, qword [str.WinRAR.lnk]
mov ecx, 0x537
mov qword [rdi - 2], rax
mov rax, qword [0x1400c6f20]
mov qword [rdi + 6], rax
mov eax, dword [0x1400c6f28]
mov dword [rdi + 0xe], eax
movzx eax, word [0x1400c6f2c]
mov word [rdi + 0x12], ax
call fcn.140061d2c
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x870]
mov r9, r14
mov r8, rax
mov qword [rsp + 0x20], r15
call fcn.1400872e0
jmp 0x14003d846
lea rcx, [rsp + 0x70]
call fcn.1400313a4
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 + 0x70]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x28]
lea rcx, [rsp + 0x70]
call fcn.14005254c
xor eax, eax
or rbx, 0xffffffffffffffff
lea rdi, [rsp + 0x70]
mov rcx, rbx
repne scasw ax, word [rdi]
mov rax, qword [str.WinRAR.lnk]
mov qword [rdi - 2], rax
mov rax, qword [0x1400c6f20]
mov qword [rdi + 6], rax
mov eax, dword [0x1400c6f28]
mov dword [rdi + 0xe], eax
movzx eax, word [0x1400c6f2c]
mov word [rdi + 0x12], ax
cmp byte [r13 + 0x15], r15b
je 0x14003d905
cmp r12b, r15b
je 0x14003d8dc
lea rcx, [rsp + 0x70]
call fcn.140031110
cmp al, r15b
je 0x14003d90f
mov ecx, 0x537
call fcn.140061d2c
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x870]
mov r9, r14
mov r8, rax
mov qword [rsp + 0x20], r15
call fcn.1400872e0
jmp 0x14003d90f
lea rcx, [rsp + 0x70]
call fcn.1400313a4
lea rax, [0x1400c6ae8]
mov ecx, 0x38e
mov qword [rsp + 0x50], rax
call fcn.140061d2c
mov ecx, 0x38f
mov qword [rsp + 0x58], rax
call fcn.140061d2c
lea r8, [rsp + 0x30]
mov edx, 2
xor ecx, ecx
mov qword [rsp + 0x60], rax
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x70]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x28]
lea rcx, [rsp + 0x70]
call fcn.14005254c
xor eax, eax
lea rdi, [rsp + 0x70]
mov rcx, rbx
repne scasw ax, word [rdi]
mov rax, qword [0x1400c6ae8]
mov qword [rdi - 2], rax
mov eax, dword [0x1400c6af0]
mov dword [rdi + 6], eax
movzx eax, word [0x1400c6af4]
mov word [rdi + 0xa], ax
lea rdi, [0x1400df158]
cmp r12b, r15b
je 0x14003d9c0
lea rcx, [rsp + 0x70]
call fcn.140031110
cmp al, r15b
je 0x14003db1f
cmp byte [r13 + 0x16], r15b
je 0x14003db13
cmp rbp, r15
je 0x14003d9f0
lea rax, [rsp + 0x70]
mov rdx, rbp
lea rcx, [rsp + 0x70]
sub rdx, rax
movzx eax, word [rcx]
mov word [rdx + rcx], ax
add rcx, 2
cmp ax, r15w
jne 0x14003d9df
lea rdx, [rsp + 0x70]
xor ecx, ecx
call fcn.14003cfb8
lea rcx, [rsp + 0x70]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, r15d
mov rbx, r15
mov rax, qword [rbx + rdi]
cmp word [rax], r15w
je 0x14003dafe
mov rcx, r15
movzx eax, word [rsp + rcx + 0x70]
add rcx, 2
mov word [rsp + rcx + 0x106e], ax
cmp ax, r15w
jne 0x14003da20
lea rcx, [rsp + 0x1070]
call fcn.14005254c
mov rdx, qword [rsp + rbx + 0x50]
or r8, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x1070]
mov rcx, r8
repne scasw ax, word [rdi]
xor ecx, ecx
movzx eax, word [rdx + rcx]
add rcx, 2
mov word [rdi + rcx - 4], ax
test ax, ax
jne 0x14003da5f
xor eax, eax
mov rcx, r8
lea rdi, [rsp + 0x1070]
repne scasw ax, word [rdi]
mov rax, qword [str..lnk]
lea rcx, [rsp + 0x870]
mov qword [rdi - 2], rax
movzx eax, word [0x1400c6f10]
mov word [rdi + 6], ax
lea rdi, [0x1400df158]
mov rdi, qword [rbx + rdi]
call fcn.140052abc
movzx ecx, word [rdi]
add rdi, 2
mov word [rax], cx
add rax, 2
cmp cx, r15w
jne 0x14003daaf
mov rdi, r15
cmp esi, r15d
mov ecx, 0x537
cmove rdi, r14
call fcn.140061d2c
lea rdx, [rsp + 0x1070]
lea rcx, [rsp + 0x870]
mov r9, rdi
mov r8, rax
mov qword [rsp + 0x20], r15
call fcn.1400872e0
lea rdi, [0x1400df158]
inc esi
add rbx, 8
cmp esi, 3
jb 0x14003da0f
or rbx, 0xffffffffffffffff
jmp 0x14003db1f
lea rdx, [rsp + 0x70]
xor ecx, ecx
call fcn.14003cfb8
lea r8, [rsp + 0x30]
mov edx, 0x17
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
cmp eax, r15d
jne 0x14003dd01
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x70]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x28]
lea rcx, [rsp + 0x70]
call fcn.14005254c
xor eax, eax
lea rdi, [rsp + 0x70]
mov rcx, rbx
repne scasw ax, word [rdi]
mov rax, qword [0x1400c6ae8]
mov qword [rdi - 2], rax
mov eax, dword [0x1400c6af0]
mov dword [rdi + 6], eax
movzx eax, word [0x1400c6af4]
mov word [rdi + 0xa], ax
cmp r12b, r15b
je 0x14003dba8
lea rcx, [rsp + 0x70]
call fcn.140031110
cmp al, r15b
je 0x14003dd01
xor ecx, ecx
lea rdx, [rsp + 0x70]
cmp byte [r13 + 0x16], r15b
je 0x14003dcfc
call fcn.14003cfb8
lea rcx, [rsp + 0x70]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp rbp, r15
je 0x14003dbfd
lea rcx, [rsp + 0x70]
call fcn.140031110
cmp al, r15b
je 0x14003dbfd
lea rax, [rsp + 0x70]
lea rcx, [rsp + 0x70]
sub rbp, rax
movzx eax, word [rcx]
mov word [rcx + rbp], ax
add rcx, 2
cmp ax, r15w
jne 0x14003dbec
mov esi, r15d
mov rbx, r15
lea rbp, [0x1400df158]
mov rax, qword [rbx + rbp]
cmp word [rax], r15w
je 0x14003dceb
mov rcx, r15
movzx eax, word [rsp + rcx + 0x70]
add rcx, 2
mov word [rsp + rcx + 0x106e], ax
cmp ax, r15w
jne 0x14003dc1b
lea rcx, [rsp + 0x1070]
call fcn.14005254c
mov rdx, qword [rsp + rbx + 0x50]
or r8, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x1070]
mov rcx, r8
repne scasw ax, word [rdi]
xor ecx, ecx
movzx eax, word [rdx + rcx]
add rcx, 2
mov word [rdi + rcx - 4], ax
test ax, ax
jne 0x14003dc5a
xor eax, eax
mov rcx, r8
lea rdi, [rsp + 0x1070]
repne scasw ax, word [rdi]
mov rax, qword [str..lnk]
lea rcx, [rsp + 0x870]
mov qword [rdi - 2], rax
movzx eax, word [0x1400c6f10]
mov word [rdi + 6], ax
mov rdi, qword [rbx + rbp]
call fcn.140052abc
movzx ecx, word [rdi]
add rdi, 2
mov word [rax], cx
add rax, 2
cmp cx, r15w
jne 0x14003dca3
mov rdi, r15
cmp esi, r15d
mov ecx, 0x537
cmove rdi, r14
call fcn.140061d2c
lea rdx, [rsp + 0x1070]
lea rcx, [rsp + 0x870]
mov r9, rdi
mov r8, rax
mov qword [rsp + 0x20], r15
call fcn.1400872e0
inc esi
add rbx, 8
cmp esi, 3
jb 0x14003dc0a
jmp 0x14003dd01
call fcn.14003cfb8
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x1870]
xor rcx, rsp
call fcn.1400a8530
mov rbx, qword [rsp + 0x18c0]
add rsp, 0x1880
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret