Function at 0x14004c0dc
Capabilities:
Delete file

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov dword [rax + 0x10], edx
push rdi
push r14
push r15
sub rsp, 0x30
mov r15, rcx
mov rcx, qword [str.P5_n_]
lea rdi, str.P5_n_
mov bpl, 5
lea rsi, [0x140008f68]
cmp rcx, rdi
je 0x14004c134
test byte [rcx + 0x1c], 4
je 0x14004c134
cmp byte [rcx + 0x19], bpl
jb 0x14004c134
mov rcx, qword [rcx + 0x10]
mov edx, 0x118
mov r8, rsi
call fcn.14000ffa8
lea rcx, [0x1400a3e30]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r11, qword [0x1400a3e58]
lea rax, [0x1400a3e58]
jmp 0x14004c15c
mov rbx, r11
mov r11, qword [r11]
cmp rbx, r15
je 0x14004c163
cmp r11, rax
jne 0x14004c151
xor ebx, ebx
test rbx, rbx
je 0x14004c62d
cmp dword [rbx + 0x34], 0
jbe 0x14004c184
mov edx, 4
mov rcx, rbx
call fcn.14004cabc
jmp 0x14004c62d
mov eax, dword [rbx + 0x30]
mov r14d, dword [rbx + 0x20]
test eax, eax
jne 0x14004c5fd
mov rcx, qword [str.P5_n_]
cmp rcx, rdi
je 0x14004c1bf
test byte [rcx + 0x1c], 4
je 0x14004c1bf
cmp byte [rcx + 0x19], bpl
jb 0x14004c1bf
mov rcx, qword [rcx + 0x10]
mov edx, 0x119
mov r9d, r14d
mov r8, rsi
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 0x14004c220
mov rax, qword [str.P5_n_]
cmp rax, rdi
je 0x14004c220
test byte [rax + 0x1c], 4
je 0x14004c220
cmp byte [rax + 0x19], 2
jb 0x14004c220
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.P5_n_]
mov edx, 0x11a
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov r8, rsi
call fcn.1400100e0
call fcn.1400449f0
test eax, eax
jne 0x14004c262
mov rax, qword [str.P5_n_]
cmp rax, rdi
je 0x14004c269
test byte [rax + 0x1c], 4
je 0x14004c269
cmp byte [rax + 0x19], 2
jb 0x14004c269
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.P5_n_]
mov edx, 0x11b
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov r8, rsi
call fcn.1400100e0
mov rax, qword [str.P5_n_]
mov r9, qword [rbx + 0x48]
test r9, r9
je 0x14004c318
cmp dword [rbx + 0x730], 1
jne 0x14004c2ef
cmp rax, rdi
je 0x14004c2a1
test byte [rax + 0x1c], 4
je 0x14004c2a1
cmp byte [rax + 0x19], bpl
jb 0x14004c2a1
mov rcx, qword [rax + 0x10]
mov edx, 0x11c
mov r8, rsi
call fcn.14001011c
mov rcx, qword [rbx + 0x48]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14004c311
mov rax, qword [str.P5_n_]
cmp rax, rdi
je 0x14004c318
test byte [rax + 0x1c], 4
je 0x14004c318
cmp byte [rax + 0x19], 2
jb 0x14004c318
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.P5_n_]
mov r9, qword [rbx + 0x48]
mov rcx, qword [rcx + 0x10]
mov edx, 0x11d
mov r8, rsi
mov dword [rsp + 0x20], eax
call fcn.140011a18
jmp 0x14004c311
cmp rax, rdi
je 0x14004c318
test byte [rax + 0x1c], 4
je 0x14004c318
cmp byte [rax + 0x19], 3
jb 0x14004c318
mov rcx, qword [rax + 0x10]
mov edx, 0x11e
mov r8, rsi
call fcn.14001011c
mov rax, qword [str.P5_n_]
cmp dword [rbx + 0x24], 8
jne 0x14004c541
mov r9, qword [rbx + 0x38]
test r9, r9
je 0x14004c3a0
cmp rax, rdi
je 0x14004c34d
test byte [rax + 0x1c], 4
je 0x14004c34d
cmp byte [rax + 0x19], bpl
jb 0x14004c34d
mov rcx, qword [rax + 0x10]
mov edx, 0x11f
mov r8, rsi
call fcn.14001011c
mov rcx, qword [rbx + 0x38]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14004c399
invalid
invalid
invalid
out dx, al