Function at 0x1400a2ed4
Capabilities:
Delete file

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x300
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rax, qword [0x140178010]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
mov ebx, r9d
mov rsi, r8
mov rdi, rdx
xor r14d, r14d
mov word [rsp + 0x60], r14w
xor edx, edx
mov r8d, 0x286
lea rcx, [rsp + 0x62]
call sub.msvcrt.dll_memset
lea rax, [0x14014f310]
mov qword [rsp + 0x30], rax
movdqa xmm0, xmmword [0x1401638d0]
movdqu xmmword [rsp + 0x38], xmm0
test rsi, rsi
jne 0x1400a2f5c
lea r8, str.pCatalog___NULL
mov edx, 0x599
lea rcx, str.base_stor_blbcatalogcatsys.cpp
call fcn.14008624c
mov rdx, rdi
call fcn.1400a3ed8
nop
mov dword [rsp + 0x20], ebx
lea r8, [rsp + 0x60]
mov rdx, rdi
call fcn.1400a4220
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400a2f97
lea r8, str.ph___INVALID_HANDLE_VALUE
mov edx, 0x3a5
lea rcx, str.base_stor_blbcatalogcatalog.hxx
call fcn.14008624c
mov qword [rsp + 0x38], rbx
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140098ed4
mov ebx, eax
test eax, eax
jns 0x1400a2ff7
lea rax, [0x1401782b0]
mov rcx, qword [0x1401782b0]
cmp rcx, rax
je 0x1400a312c
test byte [rcx + 0x1c], 1
je 0x1400a312c
cmp byte [rcx + 0x19], 2
jb 0x1400a312c
mov edx, 0x36
mov r9d, ebx
lea r8, [0x1401575f8]
mov rcx, qword [rcx + 0x10]
call fcn.140004c90
jmp 0x1400a312c
lea rcx, [rsp + 0x30]
call fcn.1400a5598
mov ebx, eax
test eax, eax
jns 0x1400a3039
lea rax, [0x1401782b0]
mov rcx, qword [0x1401782b0]
cmp rcx, rax
je 0x1400a312c
test byte [rcx + 0x1c], 1
je 0x1400a312c
cmp byte [rcx + 0x19], 2
jb 0x1400a312c
mov edx, 0x37
jmp 0x1400a2fdf
mov rcx, qword [rsp + 0x38]
cmp rcx, 0xffffffffffffffff
je 0x1400a3072
test rcx, rcx
jne 0x1400a3066
lea r8, str.m_hFile___NULL
mov edx, 0x3b1
lea rcx, str.base_stor_blbcatalogcatalog.hxx
call fcn.14008624c
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [rsp + 0x38], 0xffffffffffffffff
lea r9, [rsp + 0x48]
mov r8d, 1
mov rdx, rdi
call fcn.1400a47d0
mov ebx, eax
test eax, eax
jns 0x1400a30d0
lea rax, [0x1401782b0]
mov rcx, qword [0x1401782b0]
cmp rcx, rax
je 0x1400a312c
test byte [rcx + 0x1c], 1
je 0x1400a312c
cmp byte [rcx + 0x19], 2
jb 0x1400a312c
mov edx, 0x38
mov dword [rsp + 0x20], ebx
mov r9, rdi
lea r8, [0x1401575f8]
mov rcx, qword [rcx + 0x10]
call fcn.140005ce8
jmp 0x1400a312c
lea r8, [rsp + 0x60]
mov rdx, rdi
call fcn.1400a4dec
mov ebx, eax
test eax, eax
jns 0x1400a3187
lea rax, [0x1401782b0]
mov rcx, qword [0x1401782b0]
cmp rcx, rax
je 0x1400a312c
test byte [rcx + 0x1c], 1
je 0x1400a312c
cmp byte [rcx + 0x19], 2
jb 0x1400a312c
mov edx, 0x39
mov dword [rsp + 0x28], ebx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9, rdi
lea r8, [0x1401575f8]
mov rcx, qword [rcx + 0x10]
call fcn.140005e64
cmp word [rsp + 0x60], r14w
je 0x1400a3179
mov rcx, qword [rsp + 0x38]
cmp rcx, 0xffffffffffffffff
je 0x1400a316d
test rcx, rcx
jne 0x1400a3161
lea r8, str.m_hFile___NULL
mov edx, 0x3b1
lea rcx, str.base_stor_blbcatalogcatalog.hxx
call fcn.14008624c
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [rsp + 0x38], 0xffffffffffffffff
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
lea rcx, [rsp + 0x30]
call fcn.1400a675c
mov eax, ebx
jmp 0x1400a31b9
mov word [rsp + 0x60], r14w
cmp dword [rsp + 0x48], r14d
jne 0x1400a319d
mov rdx, rdi
call fcn.1400a4b40
nop
lea rcx, [rsp + 0x30]
call fcn.1400a675c
xor eax, eax
jmp 0x1400a31b9
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.1401474d0
mov rbx, qword [rsp + 0x320]
add rsp, 0x300
pop r14
pop rdi
pop rsi
ret