Function at 0x140049f90
Capabilities:
Delete file

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x288
mov rax, qword [0x14009e140]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rax, qword [rsp + 0x2f0]
mov rsi, rcx
mov r13, r8
mov qword [rsp + 0x58], rax
xor eax, eax
mov r14d, edx
lea rcx, [rsp + 0x62]
mov r8d, 0x206
xor edx, edx
mov ebx, eax
mov edi, eax
mov ebp, eax
movzx r12d, ax
mov word [rsp + 0x50], ax
mov word [rsp + 0x60], ax
mov r15, r9
call sub.msvcrt.dll_memset
mov rcx, qword [str.P5_n_]
lea rax, str.P5_n_
cmp rcx, rax
je 0x14004a032
test byte [rcx + 0x1c], 4
je 0x14004a032
cmp byte [rcx + 0x19], 5
jb 0x14004a032
mov rcx, qword [rcx + 0x10]
lea r8, [0x140008f68]
mov edx, 0xc9
call fcn.14000ffa8
mov rcx, qword [str.P5_n_]
test rsi, rsi
je 0x14004a0a5
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.14003d534
test eax, eax
jne 0x14004a098
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.P5_n_]
lea rax, str.P5_n_
cmp rcx, rax
je 0x14004a258
test byte [rcx + 0x1c], 4
je 0x14004a258
cmp byte [rcx + 0x19], 2
jb 0x14004a258
mov rcx, qword [rcx + 0x10]
lea r8, [0x140008f68]
mov edx, 0xca
mov r9d, ebx
call fcn.1400100e0
jmp 0x14004a258
mov r12w, word [rsp + 0x50]
mov rcx, qword [str.P5_n_]
lea rax, str.P5_n_
cmp rcx, rax
je 0x14004a0d2
test byte [rcx + 0x1c], 4
je 0x14004a0d2
cmp byte [rcx + 0x19], 5
jb 0x14004a0d2
mov rcx, qword [rcx + 0x10]
lea r8, [0x140009808]
mov edx, 0x21
call fcn.14000ffa8
mov r9, qword [rsp + 0x58]
mov dword [rsp + 0x40], 0x104
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], rbx
lea rax, [0x14000a898]
mov qword [rsp + 0x28], rax
mov r8, r13
mov edx, r14d
movzx ecx, r12w
mov qword [rsp + 0x20], r15
call fcn.14003cb28
test eax, eax
jne 0x14004a167
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.P5_n_]
lea rax, str.P5_n_
cmp rcx, rax
je 0x14004a258
test byte [rcx + 0x1c], 4
je 0x14004a258
cmp byte [rcx + 0x19], 2
jb 0x14004a258
mov r9, qword [r13 + 8]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140008f68]
mov edx, 0xcb
mov dword [rsp + 0x20], ebx
call fcn.140011a18
jmp 0x14004a258
lea rcx, [rsp + 0x60]
call fcn.14005ee58
mov edi, eax
test eax, eax
jne 0x14004a1b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.P5_n_]
lea rsi, str.P5_n_
cmp rcx, rsi
je 0x14004a202
test byte [rcx + 0x1c], 4
je 0x14004a202
cmp byte [rcx + 0x19], 2
jb 0x14004a202
mov edx, 0xcc
mov rcx, qword [rcx + 0x10]
lea r8, [0x140008f68]
mov r9d, eax
call fcn.1400100e0
jmp 0x14004a202
test rsi, rsi
je 0x14004a1f9
mov rcx, rsi
call fcn.14005ee58
mov ebp, eax
test eax, eax
jne 0x14004a1f9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.P5_n_]
lea rsi, str.P5_n_
cmp rcx, rsi
je 0x14004a202
test byte [rcx + 0x1c], 4
je 0x14004a202
cmp byte [rcx + 0x19], 2
jb 0x14004a202
mov edx, 0xcd
jmp 0x14004a1a3
add edi, ebp
lea rsi, str.P5_n_
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14004a254
mov rax, qword [str.P5_n_]
cmp rax, rsi
je 0x14004a254
test byte [rax + 0x1c], 4
je 0x14004a254
cmp byte [rax + 0x19], 2
jb 0x14004a254
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.P5_n_]
lea r9, [rsp + 0x60]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140008f68]
mov edx, 0xce
mov dword [rsp + 0x20], eax
call fcn.140011a18
test edi, edi
jne 0x14004a260
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14008c5b0
add rsp, 0x288
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret