Function at 0x14003b710
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 [0x140122f00]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov r15, rdx
mov rdi, rcx
lea rcx, [rbp - 0x48]
call fcn.140038f58
nop
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
xor r14d, r14d
mov qword [rsp + 0x40], r14
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140039ab0
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x48]
call fcn.14003901c
test al, al
je 0x14003b9b3
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x28]
call fcn.140038ea0
nop
lea rcx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rcx, qword [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14003b7e2
lea rdx, str.Template_file_could_not_be_deleted
lea rcx, [rsp + 0x50]
call fcn.140005a2c
nop
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.1400380d0
lea rdx, [0x140119340]
lea rcx, [rsp + 0x70]
call sub.msvcrt.dll__CxxThrowException
nop
lea rcx, [rbp]
call fcn.140032f0c
nop
lea rcx, [rbp]
call fcn.140045820
lea rdx, [rbp - 0x48]
lea rcx, [rbp]
call fcn.1400465c4
lea rcx, [rbp]
call fcn.140045dc8
call fcn.14001df98
mov dword [rbp - 0x50], 2
mov edx, 3
mov dword [rbp - 0x4c], edx
cmp qword [rax + 0x4b70], r14
je 0x14003b871
mov r10, qword [rax + 0x4b70]
test r10, r10
jne 0x14003b848
lea rcx, [rsp + 0x50]
call fcn.140007a24
nop
mov rcx, rax
call fcn.140012684
nop
and r10, 0xfffffffffffffffe
lea rcx, [rax + 0x4b78]
lea r9, [rbp - 0x50]
lea r8, [rbp - 0x48]
mov rax, qword [r10 + 8]
call qword [str._F_v_]
mov ecx, dword [rbp - 0x50]
test al, al
cmovne ecx, r14d
mov dword [rbp - 0x50], ecx
cmp byte [rdi + 0x48], r14b
je 0x14003b967
mov rbx, qword [rdi + 0x18]
cmp rbx, qword [rdi + 0x20]
je 0x14003b92a
lea rsi, [rbx + 0xe8]
mov r12d, 0xe8
cmp qword [rsi - 0xd0], 8
jb 0x14003b8a5
mov rdx, qword [rbx]
jmp 0x14003b8a8
mov rdx, rbx
lea rcx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rcx, qword [rbp - 0x48]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x14003b91a
mov r13, qword [rdi + 0x20]
mov r14, rsi
cmp rsi, r13
je 0x14003b8f0
mov r12, rbx
sub r12, rsi
lea rcx, [r12 + r14]
mov rdx, r14
call fcn.140038150
add r14, 0xe8
cmp r14, r13
jne 0x14003b8d2
mov r12d, 0xe8
mov r13, qword [rdi + 0x20]
lea r14, [r13 - 0xe8]
jmp 0x14003b908
mov rcx, r14
call fcn.140031a58
add r14, r12
cmp r14, r13
jne 0x14003b8fd
add qword [rdi + 0x20], 0xffffffffffffff18
xor r14d, r14d
jmp 0x14003b920
add rbx, r12
add rsi, r12
cmp rbx, qword [rdi + 0x20]
jne 0x14003b896
mov rdx, r15
mov rcx, rdi
call fcn.140038dd8
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rdx, qword [rbp - 0x48]
cmp qword [r15 + 0x18], 8
jb 0x14003b94d
mov r15, qword [r15]
mov rcx, r15
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x14003b967
lea rdx, [rbp - 0x48]
mov rcx, rdi
call fcn.140038dd8
nop
lea rax, vtable.Uev::TemplateIndex.0
mov qword [rbp], rax
mov rcx, qword [rbp + 0x18]
test rcx, rcx
je 0x14003b98d
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp + 0x18], r14
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x20], xmm0
lea rcx, [rbp + 8]
call fcn.140034704
mov rcx, qword [rbp + 8]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop
cmp qword [rbp - 0x10], 8
jb 0x14003b9b3
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop
lea rcx, [rsp + 0x30]
call fcn.1400315cc
nop
cmp qword [rbp - 0x30], 8
jb 0x14003b9cf
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.1400b3bf0
mov rbx, qword [rsp + 0x1b0]
add rsp, 0x160
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret