Function at 0x525a40
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x658ee2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x20], esi
call fcn.0041093d
mov ebp, eax
call fcn.0040636b
lea ecx, [esp + 0xcc]
mov dword [esp + 0x80], eax
call dword [sym.imp.zmathdll.dll_public:_void___thiscall_ZData::constructor_void_]
mov eax, dword [ebp + 0x246]
xor edi, edi
push 0xffffffffffffffff
push edi
mov ecx, dword [eax]
mov dword [esp + 0x130], edi
mov dword [esp + 0x30], ecx
lea ecx, [esi + 0x70]
call sub.MFC42.DLL_CPtrArray::SetSize
mov ebx, dword [esi + 0x8c]
test ebx, ebx
jle 0x525ac9
mov edx, dword [esi + 0x88]
mov ecx, dword [edx + edi*4]
call dword [sym.imp.zmathdll.dll_public:_void___thiscall_ZObject::Flush_void_]
inc edi
cmp edi, ebx
jl 0x525ab5
lea ecx, [esi + 0x84]
xor esi, esi
push 0xffffffffffffffff
push esi
call sub.MFC42.DLL_CPtrArray::SetSize
lea ecx, [esp + 0x48]
call fcn.0063d896
mov dword [esp + 0x48], 0x674948
xor eax, eax
mov edi, 1
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x28]
xor ecx, ecx
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], ecx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], 0x3ff00000
mov dword [esp + 0x74], esi
mov dword [esp + 0x68], esi
mov ecx, dword [eax + 8]
mov eax, dword [ebp + 0x24a]
mov byte [esp + 0x128], 1
mov esi, dword [ecx]
cmp eax, edi
mov dword [esp + 0x7c], eax
mov dword [esp + 0x30], edi
jle 0x525d89
mov ecx, dword [esp + 0x28]
jmp 0x525b48
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x30]
mov edx, dword [ebp + 0x246]
mov dword [esp + 0x2c], esi
push 0x64
mov eax, dword [edx + edi*4]
mov edx, dword [eax + 8]
mov eax, dword [ecx]
mov esi, dword [edx]
lea edx, [esi + 0xad]
push edx
call dword [eax + 0x34]
test eax, eax
jne 0x525b89
mov eax, dword [ebp + 0x246]
mov edi, dword [eax + edi*4]
mov ecx, edi
call dword [sym.imp.zmathdll.dll_public:_int___thiscall_ZObject::GetParentNum_void_const]
dec eax
mov ecx, edi
push eax
call dword [sym.imp.zmathdll.dll_public:_class_ZObject____thiscall_ZObject::GetParent_int_]
mov esi, eax
mov ecx, dword [esp + 0x20]
push esi
mov eax, dword [ecx + 0x8c]
lea edi, [ecx + 0x84]
push eax
mov ecx, edi
call sub.MFC42.DLL_CPtrArray::SetAtGrow
mov eax, dword [edi + 8]
push esi
push eax
mov ecx, edi
call sub.MFC42.DLL_CPtrArray::SetAtGrow
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
lea ebx, [edx + 0xad]
lea edi, [eax + 0x85]
push ebx
mov ecx, edi
call dword [sym.imp.zmathdll.dll_public:_int___thiscall_ZPolyline::InsertPoint_class_CPoint_const__]
mov dword [esp + 0x10], eax
lea eax, [esi + 0xad]
push eax
mov ecx, edi
call dword [sym.imp.zmathdll.dll_public:_int___thiscall_ZPolyline::InsertPoint_class_CPoint_const__]
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x50]
mov dword [esp + 0x24], eax
call sub.MFC42.DLL_CPtrArray::SetSize
push 0x48
call sub.MFC42.DLL_operatornew
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
test edi, edi
mov byte [esp + 0x128], 2
je 0x525c34
mov ecx, edi
call dword [sym.imp.zmathdll.dll_public:_void___thiscall_ZPolyline::constructor_void_]
lea ecx, [edi + 0x34]
mov byte [esp + 0x128], 3
call fcn.0063d896
mov dword [edi + 0x34], 0x674960
mov ecx, dword [sym.imp.zmathdll.dll_const_ZCurve::vftable]
mov dword [edi], ecx
jmp 0x525c36
xor edi, edi
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x50]
push edx
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x130], 1
call sub.MFC42.DLL_CPtrArray::SetAtGrow
mov ecx, dword [ebx]
lea eax, [esp + 0x5c]
mov dword [esp + 0x5c], ecx
mov edx, dword [ebx + 4]
push eax
mov ecx, edi
mov dword [esp + 0x64], edx
call dword [sym.imp.zmathdll.dll_public:_int___thiscall_ZCurve::AddKnot_struct_ZCurveKnot_const__]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
lea ebx, [ecx + 1]
cmp ebx, eax
jge 0x525cae
mov edx, dword [esp + 0x28]
push ebx
lea ecx, [edx + 0x89]
call dword [sym.imp.zmathdll.dll_public:_class_CPoint____thiscall_ZPointArray::operator___int_]
mov ecx, dword [eax]
mov dword [esp + 0x5c], ecx
mov ecx, edi
mov edx, dword [eax + 4]
lea eax, [esp + 0x5c]
push eax
mov dword [esp + 0x64], edx
call dword [sym.imp.zmathdll.dll_public:_int___thiscall_ZCurve::AddKnot_struct_ZCurveKnot_const__]
mov eax, dword [esp + 0x1c]
inc ebx
cmp ebx, eax
jl 0x525c7a
mov ecx, dword [esp + 0x50]
push esi
push ecx
lea ecx, [esp + 0x50]
call sub.MFC42.DLL_CPtrArray::SetAtGrow
mov edx, dword [esi + 0xad]
lea ecx, [esp + 0x5c]
mov dword [esp + 0x5c], edx
mov eax, dword [esi + 0xb1]
push ecx
mov ecx, edi
mov dword [esp + 0x64], eax
call dword [sym.imp.zmathdll.dll_public:_int___thiscall_ZCurve::AddKnot_struct_ZCurveKnot_const__]
push 0x14d
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov byte [esp + 0x128], 4
je 0x525d14
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
push edi
push 0
push edx
push ecx
mov ecx, eax
call dword [sym.imp.zmathdll.dll_public:_void___thiscall_ZLCurve::constructor_class_ZObject____int__int__class_ZCurve__]
mov ebx, eax
jmp 0x525d16
xor ebx, ebx
mov eax, dword [ebp + 0x272]
lea ecx, [ebp + 0x26a]
push ebx
push eax
mov byte [esp + 0x130], 1
call sub.MFC42.DLL_CPtrArray::SetAtGrow
mov edx, dword [esp + 0x20]
push ebx
mov eax, dword [edx + 0x78]
lea ecx, [edx + 0x70]
push eax
call sub.MFC42.DLL_CPtrArray::SetAtGrow
test edi, edi
mov dword [esp + 0x10], edi
je 0x525d74
lea ecx, [edi + 0x34]
mov byte [esp + 0x128], 5
call sub.MFC42.DLL_CPtrArray::CPtrArray
lea ecx, [edi + 4]
mov byte [esp + 0x128], 1
call dword [sym.imp.zmathdll.dll_public:_void___thiscall_ZPointArray::destructor_void_]
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x7c]
inc eax
cmp eax, ecx
mov dword [esp + 0x30], eax
jl 0x525b40
mov eax, dword [ebp + 0x246]
mov ebx, esi
mov edi, dword [eax]
mov ecx, edi
call dword [sym.imp.zmathdll.dll_public:_int___thiscall_ZObject::GetParentNum_void_const]
dec eax
mov ecx, edi
push eax
call dword [sym.imp.zmathdll.dll_public:_class_ZObject____thiscall_ZObject::GetParent_int_]
mov ecx, dword [esp + 0x28]
lea esi, [ebx + 0xad]
push esi
mov dword [esp + 0x20], eax
lea edi, [ecx + 0x85]
mov ecx, edi
call dword [sym.imp.zmathdll.dll_public:_int___thiscall_ZPolyline::InsertPoint_class_CPoint_const__]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
mov ecx, edi
lea eax, [edx + 0xad]
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.zmathdll.dll_public:_int___thiscall_ZPolyline::InsertPoint_class_CPoint_const__]
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x50]
mov dword [esp + 0x34], eax
call sub.MFC42.DLL_CPtrArray::SetSize
push 0x48
call sub.MFC42.DLL_operatornew
mov edi, eax
add esp, 4
mov dword [esp + 0x24], edi
test edi, edi
mov byte [esp + 0x128], 6
je 0x525e32
mov ecx, edi
call dword [sym.imp.zmathdll.dll_public:_void___thiscall_ZPolyline::constructor_void_]
lea ecx, [edi + 0x34]
mov byte [esp + 0x128], 7
call fcn.0063d896
mov dword [edi + 0x34], 0x674960
mov eax, dword [sym.imp.zmathdll.dll_const_ZCurve::vftable]
mov dword [edi], eax
jmp 0x525e34
xor edi, edi
mov ecx, dword [esp + 0x50]
push ebx
push ecx
lea ecx, [esp + 0x50]
mov byte [esp + 0x130], 1
call sub.MFC42.DLL_CPtrArray::SetAtGrow
mov edx, dword [esi]
mov ebx, dword [sym.imp.zmathdll.dll_public:_int___thiscall_ZCurve::AddKnot_struct_ZCurveKnot_const__]
lea ecx, [esp + 0x5c]
mov dword [esp + 0x5c], edx
mov eax, dword [esi + 4]
push ecx
mov ecx, edi
mov dword [esp + 0x64], eax
call ebx
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
lea esi, [edx + 1]
cmp esi, eax
jge 0x525ead
mov eax, dword [esp + 0x28]
add eax, 0x89
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x10]
push esi
call dword [sym.imp.zmathdll.dll_public:_class_CPoint____thiscall_ZPointArray::operator___int_]
mov ecx, dword [eax]
mov dword [esp + 0x5c], ecx
mov ecx, edi
mov edx, dword [eax + 4]
lea eax, [esp + 0x5c]
push eax
mov dword [esp + 0x64], edx
call ebx
mov eax, dword [esp + 0x2c]
inc esi
cmp esi, eax
jl 0x525e83
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x50]
push ecx
push edx
lea ecx, [esp + 0x50]
call sub.MFC42.DLL_CPtrArray::SetAtGrow
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov dword [esp + 0x5c], ecx
mov edx, dword [eax + 4]
lea eax, [esp + 0x5c]
mov ecx, edi
push eax
mov dword [esp + 0x64], edx
call ebx
push 0x14d
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov byte [esp + 0x128], 8
je 0x525f10
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
push edi
push 0
push ecx
push edx
mov ecx, eax
call dword [sym.imp.zmathdll.dll_public:_void___thiscall_ZLCurve::constructor_class_ZObject____int__int__class_ZCurve__]
mov esi, eax
jmp 0x525f12
xor esi, esi
mov eax, dword [ebp + 0x272]
lea ecx, [ebp + 0x26a]
push esi
push eax
mov byte [esp + 0x130], 1
call sub.MFC42.DLL_CPtrArray::SetAtGrow
mov eax, dword [esp + 0x20]
push esi
lea ecx, [eax + 0x70]
mov eax, dword [eax + 0x78]
push eax
call sub.MFC42.DLL_CPtrArray::SetAtGrow
test edi, edi
mov dword [esp + 0x10], edi
je 0x525f70
lea ecx, [edi + 0x34]
mov byte [esp + 0x128], 9
call sub.MFC42.DLL_CPtrArray::CPtrArray
lea ecx, [edi + 4]
mov byte [esp + 0x128], 1
call dword [sym.imp.zmathdll.dll_public:_void___thiscall_ZPointArray::destructor_void_]
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x7c]
mov eax, 1
cmp ecx, eax
mov dword [esp + 0x30], eax
jle 0x526c2d
mov dword [esp + 0x78], 0
mov ecx, dword [esp + 0x78]
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x28]
push ecx
mov ecx, esi
call fcn.004097d7
mov eax, dword [ebx + 8]
mov edx, dword [esi + 0x78]
mov edi, dword [esp + 0x30]
mov dword [esp + 0x2c], edx
mov eax, dword [eax]
push 1
mov ecx, dword [eax + 0xad]
mov edx, dword [eax + 0xb1]
mov dword [esp + 0x38], ecx
mov ecx, dword [esi + 0x88]
mov dword [esp + 0x3c], edx
mov ecx, dword [ecx + edi*8 - 8]
mov edx, dword [ecx + 0xad]
mov dword [esp + 0x88], edx
mov edx, dword [ecx + 0xb1]
mov ecx, dword [ecx + 0xad]
mov dword [esp + 0x8c], edx
push edx
mov edx, dword [esi + 0x64]
push ecx
mov ecx, dword [esi + 0x60]
push edx
mov edx, dword [eax + 0xb1]
mov eax, dword [eax + 0xad]
push ecx
push edx
push eax
lea ecx, [esp + 0xe8]
call dword [sym.imp.zmathdll.dll_public:_double___thiscall_ZData::M_Angle_class_CPoint__class_CPoint__class_CPoint__char_]
mov eax, dword [esp + 0x78]
mov dword [esp + 0x18], 0
fstp qword [esp + 0x3c]
cmp eax, 0xfffffffe
jle 0x5265a6
jmp 0x526035
mov esi, dword [esp + 0x20]
mov ecx, dword [esi + 0x74]
mov edx, dword [esp + 0x18]
xor edi, edi
push 0xffffffffffffffff
mov ebx, dword [ecx + edx*4]
push edi
lea ecx, [esp + 0x50]
mov dword [esp + 0x18], ebx
call sub.MFC42.DLL_CPtrArray::SetSize
push 0x48
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
cmp esi, edi
mov byte [esp + 0x128], 0xa
je 0x5260bb
push 2
lea ecx, [esi + 4]
call dword [sym.imp.zmathdll.dll_public:_void___thiscall_ZPointArray::constructor_int_]
push edi
push edi
push edi
push edi
lea ecx, [esi + 0x14]
mov byte [esp + 0x138], 0xb
call fcn.004083b4
mov eax, dword [sym.imp.zmathdll.dll_const_ZPolyline::vftable]
mov dword [esi + 0x30], edi
mov dword [esi], eax
mov dword [esi + 0x24], 1
lea ecx, [esi + 0x34]
mov byte [esp + 0x128], 0xc
call fcn.00408b9d
mov ecx, dword [sym.imp.zmathdll.dll_const_ZCurve::vftable]
mov dword [esp + 0x24], esi
mov dword [esi], ecx
jmp 0x5260bf
mov dword [esp + 0x24], edi
mov edx, dword [ebx + 8]
mov eax, dword [esp + 0x18]
test eax, eax
mov edi, dword [edx]
mov byte [esp + 0x128], 1
jle 0x526271
push 0xbb8
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov byte [esp + 0x128], 0xd
je 0x52611b
mov esi, eax
mov dword [esp + 0x1c], 0x32
mov ecx, esi
call dword [sym.imp.zmathdll.dll_public:_void___thiscall_ZGradData::constructor_void_]
mov eax, dword [esp + 0x1c]
add esi, 0x3c
dec eax
mov dword [esp + 0x1c], eax
jne 0x5260ff
mov eax, dword [esp + 0x14]
jmp 0x52611d
xor eax, eax
mov dword [esp + 0x8c], eax
add eax, 0xc
mov byte [esp + 0x128], 1
mov edx, 0x32
xor ecx, ecx
mov dword [eax - 8], ecx
mov dword [eax - 4], ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax - 0xc], ecx
add eax, 0x3c
dec edx
jne 0x526136
mov edx, dword [esp + 0x8c]
mov eax, dword [ebp + 0x2ae]
lea ecx, [ebp + 0x2a6]
push edx
push eax
call sub.MFC42.DLL_CPtrArray::SetAtGrow
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov edx, dword [edi + 0xb1]
push 0
push eax
mov eax, dword [edi + 0xad]
push ecx
mov ecx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x44]
push eax
push ecx
lea eax, [esp + 0x110]
push edx
push eax
lea ecx, [esp + 0xec]
call dword [sym.imp.zmathdll.dll_public:_class_CPoint___thiscall_ZData::M_RPoint_class_CPoint__class_CPoint__double__char_]
mov ecx, dword [eax]
push 0x64
mov dword [esp + 0xc8], ecx
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax + 4]
mov eax, dword [ebp + 0x246]
mov dword [esp + 0xcc], edx
mov edx, dword [eax + ecx*4]
mov eax, dword [eax]
mov ecx, dword [edx + 8]
mov edx, dword [eax]
mov esi, dword [ecx]
lea ecx, [esi + 0xad]
push ecx
mov ecx, eax
call dword [edx + 0x34]
test eax, eax
jne 0x5261f9
mov edx, dword [ebp + 0x246]
mov eax, dword [esp + 0x18]
mov esi, dword [edx + eax*4]
mov ecx, esi
call dword [sym.imp.zmathdll.dll_public:_int___thiscall_ZObject::GetParentNum_void_const]
dec eax
mov ecx, esi
push eax
call dword [sym.imp.zmathdll.dll_public:_class_ZObject____thiscall_ZObject::GetParent_int_]
mov esi, eax
push 0x441
call sub.MFC42.DLL_operatornew
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
test edi, edi
mov byte [esp + 0x128], 0xe
je 0x526254
mov ecx, dword [ebp + 0x53e]
mov edx, dword [ebp + 0x53a]
push ecx
mov ecx, dword [ebp + 0x342]
lea eax, [esp + 0x90]
push edx
push eax
push 0x1b
push 0
push ecx
push 0x10
lea edx, [esp + 0xe0]
push esi
push edx
mov ecx, edi
call dword [sym.imp.zmathdll.dll_public:_void___thiscall_ZPoint::constructor_class_CPoint___class_ZObject___int__struct_ZUnit___int__int__struct_ZGradData____int___int__]
mov dword [edi], 0x6701d4
jmp 0x526256
xor edi, edi
mov eax, dword [ebp + 0x272]
lea ecx, [ebp + 0x26a]
push edi
push eax
mov byte [esp + 0x130], 1
call sub.MFC42.DLL_CPtrArray::SetAtGrow
mov eax, dword [esp + 0x50]
push edi
push eax
lea ecx, [esp + 0x50]
call sub.MFC42.DLL_CPtrArray::SetAtGrow
mov ecx, dword [edi + 0xad]
lea eax, [esp + 0x5c]
mov dword [esp + 0x5c], ecx
mov edx, dword [edi + 0xb1]
mov ecx, dword [esp + 0x24]
push eax
mov dword [esp + 0x64], edx
call dword [sym.imp.zmathdll.dll_public:_int___thiscall_ZCurve::AddKnot_struct_ZCurveKnot_const__]
mov esi, dword [ebx + 0xc1]
mov edi, 1
dec esi
cmp esi, edi
jle 0x52630f
mov ecx, dword [esp + 0x40]
mov eax, dword [ebx + 0xbd]
mov edx, dword [esp + 0x3c]
push 0
push ecx
mov ecx, dword [eax + edi*4]
push edx
mov edx, dword [ecx + 4]
push edx
mov edx, dword [esp + 0x44]
mov eax, dword [ecx]
mov ecx, dword [esp + 0x48]
push eax
push ecx
lea eax, [esp + 0x108]
push edx
push eax
lea ecx, [esp + 0xec]
call dword [sym.imp.zmathdll.dll_public:_class_CPoint___thiscall_ZData::M_RPoint_class_CPoint__class_CPoint__double__char_]
mov ecx, dword [eax]
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [eax + 4]
lea eax, [esp + 0x5c]
push eax
mov dword [esp + 0x64], edx
call dword [sym.imp.zmathdll.dll_public:_int___thiscall_ZCurve::AddKnot_struct_ZCurveKnot_const__]
inc edi
cmp edi, esi
jl 0x5262b3
mov ecx, ebx
call dword [sym.imp.zmathdll.dll_public:_int___thiscall_ZObject::GetParentNum_void_const]
dec eax
mov ecx, ebx
push eax
call dword [sym.imp.zmathdll.dll_public:_class_ZObject____thiscall_ZObject::GetParent_int_]
push 0xbb8
mov esi, eax
call sub.MFC42.DLL_operatornew
mov edi, eax
add esp, 4
mov dword [esp + 0x1c], edi
test edi, edi
mov byte [esp + 0x128], 0xf
je 0x526366
mov ebx, edi
mov dword [esp + 0x14], 0x32
mov ecx, ebx
call dword [sym.imp.zmathdll.dll_public:_void___thiscall_ZGradData::constructor_void_]
mov eax, dword [esp + 0x14]
add ebx, 0x3c
dec eax
mov dword [esp + 0x14], eax
jne 0x52634c
mov eax, edi
jmp 0x526368
xor eax, eax
mov dword [esp + 0xbc], eax
mov byte [esp + 0x128], 1
add eax, 0xc
mov ecx, 0x32
xor edx, edx
mov dword [eax - 8], edx
mov dword [eax - 4], edx
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax - 0xc], edx
add eax, 0x3c
dec ecx
jne 0x52637f
mov edx, dword [esp + 0xbc]
mov eax, dword [ebp + 0x2ae]
lea ecx, [ebp + 0x2a6]
push edx
push eax
call sub.MFC42.DLL_CPtrArray::SetAtGrow
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esi + 0xb1]
push 0
push eax
mov eax, dword [esi + 0xad]
push ecx
mov ecx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x44]
push eax
push ecx
lea eax, [esp + 0x120]
push edx
push eax
lea ecx, [esp + 0xec]
call dword [sym.imp.zmathdll.dll_public:_class_CPoint___thiscall_ZData::M_RPoint_class_CPoint__class_CPoint__double__char_]
mov ecx, dword [eax]
push 0x64
mov dword [esp + 0xb0], ecx
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax + 4]
mov eax, dword [ebp + 0x246]
lea edi, [ecx*4 + 4]
mov dword [esp + 0xb4], edx
mov edx, dword [edi + eax]
mov eax, dword [eax]
mov ecx, dword [edx + 8]
mov edx, dword [eax]
mov esi, dword [ecx]
lea ecx, [esi + 0xad]
push ecx
mov ecx, eax
call dword [edx + 0x34]
test eax, eax
jne 0x526447
mov edx, dword [ebp + 0x246]
mov esi, dword [edi + edx]
mov ecx, esi
call dword [sym.imp.zmathdll.dll_public:_int___thiscall_ZObject::GetParentNum_void_const]
dec eax
mov ecx, esi
push eax
call dword [sym.imp.zmathdll.dll_public:_class_ZObject____thiscall_ZObject::GetParent_int_]
mov esi, eax
push 0x441
call sub.MFC42.DLL_operatornew
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
test edi, edi
mov byte [esp + 0x128], 0x10
je 0x5264a2
mov eax, dword [ebp + 0x53e]
mov ecx, dword [ebp + 0x53a]
push eax
mov eax, dword [ebp + 0x342]
lea edx, [esp + 0xc0]
push ecx
push edx
push 0x1b
push 0
push eax
push 0x10
lea ecx, [esp + 0xc8]
push esi
push ecx
mov ecx, edi
call dword [sym.imp.zmathdll.dll_public:_void___thiscall_ZPoint::constructor_class_CPoint___class_ZObject___int__struct_ZUnit___int__int__struct_ZGradData____int___int__]
mov dword [edi], 0x6701d4
jmp 0x5264a4
xor edi, edi
mov eax, dword [ebp + 0x272]
lea esi, [ebp + 0x26a]
push edi
push eax
mov ecx, esi
mov byte [esp + 0x130], 1
call sub.MFC42.DLL_CPtrArray::SetAtGrow
mov edx, dword [esp + 0x50]
push edi
push edx
lea ecx, [esp + 0x50]
call sub.MFC42.DLL_CPtrArray::SetAtGrow
mov eax, dword [edi + 0xad]
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x5c], eax
mov ecx, dword [edi + 0xb1]
lea edx, [esp + 0x5c]
mov dword [esp + 0x60], ecx
push edx
mov ecx, ebx
call dword [sym.imp.zmathdll.dll_public:_int___thiscall_ZCurve::AddKnot_struct_ZCurveKnot_const__]
push 0x14d
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov byte [esp + 0x128], 0x11
je 0x52652b
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
push ebx
push 0
push ecx
push edx
mov ecx, eax
call dword [sym.imp.zmathdll.dll_public:_void___thiscall_ZLCurve::constructor_class_ZObject____int__int__class_ZCurve__]
mov edi, eax
jmp 0x52652d
xor edi, edi
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, esi
mov byte [esp + 0x130], 1
call sub.MFC42.DLL_CPtrArray::SetAtGrow
mov ecx, dword [esp + 0x10]
call dword [sym.imp.zmathdll.dll_public:_void___thiscall_ZObject::Flush_void_]
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
test ebx, ebx
mov ecx, dword [eax + 0x74]
mov dword [esp + 0x10], ebx
mov dword [ecx + esi*4], edi
je 0x52658b
lea ecx, [ebx + 0x34]
mov byte [esp + 0x128], 0x12
call sub.MFC42.DLL_CPtrArray::CPtrArray
lea ecx, [ebx + 4]
mov byte [esp + 0x128], 1
call dword [sym.imp.zmathdll.dll_public:_void___thiscall_ZPointArray::destructor_void_]
push ebx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x30]
inc esi
cmp esi, eax
mov dword [esp + 0x18], esi
jl 0x526031
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x28]
mov edi, eax
mov ecx, ebx
call dword [sym.imp.zmathdll.dll_public:_int___thiscall_ZObject::GetParentNum_void_const]
dec eax
mov ecx, ebx
push eax
call dword [sym.imp.zmathdll.dll_public:_class_ZObject____thiscall_ZObject::GetParent_int_]
mov edx, dword [eax + 0xad]
mov ecx, dword [eax + 0xb1]
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x88]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x84]
push 1
push edx
mov edx, dword [esi + 0x6c]
push ecx
mov ecx, dword [esi + 0x68]
push edx
mov edx, dword [eax + 0xb1]
mov eax, dword [eax + 0xad]
push ecx
push edx
push eax
lea ecx, [esp + 0xe8]
call dword [sym.imp.zmathdll.dll_public:_double___thiscall_ZData::M_Angle_class_CPoint__class_CPoint__class_CPoint__char_]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x18], edi
fstp qword [esp + 0x3c]
cmp edi, eax
jge 0x526b96
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
xor edi, edi
push 0xffffffffffffffff
mov edx, dword [ecx + 0x74]
push edi
lea ecx, [esp + 0x50]
mov ebx, dword [edx + eax*4]
mov dword [esp + 0x2c], ebx
call sub.MFC42.DLL_CPtrArray::SetSize
push 0x48
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
cmp esi, edi
mov byte [esp + 0x128], 0x13
je 0x5266a8
push 2
lea ecx, [esi + 4]
call dword [sym.imp.zmathdll.dll_public:_void___thiscall_ZPointArray::constructor_int_]
push edi
push edi
push edi
push edi
lea ecx, [esi + 0x14]
mov byte [esp + 0x138], 0x14
call fcn.004083b4
mov ecx, dword [sym.imp.zmathdll.dll_const_ZPolyline::vftable]
mov dword [esi + 0x30], edi
mov dword [esi], ecx
mov dword [esi + 0x24], 1
lea edi, [esi + 0x34]
mov byte [esp + 0x128], 0x15
mov ecx, edi
call fcn.0063d896
mov dword [edi], 0x674960
mov edx, dword [sym.imp.zmathdll.dll_const_ZCurve::vftable]
mov dword [esi], edx
mov dword [esp + 0x1c], esi
jmp 0x5266ac
mov dword [esp + 0x1c], edi
mov eax, dword [ebx + 8]
push 0xbb8
mov byte [esp + 0x12c], 1
mov esi, dword [eax]
call sub.MFC42.DLL_operatornew
mov edi, eax
add esp, 4
mov dword [esp + 0x10], edi
test edi, edi
mov byte [esp + 0x128], 0x16
je 0x5266fc
mov ebx, edi
mov dword [esp + 0x14], 0x32
mov ecx, ebx
call dword [sym.imp.zmathdll.dll_public:_void___thiscall_ZGradData::constructor_void_]
mov eax, dword [esp + 0x14]
add ebx, 0x3c
dec eax
mov dword [esp + 0x14], eax
jne 0x5266e2
mov eax, edi
jmp 0x5266fe
xor eax, eax
mov dword [esp + 0xa4], eax
add eax, 0xc
mov byte [esp + 0x128], 1
mov edx, 0x32
xor ecx, ecx
mov dword [eax - 8], ecx
mov dword [eax - 4], ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax - 0xc], ecx
add eax, 0x3c
dec edx
jne 0x526717
mov ecx, dword [esp + 0xa4]
mov eax, dword [ebp + 0x2ae]
lea ebx, [ebp + 0x2a6]
push ecx
push eax
mov ecx, ebx
call sub.MFC42.DLL_CPtrArray::SetAtGrow
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esi + 0xb1]
push 0
push edx
mov edx, dword [esi + 0xad]
push eax
mov eax, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x44]
push edx
push eax
lea edx, [esp + 0x130]
push ecx
push edx
lea ecx, [esp + 0xec]
call dword [sym.imp.zmathdll.dll_public:_class_CPoint___thiscall_ZData::M_RPoint_class_CPoint__class_CPoint__double__char_]
mov ecx, dword [eax]
mov edi, dword [esp + 0x18]
mov dword [esp + 0xb4], ecx
push 0x64
mov edx, dword [eax + 4]
mov eax, dword [ebp + 0x246]
mov dword [esp + 0xbc], edx
mov ecx, dword [eax + edi*4]
mov eax, dword [eax]
mov edx, dword [ecx + 8]
mov esi, dword [edx]
mov edx, dword [eax]
lea ecx, [esi + 0xad]
push ecx
mov ecx, eax
call dword [edx + 0x34]
test eax, eax
jne 0x5267d8
mov edx, dword [ebp + 0x246]
mov esi, dword [edx + edi*4]
mov ecx, esi
call dword [sym.imp.zmathdll.dll_public:_int___thiscall_ZObject::GetParentNum_void_const]
dec eax
mov ecx, esi
push eax
call dword [sym.imp.zmathdll.dll_public:_class_ZObject____thiscall_ZObject::GetParent_int_]
mov esi, eax
push 0x441
call sub.MFC42.DLL_operatornew
mov edi, eax
add esp, 4
mov dword [esp + 0x10], edi
test edi, edi
mov byte [esp + 0x128], 0x17
je 0x526833
mov eax, dword [ebp + 0x53e]
mov ecx, dword [ebp + 0x53a]
push eax
mov eax, dword [ebp + 0x342]
lea edx, [esp + 0xa8]
push ecx
push edx
push 0x1b
push 0
push eax
push 0x10
lea ecx, [esp + 0xd0]
push esi
push ecx
mov ecx, edi
call dword [sym.imp.zmathdll.dll_public:_void___thiscall_ZPoint::constructor_class_CPoint___class_ZObject___int__struct_ZUnit___int__int__struct_ZGradData____int___int__]
mov dword [edi], 0x6701d4
jmp 0x526835
xor edi, edi
mov eax, dword [ebp + 0x272]
lea ecx, [ebp + 0x26a]
push edi
push eax
mov byte [esp + 0x130], 1
call sub.MFC42.DLL_CPtrArray::SetAtGrow
mov edx, dword [esp + 0x50]
push edi
push edx
lea ecx, [esp + 0x50]
call sub.MFC42.DLL_CPtrArray::SetAtGrow
mov eax, dword [edi + 0xad]
lea edx, [esp + 0x5c]
mov dword [esp + 0x5c], eax
mov ecx, dword [edi + 0xb1]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x1c]
push edx
call dword [sym.imp.zmathdll.dll_public:_int___thiscall_ZCurve::AddKnot_struct_ZCurveKnot_const__]
mov eax, dword [esp + 0x24]
mov edi, 1
mov esi, dword [eax + 0xc1]
dec esi
cmp esi, edi
jle 0x5268f6
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x3c]
push 0
push ecx
mov ecx, dword [eax + 0xbd]
push edx
mov edx, dword [ecx + edi*4]
mov eax, dword [edx + 4]
push eax
mov eax, dword [esp + 0x44]
mov ecx, dword [edx]
mov edx, dword [esp + 0x48]
push ecx
push edx
lea ecx, [esp + 0x118]
push eax
push ecx
lea ecx, [esp + 0xec]
call dword [sym.imp.zmathdll.dll_public:_class_CPoint___thiscall_ZData::M_RPoint_class_CPoint__class_CPoint__double__char_]
mov edx, dword [eax]
lea ecx, [esp + 0x5c]
mov dword [esp + 0x5c], edx
push ecx
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x64], eax
call dword [sym.imp.zmathdll.dll_public:_int___thiscall_ZCurve::AddKnot_struct_ZCurveKnot_const__]
inc edi
cmp edi, esi
jl 0x526896
mov esi, dword [esp + 0x24]
mov ecx, esi
call dword [sym.imp.zmathdll.dll_public:_int___thiscall_ZObject::GetParentNum_void_const]
dec eax
mov ecx, esi
push eax
call dword [sym.imp.zmathdll.dll_public:_class_ZObject____thiscall_ZObject::GetParent_int_]
mov edx, dword [esp + 0x2c]
mov edi, eax
mov eax, dword [esp + 0x18]
dec edx
cmp eax, edx
jge 0x526ab2
push 0xbb8
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov byte [esp + 0x128], 0x18
je 0x526962
mov esi, eax
mov dword [esp + 0x14], 0x32
mov ecx, esi
call dword [sym.imp.zmathdll.dll_public:_void___thiscall_ZGradData::constructor_void_]
mov eax, dword [esp + 0x14]
add esi, 0x3c
dec eax
mov dword [esp + 0x14], eax
jne 0x526946
mov eax, dword [esp + 0x10]
jmp 0x526964
xor eax, eax
mov dword [esp + 0x94], eax
add eax, 0xc
mov byte [esp + 0x128], 1
mov ecx, 0x32
xor esi, esi
mov dword [eax - 8], esi
mov dword [eax - 4], esi
mov dword [eax], esi
mov dword [eax + 4], esi
mov dword [eax - 0xc], esi
add eax, 0x3c
dec ecx
jne 0x52697d
mov ecx, dword [esp + 0x94]
mov eax, dword [ebx + 8]
push ecx
push eax
mov ecx, ebx
call sub.MFC42.DLL_CPtrArray::SetAtGrow
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
mov ecx, dword [edi + 0xb1]
push esi
push edx
mov edx, dword [edi + 0xad]
push eax
mov eax, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x44]
push edx
push eax
lea edx, [esp + 0x128]
push ecx
push edx
lea ecx, [esp + 0xec]
call dword [sym.imp.zmathdll.dll_public:_class_CPoint___thiscall_ZData::M_RPoint_class_CPoint__class_CPoint__double__char_]
mov ecx, dword [eax]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x9c], ecx
push 0x64
mov edx, dword [eax + 4]
mov eax, dword [ebp + 0x246]
mov dword [esp + 0xa4], edx
mov ecx, dword [eax + esi*4]
mov eax, dword [eax]
mov edx, dword [ecx + 8]
mov edi, dword [edx]
mov edx, dword [eax]
lea ecx, [edi + 0xad]
push ecx
mov ecx, eax
call dword [edx + 0x34]
test eax, eax
jne 0x526a34
mov edx, dword [ebp + 0x246]
mov edi, dword [edx + esi*4]
mov ecx, edi
call dword [sym.imp.zmathdll.dll_public:_int___thiscall_ZObject::GetParentNum_void_const]
dec eax
mov ecx, edi
push eax
call dword [sym.imp.zmathdll.dll_public:_class_ZObject____thiscall_ZObject::GetParent_int_]
mov edi, eax
push 0x441
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
test esi, esi
mov byte [esp + 0x128], 0x19
je 0x526a8f
mov eax, dword [ebp + 0x53e]
mov ecx, dword [ebp + 0x53a]
push eax
mov eax, dword [ebp + 0x342]
lea edx, [esp + 0x98]
push ecx
push edx
push 0x1b
push 0
push eax
push 0x10
lea ecx, [esp + 0xb8]
push edi
push ecx
mov ecx, esi
call dword [sym.imp.zmathdll.dll_public:_void___thiscall_ZPoint::constructor_class_CPoint___class_ZObject___int__struct_ZUnit___int__int__struct_ZGradData____int___int__]
mov dword [esi], 0x6701d4
jmp 0x526a91
xor esi, esi
mov eax, dword [ebp + 0x272]
lea ecx, [ebp + 0x26a]
push esi
push eax
mov byte [esp + 0x130], 1
mov edi, esi
call sub.MFC42.DLL_CPtrArray::SetAtGrow
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x50]
push edi
push edx
lea ecx, [esp + 0x50]
call sub.MFC42.DLL_CPtrArray::SetAtGrow
mov eax, dword [edi + 0xad]
lea edx, [esp + 0x5c]
mov dword [esp + 0x5c], eax
mov ecx, dword [edi + 0xb1]
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x60], ecx
push edx
mov ecx, edi
call dword [sym.imp.zmathdll.dll_public:_int___thiscall_ZCurve::AddKnot_struct_ZCurveKnot_const__]
push 0x14d
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov byte [esp + 0x128], 0x1a
je 0x526b1c
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
push edi
push 0
push ecx
push edx
mov ecx, eax
call dword [sym.imp.zmathdll.dll_public:_void___thiscall_ZLCurve::constructor_class_ZObject____int__int__class_ZCurve__]
mov ebx, eax
jmp 0x526b1e
xor ebx, ebx
mov eax, dword [ebp + 0x272]
lea ecx, [ebp + 0x26a]
push ebx
push eax
mov byte [esp + 0x130], 1
call sub.MFC42.DLL_CPtrArray::SetAtGrow
mov ecx, esi
call dword [sym.imp.zmathdll.dll_public:_void___thiscall_ZObject::Flush_void_]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
test edi, edi
mov ecx, dword [eax + 0x74]
mov dword [esp + 0x10], edi
mov dword [ecx + edx*4], ebx
je 0x526b81
lea ecx, [edi + 0x34]
mov byte [esp + 0x128], 0x1b
call sub.MFC42.DLL_CPtrArray::CPtrArray
lea ecx, [edi + 4]
mov byte [esp + 0x128], 1
call dword [sym.imp.zmathdll.dll_public:_void___thiscall_ZPointArray::destructor_void_]
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x2c]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x526615
mov edi, dword [esp + 0x20]
xor esi, esi
mov eax, dword [edi + 0x78]
dec eax
test eax, eax
mov dword [esp + 0x10], eax
jle 0x526c0d
mov eax, dword [esp + 0x78]
mov ebx, dword [sym.imp.zmathdll.dll_public:_void___thiscall_ZObject::Flush_void_]
test eax, eax
jle 0x526bcd
mov eax, dword [edi + 0x88]
mov ecx, dword [eax + esi*8]
call ebx
mov ecx, dword [edi + 0x88]
mov ecx, dword [ecx + esi*8 + 4]
call ebx
mov edx, dword [edi + 0x74]
mov ebx, dword [edx + esi*4]
mov ecx, ebx
call dword [sym.imp.zmathdll.dll_public:_int___thiscall_ZObject::GetParentNum_void_const]
dec eax
mov ecx, ebx
push eax
call dword [sym.imp.zmathdll.dll_public:_class_ZObject____thiscall_ZObject::GetParent_int_]
mov ecx, dword [edi + 0x88]
inc esi
mov dword [ecx + esi*8 - 8], eax
mov edx, dword [edi + 0x74]
mov eax, dword [edx + esi*4]
mov edx, dword [edi + 0x88]
mov ecx, dword [eax + 8]
mov eax, dword [ecx]
mov dword [edx + esi*8 - 4], eax
mov eax, dword [esp + 0x10]
cmp esi, eax
jl 0x526ba8
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
inc eax
add edx, 2
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x78], edx
jl 0x525f8d
mov ecx, dword [esp + 0x80]
push 0
push 0
mov edx, dword [ecx + 0x20]
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x48]
mov byte [esp + 0x128], 0
call sub.MFC42.DLL_CPtrArray::CPtrArray
mov ecx, dword [esp + 0xd4]
mov dword [esp + 0x128], 0xffffffff
test ecx, ecx
je 0x526c6f
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [esp + 0x120]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret