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

Disassembly:
jmp 0x5d7c20
push 0xffffffffffffffff
push 0x66517b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
mov ebx, dword [esp + 0x7c]
push ebp
push esi
push edi
mov edi, ecx
xor esi, esi
lea ecx, [ebx + 0x85]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
call dword [sym.imp.zmathdll.dll_public:_int___thiscall_ZPolyline::GetPointNum_void_const]
add ebx, 0x89
push esi
mov esi, dword [sym.imp.zmathdll.dll_public:_class_CPoint____thiscall_ZPointArray::operator___int_]
mov ecx, ebx
mov ebp, eax
call esi
mov ecx, dword [eax]
dec ebp
mov dword [esp + 0x30], ecx
push ebp
mov edx, dword [eax + 4]
mov ecx, ebx
mov dword [esp + 0x38], edx
call esi
mov ecx, dword [eax]
mov ebp, dword [edi + 0x272]
mov dword [esp + 0x38], ecx
xor ebx, ebx
mov edx, dword [eax + 4]
test ebp, ebp
mov dword [esp + 0x3c], edx
jle 0x5d7d24
mov esi, dword [esp + 0x10]
mov eax, dword [edi + 0x26e]
mov ecx, dword [eax + ebx*4]
mov edx, dword [ecx]
call dword [edx]
cmp eax, 5
jne 0x5d7d07
test esi, esi
jne 0x5d7cd9
mov eax, dword [edi + 0x26e]
push 0x64
mov ecx, dword [eax + ebx*4]
lea eax, [esp + 0x34]
push eax
mov edx, dword [ecx]
call dword [edx + 0x34]
test eax, eax
je 0x5d7cd9
mov ecx, dword [edi + 0x26e]
mov esi, dword [ecx + ebx*4]
jmp 0x5d7d07
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x5d7d07
mov edx, dword [edi + 0x26e]
push 0x64
mov ecx, dword [edx + ebx*4]
lea edx, [esp + 0x3c]
push edx
mov eax, dword [ecx]
call dword [eax + 0x34]
test eax, eax
je 0x5d7d07
mov eax, dword [edi + 0x26e]
mov ecx, dword [eax + ebx*4]
mov dword [esp + 0x14], ecx
test esi, esi
je 0x5d7d13
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x5d7d18
inc ebx
cmp ebx, ebp
jl 0x5d7c9f
test esi, esi
mov dword [esp + 0x10], esi
jne 0x5d7e13
push 0xbb8
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x2c], esi
xor eax, eax
cmp esi, eax
mov dword [esp + 0x80], eax
je 0x5d7d5b
mov ebx, esi
mov ebp, 0x32
mov ecx, ebx
call dword [sym.imp.zmathdll.dll_public:_void___thiscall_ZGradData::constructor_void_]
add ebx, 0x3c
dec ebp
jne 0x5d7d4b
mov eax, esi
or ebp, 0xffffffff
mov dword [esp + 0x24], eax
add eax, 0xc
mov dword [esp + 0x80], ebp
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 0x5d7d73
mov edx, dword [esp + 0x24]
mov eax, dword [edi + 0x2ae]
lea ecx, [edi + 0x2a6]
push edx
push eax
call sub.MFC42.DLL_CPtrArray::SetAtGrow
push 0x441
call sub.MFC42.DLL_operatornew
mov ebx, eax
add esp, 4
mov dword [esp + 0x2c], ebx
cmp ebx, esi
mov dword [esp + 0x80], 1
je 0x5d7df3
mov eax, dword [edi + 0x53e]
mov ecx, dword [edi + 0x53a]
push eax
mov eax, dword [edi + 0x342]
lea edx, [esp + 0x28]
push ecx
push edx
push 0x1b
push eax
lea ecx, [esp + 0x44]
push 0x1f
push ecx
mov ecx, ebx
call dword [sym.imp.zmathdll.dll_public:_void___thiscall_ZPoint::constructor_class_CPoint___int__struct_ZUnit___int__struct_ZGradData____int___int__]
mov dword [ebx], 0x6701d4
jmp 0x5d7df5
xor ebx, ebx
mov eax, dword [edi + 0x272]
lea ecx, [edi + 0x26a]
push ebx
push eax
mov dword [esp + 0x88], ebp
mov dword [esp + 0x18], ebx
call sub.MFC42.DLL_CPtrArray::SetAtGrow
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x5d7f14
push 0xbb8
call sub.MFC42.DLL_operatornew
mov ebp, eax
add esp, 4
mov dword [esp + 0x2c], ebp
test ebp, ebp
mov dword [esp + 0x80], 2
je 0x5d7e5a
mov ebx, ebp
mov esi, 0x32
mov ecx, ebx
call dword [sym.imp.zmathdll.dll_public:_void___thiscall_ZGradData::constructor_void_]
add ebx, 0x3c
dec esi
jne 0x5d7e48
mov eax, ebp
jmp 0x5d7e5c
xor eax, eax
or ebp, 0xffffffff
mov dword [esp + 0x40], eax
add eax, 0xc
mov dword [esp + 0x80], ebp
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 0x5d7e74
mov edx, dword [esp + 0x40]
mov eax, dword [edi + 0x2ae]
lea ecx, [edi + 0x2a6]
push edx
push eax
call sub.MFC42.DLL_CPtrArray::SetAtGrow
push 0x441
call sub.MFC42.DLL_operatornew
mov ebx, eax
add esp, 4
mov dword [esp + 0x2c], ebx
cmp ebx, esi
mov dword [esp + 0x80], 3
je 0x5d7ef4
mov eax, dword [edi + 0x53e]
mov ecx, dword [edi + 0x53a]
push eax
mov eax, dword [edi + 0x342]
lea edx, [esp + 0x44]
push ecx
push edx
push 0x1b
push eax
lea ecx, [esp + 0x4c]
push 0x1f
push ecx
mov ecx, ebx
call dword [sym.imp.zmathdll.dll_public:_void___thiscall_ZPoint::constructor_class_CPoint___int__struct_ZUnit___int__struct_ZGradData____int___int__]
mov dword [ebx], 0x6701d4
jmp 0x5d7ef6
xor ebx, ebx
mov eax, dword [edi + 0x272]
lea ecx, [edi + 0x26a]
push ebx
push eax
mov dword [esp + 0x88], ebp
mov dword [esp + 0x1c], ebx
call sub.MFC42.DLL_CPtrArray::SetAtGrow
mov esi, dword [esp + 0x88]
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 4]
mov ecx, esi
mov ebx, eax
call dword [sym.imp.zmathdll.dll_public:_int___thiscall_ZObject::GetChildNum_void_const]
test eax, eax
jg 0x5d801f
cmp ebx, 5
je 0x5d7f4c
cmp ebx, 7
je 0x5d7f4c
cmp ebx, 6
je 0x5d7f4c
cmp ebx, 8
jne 0x5d801f
push 0x91
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x2c], eax
test eax, eax
mov dword [esp + 0x80], 4
je 0x5d7f84
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push 0x1b
push ecx
push edx
mov ecx, eax
call dword [sym.imp.zmathdll.dll_public:_void___thiscall_ZLine::constructor_class_ZObject___class_ZObject___int_]
mov esi, eax
jmp 0x5d7f86
xor esi, esi
mov eax, dword [edi + 0x272]
lea ecx, [edi + 0x26a]
push esi
push eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x88], 0xffffffff
call sub.MFC42.DLL_CPtrArray::SetAtGrow
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x5d8018
push 0
mov ecx, edi
call fcn.00408814
mov ebp, eax
xor esi, esi
test ebp, ebp
mov dword [esp + 0x18], ebp
jle 0x5d8007
push 0
push esi
mov ecx, edi
call fcn.00403756
mov ebx, dword [eax + 0x125]
xor ecx, ecx
test ebx, ebx
jle 0x5d8002
mov edx, dword [eax + 0x121]
mov ebp, dword [edx + ecx*4]
lea edx, [edx + ecx*4]
cmp ebp, dword [esp + 0x88]
jne 0x5d7ff9
mov ebp, dword [esp + 0x14]
mov dword [edx], ebp
inc ecx
cmp ecx, ebx
jl 0x5d7fde
mov ebp, dword [esp + 0x18]
inc esi
cmp esi, ebp
jl 0x5d7fc8
mov ecx, dword [esp + 0x88]
call dword [sym.imp.zmathdll.dll_public:_void___thiscall_ZObject::Flush_void_]
mov esi, dword [esp + 0x14]
mov eax, esi
jmp 0x5d8628
lea ecx, [esp + 0x48]
call fcn.0063d896
mov dword [esp + 0x48], 0x674948
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x50]
mov dword [esp + 0x88], 5
call sub.MFC42.DLL_CPtrArray::SetSize
mov ecx, dword [esp + 0x10]
push 0x48
mov eax, dword [ecx + 0xad]
mov ecx, dword [ecx + 0xb1]
mov dword [esp + 0x60], eax
mov eax, 1
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], eax
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0x3ff00000
mov dword [esp + 0x78], 0
mov dword [esp + 0x6c], eax
call sub.MFC42.DLL_operatornew
mov ebp, eax
add esp, 4
mov dword [esp + 0x2c], ebp
test ebp, ebp
mov byte [esp + 0x80], 6
je 0x5d80f5
push 2
lea ecx, [ebp + 4]
call dword [sym.imp.zmathdll.dll_public:_void___thiscall_ZPointArray::constructor_int_]
push 0
push 0
push 0
push 0
lea ecx, [ebp + 0x14]
call fcn.004083b4
mov eax, dword [sym.imp.zmathdll.dll_const_ZPolyline::vftable]
mov dword [ebp + 0x30], 0
mov dword [ebp], eax
mov dword [ebp + 0x24], 1
lea esi, [ebp + 0x34]
mov byte [esp + 0x80], 7
mov ecx, esi
call fcn.0063d896
mov dword [esi], 0x674960
mov ecx, dword [sym.imp.zmathdll.dll_const_ZCurve::vftable]
mov dword [ebp], ecx
jmp 0x5d80f7
xor ebp, ebp
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x50]
push edx
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x88], 5
call sub.MFC42.DLL_CPtrArray::SetAtGrow
mov esi, dword [sym.imp.zmathdll.dll_public:_int___thiscall_ZCurve::AddKnot_struct_ZCurveKnot_const__]
lea ecx, [esp + 0x5c]
push ecx
mov ecx, ebp
call esi
cmp ebx, 9
jne 0x5d82ed
mov edx, dword [esp + 0x88]
lea ecx, [edx + 0x85]
call dword [sym.imp.zmathdll.dll_public:_int___thiscall_ZPolyline::GetPointNum_void_const]
mov ebx, 2
add eax, 0xfffffffd
cmp eax, ebx
mov dword [esp + 0x24], eax
jle 0x5d8182
mov eax, dword [esp + 0x88]
push ebx
lea ecx, [eax + 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, ebp
mov edx, dword [eax + 4]
lea eax, [esp + 0x5c]
push eax
mov dword [esp + 0x64], edx
call esi
mov eax, dword [esp + 0x24]
add ebx, 2
cmp ebx, eax
jl 0x5d814d
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x5c]
push eax
mov ecx, dword [ebx + 0xad]
mov dword [esp + 0x60], ecx
mov edx, dword [ebx + 0xb1]
mov ecx, ebp
mov dword [esp + 0x64], edx
call esi
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x48]
mov eax, dword [esp + 0x50]
push ebx
push eax
lea ecx, [esp + 0x50]
call sub.MFC42.DLL_CPtrArray::SetAtGrow
push 0x14d
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x2c], eax
test eax, eax
mov byte [esp + 0x80], 8
je 0x5d81f4
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
push ebp
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
mov dword [esp + 0x18], ebx
jmp 0x5d8200
mov dword [esp + 0x18], 0
mov ebx, dword [esp + 0x18]
mov eax, dword [edi + 0x272]
lea ecx, [edi + 0x26a]
push ebx
push eax
mov byte [esp + 0x88], 5
call sub.MFC42.DLL_CPtrArray::SetAtGrow
test ebp, ebp
mov dword [esp + 0x2c], ebp
je 0x5d824d
lea ecx, [ebp + 0x34]
mov byte [esp + 0x80], 9
call sub.MFC42.DLL_CPtrArray::CPtrArray
lea ecx, [ebp + 4]
mov byte [esp + 0x80], 5
call dword [sym.imp.zmathdll.dll_public:_void___thiscall_ZPointArray::destructor_void_]
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x5d8612
mov ebp, dword [esp + 0x88]
mov ecx, ebp
call dword [sym.imp.zmathdll.dll_public:_int___thiscall_ZObject::GetChildNum_void_const]
mov esi, eax
dec esi
js 0x5d828b
mov ebx, dword [sym.imp.zmathdll.dll_public:_int___thiscall_ZObject::SetParent_class_ZObject___class_ZObject__]
mov ecx, dword [ebp + 0x44]
mov eax, dword [esp + 0x18]
push ebp
push eax
mov ecx, dword [ecx + esi*4]
call ebx
dec esi
jns 0x5d8276
mov ebx, dword [esp + 0x18]
push 0
mov ecx, edi
call fcn.00408814
test eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0
jle 0x5d860a
mov edx, dword [esp + 0x10]
push 0
push edx
mov ecx, edi
call fcn.00403756
mov esi, dword [eax + 0x125]
xor ecx, ecx
test esi, esi
jle 0x5d82d7
mov edx, dword [eax + 0x121]
cmp dword [edx + ecx*4], ebp
lea edx, [edx + ecx*4]
jne 0x5d82d2
mov dword [edx], ebx
inc ecx
cmp ecx, esi
jl 0x5d82c2
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x5d82a8
jmp 0x5d860a
mov edx, dword [esp + 0x88]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x60]
push 1
push ecx
push edx
mov ecx, edi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x34], 1
call fcn.0040b3b6
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x20], ebx
jl 0x5d84a8
mov eax, dword [esp + 0x88]
lea ecx, [eax + 0x85]
call dword [sym.imp.zmathdll.dll_public:_int___thiscall_ZPolyline::GetPointNum_void_const]
dec eax
cmp ebx, eax
jge 0x5d84a8
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x5d8447
mov eax, dword [edi + 0x272]
mov dword [esp + 0x10], 0
test eax, eax
mov dword [esp + 0x18], eax
jle 0x5d8417
mov ecx, dword [esp + 0x10]
mov edx, dword [edi + 0x26e]
lea esi, [ecx*4]
mov ecx, dword [esi + edx]
mov eax, dword [ecx]
call dword [eax]
cmp eax, 5
jne 0x5d83bd
mov edx, dword [edi + 0x26e]
mov ecx, dword [esp + 0x88]
add esi, edx
push 0x64
push ebx
add ecx, 0x89
mov esi, dword [esi]
mov edx, dword [esi]
mov dword [esp + 0x34], edx
call dword [sym.imp.zmathdll.dll_public:_class_CPoint____thiscall_ZPointArray::operator___int_]
mov edx, dword [esp + 0x30]
push eax
mov ecx, esi
call dword [edx + 0x34]
test eax, eax
jne 0x5d83d0
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x5d8368
jmp 0x5d8417
mov eax, dword [edi + 0x26e]
mov ecx, dword [esp + 0x10]
mov esi, dword [eax + ecx*4]
test esi, esi
je 0x5d8413
mov edx, dword [esp + 0x50]
push esi
push edx
lea ecx, [esp + 0x50]
call sub.MFC42.DLL_CPtrArray::SetAtGrow
mov eax, dword [esi + 0xad]
lea edx, [esp + 0x5c]
mov dword [esp + 0x5c], eax
mov ecx, dword [esi + 0xb1]
mov dword [esp + 0x60], ecx
push edx
mov ecx, ebp
call dword [sym.imp.zmathdll.dll_public:_int___thiscall_ZCurve::AddKnot_struct_ZCurveKnot_const__]
jmp 0x5d8471
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x88]
push ebx
lea ecx, [eax + 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, ebp
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__]
jmp 0x5d8471
mov ecx, dword [esp + 0x88]
push ebx
add ecx, 0x89
call dword [sym.imp.zmathdll.dll_public:_class_CPoint____thiscall_ZPointArray::operator___int_]
mov edx, dword [eax]
lea ecx, [esp + 0x5c]
mov dword [esp + 0x5c], edx
push ecx
mov eax, dword [eax + 4]
mov ecx, ebp
mov dword [esp + 0x64], eax
call esi
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x88]
lea edx, [esp + 0x1c]
inc eax
push edx
mov dword [esp + 0x28], eax
push eax
lea eax, [esp + 0x64]
push eax
push ecx
mov ecx, edi
call fcn.0040b3b6
mov esi, dword [sym.imp.zmathdll.dll_public:_int___thiscall_ZCurve::AddKnot_struct_ZCurveKnot_const__]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x20], ebx
jge 0x5d8326
mov ebx, dword [esp + 0x14]
lea ecx, [esp + 0x5c]
push ecx
mov ecx, ebp
mov edx, dword [ebx + 0xad]
mov dword [esp + 0x60], edx
mov eax, dword [ebx + 0xb1]
mov dword [esp + 0x64], eax
call esi
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x48]
mov eax, dword [esp + 0x50]
push ebx
push eax
lea ecx, [esp + 0x50]
call sub.MFC42.DLL_CPtrArray::SetAtGrow
push 0x14d
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x2c], eax
test eax, eax
mov byte [esp + 0x80], 0xa
je 0x5d851a
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
push ebp
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
mov dword [esp + 0x18], ebx
jmp 0x5d8526
mov dword [esp + 0x18], 0
mov ebx, dword [esp + 0x18]
mov eax, dword [edi + 0x272]
lea ecx, [edi + 0x26a]
push ebx
push eax
mov byte [esp + 0x88], 5
call sub.MFC42.DLL_CPtrArray::SetAtGrow
test ebp, ebp
mov dword [esp + 0x2c], ebp
je 0x5d8573
lea ecx, [ebp + 0x34]
mov byte [esp + 0x80], 0xb
call sub.MFC42.DLL_CPtrArray::CPtrArray
lea ecx, [ebp + 4]
mov byte [esp + 0x80], 5
call dword [sym.imp.zmathdll.dll_public:_void___thiscall_ZPointArray::destructor_void_]
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x5d8612
mov ebp, dword [esp + 0x88]
mov ecx, ebp
call dword [sym.imp.zmathdll.dll_public:_int___thiscall_ZObject::GetChildNum_void_const]
mov esi, eax
dec esi
js 0x5d85b1
mov ebx, dword [sym.imp.zmathdll.dll_public:_int___thiscall_ZObject::SetParent_class_ZObject___class_ZObject__]
mov ecx, dword [ebp + 0x44]
mov eax, dword [esp + 0x18]
push ebp
push eax
mov ecx, dword [ecx + esi*4]
call ebx
dec esi
jns 0x5d859c
mov ebx, dword [esp + 0x18]
push 0
mov ecx, edi
call fcn.00408814
test eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0
jle 0x5d860a
mov edx, dword [esp + 0x10]
push 0
push edx
mov ecx, edi
call fcn.00403756
mov esi, dword [eax + 0x125]
xor ecx, ecx
test esi, esi
jle 0x5d85f9
mov edx, dword [eax + 0x121]
cmp dword [edx + ecx*4], ebp
lea edx, [edx + ecx*4]
jne 0x5d85f4
mov dword [edx], ebx
inc ecx
cmp ecx, esi
jl 0x5d85e4
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x5d85ca
mov ecx, ebp
call dword [sym.imp.zmathdll.dll_public:_void___thiscall_ZObject::Flush_void_]
lea ecx, [esp + 0x48]
mov dword [esp + 0x80], 0xffffffff
call sub.MFC42.DLL_CPtrArray::CPtrArray
mov eax, ebx
mov ecx, dword [esp + 0x78]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x74
ret 8