Function at 0x140003ae0
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 [0x14001e038]
xor rax, rsp
mov qword [rbp + 0x68], rax
mov qword [rsp + 0x40], r9
mov r12, r8
mov r15, rdx
mov r14, rcx
mov rax, qword [rbp + 0xe0]
mov qword [rsp + 0x48], rax
mov r13, qword [rbp + 0xe8]
xor edi, edi
mov rcx, qword [rcx + 0x128]
test rcx, rcx
je 0x140003df1
call fcn.140006160
mov rcx, rax
test rax, rax
je 0x140003df1
mov rax, qword [rax]
mov rax, qword [rax + 0x2a0]
call qword [0x140011a40]
mov rsi, rax
test rax, rax
je 0x140003df1
lea rcx, [rsp + 0x78]
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CStringT_char_::constructor_void____ptr64]
nop
lea rcx, [rbp - 0x38]
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CStringT_char_::constructor_void____ptr64]
nop
mov rax, qword [rsi]
lea r8, [rbp - 0x38]
lea rdx, [rsp + 0x78]
mov rcx, rsi
mov rax, qword [rax + 0x100]
call qword [0x140011a40]
lea r8, [rsp + 0x78]
lea rdx, [rbp + 0x40]
mov rcx, r14
call fcn.140003e14
mov rbx, rax
lea rcx, [rbp + 0x18]
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CStringT_wchar_t_::constructor_void____ptr64]
nop
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.Cmmlib.dll_public:_class_Cmm::CStringT_wchar_t_____ptr64___cdecl_Cmm::CStringT_wchar_t_::AssignOther_class_Cmm::CStringT_char__const____ptr64____ptr64]
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 + 0x18]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
nop
lea rcx, [rbp + 0x40]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_char_::destructor_void____ptr64]
lea r8, [rbp - 0x38]
lea rdx, [rbp + 0x18]
mov rcx, r14
call fcn.140003e14
mov rbx, rax
lea rcx, [rbp + 0x40]
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CStringT_wchar_t_::constructor_void____ptr64]
nop
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.Cmmlib.dll_public:_class_Cmm::CStringT_wchar_t_____ptr64___cdecl_Cmm::CStringT_wchar_t_::AssignOther_class_Cmm::CStringT_char__const____ptr64____ptr64]
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 + 0x48]
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 + 0x40]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
nop
lea rcx, [rbp + 0x18]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_char_::destructor_void____ptr64]
lea rcx, [rsp + 0x50]
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CStringT_char_::constructor_void____ptr64]
nop
mov rcx, r15
call qword [sym.imp.Cmmlib.dll_public:_wchar_t_const____ptr64___cdecl_Cmm::CStringT_wchar_t_::c_str_void_const___ptr64]
mov rcx, rax
lea rdx, [rsp + 0x58]
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 + 0x50]
call qword [sym.imp.Cmmlib.dll_public:_int___cdecl_Cmm::CStringT_char_::IsEmpty_void_const___ptr64]
test eax, eax
jne 0x140003dcf
lea rcx, [rbp - 0x10]
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CStringT_char_::constructor_void____ptr64]
nop
mov rax, qword [rsi]
lea r9, [rbp - 0x10]
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x78]
mov rcx, rsi
mov rax, qword [rax + 0xc0]
call qword [0x140011a40]
movzx edi, al
test al, al
je 0x140003dc4
lea rcx, [rbp - 0x10]
call qword [sym.imp.Cmmlib.dll_public:_int___cdecl_Cmm::CStringT_char_::IsEmpty_void_const___ptr64]
test eax, eax
jne 0x140003dc4
lea r8, [rbp - 0x10]
lea rdx, [rbp + 0x18]
mov rcx, r14
call fcn.140003e14
mov rbx, rax
lea rcx, [rbp + 0x40]
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CStringT_wchar_t_::constructor_void____ptr64]
nop
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.Cmmlib.dll_public:_class_Cmm::CStringT_wchar_t_____ptr64___cdecl_Cmm::CStringT_wchar_t_::AssignOther_class_Cmm::CStringT_char__const____ptr64____ptr64]
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 + 0x40]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
nop
lea rcx, [rbp + 0x18]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_char_::destructor_void____ptr64]
lea rcx, [rbp - 0x60]
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CStringT_char_::constructor_void____ptr64]
nop
mov rax, qword [rsi]
mov ecx, 1
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], ecx
lea rcx, [rbp - 0x60]
mov qword [rsp + 0x20], rcx
lea r9, [rbp - 0x38]
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x50]
mov rcx, rsi
mov rax, qword [rax + 0x118]
call qword [0x140011a40]
mov edi, eax
test eax, eax
je 0x140003db9
mov rcx, r12
call qword [sym.imp.Cmmlib.dll_public:_wchar_t_const____ptr64___cdecl_Cmm::CStringT_wchar_t_::c_str_void_const___ptr64]
lea rdx, [rbp - 0x58]
cmp qword [rbp - 0x40], 0x10
cmovae rdx, qword [rbp - 0x58]
xor r9d, r9d
mov r8, qword [rbp - 0x48]
mov rcx, rax
call qword [sym.imp.Cmmlib.dll_cmm_fs_write]
mov rcx, r15
call qword [sym.imp.Cmmlib.dll_public:_wchar_t_const____ptr64___cdecl_Cmm::CStringT_wchar_t_::c_str_void_const___ptr64]
mov rbx, rax
test rax, rax
jne 0x140003da1
xor edi, edi
jmp 0x140003db9
mov rcx, rbx
call qword [sym.imp.Cmmlib.dll_int___cdecl_cmm_safe_path_wchar_t_const____ptr64_]
test eax, eax
je 0x140003d9d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, eax
lea rcx, [rbp - 0x60]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_char_::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x10]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_char_::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x50]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_char_::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x38]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_char_::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x78]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_char_::destructor_void____ptr64]
mov eax, edi
mov rcx, qword [rbp + 0x68]
xor rcx, rsp
call fcn.14000e160
add rsp, 0x178
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret