Function at 0x10005e0e4
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x20
xor edx, edx
lea rax, [0x100005ef8]
or r14d, 0xffffffff
mov qword [rcx], rax
and qword [rcx + 0x28], 0
cmp dword [rcx + 0x40], edx
mov rdi, rcx
lea r15, [0x1000a1170]
lea ebx, [rdx + 1]
jle 0x10005e15b
xor ecx, ecx
test rcx, rcx
js 0x10005e1c7
cmp edx, dword [rdi + 0x40]
jge 0x10005e1c7
mov rax, qword [rdi + 0x38]
mov r8, qword [rcx + rax]
test r8, r8
je 0x10005e249
and qword [r8 + 0x28], 0
and qword [r8 + 0x30], 0
add edx, ebx
add rcx, 8
cmp edx, dword [rdi + 0x40]
jl 0x10005e123
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x10005e170
mov rax, qword [rcx]
mov edx, ebx
call qword [rax]
and qword [rdi + 8], 0
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x10005e185
mov rax, qword [rcx]
mov edx, ebx
call qword [rax]
and qword [rdi + 0x10], 0
xor esi, esi
cmp dword [rdi + 0x348], esi
jle 0x10005e249
xor ebp, ebp
test rbp, rbp
js 0x10005e584
cmp esi, dword [rdi + 0x348]
jge 0x10005e584
mov rax, qword [rdi + 0x340]
mov rbx, qword [rax + rbp]
cmp dword [rbx - 0xc], 0
jl 0x10005e1db
mov qword [rsp + 0x50], rbx
lock add dword [rbx - 0xc], 1
jmp 0x10005e208
xor r9d, r9d
xor r8d, r8d
mov edx, ebx
mov ecx, 0xc000008c
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov rax, qword [0x1000a1180]
mov qword [rsp + 0x50], rax
test rbx, rbx
jne 0x10005e1f0
xor eax, eax
jmp 0x10005e1f9
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rsp + 0x50]
mov r8, rbx
mov edx, eax
call fcn.100016504
mov rbx, qword [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rbx - 0xc]
cmp rcx, r15
je 0x10005e232
mov eax, r14d
lock xadd dword [rcx], eax
add eax, r14d
test eax, eax
jg 0x10005e232
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov ebx, 1
add rbp, 8
add esi, ebx
cmp esi, dword [rdi + 0x348]
jl 0x10005e195
mov rcx, qword [rdi + 0x358]
mov ebx, 0xc
add rcx, 0xfffffffffffffff4
cmp rcx, r15
je 0x10005e27b
mov eax, r14d
lock xadd dword [rcx], eax
add eax, r14d
test eax, eax
jg 0x10005e27b
mov rcx, qword [rdi + 0x358]
sub rcx, rbx
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
lea rcx, [rdi + 0x340]
call fcn.10001b74c
lea rcx, [rdi + 0x330]
call fcn.10001b74c
mov rcx, qword [rdi + 0x320]
add rcx, 0xfffffffffffffff4
cmp rcx, r15
je 0x10005e2c0
mov eax, r14d
lock xadd dword [rcx], eax
add eax, r14d
test eax, eax
jg 0x10005e2c0
mov rcx, qword [rdi + 0x320]
sub rcx, rbx
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rdi + 0x318]
add rcx, 0xfffffffffffffff4
cmp rcx, r15
je 0x10005e2ed
mov eax, r14d
lock xadd dword [rcx], eax
add eax, r14d
test eax, eax
jg 0x10005e2ed
mov rcx, qword [rdi + 0x318]
sub rcx, rbx
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rdi + 0x310]
add rcx, 0xfffffffffffffff4
cmp rcx, r15
je 0x10005e31a
mov eax, r14d
lock xadd dword [rcx], eax
add eax, r14d
test eax, eax
jg 0x10005e31a
mov rcx, qword [rdi + 0x310]
sub rcx, rbx
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rdi + 0x308]
add rcx, 0xfffffffffffffff4
cmp rcx, r15
je 0x10005e347
mov eax, r14d
lock xadd dword [rcx], eax
add eax, r14d
test eax, eax
jg 0x10005e347
mov rcx, qword [rdi + 0x308]
sub rcx, rbx
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rdi + 0x2f0]
add rcx, 0xfffffffffffffff4
cmp rcx, r15
je 0x10005e374
mov eax, r14d
lock xadd dword [rcx], eax
add eax, r14d
test eax, eax
jg 0x10005e374
mov rcx, qword [rdi + 0x2f0]
sub rcx, rbx
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rdi + 0x2e8]
add rcx, 0xfffffffffffffff4
cmp rcx, r15
je 0x10005e3a1
mov eax, r14d
lock xadd dword [rcx], eax
add eax, r14d
test eax, eax
jg 0x10005e3a1
mov rcx, qword [rdi + 0x2e8]
sub rcx, rbx
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rdi + 0x2e0]
add rcx, 0xfffffffffffffff4
cmp rcx, r15
je 0x10005e3ce
mov eax, r14d
lock xadd dword [rcx], eax
add eax, r14d
test eax, eax
jg 0x10005e3ce
mov rcx, qword [rdi + 0x2e0]
sub rcx, rbx
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rdi + 0x2d8]
add rcx, 0xfffffffffffffff4
cmp rcx, r15
je 0x10005e3fb
mov eax, r14d
lock xadd dword [rcx], eax
add eax, r14d
test eax, eax
jg 0x10005e3fb
mov rcx, qword [rdi + 0x2d8]
sub rcx, rbx
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rdi + 0x2d0]
add rcx, 0xfffffffffffffff4
cmp rcx, r15
je 0x10005e428
mov eax, r14d
lock xadd dword [rcx], eax
add eax, r14d
test eax, eax
jg 0x10005e428
mov rcx, qword [rdi + 0x2d0]
sub rcx, rbx
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rdi + 0x2c8]
add rcx, 0xfffffffffffffff4
cmp rcx, r15
je 0x10005e455
mov eax, r14d
lock xadd dword [rcx], eax
add eax, r14d
test eax, eax
jg 0x10005e455
mov rcx, qword [rdi + 0x2c8]
sub rcx, rbx
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rdi + 0x2c0]
add rcx, 0xfffffffffffffff4
cmp rcx, r15
je 0x10005e482
mov eax, r14d
lock xadd dword [rcx], eax
add eax, r14d
test eax, eax
jg 0x10005e482
mov rcx, qword [rdi + 0x2c0]
sub rcx, rbx
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
lea rcx, [rdi + 0x2a0]
call fcn.10001b74c
lea rcx, [rdi + 0x288]
call fcn.100073938
mov rcx, qword [rdi + 0x280]
add rcx, 0xfffffffffffffff4
cmp rcx, r15
je 0x10005e4c7
mov eax, r14d
lock xadd dword [rcx], eax
add eax, r14d
test eax, eax
jg 0x10005e4c7
mov rcx, qword [rdi + 0x280]
sub rcx, rbx
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
lea rcx, [rdi + 0x268]
call fcn.100072784
lea rcx, [rdi + 0x1f0]
call fcn.10005f8f0
lea rcx, [rdi + 0x160]
call fcn.10002202c
mov rcx, qword [rdi + 0x158]
add rcx, 0xfffffffffffffff4
cmp rcx, r15
je 0x10005e518
mov eax, r14d
lock xadd dword [rcx], eax
add eax, r14d
test eax, eax
jg 0x10005e518
mov rcx, qword [rdi + 0x158]
sub rcx, rbx
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
lea rcx, [rdi + 0xb8]
call fcn.10001c270
lea rcx, [rdi + 0x78]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov rcx, qword [rdi + 0x70]
test rcx, rcx
je 0x10005e53d
mov rax, qword [rcx]
call qword [rax + 0x10]
lea rcx, [rdi + 0x28]
call fcn.100075130
mov rcx, qword [rdi + 0x20]
add rcx, 0xfffffffffffffff4
cmp rcx, r15
je 0x10005e56d
mov eax, r14d
lock xadd dword [rcx], eax
add eax, r14d
test eax, eax
jg 0x10005e56d
mov rcx, qword [rdi + 0x20]
sub rcx, rbx
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
xor r9d, r9d
xor r8d, r8d
mov edx, ebx
mov ecx, 0xc000008c
call qword [sym.imp.KERNEL32.dll_RaiseException]