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

Disassembly:
push rbp
push rdi
push r12
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rsi
mov rdi, rcx
mov eax, dword [rcx + 0x888]
test eax, eax
je 0x14002d484
cmp eax, 0x32
jne 0x14002d680
lea rdx, [0x140053c78]
add rcx, 0x820
call qword [sym.imp.acdb19.dll_public:_class_AdXREFString_const____ptr64___cdecl_AdXREFString::operator_wchar_t_const____ptr64____ptr64]
cmp word [rdi + 0x20], 0
je 0x14002d671
lea rcx, [rdi + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002d671
lea rcx, [rdi + 0x20]
call fcn.14001a670
test eax, eax
jne 0x14002d4e7
cmp word [rdi + 0x20], ax
je 0x14002d4e7
lea rcx, [rdi + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002d4e7
and al, 0x10
cmp al, 0x10
sete al
test al, al
jne 0x14002d671
lea r12, vtable.AdRmDatabasePointer.0
mov qword [rbp - 0x18], r12
mov dword [rbp - 0x10], 0x1a
mov qword [rbp - 8], 0
xor r8d, r8d
lea rdx, [rdi + 0x20]
lea rcx, [rbp - 0x18]
call fcn.140045500
mov ebx, dword [rbp - 0x10]
test ebx, ebx
je 0x14002d55d
mov dword [rdi + 0x888], ebx
mov qword [rbp - 0x18], r12
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x14002d556
mov eax, dword [0x140080554]
dec eax
mov dword [0x140080554], eax
test eax, eax
jg 0x14002d546
call fcn.1400457c0
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x14002d556
mov r8, qword [rcx]
mov edx, 1
call qword [r8]
mov eax, ebx
jmp 0x14002d680
mov rax, qword [rdi + 0x10]
mov rbx, qword [rax]
lea rcx, [rbp - 0x18]
mov rax, qword [rbp - 0x18]
call qword [rax + 0x18]
mov rdx, rax
mov rcx, qword [rdi + 0x10]
call qword [rbx + VariantCopy]
mov ebx, eax
test eax, eax
je 0x14002d5c6
mov dword [rdi + 0x888], eax
mov qword [rbp - 0x18], r12
mov r8, qword [rbp - 8]
test r8, r8
je 0x14002d5bf
mov ecx, dword [0x140080554]
dec ecx
mov dword [0x140080554], ecx
test ecx, ecx
jg 0x14002d5ad
call fcn.1400457c0
mov r8, qword [rbp - 8]
test r8, r8
je 0x14002d5bf
mov rax, qword [r8]
mov edx, 1
mov rcx, r8
call qword [rax]
mov eax, ebx
jmp 0x14002d680
mov qword [rbp + 0x20], 0
lea rcx, [rbp - 0x18]
mov rax, qword [rbp - 0x18]
call qword [rax + 0x18]
mov rcx, rax
lea r8, [rbp + 0x20]
lea rdx, str.PROJECTNAME
call qword [sym.imp.acdb19.dll_int___cdecl_getDictionaryVariable_class_AcDbDatabase____ptr64__wchar_t_const____ptr64__wchar_t____ptr64____ptr64_]
test eax, eax
je 0x14002d60c
mov rdx, qword [rbp + 0x20]
lea rcx, [rdi + 0x820]
call qword [sym.imp.acdb19.dll_public:_class_AdXREFString_const____ptr64___cdecl_AdXREFString::operator_wchar_t_const____ptr64____ptr64]
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.mfc100u.dll_CThreadLocalObject::CThreadLocalObject]
mov rbx, qword [rdi]
lea rcx, [rbp - 0x18]
mov rax, qword [rbp - 0x18]
call qword [rax + 0x18]
mov rdx, rax
mov rcx, rdi
call qword [rbx + 0xe0]
mov dword [rdi + 0x880], eax
mov dword [rdi + 0x888], 0
mov qword [rbp - 0x18], r12
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x14002d66d
mov eax, dword [0x140080554]
dec eax
mov dword [0x140080554], eax
test eax, eax
jg 0x14002d65e
call fcn.1400457c0
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x14002d66d
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
xor eax, eax
jmp 0x14002d680
mov dword [rdi + 0x888], 0x13
mov eax, 0x13
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r12
pop rdi
pop rbp
ret