Function at 0x14004b5e4
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], rdi
push r13
push r14
push r15
sub rsp, 0x30
mov ebp, r8d
mov esi, edx
mov rdi, rcx
mov rcx, qword [str.P5_n_]
lea r14, str.P5_n_
lea r15, [0x140008f68]
mov r13d, 4
cmp rcx, r14
je 0x14004b646
test byte [rcx + 0x1c], r13b
je 0x14004b646
cmp byte [rcx + 0x19], 5
jb 0x14004b646
mov rcx, qword [rcx + 0x10]
mov edx, 0xf7
mov r8, r15
call fcn.14000ffa8
lea rcx, [0x1400a3e30]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r11, qword [0x1400a3e58]
lea rax, [0x1400a3e58]
jmp 0x14004b66e
mov rbx, r11
mov r11, qword [r11]
cmp rbx, rdi
je 0x14004b675
cmp r11, rax
jne 0x14004b663
xor ebx, ebx
test rbx, rbx
jne 0x14004b6bc
mov rcx, qword [str.P5_n_]
cmp rcx, r14
je 0x14004baac
test byte [rcx + 0x1c], r13b
je 0x14004baac
cmp byte [rcx + 0x19], 3
jb 0x14004baac
mov r9d, dword [rdi + 0x20]
mov rcx, qword [rcx + 0x10]
mov edx, 0xf8
mov r8, r15
mov dword [rsp + 0x20], edi
call fcn.14001d4a0
jmp 0x14004baac
mov eax, dword [rbx + 0x30]
test eax, eax
je 0x14004b705
mov rcx, qword [str.P5_n_]
cmp rcx, r14
je 0x14004baac
test byte [rcx + 0x1c], r13b
je 0x14004baac
cmp byte [rcx + 0x19], 3
jb 0x14004baac
mov r9d, dword [rbx + 0x20]
mov rcx, qword [rcx + 0x10]
mov edx, 0xf9
mov r8, r15
mov dword [rsp + 0x20], eax
call fcn.14001d4a0
jmp 0x14004baac
cmp dword [rbx + 0x34], 0
jbe 0x14004b71b
mov edx, r13d
mov rcx, rbx
call fcn.14004cabc
jmp 0x14004baac
mov rcx, qword [str.P5_n_]
cmp rcx, r14
je 0x14004b748
test byte [rcx + 0x1c], r13b
je 0x14004b748
cmp byte [rcx + 0x19], 5
jb 0x14004b748
mov r9d, dword [rbx + 0x20]
mov rcx, qword [rcx + 0x10]
mov edx, 0xfa
mov r8, r15
call fcn.1400100e0
mov rcx, qword [0x1400a3e28]
call qword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
mov dil, 2
test eax, eax
jne 0x14004b795
mov rax, qword [str.P5_n_]
cmp rax, r14
je 0x14004b795
test byte [rax + 0x1c], r13b
je 0x14004b795
cmp byte [rax + 0x19], dil
jb 0x14004b795
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.P5_n_]
mov edx, 0xfb
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov r8, r15
call fcn.1400100e0
mov rax, qword [rbx + 8]
mov rcx, qword [rbx]
mov qword [rax], rcx
mov qword [rcx + 8], rax
and qword [rbx], 0
and qword [rbx + 8], 0
test esi, esi
je 0x14004b827
mov rcx, qword [str.P5_n_]
cmp rcx, r14
je 0x14004b7dd
test byte [rcx + 0x1c], r13b
je 0x14004b7dd
cmp byte [rcx + 0x19], 5
jb 0x14004b7dd
mov r9d, dword [rbx + 0x20]
mov rcx, qword [rcx + 0x10]
mov edx, 0xfc
mov r8, r15
call fcn.1400100e0
mov edx, 1
mov rcx, rbx
call fcn.14004bae4
test eax, eax
jne 0x14004b827
mov rcx, qword [str.P5_n_]
cmp rcx, r14
je 0x14004b82e
test byte [rcx + 0x1c], r13b
je 0x14004b82e
cmp byte [rcx + 0x19], dil
jb 0x14004b82e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.P5_n_]
mov edx, 0xfd
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov r8, r15
call fcn.1400100e0
mov rcx, qword [str.P5_n_]
mov rax, qword [rbx + 0x38]
test rax, rax
je 0x14004b8c2
cmp rcx, r14
je 0x14004b866
test byte [rcx + 0x1c], r13b
je 0x14004b866
cmp byte [rcx + 0x19], 5
jb 0x14004b866
mov r9d, dword [rbx + 0x20]
mov rcx, qword [rcx + 0x10]
mov edx, 0xfe
mov r8, r15
mov qword [rsp + 0x20], rax
call fcn.140058098
mov rcx, qword [rbx + 0x38]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14004b8bb
mov rcx, qword [str.P5_n_]
cmp rcx, r14
je 0x14004b8c2
test byte [rcx + 0x1c], r13b
je 0x14004b8c2
cmp byte [rcx + 0x19], dil
jb 0x14004b8c2
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, 0xff
mov r8, r15
mov qword [rsp + 0x20], rax
call fcn.14003b8f4
mov rcx, qword [str.P5_n_]
mov rax, qword [rbx + 0x48]
test rax, rax
je 0x14004b956
cmp rcx, r14
je 0x14004b8fa
test byte [rcx + 0x1c], r13b
je 0x14004b8fa
cmp byte [rcx + 0x19], 5
jb 0x14004b8fa
mov r9d, dword [rbx + 0x20]
mov rcx, qword [rcx + 0x10]
mov edx, 0x100
mov r8, r15
mov qword [rsp + 0x20], rax
call fcn.140058098
mov rcx, qword [rbx + 0x48]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14004b94f
mov rcx, qword [str.P5_n_]
cmp rcx, r14
je 0x14004b956
test byte [rcx + 0x1c], r13b
je 0x14004b956
cmp byte [rcx + 0x19], dil
jb 0x14004b956
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, 0x101
mov r8, r15
mov qword [rsp + 0x20], rax
call fcn.14003b8f4
mov rcx, qword [str.P5_n_]
mov rax, qword [rbx + 0xb8]
test rax, rax
je 0x14004b9f9
cmp dword [rbx + 0xc0], 0
jne 0x14004b9f9
cmp rcx, r14
je 0x14004b99e
test byte [rcx + 0x1c], r13b
je 0x14004b99e
cmp byte [rcx + 0x19], 5
jb 0x14004b99e
mov r9d, dword [rbx + 0x20]
mov rcx, qword [rcx + 0x10]
mov edx, 0x102
mov r8, r15
mov qword [rsp + 0x20], rax
call fcn.140058098
mov rcx, qword [rbx + 0xb8]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14004b9f9
mov rax, qword [str.P5_n_]
cmp rax, r14
je 0x14004b9f9
test byte [rax + 0x1c], r13b
je 0x14004b9f9
cmp byte [rax + 0x19], dil
jb 0x14004b9f9
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 + 0xb8]
mov edx, 0x103
mov r8, r15
mov qword [rsp + 0x20], rax
call fcn.14003b8f4
lea rcx, [0x1400a3e1c]
call fcn.1400446ac
test ebp, ebp
je 0x14004ba5d
mov r9, qword [rbx + 0x198]
mov r8d, dword [rbx + 0x20]
mov edx, 0x17
xor ecx, ecx
call fcn.1400666f8
test eax, eax
jne 0x14004ba5d
mov rax, qword [str.P5_n_]
cmp rax, r14
je 0x14004ba5d
test byte [rax + 0x1c], r13b
je 0x14004ba5d
cmp byte [rax + 0x19], dil
jb 0x14004ba5d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.P5_n_]
mov edx, 0x104
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov r8, r15
call fcn.1400100e0
mov edx, 1
mov rcx, rbx
call fcn.14004ab8c
call fcn.1400449f0
test eax, eax
jne 0x14004baac
mov rax, qword [str.P5_n_]
cmp rax, r14
je 0x14004baac
test byte [rax + 0x1c], r13b
je 0x14004baac
cmp byte [rax + 0x19], dil
jb 0x14004baac
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.P5_n_]
mov edx, 0x105
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov r8, r15
call fcn.1400100e0
lea rcx, [0x1400a3e30]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov eax, 1
add rsp, 0x30
pop r15
pop r14
pop r13
ret