Function at 0x14002ca10
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140300040]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rcx
mov qword [rbp - 0x28], rcx
xor r15d, r15d
mov dword [rbp - 0x40], r15d
mov edx, 0x120116
mov rcx, qword [rcx]
call fcn.14002c880
mov r14d, eax
lea rbx, [r15 - 1]
test eax, eax
jne 0x14002cc81
lea r8d, [r15 + 1]
lea rdx, [rbp - 0x30]
mov rcx, rdi
call fcn.14001dba0
nop
mov ecx, 1
mov dword [rbp - 0x40], ecx
mov rdx, qword [rax]
cmp word [rdx], 0x5c
jne 0x14002ca8f
cmp word [rdx + 2], r14w
je 0x14002cab7
mov r8d, ecx
lea rdx, [rbp - 0x38]
mov rcx, rdi
call fcn.14001dba0
nop
mov ecx, 3
mov dword [rbp - 0x40], ecx
mov rdx, qword [rax]
cmp word [rdx], 0x2f
jne 0x14002cabc
cmp word [rdx + 2], 0
jne 0x14002cabc
xor sil, sil
jmp 0x14002cabf
mov sil, 1
test cl, 2
je 0x14002caf1
and ecx, 0xfffffffd
mov dword [rbp - 0x40], ecx
mov rdx, qword [rbp - 0x38]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14002caee
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038ca6.0]
mov ecx, dword [rbp - 0x40]
test cl, 1
je 0x14002cb20
and ecx, 0xfffffffe
mov dword [rbp - 0x40], ecx
mov rdx, qword [rbp - 0x30]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14002cb20
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038ca6.0]
test sil, sil
je 0x14002cb43
lea rdx, [0x140267514]
mov r8, rbx
nop
inc r8
cmp word [rdx + r8*2], 0
jne 0x14002cb30
mov rcx, rdi
call fcn.14001def0
mov qword [rbp - 0x18], r15
call fcn.140019590
mov rcx, rax
test rax, rax
je 0x14002ccce
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x140038ca6.0]
add rax, 0x18
mov qword [rbp - 0x18], rax
xor ecx, ecx
call fcn.14020d7f0
mov r8, rax
lea rdx, str.__writable_test_d.temp
lea rcx, [rbp - 0x18]
call fcn.14001c4c0
mov qword [rbp - 0x20], r15
lea r8, [rbp - 0x18]
mov rdx, rdi
lea rcx, [rbp - 0x20]
call fcn.140029150
nop
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 6
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x14002cc37
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
mov rdx, qword [rbp - 0x20]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14002cc05
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038ca6.0]
nop
mov rdx, qword [rbp - 0x18]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x14002cc28
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [case.0x140038ca6.0]
nop
mov rcx, rdi
call fcn.1400192b0
mov eax, 1
jmp 0x14002cca5
mov rdx, qword [rbp - 0x20]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14002cc5c
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038ca6.0]
nop
mov rdx, qword [rbp - 0x18]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14002cc81
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038ca6.0]
nop
mov rdx, qword [rdi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x14002cca2
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038ca6.0]
mov eax, r14d
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1401f74b0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov ecx, 0x80004005
call fcn.140019300
int3