Function at 0x140003a50
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 [0x140020038]
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 0x140003d61
call fcn.1400060d0
mov rcx, rax
test rax, rax
je 0x140003d61
mov rax, qword [rax]
mov rax, qword [rax + 0x2c0]
call qword [0x140012aa8]
mov rsi, rax
test rax, rax
je 0x140003d61
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 + 0x110]
call qword [0x140012aa8]
lea r8, [rsp + 0x78]
lea rdx, [rbp + 0x40]
mov rcx, r14
call fcn.140003d84
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.140003d84
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 0x140003d3f
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 + 0xd0]
call qword [0x140012aa8]
movzx edi, al
test al, al
je 0x140003d34
lea rcx, [rbp - 0x10]
call qword [sym.imp.Cmmlib.dll_public:_int___cdecl_Cmm::CStringT_char_::IsEmpty_void_const___ptr64]
test eax, eax
jne 0x140003d34
lea r8, [rbp - 0x10]
lea rdx, [rbp + 0x18]
mov rcx, r14
call fcn.140003d84
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 + 0x128]
call qword [0x140012aa8]
mov edi, eax
test eax, eax
je 0x140003d29
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 0x140003d11
xor edi, edi
jmp 0x140003d29
mov rcx, rbx
call qword [sym.imp.Cmmlib.dll_int___cdecl_cmm_safe_path_wchar_t_const____ptr64_]
test eax, eax
je 0x140003d0d
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.14000f7f0
add rsp, 0x178
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret