Function at 0x10002cf04
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.10001c8e8
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 0x10002cf7a
test byte [rcx + 0x1c], 1
je 0x10002cf7a
cmp byte [rcx + 0x19], 4
jb 0x10002cf7a
mov edx, 0x16d
lea r8, [0x100003d08]
mov rcx, qword [rcx + 0x10]
call fcn.10001c7b8
lea rbp, [0x1000046e0]
cmp qword [rdi + 0x190], r12
jne 0x10002cf9e
lea r8, [0x100004b88]
mov edx, 0x1ff3
mov rcx, rbp
call fcn.100099ad8
mov rax, qword [r13]
mov rdx, qword [rdi + 0x190]
mov rcx, r13
call qword [rax + 0xc0]
mov ebx, eax
test eax, eax
js 0x10002d306
test byte [rdi + 0x150], 1
jne 0x10002d1e5
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 0x10002d039
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x10002d30d
test byte [rcx + 0x1c], 1
je 0x10002d30d
cmp byte [rcx + 0x19], 2
jb 0x10002d30d
mov edx, 0x16e
mov r9d, eax
lea r8, [0x100003d08]
mov rcx, qword [rcx + 0x10]
call fcn.10001c7dc
mov rcx, qword [0x1001653b8]
jmp 0x10002d30d
cmp qword [rdi + 0x1d8], r12
jne 0x10002d056
lea r8, [0x100004b40]
mov edx, 0x200c
mov rcx, rbp
call fcn.100099ad8
lea rdx, [rdi + 0x130]
lea r9, [rsp + 0xb0]
xor r8d, r8d
mov rcx, qword [rdi + 0x1d8]
call fcn.100122cb4
mov ebx, eax
test eax, eax
js 0x10002d1d1
mov r12, qword [rsp + 0xb0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10002d0ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, 2
je 0x10002d0ee
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x10002d0db
test byte [rcx + 0x1c], 1
je 0x10002d0db
cmp byte [rcx + 0x19], 2
jb 0x10002d0db
mov edx, 0x16f
mov dword [rsp + 0x20], eax
mov r9, r12
lea r8, [0x100003d08]
mov rcx, qword [rcx + 0x10]
call fcn.10001daa4
mov rcx, qword [0x1001653b8]
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
jmp 0x10002d2ef
test byte [rdi + 0x150], 0x80
je 0x10002d1e5
cmp byte [rdi + 0x11c], 0
je 0x10002d1e5
lea rcx, [rdi + 0x2d8]
mov rdx, r12
call fcn.10001fd64
test al, al
jne 0x10002d12f
lea r8, [0x100004c58]
mov edx, 0x2023
mov rcx, rbp
call fcn.100099ad8
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 0x10002d163
lea rax, [0x100005ca8]
mov qword [rsi], rax
mov byte [rsi + 8], 1
and qword [rsi + 0x18], 0
and qword [rsi + 0x10], 0
jmp 0x10002d165
xor esi, esi
mov rdx, qword [rdi + 0x248]
mov rcx, rsi
call fcn.10001f93c
mov ebx, eax
test eax, eax
js 0x10002d1c5
mov rbp, qword [rdi + 0x310]
cmp rbp, qword [rdi + 0x318]
jb 0x10002d1a9
lea rdx, [rbp + 1]
lea rcx, [rdi + 0x308]
call fcn.100043a28
test al, al
jne 0x10002d1a9
mov ecx, 0x8007000e
call fcn.100019658
int3
mov rax, qword [rdi + 0x308]
lea rcx, [rax + rbp*8]
test rcx, rcx
je 0x10002d1bc
mov qword [rcx], rsi
inc qword [rdi + 0x310]
jmp 0x10002d1e5
mov rcx, qword [0x1001653b8]
jmp 0x10002d2ef
mov r12, qword [rsp + 0xb0]
mov rcx, qword [0x1001653b8]
jmp 0x10002d2ef
movdqu xmm0, xmmword [0x100001fe0]
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 0x10002d27b
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x10002d2ef
test byte [rcx + 0x1c], 1
je 0x10002d2ef
cmp byte [rcx + 0x19], 2
jb 0x10002d2ef
mov edx, 0x170
mov r9d, eax
lea r8, [0x100003d08]
mov rcx, qword [rcx + 0x10]
call fcn.10001c7dc
mov rcx, qword [0x1001653b8]
jmp 0x10002d2ef
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.10008848c
mov ebx, eax
test eax, eax
jns 0x10002d2e8
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x10002d2e4
test byte [rcx + 0x1c], 1
je 0x10002d2e4
cmp byte [rcx + 0x19], 3
jb 0x10002d2e4
mov edx, 0x171
mov r9d, eax
lea r8, [0x100003d08]
mov rcx, qword [rcx + 0x10]
call fcn.10001c7dc
mov rcx, qword [0x1001653b8]
xor ebx, ebx
jmp 0x10002d2ef
mov rcx, qword [0x1001653b8]
test r12, r12
je 0x10002d30d
mov rcx, r12
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1001653b8]
jmp 0x10002d30d
mov rcx, qword [0x1001653b8]
cmp qword [rsp + 0xa8], 0
je 0x10002d334
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0xa8]
call fcn.100144ce4
mov rcx, qword [0x1001653b8]
test ebx, ebx
jns 0x10002d368
cmp rcx, r15
je 0x10002d38e
test byte [rcx + 0x1c], 1
je 0x10002d368
cmp byte [rcx + 0x19], 2
jb 0x10002d368
mov edx, 0x172
mov r9d, ebx
lea r8, [0x100003d08]
mov rcx, qword [rcx + 0x10]
call fcn.10001c7dc
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x10002d38e
test byte [rcx + 0x1c], 1
je 0x10002d38e
cmp byte [rcx + 0x19], 4
jb 0x10002d38e
mov edx, 0x173
lea r8, [0x100003d08]
mov rcx, qword [rcx + 0x10]
call fcn.10001c7b8
mov eax, ebx
add rsp, 0x60
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret