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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov rax, qword [0x14018a090]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rdi, rdx
mov rsi, rcx
xor ebx, ebx
mov dword [rbp - 0x39], ebx
call fcn.14005a850
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14005a583
mov rcx, qword [rdi]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x14005a78b
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14005a59f
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14005a78b
test al, 0x10
je 0x14005a78b
mov qword [rbp + 0xf], rbx
movdqa xmm0, xmmword [0x140167e40]
movdqu xmmword [rbp + 0x1f], xmm0
mov word [rbp + 0xf], bx
mov qword [rbp - 0x11], rbx
movdqa xmm0, xmmword [0x140167e50]
movdqu xmmword [rbp - 1], xmm0
mov byte [rbp - 0x11], 0
mov r8d, 4
lea rdx, str.Done
lea rcx, [rbp - 0x11]
call fcn.1400090e0
nop
lea rdx, [rbp + 0xf]
lea rcx, [rbp - 0x11]
call fcn.14001b490
nop
lea rcx, [rbp - 0x11]
call fcn.140009080
nop
lea r8, [rbp + 0xf]
lea rdx, [rbp - 0x31]
mov rcx, rdi
call fcn.140024500
nop
lea rcx, [rbp + 0xf]
call fcn.140008e70
lea rcx, [rbp - 0x31]
cmp qword [rbp - 0x19], 8
cmovae rcx, qword [rbp - 0x31]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x14005a782
lea rcx, [rbp - 0x31]
cmp qword [rbp - 0x19], 8
cmovae rcx, qword [rbp - 0x31]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14005a732
test al, 0x10
je 0x14005a732
lea r14, [rsi + 0x30]
lea rax, [rbp - 0x31]
cmp r14, rax
je 0x14005a692
lea rdx, [rbp - 0x31]
cmp qword [rbp - 0x19], 8
cmovae rdx, qword [rbp - 0x31]
mov r8, qword [rbp - 0x21]
mov rcx, r14
call fcn.140008ee0
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], 5
jl 0x14005a722
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
lea rdx, [rbp - 0x11]
mov rcx, r14
call fcn.1400219c0
nop
mov ebx, 1
mov dword [rbp - 0x39], ebx
cmp qword [rax + 0x18], 0x10
jb 0x14005a70a
mov rax, qword [rax]
mov r9, rax
lea r8, str.DuplicateHandler:_StartFolder_found__s
mov edx, 5
mov rcx, r15
call fcn.14001e890
nop
test bl, 1
je 0x14005a782
lea rcx, [rbp - 0x11]
call fcn.140009080
jmp 0x14005a782
lea rcx, [rbp - 0x31]
cmp qword [rbp - 0x19], 8
cmovae rcx, qword [rbp - 0x31]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14005a782
xor r8d, r8d
mov edx, 0x80
lea rcx, [rbp - 0x31]
call fcn.140025970
xor r8d, r8d
mov edx, dword [0x14018acc0]
lea rcx, [rbp - 0x31]
call fcn.140025970
lea rcx, [rbp - 0x31]
cmp qword [rbp - 0x19], 8
cmovae rcx, qword [rbp - 0x31]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
lea rcx, [rbp - 0x31]
call fcn.140008e70
mov rcx, rdi
call fcn.14004ffe0
test al, al
jne 0x14005a7a1
cmp qword [rsi + 0x40], 0
setne al
jmp 0x14005a81f
mov rcx, rsi
call fcn.14005c520
mov rbx, qword [rsi + 0x60]
mov r14, qword [rsi + 0x68]
cmp rbx, r14
je 0x14005a80b
nop word [rax + rax]
mov rdx, rbx
lea rcx, [rbp + 0xf]
call fcn.140007be0
nop
lea r8, [rbp + 0xf]
mov rdx, rdi
lea rcx, [rbp - 0x11]
call fcn.14005c3b0
nop
mov r8, rax
lea rdx, [rbp - 0x31]
lea rcx, [rsi + 0x50]
call fcn.14005c940
nop
lea rcx, [rbp - 0x11]
call fcn.140008e70
nop
lea rcx, [rbp + 0xf]
call fcn.140009080
add rbx, 0x20
cmp rbx, r14
jne 0x14005a7c0
cmp qword [rsi + 0x58], 0
jne 0x14005a81d
cmp qword [rsi + 0x40], 0
jne 0x14005a81d
xor al, al
jmp 0x14005a81f
mov al, 1
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1400f9560
mov rbx, qword [rsp + 0xe0]
add rsp, 0xa0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret