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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x70
movzx r14d, dl
mov rbx, rcx
xor edi, edi
mov dword [rax + 0x18], edi
call fcn.140025e70
movzx ebp, al
test al, al
jne 0x140054a26
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400547a1
mov rcx, qword [rbx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x1400547b3
mov al, 1
jmp 0x140054a2a
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400547c0
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140054838
test al, 0x10
je 0x140054838
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400547dc
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, 1
sete dil
je 0x14005482f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x14005482f
xor r8d, r8d
lea edx, [rax + 0x7b]
mov rcx, rbx
call fcn.140025970
xor r8d, r8d
mov edx, dword [0x14018acc0]
mov rcx, rbx
call fcn.140025970
cmp qword [rbx + 0x18], 8
jb 0x14005481f
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, 1
sete dil
movzx eax, dil
jmp 0x140054a2a
xor ecx, ecx
call fcn.140027000
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001c7c0]
mov rcx, rax
call fcn.1400272d0
cmp dword [rax + 0x40], 2
jl 0x1400548fd
xor ecx, ecx
call fcn.140027000
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001c7c0]
mov rcx, rax
call fcn.1400272d0
mov r15, rax
mov edx, 0xffffffff
lea rcx, [rsp + 0x50]
call fcn.14002b860
mov rsi, rax
mov dword [rsp + 0xa0], 1
cmp qword [rax + 0x18], 0x10
jb 0x1400548bc
mov rsi, qword [rax]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.1400219c0
nop
mov edi, 3
mov dword [rsp + 0xa0], edi
cmp qword [rax + 0x18], 0x10
jb 0x1400548e0
mov rax, qword [rax]
mov qword [rsp + 0x20], rsi
mov r9, rax
lea r8, str.Failed_to_delete_file:__s_r_n_s
mov edx, 2
mov rcx, r15
call fcn.14001e890
nop
test dil, 2
je 0x140054911
and edi, 0xfffffffd
lea rcx, [rsp + 0x30]
call fcn.140009080
nop
test dil, 1
je 0x140054924
and edi, 0xfffffffe
lea rcx, [rsp + 0x50]
call fcn.140009080
test r14b, r14b
je 0x140054a26
mov rcx, rbx
call fcn.14005abd0
movzx ebp, al
test al, al
jne 0x140054a26
xor ecx, ecx
call fcn.140027000
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001c7c0]
mov rcx, rax
call fcn.1400272d0
cmp dword [rax + 0x40], 2
jl 0x140054a02
xor ecx, ecx
call fcn.140027000
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001c7c0]
mov rcx, rax
call fcn.1400272d0
mov r14, rax
mov edx, 0xffffffff
lea rcx, [rsp + 0x30]
call fcn.14002b860
mov rsi, rax
or edi, 4
mov dword [rsp + 0xa0], edi
cmp qword [rax + 0x18], 0x10
jb 0x1400549c3
mov rsi, qword [rax]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.1400219c0
nop
or edi, 8
mov dword [rsp + 0xa0], edi
cmp qword [rax + 0x18], 0x10
jb 0x1400549e5
mov rax, qword [rax]
mov qword [rsp + 0x20], rsi
mov r9, rax
lea r8, str.Failed_to_mark_file_as_duplicate:__s_r_n_s
mov edx, 2
mov rcx, r14
call fcn.14001e890
nop
test dil, 8
je 0x140054a16
and edi, 0xfffffff7
lea rcx, [rsp + 0x50]
call fcn.140009080
nop
test dil, 4
je 0x140054a26
lea rcx, [rsp + 0x30]
call fcn.140009080
movzx eax, bpl
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret