Function at 0x414f20
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4190f5
mov eax, dword fs:[0]
push eax
sub esp, 0x154
push ebx
push esi
push edi
mov eax, dword [0x42a018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
sub esp, 8
mov eax, esp
xor esi, esi
mov dword [eax + 4], esi
mov dword [eax], vtable.atlast::utils::SmartPtr_class_atlast::sketchup::ISketchUpEntityContainer___class_PointerCompare_class_atlast::utils::IRefCountObject___.0
mov ecx, dword [edi + 0xa8]
cmp ecx, esi
mov dword [ebp - 0x10], esp
mov dword [eax + 4], ecx
je 0x414f74
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
lea eax, [ebp - 0xe0]
push eax
call fcn.0040f690
lea ecx, [ebp - 0x160]
mov dword [ebp - 4], esi
call dword [sym.imp.opennurbs.dll_public:_void___thiscall_ON_Xform::constructor_void_]
fld qword [edi + 0xe0]
fcomp qword [0x41d730]
mov dword [ebp - 0x24], esi
fnstsw ax
test ah, 0x44
jnp 0x414fe6
lea ecx, [ebp - 0x160]
call dword [sym.imp.opennurbs.dll_public:_void___thiscall_ON_Xform::Identity_void_]
fld qword [edi + 0xe0]
sub esp, 0x18
fstp qword [esp + 0x10]
lea ecx, [ebp - 0x160]
fld qword [edi + 0xe0]
fstp qword [esp + 8]
fld qword [edi + 0xe0]
fstp qword [esp]
call dword [sym.imp.opennurbs.dll_public:_void___thiscall_ON_Xform::Scale_double__double__double_]
lea ecx, [ebp - 0x160]
mov dword [ebp - 0x24], ecx
mov ecx, dword [edi + 0xf0]
add ecx, 0x560
call dword [sym.imp.opennurbs.dll_public:_int___thiscall_ON_ClassArray_class_ONX_Model_Object_::Count_void_const]
cmp eax, esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20], esi
jle 0x415053
mov edx, dword [ebp - 0x20]
mov ecx, dword [edi + 0xf0]
push edx
add ecx, 0x560
call dword [sym.imp.opennurbs.dll_public:_class_ONX_Model_Object____thiscall_ON_ClassArray_class_ONX_Model_Object_::operator___int_]
mov esi, eax
lea ebx, [esi + 8]
mov ecx, ebx
call dword [sym.imp.opennurbs.dll_public:_bool___thiscall_ON_3dmObjectAttributes::IsInstanceDefinitionObject_void_const]
test al, al
jne 0x415045
mov eax, dword [ebp - 0x24]
push eax
push ebx
push esi
lea ecx, [ebp - 0xe0]
push ecx
mov ecx, edi
call fcn.00414c50
test al, al
je 0x4150d0
mov eax, dword [ebp - 0x20]
add eax, 1
cmp eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
jl 0x415002
lea esi, [ebp - 0xe0]
call fcn.0040fb70
test al, al
jne 0x41513a
mov ebx, dword [sym.imp.opennurbs.dll_public:_wchar_t_const____thiscall_ON_wString::operator_wchar_t_const__void_const]
lea esi, [edi + 0xe8]
mov ecx, esi
call ebx
push eax
call dword [sym.imp.MSVCR80.dll__wunlink]
add esp, 4
add edi, 0xec
push 0
mov ecx, edi
call dword [sym.imp.opennurbs.dll_public:_wchar_t____thiscall_ON_wString::operator___int_]
cmp word [eax], 0
je 0x4150a9
mov ecx, esi
call ebx
push eax
mov ecx, edi
call ebx
push eax
call dword [sym.imp.MSVCR80.dll__wrename]
add esp, 8
lea eax, [ebp - 0xe0]
push eax
mov dword [ebp - 4], 0xffffffff
call fcn.0040f7d0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.opennurbs.dll_public:_wchar_t_const____thiscall_ON_wString::operator_wchar_t_const__void_const]
lea esi, [edi + 0xe8]
mov ecx, esi
call ebx
push eax
call dword [sym.imp.MSVCR80.dll__wunlink]
add esp, 4
add edi, 0xec
push 0
mov ecx, edi
call dword [sym.imp.opennurbs.dll_public:_wchar_t____thiscall_ON_wString::operator___int_]
cmp word [eax], 0
je 0x415113
mov ecx, esi
call ebx
push eax
mov ecx, edi
call ebx
push eax
call dword [sym.imp.MSVCR80.dll__wrename]
add esp, 8
lea edx, [ebp - 0xe0]
push edx
mov dword [ebp - 4], 0xffffffff
call fcn.0040f7d0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0xa0]
push 0
push 0x42b334
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 - 0x1c]
push ecx
mov ecx, eax
call edx
push 0
push 0x42b9dc
push 0x42a954
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
push 0
push eax
call sub.MSVCR80.dll___RTDynamicCast
add esp, 0x14
test eax, eax
je 0x4151f5
mov ecx, dword [ebp - 0x18]
push 0
push 0x42b9dc
push 0x42a954
push 0
push ecx
call sub.MSVCR80.dll___RTDynamicCast
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x24]
add esp, 0x14
call eax
mov ebx, eax
xor esi, esi
test ebx, ebx
jle 0x4151f5
mov ecx, dword [ebp - 0x18]
push 0
push 0x42b9dc
push 0x42a954
push 0
push ecx
call sub.MSVCR80.dll___RTDynamicCast
mov edx, dword [eax]
mov edx, dword [edx + 0x2c]
add esp, 0x14
push esi
lea ecx, [ebp - 0x14]
push ecx
mov ecx, eax
call edx
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 0x4151ee
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
add esi, 1
cmp esi, ebx
jl 0x4151b1
mov eax, dword [edi + 0xa0]
push 0
push 0x42b334
push 0x42a954
push 0
push eax
call sub.MSVCR80.dll___RTDynamicCast
mov edx, dword [eax]
mov edx, dword [edx + 0x34]
add esp, 0x14
lea ecx, [ebp - 0x14]
push ecx
mov ecx, eax
call edx
push 0
push 0x42ba80
push 0x42a954
mov byte [ebp - 4], 2
mov eax, dword [eax + 4]
push 0
push eax
call sub.MSVCR80.dll___RTDynamicCast
add esp, 0x14
test eax, eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
sete bl
test ecx, ecx
mov dword [ebp - 0x14], vtable.atlast::utils::SmartPtr_class_atlast::sketchup::ISketchUpDocument___class_PointerCompare_class_atlast::utils::IRefCountObject___.0
je 0x41525b
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
test bl, bl
je 0x4152c4
mov ebx, dword [sym.imp.opennurbs.dll_public:_wchar_t_const____thiscall_ON_wString::operator_wchar_t_const__void_const]
lea esi, [edi + 0xe8]
mov ecx, esi
call ebx
push eax
call dword [sym.imp.MSVCR80.dll__wunlink]
add esp, 4
add edi, 0xec
push 0
mov ecx, edi
call dword [sym.imp.opennurbs.dll_public:_wchar_t____thiscall_ON_wString::operator___int_]
cmp word [eax], 0
je 0x4152a2
mov ecx, esi
call ebx
push eax
mov ecx, edi
call ebx
push eax
call dword [sym.imp.MSVCR80.dll__wrename]
add esp, 8
mov byte [ebp - 4], 0
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 0x4150a9
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
jmp 0x4150a9
mov eax, dword [edi + 0xa0]
push 0
push 0x42b334
push 0x42a954
push 0
push eax
call sub.MSVCR80.dll___RTDynamicCast
mov edx, dword [eax]
mov edx, dword [edx + 0x34]
add esp, 0x14
lea ecx, [ebp - 0x14]
push ecx
mov ecx, eax
call edx
push 0
push 0x42ba80
push 0x42a954
mov byte [ebp - 4], 3
mov eax, dword [eax + 4]
push 0
push eax
call sub.MSVCR80.dll___RTDynamicCast
mov ebx, eax
mov esi, dword [ebx]
add esp, 0x14
push 0xffffffffffffffff
lea ecx, [edi + 0xe8]
add esi, 0x10
call dword [sym.imp.opennurbs.dll_public:_wchar_t_const____thiscall_ON_wString::operator_wchar_t_const__void_const]
push eax
mov eax, dword [esi]
mov ecx, ebx
call eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
test ecx, ecx
mov dword [ebp - 0x14], vtable.atlast::utils::SmartPtr_class_atlast::sketchup::ISketchUpDocument___class_PointerCompare_class_atlast::utils::IRefCountObject___.0
je 0x415341
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
mov byte [ebp - 4], 0
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 0x41535a
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
lea ecx, [ebp - 0xe0]
push ecx
mov dword [ebp - 4], 0xffffffff
call fcn.0040f7d0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret