Function at 0x14004bbc4
Capabilities:
Delete file

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], r12
push r14
sub rsp, 0x30
mov rsi, rcx
mov rcx, qword [str.P5_n_]
lea r12, str.P5_n_
mov bpl, 4
lea r14, [0x140008f68]
cmp rcx, r12
je 0x14004bc47
test byte [rcx + 0x1c], bpl
je 0x14004bc21
cmp byte [rcx + 0x19], 5
jb 0x14004bc21
mov rcx, qword [rcx + 0x10]
mov edx, 0x108
mov r8, r14
call fcn.14000ffa8
mov rcx, qword [str.P5_n_]
cmp rcx, r12
je 0x14004bc47
test byte [rcx + 0x1c], bpl
je 0x14004bc47
cmp byte [rcx + 0x19], 5
jb 0x14004bc47
mov r9d, dword [rsi + 0x20]
mov rcx, qword [rcx + 0x10]
mov edx, 0x109
mov r8, r14
call fcn.1400100e0
lea rcx, [0x1400a3e30]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r11, qword [0x1400a3e58]
lea rax, [0x1400a3e58]
jmp 0x14004bc6f
mov rbx, r11
mov r11, qword [r11]
cmp rbx, rsi
je 0x14004bc76
cmp r11, rax
jne 0x14004bc64
xor ebx, ebx
test rbx, rbx
je 0x14004bfba
mov eax, dword [rbx + 0x30]
test eax, eax
jne 0x14004bf89
mov rcx, qword [str.P5_n_]
cmp rcx, r12
je 0x14004bcb7
test byte [rcx + 0x1c], bpl
je 0x14004bcb7
cmp byte [rcx + 0x19], 5
jb 0x14004bcb7
mov r9d, dword [rbx + 0x20]
mov rcx, qword [rcx + 0x10]
mov edx, 0x10a
mov r8, r14
call fcn.1400100e0
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
mov qword [rax], rcx
mov qword [rcx + 8], rax
mov rcx, qword [0x1400a3e28]
and qword [rbx], 0
and qword [rbx + 8], 0
call qword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
test eax, eax
jne 0x14004bd18
mov rcx, qword [str.P5_n_]
cmp rcx, r12
je 0x14004bd1f
test byte [rcx + 0x1c], bpl
je 0x14004bd1f
cmp byte [rcx + 0x19], 2
jb 0x14004bd1f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.P5_n_]
mov edx, 0x10b
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov r8, r14
call fcn.1400100e0
mov rcx, qword [str.P5_n_]
mov rax, qword [rbx + 0x38]
test rax, rax
je 0x14004bdb3
cmp rcx, r12
je 0x14004bd57
test byte [rcx + 0x1c], bpl
je 0x14004bd57
cmp byte [rcx + 0x19], 5
jb 0x14004bd57
mov r9d, dword [rbx + 0x20]
mov rcx, qword [rcx + 0x10]
mov edx, 0x10d
mov r8, r14
mov qword [rsp + 0x20], rax
call fcn.140058098
mov rcx, qword [rbx + 0x38]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14004bdac
mov rcx, qword [str.P5_n_]
cmp rcx, r12
je 0x14004bdb3
test byte [rcx + 0x1c], bpl
je 0x14004bdb3
cmp byte [rcx + 0x19], 5
jb 0x14004bdb3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.P5_n_]
mov r9d, dword [rbx + 0x20]
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x28], eax
mov rax, qword [rbx + 0x38]
mov edx, 0x10e
mov r8, r14
mov qword [rsp + 0x20], rax
call fcn.14003b8f4
mov rcx, qword [str.P5_n_]
mov rax, qword [rbx + 0x258]
test rax, rax
je 0x14004be50
cmp rcx, r12
je 0x14004bdee
test byte [rcx + 0x1c], bpl
je 0x14004bdee
cmp byte [rcx + 0x19], 5
jb 0x14004bdee
mov r9d, dword [rbx + 0x20]
mov rcx, qword [rcx + 0x10]
mov edx, 0x10f
mov r8, r14
mov qword [rsp + 0x20], rax
call fcn.140058098
mov rcx, qword [rbx + 0x258]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14004be49
mov rcx, qword [str.P5_n_]
cmp rcx, r12
je 0x14004be50
test byte [rcx + 0x1c], bpl
je 0x14004be50
cmp byte [rcx + 0x19], 5
jb 0x14004be50
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.P5_n_]
mov r9d, dword [rbx + 0x20]
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x28], eax
mov rax, qword [rbx + 0x258]
mov edx, 0x110
mov r8, r14
mov qword [rsp + 0x20], rax
call fcn.14003b8f4
mov rcx, qword [str.P5_n_]
mov rax, qword [rbx + 0x48]
test rax, rax
je 0x14004bedd
cmp rcx, r12
je 0x14004be88
test byte [rcx + 0x1c], bpl
je 0x14004be88
cmp byte [rcx + 0x19], 5
jb 0x14004be88
mov r9d, dword [rbx + 0x20]
mov rcx, qword [rcx + 0x10]
mov edx, 0x111
mov r8, r14
mov qword [rsp + 0x20], rax
call fcn.140058098
mov rcx, qword [rbx + 0x48]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14004bedd
mov rax, qword [str.P5_n_]
cmp rax, r12
je 0x14004bedd
test byte [rax + 0x1c], bpl
je 0x14004bedd
cmp byte [rax + 0x19], 5
jb 0x14004bedd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.P5_n_]
mov r9d, dword [rbx + 0x20]
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x28], eax
mov rax, qword [rbx + 0x48]
mov edx, 0x112
mov r8, r14
mov qword [rsp + 0x20], rax
call fcn.14003b8f4
lea rcx, [0x1400a3e1c]
call fcn.1400446ac
mov rcx, qword [rbx + 0x248]
mov rdx, rbx
call fcn.14004bff0
test eax, eax
jne 0x14004bf37
mov rcx, qword [str.P5_n_]
cmp rcx, r12
je 0x14004bf37
test byte [rcx + 0x1c], bpl
je 0x14004bf37
cmp byte [rcx + 0x19], 2
jb 0x14004bf37
mov r8, qword [rbx + 0x248]
mov eax, dword [rbx + 0x20]
mov rcx, qword [rcx + 0x10]
mov r9d, dword [r8 + 0x20]
mov edx, 0x113
mov r8, r14
mov dword [rsp + 0x20], eax
call fcn.14001d4a0
mov rdx, rsi
mov ecx, 1
call fcn.140065c48
test eax, eax
je 0x14004bf7a
mov rcx, qword [str.P5_n_]
cmp rcx, r12
je 0x14004bf7a
test byte [rcx + 0x1c], bpl
je 0x14004bf7a
cmp byte [rcx + 0x19], 2
jb 0x14004bf7a
mov r9d, dword [rsi + 0x10]
mov rcx, qword [rcx + 0x10]
mov edx, 0x114
mov r8, r14
mov word [rsp + 0x20], ax
call fcn.14001d5f4
mov edx, 1
mov rcx, rbx
call fcn.14004aca8
jmp 0x14004bfba
mov rcx, qword [str.P5_n_]
cmp rcx, r12
je 0x14004bfba
test byte [rcx + 0x1c], bpl
je 0x14004bfba
cmp byte [rcx + 0x19], 2
jb 0x14004bfba
mov r9d, dword [rbx + 0x20]
mov rcx, qword [rcx + 0x10]
mov edx, 0x115
mov r8, r14
mov dword [rsp + 0x20], eax
call fcn.14001d4a0
lea rcx, [0x1400a3e30]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
mov eax, 1
add rsp, 0x30
pop r14
ret