Function at 0x14003e540
Capabilities:
Delete file

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x14011dab0]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov r12, rdx
mov rdi, rcx
lea rcx, [rbp - 0x48]
call fcn.14003be04
nop
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
xor esi, esi
mov qword [rsp + 0x40], rsi
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.14003c730
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x48]
call fcn.14003becc
test al, al
je 0x14003e7c5
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x28]
call fcn.14003bd48
nop
lea rcx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rcx, qword [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
test eax, eax
je 0x14003e80f
lea rcx, [rbp]
call fcn.140035ed8
nop
lea rcx, [rbp]
call fcn.140049698
lea rdx, [rbp - 0x48]
lea rcx, [rbp]
call fcn.14004a31c
lea rcx, [rbp]
call fcn.140049c2c
call fcn.140020e60
mov dword [rbp - 0x50], 2
lea edx, [rsi + 3]
mov dword [rbp - 0x4c], edx
mov r10, qword [rax + 0x4dd0]
test r10, r10
je 0x14003e657
and r10, 0xfffffffffffffffe
lea rcx, [rax + 0x4dd8]
lea r9, [rbp - 0x50]
lea r8, [rbp - 0x48]
mov rax, qword [r10 + 8]
call qword [0x1400ce238]
mov ecx, dword [rbp - 0x50]
test al, al
cmovne ecx, esi
mov dword [rbp - 0x50], ecx
cmp byte [rdi + 0x48], sil
je 0x14003e767
mov rbx, qword [rdi + 0x18]
cmp rbx, qword [rdi + 0x20]
je 0x14003e722
lea r14, [rbx + 0xe8]
mov r13d, pe_nt_image_headers64
cmp qword [r14 - 0xd0], 8
jb 0x14003e68b
mov rdx, qword [rbx]
jmp 0x14003e68e
mov rdx, rbx
lea rcx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rcx, qword [rbp - 0x48]
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
jne 0x14003e70f
mov rsi, qword [rdi + 0x20]
mov r15, r14
cmp r14, rsi
je 0x14003e6e0
mov r13, rbx
sub r13, r14
lea rcx, [r15 + r13]
mov rdx, r15
call fcn.14003b1dc
add r15, 0xe8
cmp r15, rsi
jne 0x14003e6be
mov rsi, qword [rdi + 0x20]
mov r13d, pe_nt_image_headers64
lea r15, [rsi - 0xe8]
cmp r15, rsi
je 0x14003e700
mov rcx, r15
call fcn.1400348d0
add r15, r13
cmp r15, rsi
jne 0x14003e6ec
mov rsi, qword [rdi + 0x20]
lea rax, [rsi - 0xe8]
mov qword [rdi + 0x20], rax
xor esi, esi
jmp 0x14003e719
add rbx, r13
add r14, r13
mov rax, qword [rdi + 0x20]
cmp rbx, rax
jne 0x14003e67c
mov rdx, r12
mov rcx, rdi
call fcn.14003bc60
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rdx, qword [rbp - 0x48]
cmp qword [r12 + 0x18], 8
jb 0x14003e747
mov r12, qword [r12]
mov rcx, r12
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x14003e767
lea rdx, [rbp - 0x48]
mov rcx, rdi
call fcn.14003bc60
nop
lea rax, vtable.Uev::TemplateIndex.0
mov qword [rbp], rax
mov rcx, qword [rbp + 0x18]
test rcx, rcx
je 0x14003e793
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
mov qword [rbp + 0x18], rsi
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x20], xmm0
lea rcx, [rbp + 8]
call fcn.140037640
mov rcx, qword [rbp + 8]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
nop
cmp qword [rbp - 0x10], 8
jb 0x14003e7c5
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
nop
lea rcx, [rsp + 0x30]
call fcn.1400343dc
nop
cmp qword [rbp - 0x30], 8
jb 0x14003e7e7
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.1400bab80
mov rbx, qword [rsp + 0x1b0]
add rsp, 0x160
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rdx, str.Template_file_could_not_be_deleted
lea rcx, [rsp + 0x50]
call fcn.1400061e8
nop
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.14003b0d8
lea rdx, [0x1401140e0]
lea rcx, [rsp + 0x70]
call sub.msvcrt.dll__CxxThrowException
int3