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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xa0
mov rax, qword [0x140074020]
xor rax, rsp
mov qword [rbp + 0x4f], rax
mov rbx, rcx
xor esi, esi
mov dword [rbp + 7], esi
xor dil, dil
cmp qword [rcx + 0x10], rsi
je 0x140016e91
cmp qword [rcx + 0x18], 8
jb 0x140016b39
mov rcx, qword [rcx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x140016e3d
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140016b55
mov rdx, qword [rbx]
mov qword [rbp + 0x2f], rsi
mov qword [rbp + 0x3f], rsi
mov qword [rbp + 0x47], 7
mov word [rbp + 0x2f], si
mov rdi, 0xffffffffffffffff
mov r8, rdi
inc r8
cmp word [rdx + r8*2], si
jne 0x140016b73
lea rcx, [rbp + 0x2f]
call fcn.140001c40
nop
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140016b94
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140016ba3
test al, 0x10
jne 0x140016c14
lea rdx, [rbp - 0x19]
mov rcx, rbx
call fcn.14001a200
nop
lea rcx, [rbp + 0x2f]
cmp rcx, rax
je 0x140016bd4
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x140016bc7
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rbp + 0x2f]
call fcn.140001c40
nop
mov rdx, qword [rbp - 1]
cmp rdx, 8
jb 0x140016c14
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140016c0f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140016ec6
call fcn.14002f77c
lea rdx, [rbp + 0x2f]
lea rcx, [rbp - 0x19]
call fcn.140016830
nop
lea rcx, [rbp + 0x2f]
cmp rcx, rax
je 0x140016c46
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x140016c39
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rbp + 0x2f]
call fcn.140001c40
nop
mov rdx, qword [rbp - 1]
cmp rdx, 8
jb 0x140016c86
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140016c81
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140016ecc
call fcn.14002f77c
lea rcx, [rbp + 0x2f]
cmp qword [rbp + 0x47], 8
cmovae rcx, qword [rbp + 0x2f]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea rdx, [0x1400683c8]
test rax, rax
cmovne rdx, rax
mov qword [rbp - 0x19], rsi
mov qword [rbp - 9], rsi
mov qword [rbp - 1], 7
mov word [rbp - 0x19], si
nop dword [rax]
inc rdi
cmp word [rdx + rdi*2], 0
jne 0x140016cc0
mov r8, rdi
lea rcx, [rbp - 0x19]
call fcn.140001c40
nop
mov qword [rbp + 0xf], rsi
mov qword [rbp + 0x1f], rsi
mov qword [rbp + 0x27], 0xf
mov byte [rbp + 0xf], 0
mov dword [rbp + 7], 3
lea rdx, [rbp + 0xf]
lea rcx, [rbp - 0x19]
call fcn.14000ff90
lea rdx, [rbp + 0xf]
cmp qword [rbp + 0x27], 0x10
cmovae rdx, qword [rbp + 0xf]
mov qword [rsp + 0x28], rsi
mov r8, qword [rbp + 0x1f]
lea rcx, [rbp + 0x2f]
call fcn.140016610
movzx edi, al
mov rdx, qword [rbp + 0x27]
cmp rdx, 0x10
jb 0x140016d5d
inc rdx
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140016d58
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140016ed2
call fcn.14002f77c
mov qword [rbp + 0x1f], rsi
mov qword [rbp + 0x27], 0xf
mov byte [rbp + 0xf], 0
mov rdx, qword [rbp - 1]
cmp rdx, 8
jb 0x140016dad
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140016da8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140016ed8
call fcn.14002f77c
test dil, dil
je 0x140016dfc
lea rcx, [rbp + 0x2f]
cmp qword [rbp + 0x47], 8
cmovae rcx, qword [rbp + 0x2f]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140016dfc
mov edx, 0x80
lea rcx, [rbp + 0x2f]
call fcn.14001bb30
mov edx, dword [0x140074c38]
lea rcx, [rbp + 0x2f]
call fcn.14001bb30
lea rcx, [rbp + 0x2f]
cmp qword [rbp + 0x47], 8
cmovae rcx, qword [rbp + 0x2f]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
mov rdx, qword [rbp + 0x47]
cmp rdx, 8
jb 0x140016e91
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x2f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140016e8c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140016ec0
jmp 0x140016e8c
lea rdx, [rbp - 0x19]
mov rcx, rbx
call fcn.14001a200
nop
mov rcx, rax
call fcn.140016af0
movzx edi, al
mov rdx, qword [rbp - 1]
cmp rdx, 8
jb 0x140016e91
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140016e8c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140016eba
call fcn.14002f77c
movzx eax, dil
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.14002f4c0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.140035b04
int3
call fcn.140035b04
nop
call fcn.140035b04
nop
call fcn.140035b04
nop
call fcn.140035b04
nop
call fcn.140035b04
int3