Function at 0x10002b50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10011565
push eax
mov eax, 0xebac
mov dword fs:[0], esp
call fcn.100111a0
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0xc], ebx
lea eax, [esp + 0x160]
mov ecx, 0x1388
mov dword [eax - 8], ebx
mov dword [eax - 4], ebx
mov dword [eax], ebx
add eax, 0xc
dec ecx
jne 0x10002b8a
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 8]
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
fld dword [eax + 4]
mov ecx, dword [eax]
xor eax, eax
fst dword [esp + 0x24]
mov dword [esp + 0x20], ecx
mov ecx, dword [edx + 8]
fld dword [esp + 0x20]
fsub dword [ebp + 0x10]
cmp ecx, ebx
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
fstp qword [esp + 0x80]
mov dword [esp + 0x74], 0x3ff00000
mov dword [esp + 0x48], ecx
fstp qword [esp + 0x88]
mov dword [esp + 0x38], eax
jle 0x10003118
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
mov esi, dword [edx + eax*4]
cmp esi, ebx
je 0x100030f6
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp eax, 0x12
jne 0x100030f6
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x24]
mov ecx, dword [ebp + 0xc]
mov esi, eax
push esi
mov eax, dword [ecx + 8]
push eax
call sub.MFC42.DLL_CPtrArray::SetAtGrow
mov edi, dword [esi + 0x24]
cmp edi, ebx
mov dword [esp + 0x1c], edi
je 0x10003103
jmp 0x10002c67
mov edi, dword [esp + 0x1c]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
cmp eax, 5
jne 0x10002f72
mov esi, dword [edi + 0x6e]
lea ecx, [edi + 0x6a]
call sub.Math2D.dll_public:_void___thiscall_CSectionList3D::Empty_void_
cmp esi, ebx
je 0x100030e5
mov ecx, dword [esi + 4]
lea eax, [esp + 0x158]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0xc]
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
push eax
mov dword [esp + 0x10], ebx
mov edx, dword [esi]
push ecx
push 0xfa0
push 0x3c23d70a
mov ecx, esi
call dword [edx + 0x60]
cmp dword [esp + 0xc], ebx
jg 0x10002ccd
push esi
lea ecx, [edi + 0x6a]
call sub.Math2D.dll_public:_void___thiscall_CSectionList3D::AddSectToTail_class_CSectObject3D__
jmp 0x10002f61
lea ecx, [esp + 0x98]
call sub.SmartNC.dll_public:_void___thiscall_CSmtCutPath::constructor_void_
mov eax, dword [esp + 0xc]
xor edi, edi
cmp eax, ebx
mov dword [esp + 0xebc0], ebx
mov dword [esp + 0xa0], ebx
jle 0x10002d59
lea esi, [esp + 0x15c]
push 0x38
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebx
mov byte [esp + 0xebc0], 1
je 0x10002d37
fld dword [esi + 4]
push ebx
push ebx
sub esp, 8
mov ecx, eax
fstp qword [esp]
fld dword [esi]
sub esp, 8
fstp qword [esp]
fld dword [esi - 4]
sub esp, 8
fstp qword [esp]
call sub.SmartNC.dll_public:_void___thiscall_CSmtCutPoint::constructor_double__double__double__double_
jmp 0x10002d39
xor eax, eax
push eax
lea ecx, [esp + 0x9c]
mov byte [esp + 0xebc4], bl
call sub.SmartNC.dll_public:_int___thiscall_CSmtCutPath::AddTail_class_CSmtCutPoint__
mov eax, dword [esp + 0xc]
inc edi
add esi, 0xc
cmp edi, eax
jl 0x10002cf8
push 0x3fa99999
push 0xa0000000
lea ecx, [esp + 0xa0]
call sub.SmartNC.dll_public_virtual:_void___thiscall_CSmtCutPath::InsertCPoint_double_
mov esi, dword [esp + 0xa8]
cmp esi, ebx
je 0x10002e11
fld dword [ebp + 0x18]
fstp qword [esp + 0x2c]
mov edi, dword [esp + 0x30]
fld dword [esp + 0x24]
fsubr qword [esi + 0x18]
lea ecx, [esi + 0x10]
fld st(0)
fld dword [esp + 0x20]
fsubr qword [ecx]
fst qword [esp + 0x14]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fsqrt
fstp qword [esp + 0x3c]
fstp st(0)
fstp st(0)
fld qword [esp + 0x14]
fpatan
fcom qword [0x10012890]
fnstsw ax
test ah, 1
je 0x10002dcc
fadd qword [0x10012888]
fsubr qword [0x10012880]
fld dword [esp + 0x20]
fsub qword [esp + 0x3c]
mov edx, dword [esp + 0x2c]
push edi
push edx
push ecx
lea eax, [esp + 0x74]
fstp qword [ecx]
fld dword [ebp + 0x10]
fmul st(1)
lea ecx, [esp + 0x8c]
push eax
push ecx
fadd dword [esp + 0x38]
fstp qword [esi + 0x18]
fstp st(0)
call sub.SmartNC.dll_void___cdecl_nc_RotatePoint_double__const__double__const__double__const__double_
mov esi, dword [esi + 0x30]
add esp, 0x14
cmp esi, ebx
jne 0x10002d89
lea ecx, [esp + 0x98]
call sub.SmartNC.dll_public:_void___thiscall_CSmtCutPath::DelPointOnLine_void_
mov edi, dword [esp + 0xa8]
xor eax, eax
cmp edi, ebx
mov dword [esp + 0xc], eax
je 0x10002f46
fld qword [edi + 0x10]
lea ecx, [eax + eax*2]
shl ecx, 2
inc eax
fstp dword [esp + ecx + 0x158]
fld qword [edi + 0x18]
cmp eax, 0xfa0
fstp dword [esp + ecx + 0x15c]
fld qword [edi + 0x20]
mov dword [esp + 0xc], eax
fstp dword [esp + ecx + 0x160]
jne 0x10002ede
push 0x2e
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebx
mov byte [esp + 0xebc0], 2
je 0x10002e87
mov ecx, eax
call sub.Math2D.dll_public:_void___thiscall_CSectLine3D::constructor_void_
mov esi, eax
jmp 0x10002e89
xor esi, esi
mov dx, word [esp + 0xc]
lea ecx, [esp + 0x158]
mov word [esi + 0x28], dx
mov eax, dword [esp + 0xc]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0xebc8], bl
call sub.Math2D.dll_public:_void___thiscall_CSectLine3D::Copy_class_point_3d_const___int_
mov edx, dword [esp + 0x1c]
push esi
lea ecx, [edx + 0x6a]
call sub.Math2D.dll_public:_void___thiscall_CSectionList3D::AddSectToTail_class_CSectObject3D__
mov eax, dword [esp + 0xc]
lea eax, [eax + eax*2]
lea ecx, [esp + eax*4 + 0x14c]
push ecx
lea ecx, [esp + 0x15c]
call sub.Math2D.dll_public:_class_point_3d____thiscall_point_3d::operator_class_point_3d_const__
mov eax, 1
mov dword [esp + 0xc], eax
mov edi, dword [edi + 0x30]
cmp edi, ebx
jne 0x10002e32
cmp eax, 2
jl 0x10002f46
push 0x2e
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebx
mov byte [esp + 0xebc0], 3
je 0x10002f13
mov ecx, eax
call sub.Math2D.dll_public:_void___thiscall_CSectLine3D::constructor_void_
mov esi, eax
jmp 0x10002f15
xor esi, esi
mov dx, word [esp + 0xc]
lea ecx, [esp + 0x158]
mov word [esi + 0x28], dx
mov eax, dword [esp + 0xc]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0xebc8], bl
call sub.Math2D.dll_public:_void___thiscall_CSectLine3D::Copy_class_point_3d_const___int_
mov edx, dword [esp + 0x1c]
push esi
lea ecx, [edx + 0x6a]
call sub.Math2D.dll_public:_void___thiscall_CSectionList3D::AddSectToTail_class_CSectObject3D__
lea ecx, [esp + 0x98]
mov dword [esp + 0xebc0], 0xffffffff
call sub.SmartNC.dll_public:_void___thiscall_CSmtCutPath::destructor_void_
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x10]
cmp esi, ebx
jne 0x10002c8a
jmp 0x100030e5
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
cmp eax, 6
jne 0x100030e5
mov eax, dword [edi + 0x58]
mov dword [esp + 0xc], eax
mov esi, dword [edi + 0x5c]
xor edi, edi
cmp eax, ebx
jle 0x100030e1
fld dword [ebp + 0x18]
fstp qword [esp + 0x2c]
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], ebx
push ecx
mov ecx, esi
call sub.Math2D.dll_public:_float____thiscall_point_3d::operator___int_const__
fld dword [eax]
lea edx, [esp + 0x10]
mov ecx, esi
fstp qword [esp + 0x50]
push edx
mov dword [esp + 0x14], 1
call sub.Math2D.dll_public:_float____thiscall_point_3d::operator___int_const__
fld dword [eax]
lea eax, [esp + 0x10]
mov ecx, esi
fstp qword [esp + 0x58]
push eax
mov dword [esp + 0x14], 2
call sub.Math2D.dll_public:_float____thiscall_point_3d::operator___int_const__
fld dword [eax]
fstp qword [esp + 0x60]
fld dword [esp + 0x24]
fsubr qword [esp + 0x58]
fld st(0)
fld dword [esp + 0x20]
fsubr qword [esp + 0x50]
fst qword [esp + 0x14]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fsqrt
fstp qword [esp + 0x3c]
fstp st(0)
fstp st(0)
fld qword [esp + 0x14]
fpatan
fcom qword [0x10012890]
fnstsw ax
test ah, 1
je 0x1000302a
fadd qword [0x10012888]
fld dword [esp + 0x20]
fsub qword [esp + 0x3c]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push ecx
lea eax, [esp + 0x54]
push edx
lea ecx, [esp + 0x70]
fstp qword [esp + 0x58]
fld qword [0x10012880]
fsub st(1)
fmul dword [ebp + 0x10]
push eax
lea edx, [esp + 0x8c]
push ecx
push edx
fadd dword [esp + 0x38]
fstp qword [esp + 0x6c]
fstp st(0)
call sub.SmartNC.dll_void___cdecl_nc_RotatePoint_double__const__double__const__double__const__double_
fld qword [esp + 0x64]
add esp, 0x14
lea eax, [esp + 0x10]
fstp dword [esp + 0x14]
push eax
mov ecx, esi
mov dword [esp + 0x14], ebx
call sub.Math2D.dll_public:_float____thiscall_point_3d::operator___int_const__
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x14]
mov dword [eax], ecx
push edx
fld qword [esp + 0x5c]
mov ecx, esi
mov dword [esp + 0x18], 1
fstp dword [esp + 0x14]
call sub.Math2D.dll_public:_float____thiscall_point_3d::operator___int_const__
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x4c]
mov dword [eax], ecx
push edx
fld qword [esp + 0x64]
mov ecx, esi
mov dword [esp + 0x50], 2
fstp dword [esp + 0x18]
call sub.Math2D.dll_public:_float____thiscall_point_3d::operator___int_const__
mov ecx, dword [esp + 0x14]
inc edi
mov dword [eax], ecx
mov eax, dword [esp + 0xc]
add esi, 0xc
cmp edi, eax
jl 0x10002f9d
mov edi, dword [esp + 0x1c]
mov edi, dword [edi + 0x18]
cmp edi, ebx
mov dword [esp + 0x1c], edi
jne 0x10002c63
jmp 0x10003103
mov ecx, dword [ebp + 0xc]
push ebx
mov edx, dword [ecx + 8]
push edx
call sub.MFC42.DLL_CPtrArray::SetAtGrow
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x48]
inc eax
cmp eax, ecx
mov dword [esp + 0x38], eax
jl 0x10002c1b
mov ecx, dword [esp + 0xebb8]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret