Function at 0x140090a10
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x20
and qword [rbp + 0x10], 0
lea rax, [rcx - 0x18]
neg rax
lea rdx, [rcx + 8]
mov rdi, rcx
sbb rbx, rbx
and rbx, rdx
je 0x140090a4d
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
cmp dword [rdi + 0xcc], 0
je 0x140090c80
mov rcx, qword [rdi + 0x78]
and dword [rdi + 0xcc], 0
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
mov rcx, qword [rdi + 0x98]
test rcx, rcx
je 0x140090a9c
mov rax, qword [rcx]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rax + 0x10]
call qword [case.0x140063541.0]
and qword [rdi + 0x98], 0
mov rcx, qword [rdi + 0xa0]
test rcx, rcx
je 0x140090ac7
mov rax, qword [rcx]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rax + 0x10]
call qword [case.0x140063541.0]
and qword [rdi + 0xa0], 0
mov rcx, qword [rdi + 0xa8]
test rcx, rcx
je 0x140090b38
mov rax, qword [rcx]
movabs r10, 0xdee01e7974d59970
mov rax, qword [rax]
lea r8, [rbp + 0x10]
lea rdx, [0x1400d7150]
call qword [case.0x140063541.0]
test eax, eax
js 0x140090b38
mov rcx, qword [rbp + 0x10]
mov rax, qword [rcx]
movabs r10, 0xe668379e105dc970
mov rax, qword [rax + 0x18]
call qword [case.0x140063541.0]
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x140090b38
mov rax, qword [rcx]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rax + 0x10]
call qword [case.0x140063541.0]
and qword [rbp + 0x10], 0
and qword [rdi + 0xa8], 0
mov rcx, qword [rdi + 0xb8]
test rcx, rcx
je 0x140090bb1
mov rax, qword [rcx]
movabs r10, 0xdee01e7974d59970
mov rax, qword [rax]
lea r8, [rbp + 0x10]
lea rdx, [0x1400d7150]
call qword [case.0x140063541.0]
test eax, eax
js 0x140090bb1
mov rcx, qword [rbp + 0x10]
mov rax, qword [rcx]
movabs r10, 0xe668379e105dc970
mov rax, qword [rax + 0x18]
call qword [case.0x140063541.0]
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x140090bb1
mov rax, qword [rcx]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rax + 0x10]
call qword [case.0x140063541.0]
and qword [rbp + 0x10], 0
and qword [rdi + 0xb8], 0
mov rcx, qword [rdi + 0xb0]
test rcx, rcx
je 0x140090c2a
mov rax, qword [rcx]
movabs r10, 0xdee01e7974d59970
mov rax, qword [rax]
lea r8, [rbp + 0x10]
lea rdx, [0x1400d7150]
call qword [case.0x140063541.0]
test eax, eax
js 0x140090c2a
mov rcx, qword [rbp + 0x10]
mov rax, qword [rcx]
movabs r10, 0xe668379e105dc970
mov rax, qword [rax + 0x18]
call qword [case.0x140063541.0]
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x140090c2a
mov rax, qword [rcx]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rax + 0x10]
call qword [case.0x140063541.0]
and qword [rbp + 0x10], 0
mov rcx, qword [rdi + 0xb0]
test rcx, rcx
je 0x140090c55
mov rax, qword [rcx]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rax + 0x10]
call qword [case.0x140063541.0]
and qword [rdi + 0xb0], 0
mov rcx, qword [rdi + 0x88]
test rcx, rcx
je 0x140090c80
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
mov rcx, qword [rdi + 0x88]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
test rbx, rbx
je 0x140090c95
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x38]
xor eax, eax
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop rbp
ret