Function at 0x140054f40
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x70
movzx r15d, dl
mov rbx, rcx
xor edi, edi
mov dword [rax + 8], edi
cmp qword [rcx + 0x18], 8
jb 0x140054f6e
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140054fa6
mov edx, 0x80
mov rcx, rbx
call fcn.140025da0
mov edx, dword [0x140189cc0]
mov rcx, rbx
call fcn.140025da0
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140054fa0
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
sete sil
je 0x1400550aa
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140054fc0
mov rcx, qword [rbx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x140054fd2
mov al, 1
jmp 0x1400552a5
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140054fdf
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140055051
test al, 0x10
je 0x140055051
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140054ffb
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, 1
sete dil
je 0x140055048
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x140055048
lea edx, [rax + 0x7b]
mov rcx, rbx
call fcn.140025da0
mov edx, dword [0x140189cc0]
mov rcx, rbx
call fcn.140025da0
cmp qword [rbx + 0x18], 8
jb 0x140055038
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, 1
sete dil
movzx eax, dil
jmp 0x1400552a5
mov edx, 0x1f01ff
mov rcx, rbx
call fcn.140025da0
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14005506b
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400550a3
mov edx, 0x80
mov rcx, rbx
call fcn.140025da0
mov edx, dword [0x140189cc0]
mov rcx, rbx
call fcn.140025da0
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14005509d
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
sete sil
test sil, sil
jne 0x1400552a1
xor ecx, ecx
call fcn.140027380
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001cc30]
mov rcx, rax
call fcn.140027650
cmp dword [rax + 0x40], 2
jl 0x140055178
xor ecx, ecx
call fcn.140027380
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001cc30]
mov rcx, rax
call fcn.140027650
mov rbp, rax
mov edx, 0xffffffff
lea rcx, [rsp + 0x50]
call fcn.14002bbe0
mov r14, rax
mov dword [rsp + 0x90], 1
cmp qword [rax + 0x18], 0x10
jb 0x140055137
mov r14, qword [rax]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.1400220d0
nop
mov edi, 3
mov dword [rsp + 0x90], edi
cmp qword [rax + 0x18], 0x10
jb 0x14005515b
mov rax, qword [rax]
mov qword [rsp + 0x20], r14
mov r9, rax
lea r8, str.Failed_to_delete_file:__s_r_n_s
mov edx, 2
mov rcx, rbp
call fcn.14001efa0
nop
test dil, 2
je 0x14005518c
and edi, 0xfffffffd
lea rcx, [rsp + 0x30]
call fcn.1400091f0
nop
test dil, 1
je 0x14005519f
and edi, 0xfffffffe
lea rcx, [rsp + 0x50]
call fcn.1400091f0
test r15b, r15b
je 0x1400552a1
mov rcx, rbx
call fcn.14005b230
movzx esi, al
test al, al
jne 0x1400552a1
xor ecx, ecx
call fcn.140027380
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001cc30]
mov rcx, rax
call fcn.140027650
cmp dword [rax + 0x40], 2
jl 0x14005527d
xor ecx, ecx
call fcn.140027380
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001cc30]
mov rcx, rax
call fcn.140027650
mov rbp, rax
mov edx, 0xffffffff
lea rcx, [rsp + 0x30]
call fcn.14002bbe0
mov r14, rax
or edi, 4
mov dword [rsp + 0x90], edi
cmp qword [rax + 0x18], 0x10
jb 0x14005523e
mov r14, qword [rax]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.1400220d0
nop
or edi, 8
mov dword [rsp + 0x90], edi
cmp qword [rax + 0x18], 0x10
jb 0x140055260
mov rax, qword [rax]
mov qword [rsp + 0x20], r14
mov r9, rax
lea r8, str.Failed_to_mark_file_as_duplicate:__s_r_n_s
mov edx, 2
mov rcx, rbp
call fcn.14001efa0
nop
test dil, 8
je 0x140055291
and edi, 0xfffffff7
lea rcx, [rsp + 0x50]
call fcn.1400091f0
nop
test dil, 4
je 0x1400552a1
lea rcx, [rsp + 0x30]
call fcn.1400091f0
movzx eax, sil
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret