Function at 0x4156b0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4178d0
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push edi
mov eax, dword [0x42a018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
push 0
push 0x42b334
push 0x42a954
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 0xa0]
push 0
push eax
call sub.MSVCR80.dll___RTDynamicCast
mov edx, dword [eax]
mov edx, dword [edx + 0x24]
add esp, 0x14
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, eax
call edx
push 0
push 0x42b9dc
push 0x42a954
mov dword [ebp - 4], 0
mov eax, dword [eax + 4]
push 0
push eax
call sub.MSVCR80.dll___RTDynamicCast
mov edx, dword [eax]
mov edx, dword [edx + 0x28]
add esp, 0x14
push str.ShadowOptions
lea ecx, [ebp - 0x14]
push ecx
mov ecx, eax
call edx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x18]
test ecx, ecx
mov dword [ebp - 0x1c], vtable.atlast::utils::SmartPtr_class_atlast::sketchup::ISketchUpOptionsManager___class_PointerCompare_class_atlast::utils::IRefCountObject___.0
je 0x415766
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
mov eax, dword [ebp - 0x10]
push 0
push 0x42ba48
push 0x42a954
push 0
push eax
call sub.MSVCR80.dll___RTDynamicCast
add esp, 0x14
test eax, eax
jne 0x4157b2
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
test ecx, ecx
mov dword [ebp - 0x14], vtable.atlast::utils::SmartPtr_class_atlast::sketchup::ISketchUpOptionsProvider___class_PointerCompare_class_atlast::utils::IRefCountObject___.0
je 0x4157a0
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret
mov edi, dword [esi + 0xf4]
fld qword [edi]
call fcn.00417570
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x30], 4
fld qword [edi + 8]
call fcn.00417570
xor ecx, ecx
push ecx
push 0x42ba48
push 0x42a954
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x38], ecx
push ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 0x10]
push ecx
mov dword [ebp - 0x40], 4
mov dword [ebp - 0x38], eax
call sub.MSVCR80.dll___RTDynamicCast
mov edx, dword [eax]
mov edx, dword [edx + 0x24]
add esp, 0x14
lea ecx, [ebp - 0x30]
push ecx
push str.Latitude
mov ecx, eax
call edx
mov eax, dword [ebp - 0x10]
push 0
push 0x42ba48
push 0x42a954
push 0
push eax
call sub.MSVCR80.dll___RTDynamicCast
mov edx, dword [eax]
mov edx, dword [edx + 0x24]
add esp, 0x14
lea ecx, [ebp - 0x40]
push ecx
push str.Longitude
mov ecx, eax
call edx
fldz
mov eax, dword [esi + 0xf4]
add eax, 0x20
push eax
sub esp, 0x18
fst qword [esp + 0x10]
lea ecx, [ebp - 0x58]
fst qword [esp + 8]
fstp qword [esp]
call dword [sym.imp.opennurbs.dll_public:_void___thiscall_ON_3dPoint::constructor_double__double__double_]
mov ecx, eax
call dword [sym.imp.opennurbs.dll_public:_bool___thiscall_ON_3dPoint::operator__class_ON_3dPoint_const__const]
test al, al
je 0x4158a7
mov eax, dword [esi + 0xf4]
fld qword [eax + 0x30]
sub esp, 0x18
fchs
mov ecx, esi
fstp qword [esp + 0x10]
fld qword [eax + 0x28]
fchs
fstp qword [esp + 8]
fld qword [eax + 0x20]
fchs
fstp qword [esp]
call dword [sym.imp.opennurbs.dll_public:_void___thiscall_ON_Xform::Translation_double__double__double_]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
test ecx, ecx
mov dword [ebp - 0x14], vtable.atlast::utils::SmartPtr_class_atlast::sketchup::ISketchUpOptionsProvider___class_PointerCompare_class_atlast::utils::IRefCountObject___.0
je 0x4158c3
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret