Function at 0x14009ff48
Capabilities:
Delete file

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x300
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x140170608]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
mov ebx, r9d
mov rsi, r8
mov rdi, rdx
xor edx, edx
mov r8d, 0x288
lea rcx, [rsp + 0x60]
call sub.msvcrt.dll_memset
lea rax, [0x140146438]
mov qword [rsp + 0x30], rax
movdqa xmm0, xmmword [0x14015cc40]
movdqu xmmword [rsp + 0x38], xmm0
xor r14d, r14d
test rsi, rsi
jne 0x14009ffc7
lea r8, str.pCatalog___NULL
mov edx, 0x599
lea rcx, [0x140150308]
call fcn.14008388c
mov rdx, rdi
call fcn.1400a0f08
nop
mov dword [rsp + 0x20], ebx
lea r8, [rsp + 0x60]
mov rdx, rdi
call fcn.1400a1250
nop
or r15, 0xffffffffffffffff
cmp rax, r15
jne 0x1400a0006
lea r8, str.ph___INVALID_HANDLE_VALUE
mov edx, 0x3a5
lea rcx, str.base_stor_blbcatalogcatalog.hxx
call fcn.14008388c
mov rax, r15
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140096178
mov ebx, eax
test eax, eax
jns 0x1400a0066
lea rax, [0x140170048]
mov rcx, qword [0x140170048]
cmp rcx, rax
je 0x1400a0199
test byte [rcx + 0x1c], 1
je 0x1400a0199
cmp byte [rcx + 0x19], 2
jb 0x1400a0199
mov edx, 0x36
mov r9d, ebx
lea r8, [0x140150b88]
mov rcx, qword [rcx + 0x10]
call fcn.140004c78
jmp 0x1400a0199
lea rcx, [rsp + 0x30]
call fcn.1400a2594
mov ebx, eax
test eax, eax
jns 0x1400a00a8
lea rax, [0x140170048]
mov rcx, qword [0x140170048]
cmp rcx, rax
je 0x1400a0199
test byte [rcx + 0x1c], 1
je 0x1400a0199
cmp byte [rcx + 0x19], 2
jb 0x1400a0199
mov edx, 0x37
jmp 0x1400a004e
mov rcx, qword [rsp + 0x38]
cmp rcx, r15
je 0x1400a00df
test rcx, rcx
jne 0x1400a00d4
lea r8, str.m_hFile___NULL
mov edx, 0x3b1
lea rcx, str.base_stor_blbcatalogcatalog.hxx
call fcn.14008388c
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x38], r15
lea r9, [rsp + 0x48]
mov r8d, 1
mov rdx, rdi
call fcn.1400a1804
mov ebx, eax
test eax, eax
jns 0x1400a013d
lea rax, [0x140170048]
mov rcx, qword [0x140170048]
cmp rcx, rax
je 0x1400a0199
test byte [rcx + 0x1c], 1
je 0x1400a0199
cmp byte [rcx + 0x19], 2
jb 0x1400a0199
mov edx, 0x38
mov dword [rsp + 0x20], ebx
mov r9, rdi
lea r8, [0x140150b88]
mov rcx, qword [rcx + 0x10]
call fcn.140005c44
jmp 0x1400a0199
lea r8, [rsp + 0x60]
mov rdx, rdi
call fcn.1400a1e1c
mov ebx, eax
test eax, eax
jns 0x1400a01f2
lea rax, [0x140170048]
mov rcx, qword [0x140170048]
cmp rcx, rax
je 0x1400a0199
test byte [rcx + 0x1c], 1
je 0x1400a0199
cmp byte [rcx + 0x19], 2
jb 0x1400a0199
mov edx, 0x39
mov dword [rsp + 0x28], ebx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9, rdi
lea r8, [0x140150b88]
mov rcx, qword [rcx + 0x10]
call fcn.140005d78
cmp word [rsp + 0x60], r14w
je 0x1400a01e4
mov rcx, qword [rsp + 0x38]
cmp rcx, r15
je 0x1400a01d8
test rcx, rcx
jne 0x1400a01cd
lea r8, str.m_hFile___NULL
mov edx, 0x3b1
lea rcx, str.base_stor_blbcatalogcatalog.hxx
call fcn.14008388c
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x38], r15
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
lea rcx, [rsp + 0x30]
call fcn.1400a3638
mov eax, ebx
jmp 0x1400a0224
mov word [rsp + 0x60], r14w
cmp dword [rsp + 0x48], r14d
jne 0x1400a0208
mov rdx, rdi
call fcn.1400a1b74
nop
lea rcx, [rsp + 0x30]
call fcn.1400a3638
xor eax, eax
jmp 0x1400a0224
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.140141340
add rsp, 0x300
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret