Function at 0x14004dd20
Capabilities:
Check if file exists
Create shortcut via ishelllink
Delete directory
Delete file
Enumerate files on windows
Get common file path
Get file attributes

Disassembly:
mov r11, rsp
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x5e0
mov qword [rsp + 0xc8], 0xfffffffffffffffe
mov rax, qword [0x140099938]
xor rax, rsp
mov qword [rsp + 0x5d0], rax
mov r13, r9
mov qword [rsp + 0x40], r8
mov r14, rdx
mov rbx, rcx
mov edi, 7
mov qword [r11 - 0x4d8], rdi
xor esi, esi
mov qword [r11 - 0x4e0], rsi
mov word [rsp + 0x128], si
mov qword [r11 - 0x4b0], rdi
mov qword [r11 - 0x4b8], rsi
mov word [rsp + 0x150], si
lea ebp, [rdi + 1]
mov rcx, rbp
call fcn.14005b298
cmp rax, rsi
je 0x14004ddad
lea rcx, [rsp + 0x68]
mov qword [rax], rcx
jmp 0x14004ddb0
mov rax, rsi
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x80], rsi
mov qword [rsp + 0x88], rsi
mov qword [rsp + 0x90], rsi
mov rcx, rbp
call fcn.14005b298
cmp rax, rsi
je 0x14004dde7
lea rcx, [rsp + 0x98]
mov qword [rax], rcx
jmp 0x14004ddea
mov rax, rsi
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xb0], rsi
mov qword [rsp + 0xb8], rsi
mov qword [rsp + 0xc0], rsi
mov dword [rsp + 0x30], 1
lea r8, [0x1400829a0]
lea r12, str.CShortcut::DeleteShortcutW
mov rdx, r12
mov ecx, 5
call fcn.140009480
cmp dword [rsp + 0x648], esi
jne 0x14004def1
cmp r14, rsi
jne 0x14004def1
cmp r13, rsi
jne 0x14004def1
lea r8, str.pName_and_pTarget_are_NULL_on_not_DeadLinkOnly._n
mov rdx, r12
mov ebx, 5
mov ecx, ebx
call fcn.140009480
lea r8, [0x1400829c0]
mov rdx, r12
mov ecx, ebx
call fcn.140009480
nop
lea rcx, [rsp + 0x98]
call fcn.140005204
mov rcx, qword [rsp + 0x98]
call fcn.14005ab0c
nop
lea rcx, [rsp + 0x68]
call fcn.140005204
mov rcx, qword [rsp + 0x68]
call fcn.14005ab0c
nop
cmp qword [rsp + 0x168], rbp
jb 0x14004debb
mov rcx, qword [rsp + 0x150]
call fcn.14005ab0c
mov qword [rsp + 0x168], rdi
mov qword [rsp + 0x160], rsi
mov word [rsp + 0x150], si
cmp qword [rsp + 0x140], rbp
jb 0x14004deea
mov rcx, qword [rsp + 0x128]
call fcn.14005ab0c
xor eax, eax
jmp 0x14004e8dd
cmp dword [rbx + 0x80], 1
jne 0x14004e039
mov edi, 0x17
lea r8, str.CShortcut::user_all._n
mov rdx, r12
lea ecx, [rdi - 0x12]
call fcn.140009480
cmp qword [rbx + 0x28], rbp
jb 0x14004df21
mov rcx, qword [rbx + 0x10]
jmp 0x14004df25
lea rcx, [rbx + 0x10]
lea rdx, str.Desktop
call fcn.14005c7d4
cmp eax, esi
jne 0x14004df3c
mov edi, 0x19
jmp 0x14004dfa9
cmp qword [rbx + 0x28], rbp
jb 0x14004df48
mov rcx, qword [rbx + 0x10]
jmp 0x14004df4c
lea rcx, [rbx + 0x10]
lea rdx, str.Programs
call fcn.14005c7d4
cmp eax, esi
je 0x14004dfa9
cmp qword [rbx + 0x28], rbp
jb 0x14004df68
mov rcx, qword [rbx + 0x10]
jmp 0x14004df6c
lea rcx, [rbx + 0x10]
lea rdx, str.Start_Menu
call fcn.14005c7d4
cmp eax, esi
jne 0x14004df83
mov edi, 0x16
jmp 0x14004dfa9
cmp qword [rbx + 0x28], rbp
jb 0x14004df8f
mov rcx, qword [rbx + 0x10]
jmp 0x14004df93
lea rcx, [rbx + 0x10]
lea rdx, str.Startup
call fcn.14005c7d4
mov ecx, 0x18
cmp eax, esi
cmove edi, ecx
xor r9d, r9d
mov r8d, edi
lea rdx, [rsp + 0x3c0]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp eax, esi
je 0x14004e0af
mov qword [rsp + 0xf0], 7
mov qword [rsp + 0xe8], rsi
mov word [rsp + 0xd8], si
lea rcx, [rsp + 0x3c0]
call fcn.14005b1c0
mov r8, rax
lea rdx, [rsp + 0x3c0]
lea rcx, [rsp + 0xd0]
call fcn.140002280
nop
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x68]
call fcn.14001a3a4
nop
cmp qword [rsp + 0xf0], rbp
jb 0x14004e0af
mov rcx, qword [rsp + 0xd8]
call fcn.14005ab0c
jmp 0x14004e0af
mov qword [rsp + 0xf0], rdi
mov qword [rsp + 0xe8], rsi
mov word [rsp + 0xd8], si
lea rdx, [rbx + 8]
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rsp + 0xd0]
call fcn.140002130
nop
lea r8, [rsp + 0xd8]
cmp qword [rsp + 0xf0], rbp
cmovae r8, qword [rsp + 0xd8]
lea r9, [rsp + 0x68]
lea rdx, [0x14007e550]
mov rcx, rbx
call fcn.14004d448
nop
cmp qword [rsp + 0xf0], rbp
jb 0x14004e0af
mov rcx, qword [rsp + 0xd8]
call fcn.14005ab0c
mov rcx, qword [rsp + 0x80]
mov rsi, rcx
mov rdi, qword [rsp + 0x88]
cmp rcx, rdi
jbe 0x14004e0dc
call fcn.14005c2f8
mov rdi, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rsi
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm0
mov r12, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
xor esi, esi
cmp rcx, rdi
jbe 0x14004e10c
call fcn.14005c2f8
cmp r12, rsi
je 0x14004e118
cmp r12, qword [rsp + 0x68]
je 0x14004e11d
call fcn.14005c2f8
cmp rbp, rdi
je 0x14004e6c8
cmp r12, rsi
jne 0x14004e135
call fcn.14005c2f8
mov r11, rsi
jmp 0x14004e139
mov r11, qword [r12]
cmp rbp, qword [r11 + 0x20]
jb 0x14004e144
call fcn.14005c2f8
cmp qword [rbp + 0x20], 8
jb 0x14004e151
mov rdi, qword [rbp + 8]
jmp 0x14004e155
lea rdi, [rbp + 8]
mov rcx, rdi
call fcn.14005b1c0
mov r8, rax
mov rdx, rdi
lea rcx, [rsp + 0x120]
call fcn.140002280
lea rcx, [0x1400778f0]
call fcn.14005b1c0
mov r8, rax
lea rdx, [0x1400778f0]
lea rcx, [rsp + 0x120]
call fcn.14000362c
cmp qword [rbx + 0x70], rsi
je 0x14004e29c
lea rcx, [rsp + 0xd0]
call fcn.140052eb4
nop
cmp qword [rbx + 0x78], 8
jb 0x14004e1b8
mov rdx, qword [rbx + 0x60]
jmp 0x14004e1bc
lea rdx, [rbx + 0x60]
mov r8d, 0x5c
lea rcx, [rsp + 0xd0]
call fcn.140052ffc
mov rdi, rsi
lea rcx, [rsp + 0xd0]
call fcn.140051294
cmp rax, rsi
jbe 0x14004e28f
mov rdx, rdi
lea rcx, [rsp + 0xd0]
call fcn.1400513e4
mov rsi, rax
mov rdx, rdi
lea rcx, [rsp + 0xd0]
call fcn.1400512bc
test rsi, rsi
je 0x14004e274
lea rdx, [rax + 1]
mov rcx, rsi
call fcn.14005ca00
test rax, rax
je 0x14004e274
mov rcx, rsi
call fcn.14005b1c0
mov r8, rax
mov rdx, rsi
lea rcx, [rsp + 0x120]
call fcn.14000362c
lea rdx, [rsp + 0x120]
lea rcx, [rsp + 0x98]
call fcn.14001a3a4
lea rcx, [0x1400778f0]
call fcn.14005b1c0
mov r8, rax
lea rdx, [0x1400778f0]
lea rcx, [rsp + 0x120]
call fcn.14000362c
inc rdi
lea rcx, [rsp + 0xd0]
call fcn.140051294
cmp rdi, rax
jb 0x14004e1e8
xor esi, esi
lea rcx, [rsp + 0xd0]
call fcn.140052ed8
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x120]
lea rcx, [rsp + 0x148]
call fcn.140002130
lea rcx, str..lnk
call fcn.14005b1c0
mov r8, rax
lea rdx, str..lnk
lea rcx, [rsp + 0x120]
call fcn.14000362c
lea r9, [rsp + 0x128]
cmp qword [rsp + 0x140], 8
cmovae r9, qword [rsp + 0x128]
lea r8, str.ShortCut_Folder___1_ls__n
lea rdx, str.CShortcut::DeleteShortcutW
mov ecx, 4
call fcn.140009480
lea rcx, [rsp + 0x128]
cmp qword [rsp + 0x140], 8
cmovae rcx, qword [rsp + 0x128]
lea rdx, [rsp + 0x170]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14004e359
lea r8, str._____Not_found._n
lea rdx, str.CShortcut::DeleteShortcutW
lea ecx, [rax + 5]
call fcn.140009480
jmp 0x14004e691
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0xf0], 7
mov qword [rsp + 0xe8], rsi
mov word [rsp + 0xd8], si
mov r12, qword [rsp + 0x40]
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x148]
lea rcx, [rsp + 0xd0]
call fcn.140002130
lea rcx, [rsp + 0x19c]
call fcn.14005b1c0
mov r8, rax
lea rdx, [rsp + 0x19c]
lea rcx, [rsp + 0xd0]
call fcn.14000362c
lea r9, [rsp + 0xd8]
cmp qword [rsp + 0xf0], 8
cmovae r9, qword [rsp + 0xd8]
lea r8, str.FindFilePath___1_ls__n
lea rdx, str.CShortcut::DeleteShortcutW
mov ecx, 4
call fcn.140009480
cmp r14, rsi
je 0x14004e43d
mov rdx, r12
mov rcx, r14
call fcn.14005ca00
cmp rax, rsi
je 0x14004e43d
mov rdx, r14
lea rcx, [rsp + 0x19c]
call fcn.14005c7d4
cmp eax, esi
je 0x14004e43d
lea r8, str.Specified_name_is_not_matched._n
lea rdx, str.CShortcut::DeleteShortcutW
mov ecx, 5
call fcn.140009480
jmp 0x14004e651
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
lea r11, [rsp + 0x38]
mov qword [rsp + 0x20], r11
lea r9, [0x140084fd0]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x140084ff0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, esi
jl 0x14004e621
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
lea r8, [rsp + 0x60]
lea rdx, [0x140084fe0]
call qword [rax]
cmp eax, esi
jl 0x14004e621
lea rdx, [rsp + 0xd8]
cmp qword [rsp + 0xf0], 8
cmovae rdx, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
xor r8d, r8d
call qword [rax + 0x28]
cmp eax, esi
jl 0x14004e621
lea r9, [rsp + 0x19c]
lea r8, str._1_ls__Loading._n
lea rdx, str.CShortcut::DeleteShortcutW
mov ecx, 4
call fcn.140009480
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov r8d, 0x105
lea rdx, [rsp + 0x3c0]
call qword [rax + 0x18]
lea r9, [rsp + 0x3c0]
lea r8, str.The_shell_link_object_is__1_ls_._n
lea rdx, str.CShortcut::DeleteShortcutW
mov ecx, 4
call fcn.140009480
cmp r13, rsi
je 0x14004e575
mov rdx, qword [rsp + 0x640]
mov rcx, r13
call fcn.14005ca00
cmp rax, rsi
je 0x14004e575
mov rdx, r13
lea rcx, [rsp + 0x3c0]
call fcn.14005c7d4
cmp eax, esi
jne 0x14004e621
lea r9, [rsp + 0x3c0]
lea r8, str.The_target___1_ls___is_matched._n
lea rdx, str.CShortcut::DeleteShortcutW
mov ecx, 4
call fcn.140009480
lea r9, [rsp + 0x3c0]
lea r8, str.szTargetPath____1_ls___n
lea rdx, str.CShortcut::DeleteShortcutW
mov ecx, 4
call fcn.140009480
cmp dword [rsp + 0x648], esi
je 0x14004e5d7
lea rcx, [rsp + 0x3c0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14004e5d7
lea r9, [rsp + 0x19c]
lea r8, str._1_ls__find_the_target_of_a_Shell_link._n
lea rdx, str.CShortcut::DeleteShortcutW
mov ecx, 4
call fcn.140009480
mov dword [rsp + 0x30], esi
jmp 0x14004e621
lea rcx, [rsp + 0xd8]
cmp qword [rsp + 0xf0], 8
cmovae rcx, qword [rsp + 0xd8]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, esi
je 0x14004e61d
lea r9, [rsp + 0x19c]
lea r8, str._1_ls__is_deleted._n
lea rdx, str.CShortcut::DeleteShortcutW
mov ecx, 4
call fcn.140009480
jmp 0x14004e621
mov dword [rsp + 0x30], esi
mov rcx, qword [rsp + 0x38]
cmp rcx, rsi
je 0x14004e636
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsp + 0x38], rsi
mov rcx, qword [rsp + 0x60]
cmp rcx, rsi
je 0x14004e64b
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsp + 0x60], rsi
call qword [sym.imp.ole32.dll_CoUninitialize]
lea rdx, [rsp + 0x170]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, esi
jne 0x14004e384
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
cmp qword [rsp + 0xf0], 8
mov r12, qword [rsp + 0x50]
jb 0x14004e691
mov rcx, qword [rsp + 0xd8]
call fcn.14005ab0c
cmp r12, rsi
jne 0x14004e6a0
call fcn.14005c2f8
mov r11, rsi
jmp 0x14004e6a4
mov r11, qword [r12]
cmp rbp, qword [r11 + 0x20]
jb 0x14004e6af
call fcn.14005c2f8
add rbp, 0x28
mov rdi, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
jmp 0x14004e102
mov rcx, qword [rsp + 0xb8]
mov rdi, rcx
mov rbx, qword [rsp + 0xb0]
cmp rbx, rcx
jbe 0x14004e6f5
call fcn.14005c2f8
mov rcx, qword [rsp + 0xb8]
mov rbx, qword [rsp + 0xb0]
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rdi
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x40], xmm0
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
xor ebp, ebp
cmp rbx, rcx
jbe 0x14004e728
call fcn.14005c2f8
cmp rsi, rbp
je 0x14004e737
cmp rsi, qword [rsp + 0x98]
je 0x14004e73c
call fcn.14005c2f8
cmp rdi, rbx
je 0x14004e844
lea rcx, [rsp + 0x40]
call fcn.14004cfc8
cmp qword [rax + 0x20], 8
jb 0x14004e75c
mov rcx, qword [rax + 8]
jmp 0x14004e760
lea rcx, [rax + 8]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14004e809
lea rcx, [rsp + 0x40]
call fcn.14004cfc8
cmp qword [rax + 0x20], 8
jb 0x14004e786
mov rcx, qword [rax + 8]
jmp 0x14004e78a
lea rcx, [rax + 8]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, ebp
je 0x14004e7c9
lea rcx, [rsp + 0x40]
call fcn.14004cfc8
cmp qword [rax + 0x20], 8
jb 0x14004e7ab
mov r9, qword [rax + 8]
jmp 0x14004e7af
lea r9, [rax + 8]
lea r8, str._1_ls__empty._removed._n
lea rdx, str.CShortcut::DeleteShortcutW
mov ecx, 4
call fcn.140009480
jmp 0x14004e809
lea rcx, [rsp + 0x40]
call fcn.14004cfc8
cmp qword [rax + 0x20], 8
jb 0x14004e7e0
mov rbx, qword [rax + 8]
jmp 0x14004e7e4
lea rbx, [rax + 8]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov r9, rbx
lea r8, str._1_ls__cannot_be_deleted.__0x_2_lx___n
lea rdx, str.CShortcut::DeleteShortcutW
mov ecx, 2
call fcn.140009480
cmp rsi, rbp
jne 0x14004e818
call fcn.14005c2f8
mov r11, rbp
jmp 0x14004e81b
mov r11, qword [rsi]
cmp rdi, qword [r11 + 0x18]
ja 0x14004e826
call fcn.14005c2f8
sub rdi, 0x28
mov qword [rsp + 0x48], rdi
mov rcx, qword [rsp + 0xb8]
mov rbx, qword [rsp + 0xb0]
jmp 0x14004e71e
lea r8, [0x1400829c0]
lea rdx, str.CShortcut::DeleteShortcutW
mov ecx, 5
call fcn.140009480
nop
lea rcx, [rsp + 0x98]
call fcn.140005204
mov rcx, qword [rsp + 0x98]
call fcn.14005ab0c
nop
lea rcx, [rsp + 0x68]
call fcn.140005204
mov rcx, qword [rsp + 0x68]
call fcn.14005ab0c
nop
cmp qword [rsp + 0x168], 8
jb 0x14004e8a5
mov rcx, qword [rsp + 0x150]
call fcn.14005ab0c
mov qword [rsp + 0x168], 7
mov qword [rsp + 0x160], rbp
mov word [rsp + 0x150], bp
cmp qword [rsp + 0x140], 8
jb 0x14004e8d9
mov rcx, qword [rsp + 0x128]
call fcn.14005ab0c
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x5d0]
xor rcx, rsp
call fcn.14005bad0
add rsp, 0x5e0
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret