Function at 0x14003a294
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, [0x140082698]
mov r15d, 4
cmp rcx, r12
je 0x14003a2f6
test byte [rcx + 0x1c], r15b
je 0x14003a2f6
cmp byte [rcx + 0x19], 5
jb 0x14003a2f6
mov rcx, qword [rcx + 0x10]
mov edx, 0xf7
mov r8, r13
call fcn.140001010
lea rcx, [0x1400981a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x140098190]
lea rcx, [0x140098190]
jmp 0x14003a31e
mov rbx, rax
mov rax, qword [rax]
cmp rbx, rdi
je 0x14003a325
cmp rax, rcx
jne 0x14003a313
xor ebx, ebx
test rbx, rbx
jne 0x14003a36c
mov rcx, qword [str.___t_]
cmp rcx, r12
je 0x14003a752
test byte [rcx + 0x1c], r15b
je 0x14003a752
cmp byte [rcx + 0x19], 3
jb 0x14003a752
mov r9d, dword [rdi + 0x20]
mov edx, 0xf8
mov rcx, qword [rcx + 0x10]
mov r8, r13
mov dword [rsp + 0x20], edi
call fcn.1400011ac
jmp 0x14003a752
mov eax, dword [rbx + 0x30]
test eax, eax
je 0x14003a3b5
mov rcx, qword [str.___t_]
cmp rcx, r12
je 0x14003a752
test byte [rcx + 0x1c], r15b
je 0x14003a752
cmp byte [rcx + 0x19], 3
jb 0x14003a752
mov r9d, dword [rbx + 0x20]
mov edx, 0xf9
mov rcx, qword [rcx + 0x10]
mov r8, r13
mov dword [rsp + 0x20], eax
call fcn.1400011ac
jmp 0x14003a752
cmp dword [rbx + 0x34], 0
jbe 0x14003a3cb
mov edx, r15d
mov rcx, rbx
call fcn.14003b720
jmp 0x14003a752
mov rcx, qword [str.___t_]
cmp rcx, r12
je 0x14003a3f8
test byte [rcx + 0x1c], r15b
je 0x14003a3f8
cmp byte [rcx + 0x19], 5
jb 0x14003a3f8
mov r9d, dword [rbx + 0x20]
mov edx, 0xfa
mov rcx, qword [rcx + 0x10]
mov r8, r13
call fcn.140001030
mov rcx, qword [0x1400981e0]
call qword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
mov dil, 2
test eax, eax
jne 0x14003a445
mov rax, qword [str.___t_]
cmp rax, r12
je 0x14003a445
test byte [rax + 0x1c], r15b
je 0x14003a445
cmp byte [rax + 0x19], dil
jb 0x14003a445
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.140001030
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 0x14003a4d2
mov rcx, qword [str.___t_]
cmp rcx, r12
je 0x14003a48d
test byte [rcx + 0x1c], r15b
je 0x14003a48d
cmp byte [rcx + 0x19], 5
jb 0x14003a48d
mov r9d, dword [rbx + 0x20]
mov edx, 0xfc
mov rcx, qword [rcx + 0x10]
mov r8, r13
call fcn.140001030
mov rcx, rbx
call fcn.14003a784
test eax, eax
jne 0x14003a4d2
mov rcx, qword [str.___t_]
cmp rcx, r12
je 0x14003a4d9
test byte [rcx + 0x1c], r15b
je 0x14003a4d9
cmp byte [rcx + 0x19], dil
jb 0x14003a4d9
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.140001030
mov rcx, qword [str.___t_]
mov rax, qword [rbx + 0x38]
test rax, rax
je 0x14003a56d
cmp rcx, r12
je 0x14003a511
test byte [rcx + 0x1c], r15b
je 0x14003a511
cmp byte [rcx + 0x19], 5
jb 0x14003a511
mov r9d, dword [rbx + 0x20]
mov edx, 0xfe
mov rcx, qword [rcx + 0x10]
mov r8, r13
mov qword [rsp + 0x20], rax
call fcn.140001064
mov rcx, qword [rbx + 0x38]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14003a566
mov rcx, qword [str.___t_]
cmp rcx, r12
je 0x14003a56d
test byte [rcx + 0x1c], r15b
je 0x14003a56d
cmp byte [rcx + 0x19], dil
jb 0x14003a56d
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.14002b188
mov rcx, qword [str.___t_]
mov rax, qword [rbx + 0x48]
test rax, rax
je 0x14003a601
cmp rcx, r12
je 0x14003a5a5
test byte [rcx + 0x1c], r15b
je 0x14003a5a5
cmp byte [rcx + 0x19], 5
jb 0x14003a5a5
mov r9d, dword [rbx + 0x20]
mov edx, 0x100
mov rcx, qword [rcx + 0x10]
mov r8, r13
mov qword [rsp + 0x20], rax
call fcn.140001064
mov rcx, qword [rbx + 0x48]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14003a5fa
mov rcx, qword [str.___t_]
cmp rcx, r12
je 0x14003a601
test byte [rcx + 0x1c], r15b
je 0x14003a601
cmp byte [rcx + 0x19], dil
jb 0x14003a601
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.14002b188
mov rcx, qword [str.___t_]
mov rax, qword [rbx + 0xb8]
test rax, rax
je 0x14003a6a4
cmp dword [rbx + 0xc0], 0
jne 0x14003a6a4
cmp rcx, r12
je 0x14003a649
test byte [rcx + 0x1c], r15b
je 0x14003a649
cmp byte [rcx + 0x19], 5
jb 0x14003a649
mov r9d, dword [rbx + 0x20]
mov edx, 0x102
mov rcx, qword [rcx + 0x10]
mov r8, r13
mov qword [rsp + 0x20], rax
call fcn.140001064
mov rcx, qword [rbx + 0xb8]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14003a6a4
mov rax, qword [str.___t_]
cmp rax, r12
je 0x14003a6a4
test byte [rax + 0x1c], r15b
je 0x14003a6a4
cmp byte [rax + 0x19], dil
jb 0x14003a6a4
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.14002b188
lea rcx, [0x1400981d8]
call fcn.14003363c
test ebp, ebp
je 0x14003a708
mov r9, qword [rbx + 0x198]
mov edx, 0x17
mov r8d, dword [rbx + 0x20]
xor ecx, ecx
call fcn.140053e0c
test eax, eax
jne 0x14003a708
mov rax, qword [str.___t_]
cmp rax, r12
je 0x14003a708
test byte [rax + 0x1c], r15b
je 0x14003a708
cmp byte [rax + 0x19], dil
jb 0x14003a708
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.140001030
mov rcx, rbx
call fcn.1400397e0
call fcn.14003396c
test eax, eax
jne 0x14003a752
mov rax, qword [str.___t_]
cmp rax, r12
je 0x14003a752
test byte [rax + 0x1c], r15b
je 0x14003a752
cmp byte [rax + 0x19], dil
jb 0x14003a752
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.140001030
lea rcx, [0x1400981a0]
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