Function at 0x14009297c
Capabilities:
Check if file exists
Delete file

Disassembly:
mov rax, rsp
mov dword [rax + 0x10], edx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x130
mov qword [rax - 0xb8], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x140100070]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov r13d, edx
mov rbx, rcx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
and qword [rsp + 0x50], 0
xor esi, esi
mov qword [rsp + 0x78], rsi
cmp qword [rcx + 0x18], 8
jb 0x1400929dd
mov rcx, qword [rcx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x140092c59
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400929f9
mov rcx, qword [rbx]
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x140092c59
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
and qword [rsp + 0x68], rsi
mov r8b, 1
lea rdx, [rsp + 0x58]
mov rcx, rbx
call fcn.14007e160
xor edi, edi
mov qword [rsp + 0x38], rdi
mov r15, qword [rsp + 0x60]
mov rax, qword [rsp + 0x58]
sub r15, rax
sar r15, 5
mov qword [rsp + 0x88], r15
mov r12d, 0x1000
cmp rdi, r15
jae 0x140092c0b
mov rdx, rdi
shl rdx, 5
add rdx, rax
lea rcx, [rsp + 0xd0]
call fcn.14007efb0
nop
lea rcx, [0x1400e0de0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
lea rcx, [rsp + 0xd0]
mov rbx, qword [rsp + 0xd0]
mov r14, qword [rsp + 0xe8]
cmp r14, 8
cmovae rcx, rbx
mov qword [rsp + 0x20], rax
lea r9, [0x1400e0de0]
mov rdx, qword [rsp + 0xe0]
call fcn.140081134
cmp rax, 0xffffffffffffffff
je 0x140092b9a
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0xd0]
call fcn.14007d628
lea r8, [rsp + 0xa8]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0xd0]
call fcn.14007d79c
add rsi, qword [rsp + 0x70]
mov qword [rsp + 0x78], rsi
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0xb0]
call fcn.14007efb0
mov r9, qword [rsp + 0x70]
mov r8, qword [rsp + 0x80]
mov rdx, rax
lea rcx, [rsp + 0xf0]
call fcn.14008b188
nop
mov r9, rax
mov r8, qword [rsp + 0x40]
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0x40]
call fcn.140093c84
nop
mov rdx, qword [rsp + 0x108]
cmp rdx, 8
jb 0x140092b8a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xf0]
mov rax, rcx
cmp rdx, r12
jb 0x140092b85
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140092b85
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a9870
mov rbx, qword [rsp + 0xd0]
mov r14, qword [rsp + 0xe8]
inc rdi
mov qword [rsp + 0x38], rdi
cmp r14, 8
jb 0x140092bdd
lea rdx, [r14*2 + 2]
mov rax, rbx
cmp rdx, r12
jb 0x140092bd4
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140092bd4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.1400a9870
nop
mov rax, qword [rsp + 0x58]
jmp 0x140092a4b
test rax, rax
je 0x140092c5f
mov r8, qword [rsp + 0x60]
mov rdx, rax
call fcn.140081524
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x58]
sub rdx, rcx
and rdx, 0xffffffffffffffe0
mov rax, rcx
cmp rdx, r12
jb 0x140092c52
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140092c52
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a9870
jmp 0x140092c5f
mov r12d, 0x1000
mov rdi, qword [rsp + 0x48]
mov rcx, rdi
mov rbx, qword [rsp + 0x40]
sub rcx, rbx
movabs r15, 0x2aaaaaaaaaaaaaab
mov rax, r15
imul rcx
sar rdx, 3
mov r8, rdx
shr r8, 0x3f
add r8, rdx
mov r9b, byte [rsp + 0x30]
mov rdx, rdi
mov rcx, rbx
call fcn.140094a24
shl r13d, 0x14
mov r14d, r13d
cmp rsi, r14
jbe 0x140092d93
mov rcx, rdi
sub rcx, rbx
mov rax, r15
imul rcx
sar rdx, 3
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x140092d93
mov rdx, rbx
lea rcx, [rsp + 0xd0]
call fcn.14007efb0
nop
lea rcx, [rsp + 0xd0]
cmp qword [rsp + 0xe8], 8
cmovae rcx, qword [rsp + 0xd0]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x140092d24
lea rcx, [rsp + 0xd0]
cmp qword [rsp + 0xe8], 8
cmovae rcx, qword [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
mov rdx, qword [rsp + 0xe8]
cmp rdx, 8
jb 0x140092d64
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xd0]
mov rax, rcx
cmp rdx, r12
jb 0x140092d5f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140092d8c
call fcn.1400a9870
sub rsi, qword [rbx + 0x28]
mov r8, rbx
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x40]
call fcn.140093bac
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
jmp 0x140092ca4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
test rbx, rbx
je 0x140092df8
mov r8, rdi
mov rdx, rbx
call fcn.140093ff4
mov rcx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x40]
sub rcx, r8
mov rax, r15
imul rcx
sar rdx, 3
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*2]
shl rdx, 4
mov rax, r8
cmp rdx, r12
jb 0x140092df0
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140092df0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r8
call fcn.1400a9870
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.1400a95a0
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret