Function at 0x14002c6e0
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x248]
sub rsp, 0x320
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14007e020]
xor rax, rsp
mov qword [rbp + 0x210], rax
movzx r12d, r8b
mov rsi, rcx
mov rax, qword [rcx]
call qword [rax + 0x60]
test al, al
je 0x14002ce1b
mov eax, dword [rsi + 0x888]
test eax, eax
je 0x14002c74d
cmp eax, 0x34
je 0x14002c74d
cmp eax, 0x35
jne 0x14002ce52
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x70]
mov rbx, rax
test rax, rax
jne 0x14002c766
lea eax, [rbx + 8]
jmp 0x14002ce52
lea rcx, [rbp + 0x90]
call qword [sym.imp.acdb19.dll_public:_void___cdecl_AdXREFString::constructor_void____ptr64]
nop
mov byte [rsp + 0x30], 0
lea rdx, [rbp + 0xf0]
lea rcx, [rsi + 0x20]
call fcn.140001070
nop
mov rax, qword [rbx]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 5
mov r9, rsi
lea r8, [rbp + 0xf0]
lea rdx, [rbp + 0x90]
mov rcx, rbx
call qword [rax + 0x100]
mov ebx, eax
lea rcx, [rbp + 0xf0]
call qword [sym.imp.acdb19.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64]
test ebx, ebx
jne 0x14002ce1f
cmp byte [rsp + 0x30], bl
jne 0x14002ce1f
lea rcx, [rsi + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002c814
test al, 1
je 0x14002c814
mov dword [rsi + 0x888], 0x34
mov r9b, 1
lea r8d, [rbx + 0x34]
mov rdx, rsi
mov rcx, rsi
call fcn.14002cf50
mov ebx, dword [rsi + 0x888]
jmp 0x14002ce43
lea rdx, [rbp + 0xf0]
lea rcx, [rsi + 0x20]
call fcn.140001070
nop
lea rdx, [rbp + 0xf0]
lea rcx, [rsp + 0x60]
call fcn.14002bb50
nop
lea rcx, [rbp + 0xf0]
call qword [sym.imp.acdb19.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64]
lea rcx, [rbp + 0x30]
call qword [sym.imp.acdb19.dll_public:_void___cdecl_AdXREFString::constructor_void____ptr64]
nop
test r12b, r12b
je 0x14002c864
lea rdx, [rbp - 0x38]
lea rcx, [rbp + 0x30]
call qword [sym.imp.acdb19.dll_public:_class_AdXREFString_const____ptr64___cdecl_AdXREFString::operator_class_AdXREFString_const____ptr64____ptr64]
jmp 0x14002c8b3
lea rdx, [rbp + 0x150]
lea rcx, [rsi + 0x20]
call fcn.140001070
nop
lea rdx, [rbp + 0x150]
lea rcx, [rbp + 0x1b0]
call qword [sym.imp.acdb19.dll_public:_void___cdecl_AdXREFString::constructor_class_AdXREFString_const____ptr64____ptr64]
nop
mov rdx, rax
lea rcx, [rbp + 0x30]
call qword [sym.imp.acdb19.dll_public:_class_AdXREFString_const____ptr64___cdecl_AdXREFString::operator_class_AdXREFString_const____ptr64____ptr64]
nop
lea rcx, [rbp + 0x1b0]
call qword [sym.imp.acdb19.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64]
nop
lea rcx, [rbp + 0x150]
call qword [sym.imp.acdb19.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64]
lea r15, vtable.AdRmDatabasePointer.0
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x40], 0x1a
xor r14d, r14d
mov qword [rsp + 0x48], r14
mov r8b, 1
lea rdx, [rsi + 0x20]
lea rcx, [rsp + 0x38]
call fcn.140045500
mov r8d, dword [rsp + 0x40]
test r8d, r8d
je 0x14002c995
mov dword [rsi + 0x888], r8d
mov r9b, 1
mov rdx, rsi
mov rcx, rsi
call fcn.14002cf50
mov ebx, dword [rsi + 0x888]
mov qword [rsp + 0x38], r15
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14002c948
mov eax, dword [0x140080554]
dec eax
mov dword [0x140080554], eax
test eax, eax
jg 0x14002c934
call fcn.1400457c0
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14002c948
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rsp + 0x48], r14
lea rcx, [rbp + 0x30]
call qword [sym.imp.acdb19.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64]
nop
lea rax, vtable.AdRmFileBackup.0
mov qword [rsp + 0x60], rax
cmp byte [rbp + 0x28], 0
jne 0x14002c979
lea rcx, [rbp - 0x38]
call qword [sym.imp.acdb19.dll_public:_wchar_t_const____ptr64___cdecl_AdXREFString::operator_wchar_t_const____ptr64_void_const___ptr64]
mov rcx, rax
call qword [sym.imp.MSVCR100.dll__wremove]
nop
lea rcx, [rbp - 0x38]
call qword [sym.imp.acdb19.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x68]
call qword [sym.imp.acdb19.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64]
nop
jmp 0x14002ce43
mov rbx, qword [rsi]
lea rcx, [rsp + 0x38]
mov rax, qword [rsp + 0x38]
call qword [rax + 0x18]
mov rdx, rax
mov rcx, rsi
call qword [rbx + 0xe0]
mov r13d, eax
lea rcx, [rsp + 0x38]
mov rdx, qword [rsp + 0x38]
call qword [rdx + 0x18]
mov rcx, rax
call qword [sym.imp.acdb19.dll_enum_Acad::ErrorStatus___cdecl_AcDbIndexFilterManager::updateIndexes_class_AcDbDatabase____ptr64_]
test eax, eax
je 0x14002ca82
mov dword [rsi + 0x888], 0x17
mov r9b, 1
mov r8d, 0x17
mov rdx, rsi
mov rcx, rsi
call fcn.14002cf50
mov ebx, dword [rsi + 0x888]
mov qword [rsp + 0x38], r15
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14002ca35
mov eax, dword [0x140080554]
dec eax
mov dword [0x140080554], eax
test eax, eax
jg 0x14002ca21
call fcn.1400457c0
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14002ca35
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rsp + 0x48], r14
lea rcx, [rbp + 0x30]
call qword [sym.imp.acdb19.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64]
nop
lea rax, vtable.AdRmFileBackup.0
mov qword [rsp + 0x60], rax
cmp byte [rbp + 0x28], 0
jne 0x14002ca66
lea rcx, [rbp - 0x38]
call qword [sym.imp.acdb19.dll_public:_wchar_t_const____ptr64___cdecl_AdXREFString::operator_wchar_t_const____ptr64_void_const___ptr64]
mov rcx, rax
call qword [sym.imp.MSVCR100.dll__wremove]
nop
lea rcx, [rbp - 0x38]
call qword [sym.imp.acdb19.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x68]
call qword [sym.imp.acdb19.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64]
nop
jmp 0x14002ce43
mov edx, 1
mov rcx, qword [0x140080558]
call qword [sym.imp.acdb19.dll_public:_enum_Acad::ErrorStatus___cdecl_AcDbDatabase::setSaveproxygraphics_short_int____ptr64]
mov dl, 1
mov rcx, qword [0x140080558]
call qword [sym.imp.acdb19.dll_public:_void___cdecl_AcDbDatabase::setRetainOriginalThumbnailBitmap_bool____ptr64]
mov r11, qword [rsi]
xor r9d, r9d
mov r8b, 1
xor edx, edx
mov rcx, rsi
call qword [r11 + 0x40]
mov rbx, rax
mov qword [rsp + 0x50], rax
mov rax, qword [rax]
mov rcx, rbx
call qword [rax + VariantCopy]
mov r11, qword [rbx]
mov rcx, rbx
call qword [r11 + 0x18]
test al, al
jne 0x14002cbde
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x20]
mov r12, rax
test rax, rax
je 0x14002cbde
mov rdi, qword [rax]
lea rcx, [rsp + 0x38]
mov rdx, qword [rsp + 0x38]
call qword [rdx + 0x18]
mov rdx, rax
mov rcx, r12
call qword [rdi + 0xb8]
test eax, eax
jne 0x14002cb18
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
jmp 0x14002cac6
mov dword [rsi + 0x888], eax
mov r9b, 1
mov r8d, eax
mov rdx, rsi
mov rcx, rsi
call fcn.14002cf50
mov edi, dword [rsi + 0x888]
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
nop
mov qword [rsp + 0x38], r15
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14002cb82
mov eax, dword [0x140080554]
dec eax
mov dword [0x140080554], eax
test eax, eax
jg 0x14002cb6e
call fcn.1400457c0
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14002cb82
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rsp + 0x48], r14
lea rcx, [rbp + 0x30]
call qword [sym.imp.acdb19.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64]
nop
lea rax, vtable.AdRmFileBackup.0
mov qword [rsp + 0x60], rax
cmp byte [rbp + 0x28], 0
jne 0x14002cbb3
lea rcx, [rbp - 0x38]
call qword [sym.imp.acdb19.dll_public:_wchar_t_const____ptr64___cdecl_AdXREFString::operator_wchar_t_const____ptr64_void_const___ptr64]
mov rcx, rax
call qword [sym.imp.MSVCR100.dll__wremove]
nop
lea rcx, [rbp - 0x38]
call qword [sym.imp.acdb19.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x68]
call qword [sym.imp.acdb19.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64]
nop
lea rcx, [rbp + 0x90]
call qword [sym.imp.acdb19.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64]
mov eax, edi
jmp 0x14002ce52
mov rdi, qword [0x140080558]
lea rcx, [rbp + 0x30]
call qword [sym.imp.acdb19.dll_public:_wchar_t_const____ptr64___cdecl_AdXREFString::operator_wchar_t_const____ptr64_void_const___ptr64]
mov qword [rsp + 0x20], r14
mov r9d, 0x1f
mov r8b, 1
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.acdb19.dll_public:_enum_Acad::ErrorStatus___cdecl_AcDbDatabase::saveAs_wchar_t_const____ptr64__bool__enum_AcDb::AcDbDwgVersion__struct_SecurityParams_const____ptr64____ptr64]
test eax, eax
je 0x14002ccde
mov dword [rsi + 0x888], 0x16
mov r9b, 1
mov r8d, 0x16
mov rdx, rsi
mov rcx, rsi
call fcn.14002cf50
mov edi, dword [rsi + 0x888]
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
nop
mov qword [rsp + 0x38], r15
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14002cc82
mov eax, dword [0x140080554]
dec eax
mov dword [0x140080554], eax
test eax, eax
jg 0x14002cc6e
call fcn.1400457c0
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14002cc82
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rsp + 0x48], r14
lea rcx, [rbp + 0x30]
call qword [sym.imp.acdb19.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64]
nop
lea rax, vtable.AdRmFileBackup.0
mov qword [rsp + 0x60], rax
cmp byte [rbp + 0x28], 0
jne 0x14002ccb3
lea rcx, [rbp - 0x38]
call qword [sym.imp.acdb19.dll_public:_wchar_t_const____ptr64___cdecl_AdXREFString::operator_wchar_t_const____ptr64_void_const___ptr64]
mov rcx, rax
call qword [sym.imp.MSVCR100.dll__wremove]
nop
lea rcx, [rbp - 0x38]
call qword [sym.imp.acdb19.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x68]
call qword [sym.imp.acdb19.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64]
nop
lea rcx, [rbp + 0x90]
call qword [sym.imp.acdb19.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64]
mov eax, edi
jmp 0x14002ce52
mov rdi, qword [rsi]
lea rcx, [rsp + 0x38]
mov rax, qword [rsp + 0x38]
call qword [rax + 0x18]
mov rdx, rax
mov rcx, rsi
call qword [rdi + 0xe0]
mov dword [rsi + 0x880], eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14002cd3a
mov eax, dword [0x140080554]
dec eax
mov dword [0x140080554], eax
test eax, eax
jg 0x14002cd26
call fcn.1400457c0
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14002cd3a
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rsp + 0x48], r14
cmp r13d, dword [rsi + 0x880]
setne al
mov byte [rsi + 0x884], al
lea rcx, [rsp + 0x60]
call fcn.14002bcd0
mov dword [rsi + 0x888], r14d
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, rsi
call fcn.14002cf50
mov r11, qword [rsi]
xor edx, edx
mov rcx, rsi
call qword [r11 + 0x68]
nop
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
nop
mov qword [rsp + 0x38], r15
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14002cdc6
mov eax, dword [0x140080554]
dec eax
mov dword [0x140080554], eax
test eax, eax
jg 0x14002cdb2
call fcn.1400457c0
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14002cdc6
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rsp + 0x48], r14
lea rcx, [rbp + 0x30]
call qword [sym.imp.acdb19.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64]
nop
lea rax, vtable.AdRmFileBackup.0
mov qword [rsp + 0x60], rax
cmp byte [rbp + 0x28], 0
jne 0x14002cdf7
lea rcx, [rbp - 0x38]
call qword [sym.imp.acdb19.dll_public:_wchar_t_const____ptr64___cdecl_AdXREFString::operator_wchar_t_const____ptr64_void_const___ptr64]
mov rcx, rax
call qword [sym.imp.MSVCR100.dll__wremove]
nop
lea rcx, [rbp - 0x38]
call qword [sym.imp.acdb19.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x68]
call qword [sym.imp.acdb19.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64]
nop
lea rcx, [rbp + 0x90]
call qword [sym.imp.acdb19.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64]
xor eax, eax
jmp 0x14002ce52
mov dword [rsi + 0x888], 0x13
mov r9b, 1
mov r8d, 0x13
mov rdx, rsi
mov rcx, rsi
call fcn.14002cf50
mov ebx, dword [rsi + 0x888]
lea rcx, [rbp + 0x90]
call qword [sym.imp.acdb19.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64]
mov eax, ebx
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.140049a80
lea r11, [rsp + 0x320]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret