Function at 0x140049804
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 r12d, edx
mov r13, rcx
mov rcx, qword [str.___t_]
lea rdi, str.___t_
mov bpl, 5
lea rsi, [0x140003b68]
cmp rcx, rdi
je 0x140049861
test byte [rcx + 0x1c], 4
je 0x140049861
cmp byte [rcx + 0x19], bpl
jb 0x140049861
mov rcx, qword [rcx + 0x10]
mov edx, 0x118
mov r8, rsi
call fcn.14000e618
lea r15, [0x14009a1b0]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x14009a1a0]
lea rcx, [0x14009a1a0]
jmp 0x14004988c
mov rbx, rax
mov rax, qword [rax]
cmp rbx, r13
je 0x140049893
cmp rax, rcx
jne 0x140049881
xor ebx, ebx
test rbx, rbx
jne 0x1400498a0
mov rcx, r15
jmp 0x140049d5e
cmp dword [rbx + 0x34], 0
jbe 0x1400498b5
mov edx, 4
mov rcx, rbx
call fcn.14004a1e8
jmp 0x140049898
mov eax, dword [rbx + 0x30]
mov r15d, dword [rbx + 0x20]
test eax, eax
jne 0x140049d27
mov rcx, qword [str.___t_]
cmp rcx, rdi
je 0x1400498f0
test byte [rcx + 0x1c], 4
je 0x1400498f0
cmp byte [rcx + 0x19], bpl
jb 0x1400498f0
mov rcx, qword [rcx + 0x10]
mov edx, 0x119
mov r9d, r15d
mov r8, rsi
call fcn.14000e63c
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
mov qword [rax], rcx
mov qword [rcx + 8], rax
mov rcx, qword [0x14009a1f0]
and qword [rbx], 0
and qword [rbx + 8], 0
call qword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
test eax, eax
jne 0x140049951
mov rax, qword [str.___t_]
cmp rax, rdi
je 0x140049951
test byte [rax + 0x1c], 4
je 0x140049951
cmp byte [rax + 0x19], 2
jb 0x140049951
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
mov edx, 0x11a
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov r8, rsi
call fcn.14000e63c
call fcn.140042298
test eax, eax
jne 0x140049993
mov rax, qword [str.___t_]
cmp rax, rdi
je 0x14004999a
test byte [rax + 0x1c], 4
je 0x14004999a
cmp byte [rax + 0x19], 2
jb 0x14004999a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
mov edx, 0x11b
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov r8, rsi
call fcn.14000e63c
mov rax, qword [str.___t_]
mov r9, qword [rbx + 0x48]
test r9, r9
je 0x140049a49
cmp dword [rbx + 0x730], 1
jne 0x140049a20
cmp rax, rdi
je 0x1400499d2
test byte [rax + 0x1c], 4
je 0x1400499d2
cmp byte [rax + 0x19], bpl
jb 0x1400499d2
mov rcx, qword [rax + 0x10]
mov edx, 0x11c
mov r8, rsi
call fcn.14000e868
mov rcx, qword [rbx + 0x48]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140049a42
mov rax, qword [str.___t_]
cmp rax, rdi
je 0x140049a49
test byte [rax + 0x1c], 4
je 0x140049a49
cmp byte [rax + 0x19], 2
jb 0x140049a49
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
mov r9, qword [rbx + 0x48]
mov rcx, qword [rcx + 0x10]
mov edx, 0x11d
mov r8, rsi
mov dword [rsp + 0x20], eax
call fcn.14000e8e4
jmp 0x140049a42
cmp rax, rdi
je 0x140049a49
test byte [rax + 0x1c], 4
je 0x140049a49
cmp byte [rax + 0x19], 3
jb 0x140049a49
mov rcx, qword [rax + 0x10]
mov edx, 0x11e
mov r8, rsi
call fcn.14000e868
mov rax, qword [str.___t_]
cmp dword [rbx + 0x24], 8
jne 0x140049c72
mov r9, qword [rbx + 0x38]
test r9, r9
je 0x140049ad1
cmp rax, rdi
je 0x140049a7e
test byte [rax + 0x1c], 4
je 0x140049a7e
cmp byte [rax + 0x19], bpl
jb 0x140049a7e
mov rcx, qword [rax + 0x10]
mov edx, 0x11f
mov r8, rsi
call fcn.14000e868
mov rcx, qword [rbx + 0x38]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140049aca
mov rax, qword [str.___t_]
cmp rax, rdi
je 0x140049ad1
test byte [rax + 0x1c], 4
je 0x140049ad1
cmp byte [rax + 0x19], 2
jb 0x140049ad1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
mov r9, qword [rbx + 0x38]
mov rcx, qword [rcx + 0x10]
mov edx, 0x120
mov r8, rsi
mov dword [rsp + 0x20], eax
call fcn.14000e8e4
mov rax, qword [str.___t_]
mov rcx, qword [rbx + 0x258]
test rcx, rcx
je 0x140049b6e
cmp rax, rdi
je 0x140049b0c
test byte [rax + 0x1c], 4
je 0x140049b0c
cmp byte [rax + 0x19], bpl
jb 0x140049b0c
mov r9d, dword [rbx + 0x20]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rax + 0x10]
mov edx, 0x121
mov r8, rsi
call fcn.14000e678
mov rcx, qword [rbx + 0x258]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140049b67
mov rax, qword [str.___t_]
cmp rax, rdi
je 0x140049b97
test byte [rax + 0x1c], 4
je 0x140049b6e
cmp byte [rax + 0x19], bpl
jb 0x140049b6e
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 + 0x258]
mov edx, 0x122
mov r8, rsi
mov qword [rsp + 0x20], rax
call fcn.1400396bc
mov rax, qword [str.___t_]
cmp rax, rdi
je 0x140049b97
test byte [rax + 0x1c], 4
je 0x140049b97
cmp byte [rax + 0x19], bpl
jb 0x140049b97
mov rcx, qword [rax + 0x10]
mov edx, 0x123
mov r8, rsi
call fcn.14000e618
mov rax, qword [str.___t_]
lea rsi, [rbx + 0x6a0]
mov rdi, qword [rsi]
test rdi, rdi
je 0x140049c64
mov rdi, qword [rdi]
test rdi, rdi
je 0x140049c64
cmp rdi, rsi
je 0x140049c64
lea rcx, str.___t_
lea rbp, [rdi]
mov rdi, qword [rdi]
cmp rax, rcx
je 0x140049bf6
test byte [rax + 0x1c], 4
je 0x140049bf6
cmp byte [rax + 0x19], 5
jb 0x140049bf6
mov r9, qword [rbp + 0x10]
mov rcx, qword [rax + 0x10]
lea r8, [0x140003b68]
mov edx, 0x124
call fcn.14000e868
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140049c4d
mov rax, qword [str.___t_]
lea rcx, str.___t_
cmp rax, rcx
je 0x140049c5b
test byte [rax + 0x1c], 4
je 0x140049c5b
cmp byte [rax + 0x19], 2
jb 0x140049c5b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
mov r9, qword [rbp + 0x10]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140003b68]
mov edx, 0x125
mov dword [rsp + 0x20], eax
call fcn.14000e8e4
mov rax, qword [str.___t_]
lea rcx, str.___t_
cmp rdi, rsi
jne 0x140049bc6
lea rsi, [0x140003b68]
lea rdi, str.___t_
test r12d, r12d
je 0x140049d11
mov rdx, r13
mov ecx, 1
call fcn.140062504
test eax, eax
je 0x140049cbe
mov rcx, qword [str.___t_]
cmp rcx, rdi
je 0x140049cbe
test byte [rcx + 0x1c], 4
je 0x140049cbe
cmp byte [rcx + 0x19], 2
jb 0x140049cbe
mov r9d, dword [r13 + 0x10]
mov rcx, qword [rcx + 0x10]
mov edx, 0x126
mov r8, rsi
mov word [rsp + 0x20], ax
call fcn.14001bcf4
mov r9, qword [rbx + 0x198]
mov r8d, r15d
mov edx, 0x17
xor ecx, ecx
call fcn.140062fc4
test eax, eax
jne 0x140049d11
mov rax, qword [str.___t_]
cmp rax, rdi
je 0x140049d11
test byte [rax + 0x1c], 4
je 0x140049d11
cmp byte [rax + 0x19], 2
jb 0x140049d11
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
mov edx, 0x127
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov r8, rsi
call fcn.14000e63c
mov rcx, rbx
call fcn.1400487ec
lea rcx, [0x14009a1e8]
call fcn.140041f5c
jmp 0x140049d57
mov rcx, qword [str.___t_]
cmp rcx, rdi
je 0x140049d57
test byte [rcx + 0x1c], 4
je 0x140049d57
cmp byte [rcx + 0x19], 2
jb 0x140049d57
mov rcx, qword [rcx + 0x10]
mov edx, 0x128
mov r9d, r15d
mov r8, rsi
mov dword [rsp + 0x20], eax
call fcn.14000e820
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