Function at 0x1400e4d80
Capabilities:
Delete file

Disassembly:
push rbp
push rbx
push rsi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x17]
sub rsp, 0xf0
mov rax, qword [0x14049e048]
xor rax, rsp
mov qword [rbp + 7], rax
mov qword [rsp + 0x48], r9
mov qword [rsp + 0x40], r8
mov r15, rdx
mov r13, qword [rbp + 0x77]
mov r12, qword [rbp + 0x7f]
mov rsi, qword [0x1404bb288]
xor ebx, ebx
test rcx, rcx
cmovne rsi, rcx
mov dword [r9], ebx
test r13, r13
je 0x1400e4dd7
mov dword [r13], ebx
test r12, r12
je 0x1400e4de0
mov dword [r12], ebx
mov rcx, rsi
call fcn.1400e7fc4
lea rcx, str.dcl_settings
call fcn.1400e6910
mov r14, rax
call fcn.1400e7f58
test r14, r14
jne 0x1400e4e1f
lea eax, [r14 + 1]
mov qword [rbp - 0x51], rbx
mov dword [rbp - 0x49], ebx
cmp eax, 2
jle 0x1400e4e53
test r12, r12
je 0x1400e4e53
mov dword [rbp - 0x45], 1
jmp 0x1400e4e5b
lea rdx, str.audit_level
mov rcx, qword [0x1404baf50]
call fcn.1400e7e28
mov r9d, 1
lea r8d, [r9 + 1]
mov rdx, rax
mov rcx, r14
call fcn.1400e630c
test eax, eax
jne 0x1400e4e05
mov eax, r9d
jmp 0x1400e52b4
mov dword [rbp - 0x45], ebx
cmp eax, 1
jle 0x1400e4e65
test r13, r13
mov eax, 1
jne 0x1400e4e67
mov eax, ebx
mov dword [rbp - 0x41], eax
mov dword [rbp - 0x31], ebx
lea rdx, [0x14039d618]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.acdb24.dll_public:_static_class_AFILE____ptr64___cdecl_AFILE::open_wchar_t_const____ptr64__wchar_t_const____ptr64_]
mov rcx, rax
mov qword [rbp - 0x39], rax
mov dword [rbp - 0x11], ebx
mov rax, qword [0x1404bb218]
mov qword [rbp - 9], rax
test rcx, rcx
je 0x1400e4ecd
lea r8, [0x14032f730]
mov edx, 0x58cd
lea rcx, [rsp + 0x20]
call qword [sym.imp.accore.dll_class_AcString___cdecl_RC_CORE_MSG_unsigned_int__wchar_t_const____ptr64_]
nop
mov r8, r15
mov rdx, qword [rax]
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.acdb24.dll_int___cdecl_afprintf_class_AFILE____ptr64__wchar_t_const____ptr64_]
nop
lea rcx, [rsp + 0x20]
call qword [sym.imp.ac1st24.dll_public:_void___cdecl_AcString::destructor_void____ptr64]
mov rax, qword [0x1404baf48]
test rsi, rsi
cmovne rax, rsi
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], ebx
mov rax, qword [rax + 0x10]
mov qword [rbp - 0x79], rax
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x50]
call fcn.1400e18b4
test eax, eax
je 0x1400e4f99
xor edx, edx
mov rcx, qword [rsp + 0x28]
call fcn.1400e5c38
test eax, eax
je 0x1400e4eec
mov r8d, 0x45
lea rdx, [rbp - 0x59]
xor ecx, ecx
call fcn.1400e56b0
test eax, eax
je 0x1400e4eec
lea r8, [0x14032f730]
mov edx, 0x58ce
lea rcx, [rsp + 0x30]
call qword [sym.imp.accore.dll_class_AcString___cdecl_RC_CORE_MSG_unsigned_int__wchar_t_const____ptr64_]
nop
mov r8, qword [rsp + 0x20]
mov rdx, qword [rax]
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.acdb24.dll_int___cdecl_afprintf_class_AFILE____ptr64__wchar_t_const____ptr64_]
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.ac1st24.dll_public:_void___cdecl_AcString::destructor_void____ptr64]
lea r8, [0x14032f730]
mov edx, 0x58cf
lea rcx, [rsp + 0x38]
call qword [sym.imp.accore.dll_class_AcString___cdecl_RC_CORE_MSG_unsigned_int__wchar_t_const____ptr64_]
nop
mov rdx, qword [rax]
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.acdb24.dll_int___cdecl_afprintf_class_AFILE____ptr64__wchar_t_const____ptr64_]
nop
lea rcx, [rsp + 0x38]
call qword [sym.imp.ac1st24.dll_public:_void___cdecl_AcString::destructor_void____ptr64]
jmp 0x1400e4eec
mov edx, dword [rbp - 0x51]
test edx, edx
jle 0x1400e4fce
mov rcx, qword [rbp - 0x39]
test rcx, rcx
je 0x1400e4fbb
xor r8d, r8d
xor edx, edx
call qword [sym.imp.acdb24.dll_public:_static_int___cdecl_AFILE::close_class_AFILE____ptr64__class_Autodesk::AutoCAD::PAL::FileIO::File____ptr64__bool_]
mov rcx, qword [rbp - 0x39]
mov edx, dword [rbp - 0x51]
mov r8, qword [rsp + 0x48]
mov dword [r8], edx
test rcx, rcx
setne bl
jmp 0x1400e52b2
cmp dword [rbp - 0x45], ebx
je 0x1400e4fdc
lea rcx, [rbp - 0x59]
call fcn.1400e5c7c
cmp dword [rbp - 0x41], ebx
je 0x1400e4fea
lea rcx, [rbp - 0x59]
call fcn.1400e5cf4
mov rax, qword [0x1404baf48]
test rsi, rsi
cmovne rax, rsi
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], ebx
mov rax, qword [rax + 0x10]
mov qword [rbp - 0x79], rax
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x50]
call fcn.1400e18b4
test eax, eax
je 0x1400e523a
or r9, 0xffffffffffffffff
lea r8d, [r9 + 3]
mov rdx, qword [0x1404bb208]
mov rsi, qword [rsp + 0x28]
mov rcx, rsi
call fcn.1400e630c
mov r15, rax
mov r14, qword [rsp + 0x20]
mov qword [rbp - 0x59], r14
mov qword [rbp - 0x2d], rbx
mov dword [rbp - 0x25], ebx
mov qword [rbp - 9], rbx
cmp qword [rsi + 8], rbx
jne 0x1400e50bf
lea rdx, str.tile
mov rcx, r14
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscmp
test eax, eax
je 0x1400e50bf
mov r8d, 0x45
lea rdx, [rbp - 0x59]
xor ecx, ecx
call fcn.1400e56b0
test eax, eax
je 0x1400e5009
lea r8, [0x14032f730]
mov edx, 0x58d0
lea rcx, [rsp + 0x38]
call qword [sym.imp.accore.dll_class_AcString___cdecl_RC_CORE_MSG_unsigned_int__wchar_t_const____ptr64_]
nop
mov r8, r14
mov rdx, qword [rax]
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.acdb24.dll_int___cdecl_afprintf_class_AFILE____ptr64__wchar_t_const____ptr64_]
nop
lea rcx, [rsp + 0x38]
call qword [sym.imp.ac1st24.dll_public:_void___cdecl_AcString::destructor_void____ptr64]
jmp 0x1400e5009
lea rdx, [rbp - 0x59]
mov rcx, rsi
call fcn.1400e5344
cmp dword [rbp - 0x45], ebx
je 0x1400e5131
cmp dword [rbp - 0x2d], ebx
jne 0x1400e5131
cmp dword [rbp - 0x29], ebx
jne 0x1400e5131
test r15, r15
jne 0x1400e5131
mov rcx, rsi
call fcn.1400e17d0
test rax, rax
je 0x1400e5131
lea r8d, [r15 + 0x48]
lea rdx, [rbp - 0x59]
mov rcx, rsi
call fcn.1400e56b0
test eax, eax
je 0x1400e5131
lea r8, [0x14032f730]
mov edx, 0x58d1
lea rcx, [rsp + 0x30]
call qword [sym.imp.accore.dll_class_AcString___cdecl_RC_CORE_MSG_unsigned_int__wchar_t_const____ptr64_]
nop
mov rdx, qword [rax]
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.acdb24.dll_int___cdecl_afprintf_class_AFILE____ptr64__wchar_t_const____ptr64_]
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.ac1st24.dll_public:_void___cdecl_AcString::destructor_void____ptr64]
cmp dword [rbp - 0x41], ebx
je 0x1400e5009
test r15, r15
jne 0x1400e5009
mov rcx, rsi
call fcn.1400e17d0
test rax, rax
je 0x1400e5009
cmp dword [rbp - 0x2d], 1
jle 0x1400e519d
lea r8d, [r15 + 0x57]
lea rdx, [rbp - 0x59]
mov rcx, rsi
call fcn.1400e56b0
test eax, eax
je 0x1400e519d
lea r8, [0x14032f730]
mov edx, 0x58d2
lea rcx, [rbp - 0x71]
call qword [sym.imp.accore.dll_class_AcString___cdecl_RC_CORE_MSG_unsigned_int__wchar_t_const____ptr64_]
nop
mov rdx, qword [rax]
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.acdb24.dll_int___cdecl_afprintf_class_AFILE____ptr64__wchar_t_const____ptr64_]
nop
lea rcx, [rbp - 0x71]
call qword [sym.imp.ac1st24.dll_public:_void___cdecl_AcString::destructor_void____ptr64]
cmp dword [rbp - 0x29], 1
jle 0x1400e51e8
mov r8d, 0x57
lea rdx, [rbp - 0x59]
mov rcx, rsi
call fcn.1400e56b0
test eax, eax
je 0x1400e51e8
lea r8, [0x14032f730]
mov edx, 0x58d3
lea rcx, [rbp - 0x69]
call qword [sym.imp.accore.dll_class_AcString___cdecl_RC_CORE_MSG_unsigned_int__wchar_t_const____ptr64_]
nop
mov rdx, qword [rax]
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.acdb24.dll_int___cdecl_afprintf_class_AFILE____ptr64__wchar_t_const____ptr64_]
nop
lea rcx, [rbp - 0x69]
call qword [sym.imp.ac1st24.dll_public:_void___cdecl_AcString::destructor_void____ptr64]
cmp dword [rbp - 0x25], 1
jle 0x1400e5009
mov r8d, 0x57
lea rdx, [rbp - 0x59]
mov rcx, rsi
call fcn.1400e56b0
test eax, eax
je 0x1400e5009
lea r8, [0x14032f730]
mov edx, 0x58d6
lea rcx, [rbp - 0x61]
call qword [sym.imp.accore.dll_class_AcString___cdecl_RC_CORE_MSG_unsigned_int__wchar_t_const____ptr64_]
nop
mov rdx, qword [rax]
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.acdb24.dll_int___cdecl_afprintf_class_AFILE____ptr64__wchar_t_const____ptr64_]
nop
lea rcx, [rbp - 0x61]
jmp 0x1400e50b4
mov rcx, qword [rbp - 0x39]
test rcx, rcx
je 0x1400e524e
xor r8d, r8d
xor edx, edx
call qword [sym.imp.acdb24.dll_public:_static_int___cdecl_AFILE::close_class_AFILE____ptr64__class_Autodesk::AutoCAD::PAL::FileIO::File____ptr64__bool_]
mov edx, dword [rbp - 0x4d]
mov esi, dword [rbp - 0x49]
add esi, edx
mov eax, dword [rbp - 0x51]
add esi, eax
jne 0x1400e5274
cmp qword [rbp - 0x39], rbx
je 0x1400e5274
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wremove]
mov edx, dword [rbp - 0x4d]
mov eax, dword [rbp - 0x51]
mov r8, qword [rsp + 0x48]
mov dword [r8], eax
cmp dword [rbp - 0x41], ebx
je 0x1400e528e
mov dword [r13], edx
mov rcx, qword [rbp - 0x19]
call fcn.1400e5fd4
cmp dword [rbp - 0x45], ebx
je 0x1400e52a3
mov eax, dword [rbp - 0x49]
mov dword [r12], eax
mov rcx, qword [rbp - 0x21]
call fcn.1400e5fd4
cmp qword [rbp - 0x39], rbx
jne 0x1400e52ad
test esi, esi
jne 0x1400e52b2
mov ebx, 1
mov eax, ebx
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.140088c50
add rsp, 0xf0
pop r15
pop r14
pop r13
pop r12
pop rsi
pop rbx
pop rbp
ret