Function at 0x14002e0d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x320
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rax, qword [0x14008a020]
xor rax, rsp
mov qword [rsp + 0x310], rax
movzx ebp, r8b
mov rsi, rcx
mov rax, qword [rcx]
call qword [rax + 0x58]
test al, al
jne 0x14002e11d
xor eax, eax
jmp 0x14002e8fb
mov eax, dword [rsi + reloc.mfc90u.dll_CDocObjectServer::DoBeginPrinting]
test eax, eax
je 0x14002e135
cmp eax, 0x34
je 0x14002e135
cmp eax, 0x35
jne 0x14002e8fb
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x68]
mov rbx, rax
test rax, rax
jne 0x14002e14e
lea eax, [rbx + 8]
jmp 0x14002e8fb
lea rcx, [rsp + 0x2b0]
call sub.acdb18.dll_public:_void___cdecl_AdXREFString::constructor_void____ptr64
nop
mov byte [rsp + 0x30], 0
lea rdx, [rsp + 0x60]
lea rcx, [rsi + 0x20]
call fcn.140001030
nop
mov rax, qword [rbx]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 5
mov r9, rsi
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x2b0]
mov rcx, rbx
call qword [rax + 0xf8]
mov ebx, eax
lea rcx, [rsp + 0x60]
call sub.acdb18.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64
test ebx, ebx
jne 0x14002e8c8
cmp byte [rsp + 0x30], bl
jne 0x14002e8c8
lea rcx, [rsi + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002e205
test al, 1
je 0x14002e205
mov dword [rsi + reloc.mfc90u.dll_CDocObjectServer::DoBeginPrinting], 0x34
mov r9b, 1
lea r8d, [rbx + 0x34]
mov rdx, rsi
mov rcx, rsi
call fcn.14002e9f0
mov ebx, dword [rsi + reloc.mfc90u.dll_CDocObjectServer::DoBeginPrinting]
lea rcx, [rsp + 0x2b0]
call sub.acdb18.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64
mov eax, ebx
jmp 0x14002e8fb
lea rdx, [rsp + 0x60]
lea rcx, [rsi + 0x20]
call fcn.140001030
nop
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x180]
call fcn.14002d550
nop
lea rcx, [rsp + 0x60]
call sub.acdb18.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64
lea rcx, [rsp + 0x250]
call sub.acdb18.dll_public:_void___cdecl_AdXREFString::constructor_void____ptr64
nop
test bpl, bpl
je 0x14002e25b
lea rdx, [rsp + 0x1e8]
lea rcx, [rsp + 0x250]
call sub.acdb18.dll_public:_class_AdXREFString_const____ptr64___cdecl_AdXREFString::operator_class_AdXREFString_const____ptr64____ptr64
jmp 0x14002e2af
lea rdx, [rsp + 0xc0]
lea rcx, [rsi + 0x20]
call fcn.140001030
nop
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x120]
call sub.acdb18.dll_public:_void___cdecl_AdXREFString::constructor_class_AdXREFString_const____ptr64____ptr64
nop
mov rdx, rax
lea rcx, [rsp + 0x250]
call sub.acdb18.dll_public:_class_AdXREFString_const____ptr64___cdecl_AdXREFString::operator_class_AdXREFString_const____ptr64____ptr64
nop
lea rcx, [rsp + 0x120]
call sub.acdb18.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64
nop
lea rcx, [rsp + 0xc0]
call sub.acdb18.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64
lea r14, vtable.AdRmDatabasePointer.0
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x40], 0x1a
xor r13d, r13d
mov qword [rsp + 0x48], r13
mov r8b, 1
lea rdx, [rsi + 0x20]
lea rcx, [rsp + 0x38]
call fcn.14004af70
mov r8d, dword [rsp + 0x40]
test r8d, r8d
je 0x14002e3b7
mov dword [rsi + reloc.mfc90u.dll_CDocObjectServer::DoBeginPrinting], r8d
mov r9b, 1
mov rdx, rsi
mov rcx, rsi
call fcn.14002e9f0
mov ebx, dword [rsi + reloc.mfc90u.dll_CDocObjectServer::DoBeginPrinting]
mov qword [rsp + 0x38], r14
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14002e349
mov eax, dword [0x14008c8e4]
dec eax
mov dword [0x14008c8e4], eax
test eax, eax
jg 0x14002e335
lea rcx, [rsp + 0x38]
call fcn.14004b250
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14002e349
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rsp + 0x48], r13
lea rcx, [rsp + 0x250]
call sub.acdb18.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64
nop
lea rax, vtable.AdRmFileBackup.0
mov qword [rsp + 0x180], rax
cmp byte [rsp + reloc.mfc90u.dll_CThreadSlotData::CThreadSlotData], 0
jne 0x14002e387
lea rcx, [rsp + 0x1e8]
call sub.acdb18.dll_public:_wchar_t_const____ptr64___cdecl_AdXREFString::operator_wchar_t_const____ptr64_void_const___ptr64
mov rcx, rax
call qword [sym.imp.MSVCR90.dll__wremove]
nop
lea rcx, [rsp + 0x1e8]
call sub.acdb18.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64
nop
lea rcx, [rsp + reloc.mfc90u.dll_CDynLinkLibrary::CDynLinkLibrary]
call sub.acdb18.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64
nop
lea rcx, [rsp + 0x2b0]
call sub.acdb18.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64
mov eax, ebx
jmp 0x14002e8fb
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 + 0xd8]
mov r12d, eax
lea rcx, [rsp + 0x38]
mov rdx, qword [rsp + 0x38]
call qword [rdx + 0x18]
mov rcx, rax
call sub.acdb18.dll_enum_Acad::ErrorStatus___cdecl_AcDbIndexFilterManager::updateIndexes_class_AcDbDatabase____ptr64_
test eax, eax
je 0x14002e4c9
mov dword [rsi + reloc.mfc90u.dll_CDocObjectServer::DoBeginPrinting], 0x17
mov r9b, 1
mov r8d, 0x17
mov rdx, rsi
mov rcx, rsi
call fcn.14002e9f0
mov ebx, dword [rsi + reloc.mfc90u.dll_CDocObjectServer::DoBeginPrinting]
mov qword [rsp + 0x38], r14
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14002e45b
mov eax, dword [0x14008c8e4]
dec eax
mov dword [0x14008c8e4], eax
test eax, eax
jg 0x14002e447
lea rcx, [rsp + 0x38]
call fcn.14004b250
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14002e45b
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rsp + 0x48], r13
lea rcx, [rsp + 0x250]
call sub.acdb18.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64
nop
lea rax, vtable.AdRmFileBackup.0
mov qword [rsp + 0x180], rax
cmp byte [rsp + reloc.mfc90u.dll_CThreadSlotData::CThreadSlotData], 0
jne 0x14002e499
lea rcx, [rsp + 0x1e8]
call sub.acdb18.dll_public:_wchar_t_const____ptr64___cdecl_AdXREFString::operator_wchar_t_const____ptr64_void_const___ptr64
mov rcx, rax
call qword [sym.imp.MSVCR90.dll__wremove]
nop
lea rcx, [rsp + 0x1e8]
call sub.acdb18.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64
nop
lea rcx, [rsp + reloc.mfc90u.dll_CDynLinkLibrary::CDynLinkLibrary]
call sub.acdb18.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64
nop
lea rcx, [rsp + 0x2b0]
call sub.acdb18.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64
mov eax, ebx
jmp 0x14002e8fb
mov edx, 1
mov rcx, qword [0x14008c8e8]
call sub.acdb18.dll_public:_enum_Acad::ErrorStatus___cdecl_AcDbDatabase::setSaveproxygraphics_short_int____ptr64
mov dl, 1
mov rcx, qword [0x14008c8e8]
call sub.acdb18.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 + 0x38]
mov rbx, rax
mov qword [rsp + 0x58], 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 0x14002e64f
nop dword [rax]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x20]
mov rbp, rax
test rax, rax
je 0x14002e64f
mov rdi, qword [rax]
lea rcx, [rsp + 0x38]
mov rdx, qword [rsp + 0x38]
call qword [rdx + 0x18]
mov rdx, rax
mov rcx, rbp
call qword [rdi + 0xb0]
test eax, eax
jne 0x14002e572
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
mov r11, qword [rbx]
mov rcx, rbx
call qword [r11 + 0x18]
test al, al
jne 0x14002e64f
jmp 0x14002e520
mov dword [rsi + reloc.mfc90u.dll_CDocObjectServer::DoBeginPrinting], eax
mov r9b, 1
mov r8d, eax
mov rdx, rsi
mov rcx, rsi
call fcn.14002e9f0
mov edi, dword [rsi + reloc.mfc90u.dll_CDocObjectServer::DoBeginPrinting]
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
nop
mov qword [rsp + 0x38], r14
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14002e5e1
mov eax, dword [0x14008c8e4]
dec eax
mov dword [0x14008c8e4], eax
test eax, eax
jg 0x14002e5cd
lea rcx, [rsp + 0x38]
call fcn.14004b250
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14002e5e1
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rsp + 0x48], r13
lea rcx, [rsp + 0x250]
call sub.acdb18.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64
nop
lea rax, vtable.AdRmFileBackup.0
mov qword [rsp + 0x180], rax
cmp byte [rsp + reloc.mfc90u.dll_CThreadSlotData::CThreadSlotData], 0
jne 0x14002e61f
lea rcx, [rsp + 0x1e8]
call sub.acdb18.dll_public:_wchar_t_const____ptr64___cdecl_AdXREFString::operator_wchar_t_const____ptr64_void_const___ptr64
mov rcx, rax
call qword [sym.imp.MSVCR90.dll__wremove]
nop
lea rcx, [rsp + 0x1e8]
call sub.acdb18.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64
nop
lea rcx, [rsp + reloc.mfc90u.dll_CDynLinkLibrary::CDynLinkLibrary]
call sub.acdb18.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64
nop
lea rcx, [rsp + 0x2b0]
call sub.acdb18.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64
mov eax, edi
jmp 0x14002e8fb
mov rdi, qword [0x14008c8e8]
lea rcx, [rsp + 0x250]
call sub.acdb18.dll_public:_wchar_t_const____ptr64___cdecl_AdXREFString::operator_wchar_t_const____ptr64_void_const___ptr64
mov qword [rsp + 0x20], r13
mov r9d, 0x1d
mov r8b, 1
mov rdx, rax
mov rcx, rdi
call sub.acdb18.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 0x14002e768
mov dword [rsi + reloc.mfc90u.dll_CDocObjectServer::DoBeginPrinting], 0x16
mov r9b, 1
mov r8d, 0x16
mov rdx, rsi
mov rcx, rsi
call fcn.14002e9f0
mov edi, dword [rsi + reloc.mfc90u.dll_CDocObjectServer::DoBeginPrinting]
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
nop
mov qword [rsp + 0x38], r14
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14002e6fa
mov eax, dword [0x14008c8e4]
dec eax
mov dword [0x14008c8e4], eax
test eax, eax
jg 0x14002e6e6
lea rcx, [rsp + 0x38]
call fcn.14004b250
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14002e6fa
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rsp + 0x48], r13
lea rcx, [rsp + 0x250]
call sub.acdb18.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64
nop
lea rax, vtable.AdRmFileBackup.0
mov qword [rsp + 0x180], rax
cmp byte [rsp + reloc.mfc90u.dll_CThreadSlotData::CThreadSlotData], 0
jne 0x14002e738
lea rcx, [rsp + 0x1e8]
call sub.acdb18.dll_public:_wchar_t_const____ptr64___cdecl_AdXREFString::operator_wchar_t_const____ptr64_void_const___ptr64
mov rcx, rax
call qword [sym.imp.MSVCR90.dll__wremove]
nop
lea rcx, [rsp + 0x1e8]
call sub.acdb18.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64
nop
lea rcx, [rsp + reloc.mfc90u.dll_CDynLinkLibrary::CDynLinkLibrary]
call sub.acdb18.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64
nop
lea rcx, [rsp + 0x2b0]
call sub.acdb18.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64
mov eax, edi
jmp 0x14002e8fb
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 + 0xd8]
mov dword [rsi + COleControlSite::DisconnectSink], eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14002e7c9
mov eax, dword [0x14008c8e4]
dec eax
mov dword [0x14008c8e4], eax
test eax, eax
jg 0x14002e7b5
lea rcx, [rsp + 0x38]
call fcn.14004b250
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14002e7c9
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rsp + 0x48], r13
cmp r12d, dword [rsi + 0x880]
setne al
mov byte [rsi + CDocObjectServer::DoBeginPrinting], al
lea rcx, [rsp + 0x180]
call fcn.14002d6d0
mov dword [rsi + reloc.mfc90u.dll_CDocObjectServer::DoBeginPrinting], r13d
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, rsi
call fcn.14002e9f0
mov r11, qword [rsi]
xor edx, edx
mov rcx, rsi
call qword [r11 + 0x60]
nop
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
nop
mov qword [rsp + 0x38], r14
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14002e85d
mov eax, dword [0x14008c8e4]
dec eax
mov dword [0x14008c8e4], eax
test eax, eax
jg 0x14002e849
lea rcx, [rsp + 0x38]
call fcn.14004b250
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14002e85d
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rsp + 0x48], r13
lea rcx, [rsp + 0x250]
call sub.acdb18.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64
nop
lea rax, vtable.AdRmFileBackup.0
mov qword [rsp + 0x180], rax
cmp byte [rsp + reloc.mfc90u.dll_CThreadSlotData::CThreadSlotData], 0
jne 0x14002e89b
lea rcx, [rsp + 0x1e8]
call sub.acdb18.dll_public:_wchar_t_const____ptr64___cdecl_AdXREFString::operator_wchar_t_const____ptr64_void_const___ptr64
mov rcx, rax
call qword [sym.imp.MSVCR90.dll__wremove]
nop
lea rcx, [rsp + 0x1e8]
call sub.acdb18.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64
nop
lea rcx, [rsp + reloc.mfc90u.dll_CDynLinkLibrary::CDynLinkLibrary]
call sub.acdb18.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64
nop
lea rcx, [rsp + 0x2b0]
call sub.acdb18.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64
xor eax, eax
jmp 0x14002e8fb
mov dword [rsi + reloc.mfc90u.dll_CDocObjectServer::DoBeginPrinting], 0x13
mov r9b, 1
mov r8d, 0x13
mov rdx, rsi
mov rcx, rsi
call fcn.14002e9f0
mov ebx, dword [rsi + reloc.mfc90u.dll_CDocObjectServer::DoBeginPrinting]
lea rcx, [rsp + 0x2b0]
call sub.acdb18.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64
mov eax, ebx
mov rcx, qword [rsp + 0x310]
xor rcx, rsp
call fcn.14004f900
lea r11, [rsp + 0x320]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret