Function at 0x14003af08
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 r12
push r13
push r15
sub rsp, 0x30
mov ebp, r8d
mov esi, edx
mov rdi, rcx
mov rcx, qword [str.___t_]
lea r12, str.___t_
lea r13, [0x1400836a8]
mov r15d, 4
cmp rcx, r12
je 0x14003af6a
test byte [rcx + 0x1c], r15b
je 0x14003af6a
cmp byte [rcx + 0x19], 5
jb 0x14003af6a
mov rcx, qword [rcx + 0x10]
mov edx, 0xf7
mov r8, r13
call fcn.140001024
lea rcx, [0x140098180]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x140098170]
lea rcx, [0x140098170]
jmp 0x14003af92
mov rbx, rax
mov rax, qword [rax]
cmp rbx, rdi
je 0x14003af99
cmp rax, rcx
jne 0x14003af87
xor ebx, ebx
test rbx, rbx
jne 0x14003afe0
mov rcx, qword [str.___t_]
cmp rcx, r12
je 0x14003b3d8
test byte [rcx + 0x1c], r15b
je 0x14003b3d8
cmp byte [rcx + 0x19], 3
jb 0x14003b3d8
mov r9d, dword [rdi + 0x20]
mov edx, 0xf8
mov rcx, qword [rcx + 0x10]
mov r8, r13
mov dword [rsp + 0x20], edi
call fcn.140001378
jmp 0x14003b3d8
mov eax, dword [rbx + 0x30]
test eax, eax
je 0x14003b029
mov rcx, qword [str.___t_]
cmp rcx, r12
je 0x14003b3d8
test byte [rcx + 0x1c], r15b
je 0x14003b3d8
cmp byte [rcx + 0x19], 3
jb 0x14003b3d8
mov r9d, dword [rbx + 0x20]
mov edx, 0xf9
mov rcx, qword [rcx + 0x10]
mov r8, r13
mov dword [rsp + 0x20], eax
call fcn.140001378
jmp 0x14003b3d8
cmp dword [rbx + 0x34], 0
jbe 0x14003b03f
mov edx, r15d
mov rcx, rbx
call fcn.14003c3f8
jmp 0x14003b3d8
mov rcx, qword [str.___t_]
cmp rcx, r12
je 0x14003b06c
test byte [rcx + 0x1c], r15b
je 0x14003b06c
cmp byte [rcx + 0x19], 5
jb 0x14003b06c
mov r9d, dword [rbx + 0x20]
mov edx, 0xfa
mov rcx, qword [rcx + 0x10]
mov r8, r13
call fcn.140001048
mov rcx, qword [0x1400981c0]
call qword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
mov dil, 2
test eax, eax
jne 0x14003b0b9
mov rax, qword [str.___t_]
cmp rax, r12
je 0x14003b0b9
test byte [rax + 0x1c], r15b
je 0x14003b0b9
cmp byte [rax + 0x19], dil
jb 0x14003b0b9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
mov edx, 0xfb
mov r9d, eax
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.140001048
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 0x14003b146
mov rcx, qword [str.___t_]
cmp rcx, r12
je 0x14003b101
test byte [rcx + 0x1c], r15b
je 0x14003b101
cmp byte [rcx + 0x19], 5
jb 0x14003b101
mov r9d, dword [rbx + 0x20]
mov edx, 0xfc
mov rcx, qword [rcx + 0x10]
mov r8, r13
call fcn.140001048
mov rcx, rbx
call fcn.14003b410
test eax, eax
jne 0x14003b146
mov rcx, qword [str.___t_]
cmp rcx, r12
je 0x14003b14d
test byte [rcx + 0x1c], r15b
je 0x14003b14d
cmp byte [rcx + 0x19], dil
jb 0x14003b14d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
mov edx, 0xfd
mov r9d, eax
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.140001048
mov rcx, qword [str.___t_]
mov rax, qword [rbx + 0x38]
test rax, rax
je 0x14003b1e7
mov rdx, rax
cmp rcx, r12
je 0x14003b18c
test byte [rcx + 0x1c], r15b
je 0x14003b18c
cmp byte [rcx + 0x19], 5
jb 0x14003b18c
mov r9d, dword [rbx + 0x20]
mov edx, 0xfe
mov rcx, qword [rcx + 0x10]
mov r8, r13
mov qword [rsp + 0x20], rax
call fcn.140001084
mov rdx, qword [rbx + 0x38]
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14003b1e0
mov rcx, qword [str.___t_]
cmp rcx, r12
je 0x14003b1e7
test byte [rcx + 0x1c], r15b
je 0x14003b1e7
cmp byte [rcx + 0x19], dil
jb 0x14003b1e7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
mov edx, 0xff
mov r9d, dword [rbx + 0x20]
mov r8, r13
mov dword [rsp + 0x28], eax
mov rax, qword [rbx + 0x38]
mov rcx, qword [rcx + 0x10]
mov qword [rsp + 0x20], rax
call fcn.14002bf08
mov rcx, qword [str.___t_]
mov rax, qword [rbx + 0x48]
test rax, rax
je 0x14003b281
mov rdx, rax
cmp rcx, r12
je 0x14003b226
test byte [rcx + 0x1c], r15b
je 0x14003b226
cmp byte [rcx + 0x19], 5
jb 0x14003b226
mov r9d, dword [rbx + 0x20]
mov edx, 0x100
mov rcx, qword [rcx + 0x10]
mov r8, r13
mov qword [rsp + 0x20], rax
call fcn.140001084
mov rdx, qword [rbx + 0x48]
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14003b27a
mov rcx, qword [str.___t_]
cmp rcx, r12
je 0x14003b281
test byte [rcx + 0x1c], r15b
je 0x14003b281
cmp byte [rcx + 0x19], dil
jb 0x14003b281
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
mov edx, 0x101
mov r9d, dword [rbx + 0x20]
mov r8, r13
mov dword [rsp + 0x28], eax
mov rax, qword [rbx + 0x48]
mov rcx, qword [rcx + 0x10]
mov qword [rsp + 0x20], rax
call fcn.14002bf08
mov rcx, qword [str.___t_]
mov rax, qword [rbx + 0xb8]
test rax, rax
je 0x14003b32a
cmp dword [rbx + 0xc0], 0
jne 0x14003b32a
mov rdx, rax
cmp rcx, r12
je 0x14003b2d3
test byte [rcx + 0x1c], r15b
je 0x14003b2d3
cmp byte [rcx + 0x19], 5
jb 0x14003b2d3
mov r9d, dword [rbx + 0x20]
mov edx, 0x102
mov rcx, qword [rcx + 0x10]
mov r8, r13
mov qword [rsp + 0x20], rax
call fcn.140001084
mov rdx, qword [rbx + 0xb8]
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14003b32a
mov rax, qword [str.___t_]
cmp rax, r12
je 0x14003b32a
test byte [rax + 0x1c], r15b
je 0x14003b32a
cmp byte [rax + 0x19], dil
jb 0x14003b32a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
mov edx, 0x103
mov r9d, dword [rbx + 0x20]
mov r8, r13
mov dword [rsp + 0x28], eax
mov rax, qword [rbx + 0xb8]
mov rcx, qword [rcx + 0x10]
mov qword [rsp + 0x20], rax
call fcn.14002bf08
lea rcx, [0x1400981b8]
call fcn.14003414c
test ebp, ebp
je 0x14003b38e
mov r9, qword [rbx + 0x198]
mov edx, 0x17
mov r8d, dword [rbx + 0x20]
xor ecx, ecx
call fcn.140054e4c
test eax, eax
jne 0x14003b38e
mov rax, qword [str.___t_]
cmp rax, r12
je 0x14003b38e
test byte [rax + 0x1c], r15b
je 0x14003b38e
cmp byte [rax + 0x19], dil
jb 0x14003b38e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
mov edx, 0x104
mov r9d, eax
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.140001048
mov rcx, rbx
call fcn.14003a410
call fcn.14003445c
test eax, eax
jne 0x14003b3d8
mov rax, qword [str.___t_]
cmp rax, r12
je 0x14003b3d8
test byte [rax + 0x1c], r15b
je 0x14003b3d8
cmp byte [rax + 0x19], dil
jb 0x14003b3d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
mov edx, 0x105
mov r9d, eax
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.140001048
lea rcx, [0x140098180]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x50]
mov eax, 1
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r13
pop r12
ret