Function at 0x140048d24
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, [0x140003b68]
mov r15d, 4
cmp rcx, r12
je 0x140048d86
test byte [rcx + 0x1c], r15b
je 0x140048d86
cmp byte [rcx + 0x19], 5
jb 0x140048d86
mov rcx, qword [rcx + 0x10]
mov edx, 0xf7
mov r8, r13
call fcn.14000e618
lea rcx, [0x14009a1b0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x14009a1a0]
lea rcx, [0x14009a1a0]
jmp 0x140048dae
mov rbx, rax
mov rax, qword [rax]
cmp rbx, rdi
je 0x140048db5
cmp rax, rcx
jne 0x140048da3
xor ebx, ebx
test rbx, rbx
jne 0x140048dfc
mov rcx, qword [str.___t_]
cmp rcx, r12
je 0x1400491e2
test byte [rcx + 0x1c], r15b
je 0x1400491e2
cmp byte [rcx + 0x19], 3
jb 0x1400491e2
mov r9d, dword [rdi + 0x20]
mov rcx, qword [rcx + 0x10]
mov edx, 0xf8
mov r8, r13
mov dword [rsp + 0x20], edi
call fcn.14000e820
jmp 0x1400491e2
mov eax, dword [rbx + 0x30]
test eax, eax
je 0x140048e45
mov rcx, qword [str.___t_]
cmp rcx, r12
je 0x1400491e2
test byte [rcx + 0x1c], r15b
je 0x1400491e2
cmp byte [rcx + 0x19], 3
jb 0x1400491e2
mov r9d, dword [rbx + 0x20]
mov rcx, qword [rcx + 0x10]
mov edx, 0xf9
mov r8, r13
mov dword [rsp + 0x20], eax
call fcn.14000e820
jmp 0x1400491e2
cmp dword [rbx + 0x34], 0
jbe 0x140048e5b
mov edx, r15d
mov rcx, rbx
call fcn.14004a1e8
jmp 0x1400491e2
mov rcx, qword [str.___t_]
cmp rcx, r12
je 0x140048e88
test byte [rcx + 0x1c], r15b
je 0x140048e88
cmp byte [rcx + 0x19], 5
jb 0x140048e88
mov r9d, dword [rbx + 0x20]
mov rcx, qword [rcx + 0x10]
mov edx, 0xfa
mov r8, r13
call fcn.14000e63c
mov rcx, qword [0x14009a1f0]
call qword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
mov dil, 2
test eax, eax
jne 0x140048ed5
mov rax, qword [str.___t_]
cmp rax, r12
je 0x140048ed5
test byte [rax + 0x1c], r15b
je 0x140048ed5
cmp byte [rax + 0x19], dil
jb 0x140048ed5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
mov edx, 0xfb
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov r8, r13
call fcn.14000e63c
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 0x140048f62
mov rcx, qword [str.___t_]
cmp rcx, r12
je 0x140048f1d
test byte [rcx + 0x1c], r15b
je 0x140048f1d
cmp byte [rcx + 0x19], 5
jb 0x140048f1d
mov r9d, dword [rbx + 0x20]
mov rcx, qword [rcx + 0x10]
mov edx, 0xfc
mov r8, r13
call fcn.14000e63c
mov rcx, rbx
call fcn.14004921c
test eax, eax
jne 0x140048f62
mov rcx, qword [str.___t_]
cmp rcx, r12
je 0x140048f69
test byte [rcx + 0x1c], r15b
je 0x140048f69
cmp byte [rcx + 0x19], dil
jb 0x140048f69
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
mov edx, 0xfd
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov r8, r13
call fcn.14000e63c
mov rcx, qword [str.___t_]
mov rax, qword [rbx + 0x38]
test rax, rax
je 0x140048ffd
cmp rcx, r12
je 0x140048fa1
test byte [rcx + 0x1c], r15b
je 0x140048fa1
cmp byte [rcx + 0x19], 5
jb 0x140048fa1
mov r9d, dword [rbx + 0x20]
mov rcx, qword [rcx + 0x10]
mov edx, 0xfe
mov r8, r13
mov qword [rsp + 0x20], rax
call fcn.14000e678
mov rcx, qword [rbx + 0x38]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140048ff6
mov rcx, qword [str.___t_]
cmp rcx, r12
je 0x140048ffd
test byte [rcx + 0x1c], r15b
je 0x140048ffd
cmp byte [rcx + 0x19], dil
jb 0x140048ffd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
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, r13
mov qword [rsp + 0x20], rax
call fcn.1400396bc
mov rcx, qword [str.___t_]
mov rax, qword [rbx + 0x48]
test rax, rax
je 0x140049091
cmp rcx, r12
je 0x140049035
test byte [rcx + 0x1c], r15b
je 0x140049035
cmp byte [rcx + 0x19], 5
jb 0x140049035
mov r9d, dword [rbx + 0x20]
mov rcx, qword [rcx + 0x10]
mov edx, 0x100
mov r8, r13
mov qword [rsp + 0x20], rax
call fcn.14000e678
mov rcx, qword [rbx + 0x48]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14004908a
mov rcx, qword [str.___t_]
cmp rcx, r12
je 0x140049091
test byte [rcx + 0x1c], r15b
je 0x140049091
cmp byte [rcx + 0x19], dil
jb 0x140049091
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
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, r13
mov qword [rsp + 0x20], rax
call fcn.1400396bc
mov rcx, qword [str.___t_]
mov rax, qword [rbx + 0xb8]
test rax, rax
je 0x140049134
cmp dword [rbx + 0xc0], 0
jne 0x140049134
cmp rcx, r12
je 0x1400490d9
test byte [rcx + 0x1c], r15b
je 0x1400490d9
cmp byte [rcx + 0x19], 5
jb 0x1400490d9
mov r9d, dword [rbx + 0x20]
mov rcx, qword [rcx + 0x10]
mov edx, 0x102
mov r8, r13
mov qword [rsp + 0x20], rax
call fcn.14000e678
mov rcx, qword [rbx + 0xb8]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140049134
mov rax, qword [str.___t_]
cmp rax, r12
je 0x140049134
test byte [rax + 0x1c], r15b
je 0x140049134
cmp byte [rax + 0x19], dil
jb 0x140049134
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
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, r13
mov qword [rsp + 0x20], rax
call fcn.1400396bc
lea rcx, [0x14009a1e8]
call fcn.140041f5c
test ebp, ebp
je 0x140049198
mov r9, qword [rbx + 0x198]
mov r8d, dword [rbx + 0x20]
mov edx, 0x17
xor ecx, ecx
call fcn.140062fc4
test eax, eax
jne 0x140049198
mov rax, qword [str.___t_]
cmp rax, r12
je 0x140049198
test byte [rax + 0x1c], r15b
je 0x140049198
cmp byte [rax + 0x19], dil
jb 0x140049198
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
mov edx, 0x104
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov r8, r13
call fcn.14000e63c
mov rcx, rbx
call fcn.140048214
call fcn.140042298
test eax, eax
jne 0x1400491e2
mov rax, qword [str.___t_]
cmp rax, r12
je 0x1400491e2
test byte [rax + 0x1c], r15b
je 0x1400491e2
cmp byte [rax + 0x19], dil
jb 0x1400491e2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
mov edx, 0x105
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov r8, r13
call fcn.14000e63c
lea rcx, [0x14009a1b0]
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 r13
pop r12
ret