Function at 0x1400050f4
Capabilities:
Delete file

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x78]
sub rsp, 0x178
mov rax, qword [0x14001f038]
xor rax, rsp
mov qword [rbp + 0x60], rax
mov r13, r9
mov r15, r8
mov r14, rdx
mov rsi, rcx
mov rax, qword [rbp + 0xe0]
mov qword [rsp + 0x40], rax
mov r12, qword [rbp + 0xe8]
xor ebx, ebx
mov rcx, qword [rcx + 0x128]
test rcx, rcx
je 0x1400053e0
call fcn.1400073e4
mov rcx, rax
test rax, rax
je 0x1400053e0
mov rax, qword [rax]
mov rax, qword [rax + 0x240]
call qword [0x140011a48]
mov rdi, rax
test rax, rax
je 0x1400053e0
lea rcx, [rsp + 0x70]
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CStringT_char_::constructor_void____ptr64]
nop
lea rcx, [rbp - 0x40]
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CStringT_char_::constructor_void____ptr64]
nop
mov rax, qword [rdi]
lea r8, [rbp - 0x40]
lea rdx, [rsp + 0x70]
mov rcx, rdi
mov rax, qword [rax + 0x110]
call qword [0x140011a48]
lea r8, [rsp + 0x70]
lea rdx, [rbp + 0x38]
mov rcx, rsi
call fcn.140005404
nop
mov rdx, rax
lea rcx, [rbp + 0x10]
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CStringT_wchar_t_::constructor_class_Cmm::CStringT_char__const____ptr64____ptr64]
nop
mov rcx, rax
call qword [sym.imp.Cmmlib.dll_public:_wchar_t_const____ptr64___cdecl_Cmm::CStringT_wchar_t_::c_str_void_const___ptr64]
mov rdx, rax
mov rcx, r13
call qword [sym.imp.Cmmlib.dll_public:_class_Cmm::CStringT_wchar_t_____ptr64___cdecl_Cmm::CStringT_wchar_t_::operator_wchar_t_const____ptr64____ptr64]
nop
lea rcx, [rbp + 0x10]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
nop
lea rcx, [rbp + 0x38]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_char_::destructor_void____ptr64]
lea r8, [rbp - 0x40]
lea rdx, [rbp + 0x10]
mov rcx, rsi
call fcn.140005404
nop
mov rdx, rax
lea rcx, [rbp + 0x38]
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CStringT_wchar_t_::constructor_class_Cmm::CStringT_char__const____ptr64____ptr64]
nop
mov rcx, rax
call qword [sym.imp.Cmmlib.dll_public:_wchar_t_const____ptr64___cdecl_Cmm::CStringT_wchar_t_::c_str_void_const___ptr64]
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.Cmmlib.dll_public:_class_Cmm::CStringT_wchar_t_____ptr64___cdecl_Cmm::CStringT_wchar_t_::operator_wchar_t_const____ptr64____ptr64]
nop
lea rcx, [rbp + 0x38]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
nop
lea rcx, [rbp + 0x10]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_char_::destructor_void____ptr64]
lea rcx, [rsp + 0x48]
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CStringT_char_::constructor_void____ptr64]
nop
mov rcx, r14
call qword [sym.imp.Cmmlib.dll_public:_wchar_t_const____ptr64___cdecl_Cmm::CStringT_wchar_t_::operator_wchar_t_const____ptr64_void_const___ptr64]
mov rcx, rax
lea rdx, [rsp + 0x50]
call qword [sym.imp.Cmmlib.dll_int___cdecl_cmm_fs_read_wchar_t_const____ptr64__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______ptr64_]
lea rcx, [rsp + 0x48]
call qword [sym.imp.Cmmlib.dll_public:_int___cdecl_Cmm::CStringT_char_::IsEmpty_void_const___ptr64]
test eax, eax
jne 0x1400053be
lea rcx, [rbp - 0x18]
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CStringT_char_::constructor_void____ptr64]
nop
mov rax, qword [rdi]
lea r9, [rbp - 0x18]
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x70]
mov rcx, rdi
mov rax, qword [rax + 0xd0]
call qword [0x140011a48]
movzx ebx, al
test al, al
je 0x1400053b3
lea rcx, [rbp - 0x18]
call qword [sym.imp.Cmmlib.dll_public:_int___cdecl_Cmm::CStringT_char_::IsEmpty_void_const___ptr64]
test eax, eax
jne 0x1400053b3
lea r8, [rbp - 0x18]
lea rdx, [rbp + 0x10]
mov rcx, rsi
call fcn.140005404
nop
mov rdx, rax
lea rcx, [rbp + 0x38]
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CStringT_wchar_t_::constructor_class_Cmm::CStringT_char__const____ptr64____ptr64]
nop
mov rcx, rax
call qword [sym.imp.Cmmlib.dll_public:_wchar_t_const____ptr64___cdecl_Cmm::CStringT_wchar_t_::c_str_void_const___ptr64]
mov rdx, rax
mov rcx, r12
call qword [sym.imp.Cmmlib.dll_public:_class_Cmm::CStringT_wchar_t_____ptr64___cdecl_Cmm::CStringT_wchar_t_::operator_wchar_t_const____ptr64____ptr64]
nop
lea rcx, [rbp + 0x38]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
nop
lea rcx, [rbp + 0x10]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_char_::destructor_void____ptr64]
lea rcx, [rbp - 0x68]
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CStringT_char_::constructor_void____ptr64]
nop
mov rax, qword [rdi]
mov ecx, 1
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], ecx
lea rcx, [rbp - 0x68]
mov qword [rsp + 0x20], rcx
lea r9, [rbp - 0x40]
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x48]
mov rcx, rdi
mov rax, qword [rax + 0x128]
call qword [0x140011a48]
mov ebx, eax
test eax, eax
je 0x1400053a8
mov rcx, r15
call qword [sym.imp.Cmmlib.dll_public:_wchar_t_const____ptr64___cdecl_Cmm::CStringT_wchar_t_::operator_wchar_t_const____ptr64_void_const___ptr64]
lea rdx, [rbp - 0x60]
cmp qword [rbp - 0x48], 0x10
cmovae rdx, qword [rbp - 0x60]
xor r9d, r9d
mov r8, qword [rbp - 0x50]
mov rcx, rax
call qword [sym.imp.Cmmlib.dll_cmm_fs_write]
mov rcx, r14
call qword [sym.imp.Cmmlib.dll_public:_wchar_t_const____ptr64___cdecl_Cmm::CStringT_wchar_t_::operator_wchar_t_const____ptr64_void_const___ptr64]
mov rbx, rax
test rax, rax
jne 0x140005390
xor ebx, ebx
jmp 0x1400053a8
mov rcx, rbx
call qword [sym.imp.Cmmlib.dll_int___cdecl_cmm_safe_path_wchar_t_const____ptr64_]
test eax, eax
je 0x14000538c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, eax
lea rcx, [rbp - 0x68]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_char_::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x18]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_char_::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x48]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_char_::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x40]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_char_::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x70]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_char_::destructor_void____ptr64]
mov eax, ebx
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.14000def0
add rsp, 0x178
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret