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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x60
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rdi, rcx
add rcx, 0x18
call fcn.10001c984
mov r13, rax
xor r12d, r12d
mov qword [rsp + 0xb0], r12
and dword [rsp + 0xa0], r12d
and qword [rsp + 0xa8], r12
lea r15, [0x1001653b8]
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x10002d006
test byte [rcx + 0x1c], 1
je 0x10002d006
cmp byte [rcx + 0x19], 4
jb 0x10002d006
mov edx, 0x16d
lea r8, [0x100003cc8]
mov rcx, qword [rcx + 0x10]
call fcn.10001c854
lea rbp, [0x100004680]
cmp qword [rdi + 0x190], r12
jne 0x10002d02a
lea r8, [0x100004b28]
mov edx, 0x1ff3
mov rcx, rbp
call fcn.10009a050
mov rax, qword [r13]
mov rdx, qword [rdi + 0x190]
mov rcx, r13
call qword [rax + 0xc0]
mov ebx, eax
test eax, eax
js 0x10002d392
test byte [rdi + 0x150], 1
jne 0x10002d271
mov rax, qword [r13]
xor r8d, r8d
cmp dword [rdi + 0x14c], 4
setne r8b
mov rdx, qword [rdi + 0x248]
mov rcx, r13
call qword [rax + 0xd0]
mov ebx, eax
test eax, eax
jns 0x10002d0c5
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x10002d399
test byte [rcx + 0x1c], 1
je 0x10002d399
cmp byte [rcx + 0x19], 2
jb 0x10002d399
mov edx, 0x16e
mov r9d, eax
lea r8, [0x100003cc8]
mov rcx, qword [rcx + 0x10]
call fcn.10001c878
mov rcx, qword [0x1001653b8]
jmp 0x10002d399
cmp qword [rdi + 0x1d8], r12
jne 0x10002d0e2
lea r8, [0x100004ae0]
mov edx, 0x200c
mov rcx, rbp
call fcn.10009a050
lea rdx, [rdi + 0x130]
lea r9, [rsp + 0xb0]
xor r8d, r8d
mov rcx, qword [rdi + 0x1d8]
call fcn.100122d58
mov ebx, eax
test eax, eax
js 0x10002d25d
mov r12, qword [rsp + 0xb0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10002d17a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, 2
je 0x10002d17a
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x10002d167
test byte [rcx + 0x1c], 1
je 0x10002d167
cmp byte [rcx + 0x19], 2
jb 0x10002d167
mov edx, 0x16f
mov dword [rsp + 0x20], eax
mov r9, r12
lea r8, [0x100003cc8]
mov rcx, qword [rcx + 0x10]
call fcn.10001ddb0
mov rcx, qword [0x1001653b8]
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
jmp 0x10002d37b
test byte [rdi + 0x150], 0x80
je 0x10002d271
cmp byte [rdi + 0x11c], 0
je 0x10002d271
lea rcx, [rdi + 0x2d8]
mov rdx, r12
call fcn.10001fdf0
test al, al
jne 0x10002d1bb
lea r8, [0x100004bf8]
mov edx, 0x2023
mov rcx, rbp
call fcn.10009a050
mov ecx, 0x20
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov rsi, rax
mov qword [rsp + 0xb0], rax
test rax, rax
je 0x10002d1ef
lea rax, [0x100005c38]
mov qword [rsi], rax
mov byte [rsi + 8], 1
and qword [rsi + 0x18], 0
and qword [rsi + 0x10], 0
jmp 0x10002d1f1
xor esi, esi
mov rdx, qword [rdi + 0x248]
mov rcx, rsi
call fcn.10001f9c8
mov ebx, eax
test eax, eax
js 0x10002d251
mov rbp, qword [rdi + 0x310]
cmp rbp, qword [rdi + 0x318]
jb 0x10002d235
lea rdx, [rbp + 1]
lea rcx, [rdi + 0x308]
call fcn.10006a9e0
test al, al
jne 0x10002d235
mov ecx, 0x8007000e
call fcn.1000196c8
int3
mov rax, qword [rdi + 0x308]
lea rcx, [rax + rbp*8]
test rcx, rcx
je 0x10002d248
mov qword [rcx], rsi
inc qword [rdi + 0x310]
jmp 0x10002d271
mov rcx, qword [0x1001653b8]
jmp 0x10002d37b
mov r12, qword [rsp + 0xb0]
mov rcx, qword [0x1001653b8]
jmp 0x10002d37b
movdqu xmm0, xmmword [0x10000f0f8]
movdqu xmmword [rsp + 0x50], xmm0
mov rcx, qword [rdi + 0x50]
mov rax, qword [rcx]
lea rdx, [rsp + 0xa8]
mov qword [rsp + 0x38], rdx
lea rdx, [rsp + 0xa0]
mov qword [rsp + 0x30], rdx
mov byte [rsp + 0x28], 0
or qword [rsp + 0x20], 0xffffffffffffffff
xor r9d, r9d
lea r8, [rsp + 0x50]
mov rdx, r13
call qword [rax + 0xb0]
mov ebx, eax
test eax, eax
jns 0x10002d307
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x10002d37b
test byte [rcx + 0x1c], 1
je 0x10002d37b
cmp byte [rcx + 0x19], 2
jb 0x10002d37b
mov edx, 0x170
mov r9d, eax
lea r8, [0x100003cc8]
mov rcx, qword [rcx + 0x10]
call fcn.10001c878
mov rcx, qword [0x1001653b8]
jmp 0x10002d37b
lea r8, [rdi + 0x28]
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0xa0]
mov rdx, qword [rdi + 0x330]
mov rcx, qword [rdi + 0x158]
call fcn.100088a04
mov ebx, eax
test eax, eax
jns 0x10002d374
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x10002d370
test byte [rcx + 0x1c], 1
je 0x10002d370
cmp byte [rcx + 0x19], 3
jb 0x10002d370
mov edx, 0x171
mov r9d, eax
lea r8, [0x100003cc8]
mov rcx, qword [rcx + 0x10]
call fcn.10001c878
mov rcx, qword [0x1001653b8]
xor ebx, ebx
jmp 0x10002d37b
mov rcx, qword [0x1001653b8]
test r12, r12
je 0x10002d399
mov rcx, r12
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1001653b8]
jmp 0x10002d399
mov rcx, qword [0x1001653b8]
cmp qword [rsp + 0xa8], 0
je 0x10002d3c0
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0xa8]
call fcn.100144f30
mov rcx, qword [0x1001653b8]
test ebx, ebx
jns 0x10002d3f4
cmp rcx, r15
je 0x10002d41a
test byte [rcx + 0x1c], 1
je 0x10002d3f4
cmp byte [rcx + 0x19], 2
jb 0x10002d3f4
mov edx, 0x172
mov r9d, ebx
lea r8, [0x100003cc8]
mov rcx, qword [rcx + 0x10]
call fcn.10001c878
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x10002d41a
test byte [rcx + 0x1c], 1
je 0x10002d41a
cmp byte [rcx + 0x19], 4
jb 0x10002d41a
mov edx, 0x173
lea r8, [0x100003cc8]
mov rcx, qword [rcx + 0x10]
call fcn.10001c854
mov eax, ebx
add rsp, 0x60
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret