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

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rsi
mov rdi, rcx
mov eax, dword [rcx + reloc.mfc90u.dll_CDocObjectServer::DoBeginPrinting]
test eax, eax
je 0x14002ef64
cmp eax, 0x32
jne 0x14002f185
lea rdx, [0x14005eb00]
add rcx, 0x820
call sub.acdb18.dll_public:_class_AdXREFString_const____ptr64___cdecl_AdXREFString::operator_wchar_t_const____ptr64____ptr64
cmp word [rdi + 0x20], 0
je 0x14002f176
lea rcx, [rdi + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002f176
xor edx, edx
lea rcx, [rdi + 0x20]
call fcn.14001ac90
test eax, eax
jne 0x14002efc8
cmp word [rdi + 0x20], ax
je 0x14002efc8
lea rcx, [rdi + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002efc8
and al, 0x10
cmp al, 0x10
sete al
test al, al
jne 0x14002f176
lea rbp, vtable.AdRmDatabasePointer.0
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x30], 0x1a
mov qword [rsp + 0x38], 0
xor r8d, r8d
lea rdx, [rdi + 0x20]
lea rcx, [rsp + 0x28]
call fcn.14004af70
mov ebx, dword [rsp + 0x30]
test ebx, ebx
je 0x14002f04b
mov dword [rdi + reloc.mfc90u.dll_CDocObjectServer::DoBeginPrinting], ebx
mov qword [rsp + 0x28], rbp
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14002f044
mov eax, dword [0x14008c8e4]
dec eax
mov dword [0x14008c8e4], eax
test eax, eax
jg 0x14002f034
lea rcx, [rsp + 0x28]
call fcn.14004b250
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14002f044
mov r8, qword [rcx]
mov edx, 1
call qword [r8]
mov eax, ebx
jmp 0x14002f185
mov rax, qword [rdi + 0x10]
mov rbx, qword [rax]
lea rcx, [rsp + 0x28]
mov rax, qword [rsp + 0x28]
call qword [rax + 0x18]
mov rdx, rax
mov rcx, qword [rdi + 0x10]
call qword [rbx + VariantCopy]
mov ebx, eax
test eax, eax
je 0x14002f0be
mov dword [rdi + reloc.mfc90u.dll_CDocObjectServer::DoBeginPrinting], eax
mov qword [rsp + 0x28], rbp
mov r8, qword [rsp + 0x38]
test r8, r8
je 0x14002f0b7
mov ecx, dword [0x14008c8e4]
dec ecx
mov dword [0x14008c8e4], ecx
test ecx, ecx
jg 0x14002f0a5
lea rcx, [rsp + 0x28]
call fcn.14004b250
mov r8, qword [rsp + 0x38]
test r8, r8
je 0x14002f0b7
mov rax, qword [r8]
mov edx, 1
mov rcx, r8
call qword [rax]
mov eax, ebx
jmp 0x14002f185
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
mov rax, qword [rsp + 0x28]
call qword [rax + 0x18]
mov rcx, rax
lea r8, [rsp + 0x50]
lea rdx, str.PROJECTNAME
call sub.acdb18.dll_int___cdecl_getDictionaryVariable_class_AcDbDatabase____ptr64__wchar_t_const____ptr64__wchar_t____ptr64____ptr64_
test eax, eax
je 0x14002f107
mov rdx, qword [rsp + 0x50]
lea rcx, [rdi + 0x820]
call sub.acdb18.dll_public:_class_AdXREFString_const____ptr64___cdecl_AdXREFString::operator_wchar_t_const____ptr64____ptr64
mov rcx, qword [rsp + 0x50]
call sub.mfc90u.dll_CStatusBar::CStatusBar
mov rbx, qword [rdi]
lea rcx, [rsp + 0x28]
mov rax, qword [rsp + 0x28]
call qword [rax + 0x18]
mov rdx, rax
mov rcx, rdi
call qword [rbx + 0xd8]
mov dword [rdi + COleControlSite::DisconnectSink], eax
mov dword [rdi + reloc.mfc90u.dll_CDocObjectServer::DoBeginPrinting], 0
mov qword [rsp + 0x28], rbp
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14002f172
mov eax, dword [0x14008c8e4]
dec eax
mov dword [0x14008c8e4], eax
test eax, eax
jg 0x14002f163
lea rcx, [rsp + 0x28]
call fcn.14004b250
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14002f172
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
xor eax, eax
jmp 0x14002f185
mov dword [rdi + reloc.mfc90u.dll_CDocObjectServer::DoBeginPrinting], 0x13
mov eax, 0x13
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret