Function at 0x140037b04
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xe0
mov rax, qword [0x14049e048]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov r14, rcx
xor r15d, r15d
mov rax, qword [sym.imp.accore.dll_class_AcMemLocker::Ptr_class_AcDbDatabase____ptr64__curDwg]
cmp qword [rax], r15
je 0x140037cf7
mov esi, r15d
mov edi, r15d
lea rbx, [rcx + 0xd8]
mov dword [rbp - 0x51], 0x39
lea r8, [rbp - 0x51]
lea rdx, [rbp - 9]
mov rcx, rbx
call fcn.1400224a0
mov rcx, qword [rbp + 7]
cmp byte [rcx + 0x19], r15b
jne 0x14009ecf0
cmp dword [rcx + 0x20], 0x39
jg 0x14009ecf0
mov r10, qword [rbx]
cmp rcx, r10
je 0x140037bb3
mov dword [rsp + 0x20], r15d
lea r9, vtable.type_info.0
lea r8, vtable.type_info.0
xor edx, edx
mov rcx, qword [rcx + 0x28]
call sub.VCRUNTIME140.dll___RTDynamicCast
mov rsi, rax
mov r10, qword [r14 + 0xd8]
mov dword [rbp - 0x51], 0x3a
lea r8, [rbp - 0x51]
lea rdx, [rbp - 9]
mov rcx, rbx
call fcn.1400224a0
mov rcx, qword [rbp + 7]
cmp byte [rcx + 0x19], r15b
jne 0x140037c00
cmp dword [rcx + 0x20], 0x3a
jg 0x140037c00
cmp rcx, r10
je 0x140037c00
mov dword [rsp + 0x20], r15d
lea r9, vtable.type_info.0
lea r8, vtable.type_info.0
xor edx, edx
mov rcx, qword [rcx + 0x28]
call sub.VCRUNTIME140.dll___RTDynamicCast
mov rdi, rax
test rsi, rsi
je 0x14009ecf8
mov r14b, r15b
mov qword [rbp - 0x11], r15
lea rcx, [rbp - 0x11]
call qword [sym.imp.ac1st24.dll_public:_void___cdecl_AcString::constructor_void____ptr64]
nop
mov qword [rbp - 0x19], r15
lea rcx, [rbp - 0x19]
call qword [sym.imp.ac1st24.dll_public:_void___cdecl_AcString::constructor_void____ptr64]
nop
mov qword [rbp - 0x21], r15
lea rcx, [rbp - 0x21]
call qword [sym.imp.ac1st24.dll_public:_void___cdecl_AcString::constructor_void____ptr64]
nop
mov qword [rbp - 0x29], r15
lea r8, [0x14032f730]
mov edx, 0x44fd
lea rcx, [rbp - 0x29]
call qword [sym.imp.accore.dll_class_AcString___cdecl_RC_CORE_MSG_unsigned_int__wchar_t_const____ptr64_]
nop
mov qword [rbp - 0x31], r15
lea rcx, [rbp - 0x31]
call qword [sym.imp.ac1st24.dll_public:_void___cdecl_AcString::constructor_void____ptr64]
nop
mov rax, qword [0x1404ba278]
mov qword [rbp - 0x49], rax
lea rdx, [rbp - 0x49]
mov rcx, qword [sym.imp.accore.dll_class_AcMemLocker::Ptr_class_AcDbDatabase____ptr64__curDwg]
mov rcx, qword [rcx]
call qword [sym.imp.acdb24.dll_enum_Acad::ErrorStatus___cdecl_acdbGetGeoDataObjId_class_AcDbDatabase____ptr64__class_AcDbObjectId____ptr64_]
test eax, eax
je 0x14009ed06
test rsi, rsi
je 0x140037cab
mov rax, qword [rbp - 0x21]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp - 0x19]
mov r8, qword [rbp - 0x11]
mov dl, r14b
mov rcx, rsi
call fcn.140037d78
test rdi, rdi
je 0x140037cc1
mov r8, qword [rbp - 0x31]
mov rdx, qword [rbp - 0x29]
mov rcx, rdi
call fcn.140037d20
nop
lea rcx, [rbp - 0x31]
call qword [sym.imp.ac1st24.dll_public:_void___cdecl_AcString::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x29]
call qword [sym.imp.ac1st24.dll_public:_void___cdecl_AcString::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x21]
call qword [sym.imp.ac1st24.dll_public:_void___cdecl_AcString::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x19]
call qword [sym.imp.ac1st24.dll_public:_void___cdecl_AcString::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x11]
call qword [sym.imp.ac1st24.dll_public:_void___cdecl_AcString::destructor_void____ptr64]
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140088c50
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov rcx, qword [rbx]
jmp 0x140037b83
test rdi, rdi
je 0x140037cf7
jmp 0x140037c09
xorps xmm0, xmm0
movups xmmword [rbp + 0xf], xmm0
movups xmmword [rbp + 0x1f], xmm0
movups xmmword [rbp + 0x2f], xmm0
mov rdx, qword [rbp - 0x49]
lea rcx, [rbp + 0xf]
call fcn.14029c758
nop
mov eax, dword [rbp + 0x27]
cmp eax, 0xf
je 0x14009ed30
cmp eax, 0x2d
jne 0x14009ed33
mov eax, dword [rbp + 0x17]
test eax, eax
jne 0x14009ee9d
mov rcx, qword [sym.imp.accore.dll_class_AcMemLocker::Ptr_class_AcDbDatabase____ptr64__curDwg]
mov rcx, qword [rcx]
call qword [sym.imp.acdb24.dll_public:_bool___cdecl_AcDbDatabase::geoMarkerVisibility_void_const___ptr64]
mov r14b, al
xorps xmm0, xmm0
movups xmmword [rbp - 9], xmm0
movsd qword [rbp + 7], xmm0
mov rbx, r15
mov rdx, qword [rbp + 0x17]
test edx, edx
cmove rbx, qword [rbp + 0xf]
mov rcx, r15
cmove rcx, qword [rbp + 0xf]
lea rdx, [rbp - 0x69]
call qword [sym.imp.acdb24.dll_public:_class_AcGePoint3d___cdecl_AcDbGeoData::designPoint_void____ptr64]
lea r8, [rbp - 9]
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.acdb24.dll_public:_enum_Acad::ErrorStatus___cdecl_AcDbGeoData::transformToLonLatAlt_class_AcGePoint3d_const____ptr64__class_AcGePoint3d____ptr64____ptr64]
test eax, eax
je 0x14009edb5
mov rcx, r15
cmp dword [rbp + 0x17], r15d
cmove rcx, qword [rbp + 0xf]
lea rdx, [rbp - 0x69]
call qword [sym.imp.acdb24.dll_public:_class_AcGePoint3d___cdecl_AcDbGeoData::referencePoint_void____ptr64]
movups xmm0, xmmword [rax]
movups xmmword [rbp - 9], xmm0
movsd xmm1, qword [rax + 0x10]
movsd qword [rbp + 7], xmm1
lea r9, [rbp - 0x21]
lea r8, [rbp - 0x19]
lea rdx, [rbp - 0x11]
lea rcx, [rbp - 9]
call qword [sym.imp.accore.dll_void___cdecl_acedFormatLonLatAlt_class_AcGePoint3d_const____ptr64__class_AcString____ptr64__class_AcString____ptr64__class_AcString____ptr64_]
mov rax, qword [sym.imp.accore.dll_class_AcMemLocker::Ptr_class_AcDbDatabase____ptr64__curDwg]
lea rdx, [rbp - 0x39]
mov rcx, qword [rax]
call qword [sym.imp.acdb24.dll_public:_class_AcString___cdecl_AcDbDatabase::geoCoordinateSystemId_void____ptr64]
nop
mov rax, qword [rbp - 0x39]
cmp word [rax], r15w
je 0x14009ee92
mov qword [rbp - 0x41], r15
lea rdx, str.AcGeoLocationUI.arx
lea rcx, [rbp - 0x41]
call qword [sym.imp.ac1st24.dll_public:_void___cdecl_AcString::constructor_wchar_t_const____ptr64____ptr64]
nop
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x14009ee22
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x14009ee87
lea rdx, str.isGeoCsSupported
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14009ee87
lea rcx, [rbp - 0x39]
call rax
test al, al
je 0x14009ee87
mov qword [rbp - 0x51], r15
lea rdx, [rbp - 0x51]
lea rcx, [rbp - 0x39]
call qword [sym.imp.acdb24.dll_public:_static_enum_Acad::ErrorStatus___cdecl_AcDbGeoCoordinateSystem::create_class_AcString_const____ptr64__class_AcDbGeoCoordinateSystem____ptr64____ptr64_]
test eax, eax
jne 0x14009ee87
mov rcx, qword [rbp - 0x51]
mov rax, qword [rcx]
lea rdx, [rbp - 0x29]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbp - 0x51]
mov rax, qword [rcx]
lea rdx, [rbp - 0x31]
call qword [rax + GetActiveObject]
mov rcx, qword [rbp - 0x51]
test rcx, rcx
je 0x14009ee87
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
nop
lea rcx, [rbp - 0x41]
call qword [sym.imp.ac1st24.dll_public:_void___cdecl_AcString::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x39]
call qword [sym.imp.ac1st24.dll_public:_void___cdecl_AcString::destructor_void____ptr64]
nop
lea rcx, [rbp + 0xf]
call fcn.1401500b4
nop
jmp 0x140037c8a