Function at 0x1400816ac
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xd0
mov rax, qword [0x1400e6870]
xor rax, rsp
mov qword [rbp + 0xf], rax
mov rax, qword [rbp + 0x7f]
mov r13, r9
mov qword [rbp - 0x21], rax
mov rbx, rcx
mov r15d, r8d
test rcx, rcx
jne 0x140081729
mov rcx, qword [0x1400df278]
lea rsi, [0x1400df278]
mov ebx, 0x80070057
cmp rcx, rsi
je 0x140081722
test byte [rcx + 0x1c], 1
je 0x140081722
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400c1ef8]
mov edx, SafeArrayGetElemsize
mov r9d, ebx
call fcn.14000a9b0
mov eax, ebx
jmp 0x140081a9a
mov rcx, qword [0x1400df278]
lea rsi, [0x1400df278]
lea r14, [0x1400c1ef8]
lea rdi, str.SHS_.etl
cmp rcx, rsi
je 0x140081769
test byte [rcx + 0x1c], 4
je 0x140081769
mov rcx, qword [rcx + 0x10]
mov edx, SafeArrayGetElemsize
mov r9, rbx
mov qword [rsp + 0x20], rdi
mov r8, r14
call fcn.140010c80
and qword [rbp - 0x31], 0
lea rax, [rbp - 0x31]
and qword [rbp - 0x49], 0
lea rdx, str._s_s
mov r9, rdi
mov qword [rbp - 0x19], rax
mov r8, rbx
lea rcx, [rbp - 0x49]
call fcn.1400a3c2c
mov edi, eax
test eax, eax
jns 0x1400817bb
mov rcx, qword [0x1400df278]
cmp rcx, rsi
je 0x140081a8a
test byte [rcx + 0x1c], 1
je 0x140081a8a
mov edx, SafeArrayGetLBound
mov r9d, eax
jmp 0x14008181b
and qword [rbp - 0x41], 0
lea rcx, [rbp - 0x41]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
nop dword [rax + rax]
mov rax, qword [rbp - 0x41]
imul rdx, r15, 0x989680
mov rcx, rax
mov qword [rbp - 0x11], rax
sub rcx, rdx
cmp rax, rcx
mov qword [rbp - 9], rcx
sbb edi, edi
and edi, 0x8000ffff
cmp rcx, rax
jbe 0x14008182c
mov rcx, qword [0x1400df278]
cmp rcx, rsi
je 0x140081a8a
test byte [rcx + 0x1c], 1
je 0x140081a8a
mov edx, SafeArrayGetLBound
mov r9d, edi
mov rcx, qword [rcx + 0x10]
mov r8, r14
call fcn.14000a9b0
jmp 0x140081a8a
and qword [rbp - 0x51], 0
mov rdx, rbx
mov qword [rbp - 0x29], rcx
lea rcx, [rbp - 0x51]
call fcn.1400a9f10
mov rbx, qword [rbp - 0x51]
mov edi, eax
test eax, eax
jns 0x140081872
mov rcx, qword [0x1400df278]
cmp rcx, rsi
je 0x140081a51
test byte [rcx + 0x1c], 1
je 0x140081a51
mov edx, reloc.OLEAUT32.dll_SafeArrayGetElemsize
mov r9d, eax
jmp 0x140081a45
and qword [rbp - 0x59], 0
lea r8, [rbp - 0x61]
and qword [rbp - 0x61], 0
lea rdx, [rbp - 0x59]
mov rcx, rbx
call fcn.1400ab480
mov edi, eax
test eax, eax
js 0x140081a2b
mov r15, qword [rbp - 0x59]
test r15, r15
je 0x140081a27
mov rdi, qword [rbp - 0x61]
test rdi, rdi
je 0x140081a27
test r13, r13
je 0x1400818ce
xor edx, edx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop dword [rax + rax]
test eax, eax
je 0x1400819f9
test byte [rdi], 0x10
jne 0x140081872
lea rdx, [rdi + 0x14]
lea rcx, [rbp - 0x29]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CompareFileTime]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x140081872
mov rax, qword [rbp - 0x21]
test rax, rax
je 0x140081910
lea rdx, [rdi + 0x2c]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x140081872
mov rcx, r15
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
nop dword [rax + rax]
test eax, eax
jne 0x140081963
call fcn.1400a8fb0
test eax, eax
jns 0x140081963
mov rcx, qword [0x1400df278]
cmp rcx, rsi
je 0x140081872
test byte [rcx + 0x1c], 1
je 0x140081872
mov rcx, qword [rcx + 0x10]
mov edx, SafeArrayPutElement
mov r9, r15
mov dword [rsp + 0x20], eax
mov r8, r14
call fcn.140010d3c
jmp 0x140081872
and qword [rbp - 0x39], 0
lea rdx, [rbp - 0x39]
xorps xmm0, xmm0
lea rcx, [rdi + 0x14]
movups xmmword [rbp - 1], xmm0
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FileTimeToLocalFileTime]
nop dword [rax + rax]
lea rdx, [rbp - 1]
lea rcx, [rbp - 0x39]
call qword [sym.imp.api_ms_win_core_timezone_l1_1_0.dll_FileTimeToSystemTime]
nop dword [rax + rax]
mov rcx, qword [0x1400df278]
cmp rcx, rsi
je 0x140081872
test byte [rcx + 0x1c], 4
je 0x140081872
movzx eax, word [rbp + 0xb]
lea r9, [rdi + 0x2c]
mov rcx, qword [rcx + 0x10]
mov word [rsp + 0x48], ax
movzx eax, word [rbp + 9]
mov word [rsp + 0x40], ax
movzx eax, word [rbp + 7]
mov word [rsp + 0x38], ax
movzx eax, word [rbp + 5]
mov word [rsp + 0x30], ax
movzx eax, word [rbp + 1]
mov word [rsp + 0x28], ax
movzx eax, word [rbp - 1]
mov word [rsp + 0x20], ax
call fcn.140081468
jmp 0x140081872
mov rcx, qword [0x1400df278]
cmp rcx, rsi
je 0x140081a20
test byte [rcx + 0x1c], 2
je 0x140081a20
mov r9, qword [rbp - 0x49]
mov edx, reloc.OLEAUT32.dll_SafeArrayGetLBound
mov rcx, qword [rcx + 0x10]
mov r8, r14
call fcn.14001c770
mov edi, 0x80004004
jmp 0x140081a51
xor edi, edi
jmp 0x140081a51
mov rcx, qword [0x1400df278]
cmp rcx, rsi
je 0x140081a51
test byte [rcx + 0x1c], 1
je 0x140081a51
mov edx, SafeArrayGetLBound
mov r9d, edi
mov rcx, qword [rcx + 0x10]
mov r8, r14
call fcn.14000a9b0
test rbx, rbx
je 0x140081a8a
mov eax, dword [rbx + 8]
cmp eax, 1
jne 0x140081a67
mov dword [rbx + 8], 0
jmp 0x140081a74
or eax, 0xffffffff
lock xadd dword [rbx + 8], eax
sub eax, 1
jg 0x140081a8a
mov rcx, qword [rbp - 0x51]
mov edx, 1
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1400ad4ce.0]
mov rcx, qword [rbp - 0x49]
test rcx, rcx
je 0x140081a98
call fcn.1400ac0d0
mov eax, edi
mov rcx, qword [rbp + 0xf]
xor rcx, rsp
call fcn.1400abb00
mov rbx, qword [rsp + 0x118]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret