Function at 0x14005b230
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0x100
mov rax, qword [0x140189090]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov rdi, rcx
xor r14d, r14d
mov ebx, r14d
mov dword [rbp - 0x69], ebx
cmp qword [rcx + 0x18], 8
jb 0x14005b274
mov rcx, qword [rcx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov r15d, 5
cmp eax, 1
jne 0x14005b368
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14005b296
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14005b2a9
test al, 0x10
jne 0x14005b368
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14005b2b6
mov rcx, qword [rdi]
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
lea rdx, [0x14015b7e0]
test rax, rax
cmovne rdx, rax
mov qword [rsp + 0x30], r14
movdqa xmm0, xmmword [0x140166ab0]
movdqu xmmword [rbp - 0x79], xmm0
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], bx
jne 0x14005b2e3
lea rcx, [rsp + 0x30]
call fcn.140009050
mov ebx, r15d
lea r9, [rsp + 0x30]
cmp qword [rbp - 0x71], 8
cmovae r9, qword [rsp + 0x30]
mov r10, qword [rbp - 0x79]
mov rcx, r10
cmp r10, rbx
cmova rcx, r15
lea rax, str..done
test rcx, rcx
je 0x14005b35e
movzx edx, word [r9]
mov r8d, 0x2e
cmp dx, r8w
jb 0x14005b363
sub r9, rax
cmp dx, r8w
ja 0x14005b363
cmp rcx, 1
je 0x14005b35e
dec rcx
add rax, 2
movzx edx, word [rax + r9]
movzx r8d, word [rax]
cmp dx, r8w
jae 0x14005b33b
xor sil, sil
jmp 0x14005b36b
cmp r10, rbx
je 0x14005b368
xor sil, sil
jmp 0x14005b36b
mov sil, 1
test bl, 1
je 0x14005b37d
and ebx, 0xfffffffe
lea rcx, [rsp + 0x30]
call fcn.140008fe0
test sil, sil
je 0x14005b389
xor al, al
jmp 0x14005b53b
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], r15d
jl 0x14005b415
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 rsi, rax
lea rdx, [rbp - 0x41]
mov rcx, rdi
call fcn.1400220d0
nop
or ebx, 2
mov dword [rbp - 0x69], ebx
cmp qword [rax + 0x18], 0x10
jb 0x14005b3ff
mov rax, qword [rax]
mov r9, rax
lea r8, str.DuplicateHandler:_MarkAsProcessed_for__s
mov edx, r15d
mov rcx, rsi
call fcn.14001efa0
nop
test bl, 2
je 0x14005b423
lea rcx, [rbp - 0x41]
call fcn.1400091f0
lea rdx, [rbp - 1]
mov rcx, rdi
call fcn.140024a70
mov rbx, rax
mov qword [rbp - 0x61], r14
movdqa xmm0, xmmword [0x140166ab0]
movdqu xmmword [rbp - 0x51], xmm0
mov word [rbp - 0x61], r14w
mov qword [rbp + 0x1f], r14
movdqa xmm0, xmmword [0x140166ac0]
movdqu xmmword [rbp + 0x2f], xmm0
mov byte [rbp + 0x1f], 0
mov r8d, 4
lea rdx, str.Done
lea rcx, [rbp + 0x1f]
call fcn.140009250
nop
lea rdx, [rbp - 0x61]
lea rcx, [rbp + 0x1f]
call fcn.14001b5c0
nop
lea rcx, [rbp + 0x1f]
call fcn.1400091f0
nop
lea r8, [rbp - 0x61]
lea rdx, [rbp - 0x21]
mov rcx, rbx
call fcn.140024c30
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rbp - 0x41]
call fcn.14005b570
nop
lea rcx, [rbp - 0x21]
call fcn.140008fe0
nop
lea rcx, [rbp - 0x61]
call fcn.140008fe0
nop
lea rcx, [rbp - 1]
call fcn.140008fe0
nop
mov qword [rsp + 0x30], r14
movdqa xmm0, xmmword [0x140166ac0]
movdqu xmmword [rbp - 0x79], xmm0
mov byte [rsp + 0x30], 0
xor r8d, r8d
lea rdx, [0x1401578ef]
lea rcx, [rsp + 0x30]
call fcn.140009250
nop
lea rdx, [rsp + 0x30]
cmp qword [rbp - 0x71], 0x10
cmovae rdx, qword [rsp + 0x30]
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
xor r9d, r9d
mov r8, qword [rbp - 0x79]
lea rcx, [rbp - 0x41]
call fcn.1400234e0
movzx ebx, al
lea rcx, [rsp + 0x30]
call fcn.1400091f0
nop
lea rcx, [rbp - 0x41]
call fcn.140008fe0
movzx eax, bl
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.1400f89b0
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret