Function at 0x1400238e0
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 [0x140189090]
xor rax, rsp
mov qword [rbp + 0x4f], rax
mov rdi, rcx
xor esi, esi
mov dword [rbp - 0x19], esi
cmp qword [rcx + 0x10], rsi
je 0x140023b40
cmp qword [rcx + 0x18], 8
jb 0x140023926
mov rcx, qword [rcx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x140023b1a
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140023942
mov rdx, qword [rdi]
mov qword [rbp + 0x2f], rsi
movdqa xmm0, xmmword [0x140166ab0]
movdqu xmmword [rbp + 0x3f], xmm0
mov word [rbp + 0x2f], si
mov rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp word [rdx + r8*2], si
jne 0x140023961
lea rcx, [rbp + 0x2f]
call fcn.140009050
nop
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140023982
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140023991
test al, 0x10
jne 0x1400239cb
lea rdx, [rbp - 0x11]
mov rcx, rdi
call fcn.140024a70
nop
lea rcx, [rbp + 0x2f]
cmp rcx, rax
je 0x1400239c2
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x1400239b5
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rbp + 0x2f]
call fcn.140009050
nop
lea rcx, [rbp - 0x11]
call fcn.140008fe0
lea rdx, [rbp + 0x2f]
lea rcx, [rbp - 0x11]
call fcn.140023700
nop
lea rcx, [rbp + 0x2f]
cmp rcx, rax
je 0x1400239fd
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x1400239f0
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rbp + 0x2f]
call fcn.140009050
nop
lea rcx, [rbp - 0x11]
call fcn.140008fe0
lea rcx, [rbp + 0x2f]
cmp qword [rbp + 0x47], 8
cmovae rcx, qword [rbp + 0x2f]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea rdx, [0x14015b7e0]
test rax, rax
cmovne rdx, rax
mov qword [rbp - 0x11], rsi
movdqa xmm0, xmmword [0x140166ab0]
movdqu xmmword [rbp - 1], xmm0
mov word [rbp - 0x11], si
nop dword [rax]
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x140023a40
mov r8, rbx
lea rcx, [rbp - 0x11]
call fcn.140009050
nop
mov qword [rbp + 0xf], rsi
movdqa xmm0, xmmword [0x140166ac0]
movdqu xmmword [rbp + 0x1f], xmm0
mov byte [rbp + 0xf], 0
mov dword [rbp - 0x19], 3
lea rdx, [rbp + 0xf]
lea rcx, [rbp - 0x11]
call fcn.14001b3f0
lea rdx, [rbp + 0xf]
cmp qword [rbp + 0x27], 0x10
cmovae rdx, qword [rbp + 0xf]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
mov r8, qword [rbp + 0x1f]
lea rcx, [rbp + 0x2f]
call fcn.1400234e0
movzx ebx, al
lea rcx, [rbp + 0xf]
call fcn.1400091f0
nop
lea rcx, [rbp - 0x11]
call fcn.140008fe0
test bl, bl
je 0x140023b0c
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 0x140023b0c
mov edx, 0x80
lea rcx, [rbp + 0x2f]
call fcn.140025da0
mov edx, dword [0x140189cc0]
lea rcx, [rbp + 0x2f]
call fcn.140025da0
lea rcx, [rbp + 0x2f]
cmp qword [rbp + 0x47], 8
cmovae rcx, qword [rbp + 0x2f]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
lea rcx, [rbp + 0x2f]
call fcn.140008fe0
movzx eax, bl
jmp 0x140023b42
lea rdx, [rbp - 0x11]
mov rcx, rdi
call fcn.140024a70
nop
mov rcx, rax
call fcn.1400238e0
movzx ebx, al
lea rcx, [rbp - 0x11]
call fcn.140008fe0
movzx eax, bl
jmp 0x140023b42
xor al, al
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.1400f89b0
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