Function at 0x14003a5b8
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 0x14003a61a
test byte [rcx + 0x1c], r15b
je 0x14003a61a
cmp byte [rcx + 0x19], 5
jb 0x14003a61a
mov rcx, qword [rcx + 0x10]
mov edx, 0xf7
mov r8, r13
call fcn.140001010
lea rcx, [0x14009a180]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x14009a170]
lea rcx, [0x14009a170]
jmp 0x14003a642
mov rbx, rax
mov rax, qword [rax]
cmp rbx, rdi
je 0x14003a649
cmp rax, rcx
jne 0x14003a637
xor ebx, ebx
test rbx, rbx
jne 0x14003a690
mov rcx, qword [str.___t_]
cmp rcx, r12
je 0x14003aa88
test byte [rcx + 0x1c], r15b
je 0x14003aa88
cmp byte [rcx + 0x19], 3
jb 0x14003aa88
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 0x14003aa88
mov eax, dword [rbx + 0x30]
test eax, eax
je 0x14003a6d9
mov rcx, qword [str.___t_]
cmp rcx, r12
je 0x14003aa88
test byte [rcx + 0x1c], r15b
je 0x14003aa88
cmp byte [rcx + 0x19], 3
jb 0x14003aa88
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 0x14003aa88
cmp dword [rbx + 0x34], 0
jbe 0x14003a6ef
mov edx, r15d
mov rcx, rbx
call fcn.14003ba70
jmp 0x14003aa88
mov rcx, qword [str.___t_]
cmp rcx, r12
je 0x14003a71c
test byte [rcx + 0x1c], r15b
je 0x14003a71c
cmp byte [rcx + 0x19], 5
jb 0x14003a71c
mov r9d, dword [rbx + 0x20]
mov edx, 0xfa
mov rcx, qword [rcx + 0x10]
mov r8, r13
call fcn.140001030
mov rcx, qword [0x14009a1c0]
call qword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
mov dil, 2
test eax, eax
jne 0x14003a769
mov rax, qword [str.___t_]
cmp rax, r12
je 0x14003a769
test byte [rax + 0x1c], r15b
je 0x14003a769
cmp byte [rax + 0x19], dil
jb 0x14003a769
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 0x14003a7f6
mov rcx, qword [str.___t_]
cmp rcx, r12
je 0x14003a7b1
test byte [rcx + 0x1c], r15b
je 0x14003a7b1
cmp byte [rcx + 0x19], 5
jb 0x14003a7b1
mov r9d, dword [rbx + 0x20]
mov edx, 0xfc
mov rcx, qword [rcx + 0x10]
mov r8, r13
call fcn.140001030
mov rcx, rbx
call fcn.14003aabc
test eax, eax
jne 0x14003a7f6
mov rcx, qword [str.___t_]
cmp rcx, r12
je 0x14003a7fd
test byte [rcx + 0x1c], r15b
je 0x14003a7fd
cmp byte [rcx + 0x19], dil
jb 0x14003a7fd
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 0x14003a897
mov rdx, rax
cmp rcx, r12
je 0x14003a83c
test byte [rcx + 0x1c], r15b
je 0x14003a83c
cmp byte [rcx + 0x19], 5
jb 0x14003a83c
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 rdx, qword [rbx + 0x38]
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14003a890
mov rcx, qword [str.___t_]
cmp rcx, r12
je 0x14003a897
test byte [rcx + 0x1c], r15b
je 0x14003a897
cmp byte [rcx + 0x19], dil
jb 0x14003a897
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.14002b3cc
mov rcx, qword [str.___t_]
mov rax, qword [rbx + 0x48]
test rax, rax
je 0x14003a931
mov rdx, rax
cmp rcx, r12
je 0x14003a8d6
test byte [rcx + 0x1c], r15b
je 0x14003a8d6
cmp byte [rcx + 0x19], 5
jb 0x14003a8d6
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 rdx, qword [rbx + 0x48]
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14003a92a
mov rcx, qword [str.___t_]
cmp rcx, r12
je 0x14003a931
test byte [rcx + 0x1c], r15b
je 0x14003a931
cmp byte [rcx + 0x19], dil
jb 0x14003a931
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.14002b3cc
mov rcx, qword [str.___t_]
mov rax, qword [rbx + 0xb8]
test rax, rax
je 0x14003a9da
cmp dword [rbx + 0xc0], 0
jne 0x14003a9da
mov rdx, rax
cmp rcx, r12
je 0x14003a983
test byte [rcx + 0x1c], r15b
je 0x14003a983
cmp byte [rcx + 0x19], 5
jb 0x14003a983
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 rdx, qword [rbx + 0xb8]
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14003a9da
mov rax, qword [str.___t_]
cmp rax, r12
je 0x14003a9da
test byte [rax + 0x1c], r15b
je 0x14003a9da
cmp byte [rax + 0x19], dil
jb 0x14003a9da
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.14002b3cc
lea rcx, [0x14009a1b8]
call fcn.14003388c
test ebp, ebp
je 0x14003aa3e
mov r9, qword [rbx + 0x198]
mov edx, 0x17
mov r8d, dword [rbx + 0x20]
xor ecx, ecx
call fcn.140054154
test eax, eax
jne 0x14003aa3e
mov rax, qword [str.___t_]
cmp rax, r12
je 0x14003aa3e
test byte [rax + 0x1c], r15b
je 0x14003aa3e
cmp byte [rax + 0x19], dil
jb 0x14003aa3e
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.140039ae8
call fcn.140033bbc
test eax, eax
jne 0x14003aa88
mov rax, qword [str.___t_]
cmp rax, r12
je 0x14003aa88
test byte [rax + 0x1c], r15b
je 0x14003aa88
cmp byte [rax + 0x19], dil
jb 0x14003aa88
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, [0x14009a180]
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