Function at 0x59b752
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x65ffd6
push eax
mov eax, 0x2da4
mov dword fs:[0], esp
call fcn.0063e680
push ebx
push esi
push edi
call fcn.0041093d
mov ebx, dword [ebp + 0x10]
mov esi, eax
xor edi, edi
cmp dword [ebx + 0xe], edi
jne case.0x59a505.10
lea eax, [ebx + 0x46]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
mov dword [esp + 0x10], eax
xor eax, eax
mov ax, word [ebx]
add esp, 4
dec eax
cmp eax, 0x16
ja case.0x59a505.10
xor ecx, ecx
mov cl, byte [eax + 0x59b960]
jmp dword [ecx*4 + 0x59b938]
call fcn.0041093d
mov edx, dword [eax + 0x386]
mov ebx, dword [ebp + 0x14]
fld dword [edx + 8]
fld qword [ebp + 0x1c]
fadd qword [ebx]
fmulp st(1)
fstp qword [esp + 0x14]
call fcn.0041093d
mov eax, dword [eax + 0x386]
fld dword [eax + 8]
fld qword [ebp + 0x24]
fadd qword [ebx + 8]
fsubr qword [esi + 0x1aed]
fmulp st(1)
fstp qword [esp + 0x1c]
call fcn.0041093d
mov ecx, dword [eax + 0x386]
fld dword [ecx + 8]
fld qword [ebp + 0x1c]
fadd qword [ebx + 0x18]
fmulp st(1)
fstp qword [esp + 0x2c]
call fcn.0041093d
mov edx, dword [eax + 0x386]
mov eax, dword [esp + 0xc]
cmp eax, 7
fld dword [edx + 8]
fld qword [ebp + 0x24]
fadd qword [ebx + 0x20]
fsubr qword [esi + 0x1aed]
fmulp st(1)
fstp qword [esp + 0x24]
jne 0x59a5e0
fld qword [esp + 0x14]
call sub.MSVCRT.dll__ftol
fld qword [esp + 0x1c]
mov edi, eax
call sub.MSVCRT.dll__ftol
fld qword [esp + 0x2c]
mov dword [esi + 0x216], edi
mov dword [esi + 0x21a], eax
call sub.MSVCRT.dll__ftol
fld qword [esp + 0x24]
mov edi, eax
call sub.MSVCRT.dll__ftol
mov dword [esi + 0x21e], edi
mov dword [esi + 0x222], eax
mov ecx, dword [esp + 0x2db0]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 1
je 0x59a5fd
cmp eax, 4
je 0x59a5fd
cmp eax, 6
je 0x59a5fd
cmp eax, 8
je 0x59a5fd
cmp eax, 0xe
jne case.0x59a505.10
push 0x34
call sub.MFC42.DLL_operatornew
mov ebx, eax
add esp, 4
mov dword [esp + 0x10], ebx
cmp ebx, edi
mov dword [esp + 0x2db8], edi
je 0x59a642
push 2
lea ecx, [ebx + 4]
call dword [sym.imp.zmathdll.dll_public:_void___thiscall_ZPointArray::constructor_int_]
mov dword [ebx + 0x14], edi
mov dword [ebx + 0x18], edi
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x20], edi
mov eax, dword [sym.imp.zmathdll.dll_const_ZPolyline::vftable]
mov dword [ebx + 0x30], edi
mov dword [ebx], eax
mov dword [ebx + 0x24], 1
mov edi, ebx
fld qword [esp + 0x14]
mov dword [esp + 0x2db8], 0xffffffff
call sub.MSVCRT.dll__ftol
fld qword [esp + 0x1c]
mov dword [esp + 0xa0], eax
call sub.MSVCRT.dll__ftol
mov ebx, dword [sym.imp.zmathdll.dll_public:_int___thiscall_ZPolyline::AddPoint_class_CPoint_const__]
lea ecx, [esp + 0xa0]
push ecx
mov ecx, edi
mov dword [esp + 0xa8], eax
call ebx
fld qword [esp + 0x2c]
call sub.MSVCRT.dll__ftol
fld qword [esp + 0x24]
mov dword [esp + 0x90], eax
call sub.MSVCRT.dll__ftol
lea edx, [esp + 0x90]
mov ecx, edi
push edx
mov dword [esp + 0x98], eax
call ebx
mov eax, dword [esp + 0xc]
cmp eax, 4
mov dword [edi + 0x24], eax
jne 0x59a6be
mov dword [edi + 0x24], 8
mov eax, dword [esi + 0x2d6]
lea ecx, [esi + 0x2ce]
push edi
push eax
call sub.MFC42.DLL_CPtrArray::SetAtGrow
mov ecx, dword [esp + 0x2db0]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0041093d
mov ecx, dword [eax + 0x386]
mov ebx, dword [ebp + 0x14]
fld dword [ecx + 8]
fld qword [ebp + 0x1c]
fadd qword [ebx]
fmulp st(1)
fstp qword [esp + 0x24]
call fcn.0041093d
mov edx, dword [eax + 0x386]
fld dword [edx + 8]
fld qword [ebp + 0x24]
fadd qword [ebx + 8]
fsubr qword [esi + 0x1aed]
fmulp st(1)
fld qword [esp + 0x24]
call sub.MSVCRT.dll__ftol
mov ebx, eax
mov dword [esp + 0x14], ebx
call sub.MSVCRT.dll__ftol
push 0xffffffffffffffff
push eax
push ebx
mov ecx, esi
mov dword [esp + 0x28], eax
call fcn.00403071
cmp eax, edi
jne 0x59a7dc
push 0x441
call sub.MFC42.DLL_operatornew
mov ebx, eax
add esp, 4
mov dword [esp + 0x10], ebx
cmp ebx, edi
mov dword [esp + 0x2db8], 1
je 0x59a7a0
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
push edi
push edi
push edi
push 0x1b
push edi
lea edx, [esp + 0x84]
mov dword [esp + 0x88], ecx
push edi
push edx
mov ecx, ebx
mov dword [esp + 0x8c], eax
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
mov edi, ebx
mov eax, dword [esi + 0x24a]
add esi, 0x242
push edi
push eax
mov ecx, esi
mov dword [esp + 0x2dc0], 0xffffffff
call sub.MFC42.DLL_CPtrArray::SetAtGrow
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x7d], ecx
mov ecx, dword [esp + 0x2db0]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0xc]
mov ecx, 2
cmp edx, ecx
jne case.0x59a505.10
mov dword [eax + 0x7d], ecx
mov ecx, dword [esp + 0x2db0]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0041093d
mov edx, dword [eax + 0x386]
mov ebx, dword [ebp + 0x14]
fld dword [edx + 8]
fld qword [ebp + 0x1c]
fadd qword [ebx]
fmulp st(1)
fstp qword [esp + 0x2c]
call fcn.0041093d
mov eax, dword [eax + 0x386]
fld dword [eax + 8]
fld qword [ebp + 0x24]
fadd qword [ebx + 8]
fsubr qword [esi + 0x1aed]
fmulp st(1)
fstp qword [esp + 0x14]
call fcn.0041093d
mov ecx, dword [eax + 0x386]
push 0x68
fld dword [ecx + 8]
fmul qword [ebx + 0x18]
fstp qword [esp + 0x28]
call sub.MFC42.DLL_operatornew
mov ebx, eax
add esp, 4
mov dword [esp + 0x10], ebx
cmp ebx, edi
mov dword [esp + 0x2db8], 2
je 0x59a8bd
fld qword [esp + 0x2c]
call sub.MSVCRT.dll__ftol
fld qword [esp + 0x14]
mov dword [esp + 0x88], eax
call sub.MSVCRT.dll__ftol
mov edx, dword [esp + 0x28]
push 0x401921fb
push 0x54442d18
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x2c]
push edi
push edi
push edx
lea ecx, [esp + 0x9c]
push eax
push ecx
mov ecx, ebx
call dword [sym.imp.zmathdll.dll_public:_void___thiscall_ZArc::constructor_class_CPoint___double__double__double_]
jmp 0x59a8bf
xor eax, eax
mov edx, dword [esp + 0xc]
add esi, 0x2e2
mov dword [eax + 0x24], edx
push eax
mov eax, dword [esi + 8]
mov ecx, esi
push eax
mov dword [esp + 0x2dc0], 0xffffffff
call sub.MFC42.DLL_CPtrArray::SetAtGrow
mov ecx, dword [esp + 0x2db0]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x14]
add ecx, 0x57
push ecx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
lea edx, [esp + 0xc]
lea ecx, [esp + 0x1c]
push edx
mov dword [esp + 0x2dbc], 3
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2db8], 4
call sub.MFC42.DLL_CString::MakeLower
call fcn.0041093d
call fcn.0041093d
push str.piece_name:
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Find_2
test eax, eax
jge 0x59ad78
push str.piece:
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Find_2
test eax, eax
jge 0x59ad78
push str.size:
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Find_2
test eax, eax
jl 0x59a9e7
push 0x3a
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Find_1
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x60]
mov ecx, dword [ecx - 8]
sub ecx, eax
dec ecx
push ecx
push edx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Right
add esi, 0x5fa
push eax
mov ecx, esi
mov byte [esp + 0x2dbc], 6
call fcn.0063d800
lea ecx, [esp + 0x60]
mov byte [esp + 0x2db8], 4
call fcn.0063d7fa
push 0x20
mov ecx, esi
call sub.MFC42.DLL_CString::TrimLeft_2
push 0x20
mov ecx, esi
call sub.MFC42.DLL_CString::TrimRight_2
push 0x5f
push 0x20
mov ecx, esi
call sub.MFC42.DLL_CString::Replace
jmp 0x59ae6e
push str.material:
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Find_2
test eax, eax
jge 0x59aa9f
push str.fabric
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Find_2
test eax, eax
jge 0x59aa9f
push str.quantity:
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Find_2
test eax, eax
jl 0x59ae6e
push 0x3a
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Find_1
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x34]
mov ecx, dword [ecx - 8]
sub ecx, eax
dec ecx
push ecx
push edx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2dbc], 0xc
call fcn.0063d800
lea ecx, [esp + 0x34]
mov byte [esp + 0x2db8], 4
call fcn.0063d7fa
push 0x20
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::TrimLeft_2
push 0x20
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::TrimRight_2
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [esi + 0x1cb9], eax
jmp 0x59ae6e
push 0x3a
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Find_1
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x5c]
mov ecx, dword [ecx - 8]
sub ecx, eax
dec ecx
push ecx
push edx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Right
lea ebx, [esi + 0x22a]
push eax
mov ecx, ebx
mov byte [esp + 0x2dbc], 7
call fcn.0063d800
lea ecx, [esp + 0x5c]
mov byte [esp + 0x2db8], 4
call fcn.0063d7fa
push 0x20
mov ecx, ebx
call sub.MFC42.DLL_CString::TrimLeft_2
push 0x20
mov ecx, ebx
call sub.MFC42.DLL_CString::TrimRight_2
push 0x5f
push 0x20
mov ecx, ebx
call sub.MFC42.DLL_CString::Replace
mov eax, dword [esi + 0x3ba]
mov dword [esp + 0x14], edi
cmp eax, edi
mov dword [esp + 0x10], eax
jle 0x59ab4e
mov eax, dword [esi + 0x3b6]
mov ecx, dword [esp + 0x14]
mov eax, dword [eax + ecx*4]
mov ecx, dword [ebx]
push ecx
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x59ae6e
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x59ab19
fld qword [esi + 0x1afd]
mov ebx, dword [ebx]
call sub.MSVCRT.dll__ftol
lea ecx, [esp + 0xa8]
mov dword [esp + 0x10], eax
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x154]
mov byte [esp + 0x2db8], 8
call sub.MFC42.DLL_CString::CString
cmp ebx, edi
mov byte [esp + 0x2db8], 9
je 0x59ab98
push ebx
lea ecx, [esp + 0xac]
call fcn.0063d7e2
mov edx, dword [esp + 0x10]
mov dword [esp + 0xb0], 0
mov dword [esp + 0xac], edx
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0x42c80000
mov dword [esp + 0xbc], 0x42c80000
mov dword [esp + 0xc0], edi
mov dword [esp + 0xc4], edi
mov dword [esp + 0xc8], edi
mov dword [esp + 0xcc], edi
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd8], 0
mov dword [esp + 0xdc], 0
mov dword [esp + 0xe0], 0
mov dword [esp + 0xe4], 0
mov dword [esp + 0xe8], 0
mov dword [esp + 0xec], 0
mov dword [esp + 0xf0], edi
lea eax, [esp + 0x124]
lea ecx, [esp + 0xf4]
mov edx, 4
mov dword [ecx], edi
mov dword [eax - 0x20], edi
mov dword [eax - 0x1c], edi
mov dword [eax], edi
mov dword [eax + 4], edi
add ecx, 4
add eax, 8
dec edx
jne 0x59ac5d
mov ecx, 0xc8
xor eax, eax
lea edi, [esp + 0x180]
push 0x6a6520
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x158]
mov dword [esp + 0x148], eax
mov dword [esp + 0x14c], eax
mov dword [esp + 0x150], eax
mov dword [esp + 0x154], eax
call fcn.0063d7e2
mov dword [esp + 0x158], 0
mov dword [esp + 0x15c], 0
mov dword [esp + 0x160], 0
mov dword [esp + 0x164], 0
mov dword [esp + 0x168], 0
mov dword [esp + 0x16c], 0
mov dword [esp + 0x170], 0
mov dword [esp + 0x174], 0
mov dword [esp + 0x178], 0
mov dword [esp + 0x17c], 0
mov dword [esp + 0x4a0], 0
mov dword [esp + 0x4a4], 0
lea eax, [esp + 0xa8]
mov ecx, esi
push eax
mov byte [esp + 0x2dbc], 0xa
call fcn.00409241
lea ecx, [esp + 0x154]
mov byte [esp + 0x2db8], 0xb
call fcn.0063d7fa
lea ecx, [esp + 0xa8]
mov byte [esp + 0x2db8], 4
call fcn.0063d7fa
jmp 0x59ae6e
push 0xffffffffffffffff
push edi
lea ecx, [esi + 0x30a]
call sub.MFC42.DLL_CPtrArray::SetSize
push 0xffffffffffffffff
push edi
lea ecx, [esi + 0x242]
call sub.MFC42.DLL_CPtrArray::SetSize
push 0xffffffffffffffff
push edi
lea ecx, [esi + 0x2ce]
call sub.MFC42.DLL_CPtrArray::SetSize
push 0xffffffffffffffff
push edi
lea ecx, [esi + 0x2e2]
call sub.MFC42.DLL_CPtrArray::SetSize
lea ebx, [esi + 0x226]
push 0x6bdc68
mov ecx, ebx
call fcn.0063d7e2
push 0x6bdc68
lea ecx, [esi + 0x5fa]
call fcn.0063d7e2
push 0x6bdc68
lea ecx, [esi + 0x22a]
call fcn.0063d7e2
push 0x6bdc68
lea ecx, [esi + 0x180d]
call fcn.0063d7e2
mov eax, 0x7fffffff
push 0x3a
mov ecx, eax
mov dword [esi + 0x216], eax
mov dword [esi + 0x21e], eax
mov dword [esi + 0x21a], ecx
mov dword [esi + 0x222], ecx
lea ecx, [esp + 0x10]
mov dword [esi + 0x1cb9], edi
call sub.MFC42.DLL_CString::Find_1
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x58]
mov ecx, dword [ecx - 8]
sub ecx, eax
dec ecx
push ecx
push edx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Right
push eax
mov ecx, ebx
mov byte [esp + 0x2dbc], 5
call fcn.0063d800
lea ecx, [esp + 0x58]
mov byte [esp + 0x2db8], 4
call fcn.0063d7fa
push 0x20
mov ecx, ebx
call sub.MFC42.DLL_CString::TrimLeft_2
push 0x20
mov ecx, ebx
call sub.MFC42.DLL_CString::TrimRight_2
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2db8], 3
call fcn.0063d7fa
lea ecx, [esp + 0xc]
mov dword [esp + 0x2db8], 0xffffffff
call fcn.0063d7fa
mov ecx, dword [esp + 0x2db0]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0041093d
mov eax, dword [eax + 0x386]
mov ebx, dword [ebp + 0x14]
fld dword [eax + 8]
fld qword [ebp + 0x1c]
fadd qword [ebx]
fmulp st(1)
fstp qword [esp + 0x1c]
call fcn.0041093d
mov ecx, dword [eax + 0x386]
fld dword [ecx + 8]
fld qword [ebp + 0x24]
fadd qword [ebx + 8]
fsubr qword [esi + 0x1aed]
fmulp st(1)
fstp qword [esp + 0x64]
call fcn.0041093d
mov edx, dword [eax + 0x386]
push 0x68
fld dword [edx + 8]
fmul qword [ebx + 0x18]
fstp qword [esp + 0x18]
fld qword [ebx + 0x20]
fmul qword [0x670248]
fstp qword [esp + 0x28]
fld qword [ebx + 0x28]
fmul qword [0x670248]
fstp qword [esp + 0x30]
call sub.MFC42.DLL_operatornew
mov ebx, eax
add esp, 4
mov dword [esp + 0x10], ebx
cmp ebx, edi
mov dword [esp + 0x2db8], 0xd
je 0x59af82
fld qword [esp + 0x1c]
call sub.MSVCRT.dll__ftol
fld qword [esp + 0x64]
mov dword [esp + 0x80], eax
call sub.MSVCRT.dll__ftol
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x20]
push eax
push ecx
lea eax, [esp + 0x94]
push edx
push eax
mov ecx, ebx
call dword [sym.imp.zmathdll.dll_public:_void___thiscall_ZArc::constructor_class_CPoint___double__double__double_]
jmp 0x59af84
xor eax, eax
mov ecx, dword [esp + 0xc]
add esi, 0x2e2
mov dword [eax + 0x24], ecx
push eax
mov edx, dword [esi + 8]
mov ecx, esi
push edx
mov dword [esp + 0x2dc0], 0xffffffff
call sub.MFC42.DLL_CPtrArray::SetAtGrow
mov ecx, dword [esp + 0x2db0]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0041093d
mov eax, dword [eax + 0x386]
mov ebx, dword [ebp + 0x14]
fld dword [eax + 8]
fld qword [ebp + 0x1c]
fadd qword [ebx]
fmulp st(1)
call sub.MSVCRT.dll__ftol
mov dword [esp + 0x38], eax
call fcn.0041093d
mov ecx, dword [eax + 0x386]
fld dword [ecx + 8]
fld qword [ebp + 0x24]
fadd qword [ebx + 8]
fsubr qword [esi + 0x1aed]
fmulp st(1)
call sub.MSVCRT.dll__ftol
mov dword [esp + 0x3c], eax
call fcn.0041093d
mov edx, dword [eax + 0x386]
fld dword [edx + 8]
fld qword [ebp + 0x1c]
fadd qword [ebx + 0x18]
fmulp st(1)
call sub.MSVCRT.dll__ftol
mov dword [esp + 0x40], eax
call fcn.0041093d
mov eax, dword [eax + 0x386]
fld dword [eax + 8]
fld qword [ebp + 0x24]
fadd qword [ebx + 0x20]
fsubr qword [esi + 0x1aed]
fmulp st(1)
call sub.MSVCRT.dll__ftol
mov dword [esp + 0x44], eax
call fcn.0041093d
mov ecx, dword [eax + 0x386]
fld dword [ecx + 8]
fld qword [ebp + 0x1c]
fadd qword [ebx + 0x30]
fmulp st(1)
call sub.MSVCRT.dll__ftol
mov dword [esp + 0x48], eax
call fcn.0041093d
mov edx, dword [eax + 0x386]
fld dword [edx + 8]
fld qword [ebp + 0x24]
fadd qword [ebx + 0x38]
fsubr qword [esi + 0x1aed]
fmulp st(1)
call sub.MSVCRT.dll__ftol
mov dword [esp + 0x4c], eax
call fcn.0041093d
mov eax, dword [eax + 0x386]
fld dword [eax + 8]
fld qword [ebp + 0x1c]
fadd qword [ebx + 0x48]
fmulp st(1)
call sub.MSVCRT.dll__ftol
mov dword [esp + 0x50], eax
call fcn.0041093d
mov ecx, dword [eax + 0x386]
fld dword [ecx + 8]
fld qword [ebp + 0x24]
fadd qword [ebx + 0x50]
fsubr qword [esi + 0x1aed]
fmulp st(1)
call sub.MSVCRT.dll__ftol
mov dword [esp + 0x54], eax
push 0x34
call sub.MFC42.DLL_operatornew
mov ebx, eax
add esp, 4
mov dword [esp + 0x10], ebx
cmp ebx, edi
mov dword [esp + 0x2db8], 0xe
je 0x59b11d
push 2
lea ecx, [ebx + 4]
call dword [sym.imp.zmathdll.dll_public:_void___thiscall_ZPointArray::constructor_int_]
mov dword [ebx + 0x14], edi
mov dword [ebx + 0x18], edi
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x20], edi
mov edx, dword [sym.imp.zmathdll.dll_const_ZPolyline::vftable]
mov dword [ebx + 0x30], edi
mov dword [ebx], edx
mov dword [ebx + 0x24], 1
mov dword [esp + 0x14], ebx
jmp 0x59b121
mov dword [esp + 0x14], edi
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x38]
push eax
mov ecx, ebx
mov dword [esp + 0x2dbc], 0xffffffff
call dword [sym.imp.zmathdll.dll_public:_int___thiscall_ZPolyline::AddPoint_class_CPoint_const__]
lea ecx, [esp + 0x40]
push ecx
mov ecx, ebx
call dword [sym.imp.zmathdll.dll_public:_int___thiscall_ZPolyline::AddPoint_class_CPoint_const__]
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
mov dword [ebx + 0x24], edx
mov eax, dword [esi + 0x2d6]
lea ebx, [esi + 0x2ce]
push ecx
push eax
mov ecx, ebx
call sub.MFC42.DLL_CPtrArray::SetAtGrow
push 0x34
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
cmp esi, edi
mov dword [esp + 0x2db8], 0xf
je 0x59b1b4
push 2
lea ecx, [esi + 4]
call dword [sym.imp.zmathdll.dll_public:_void___thiscall_ZPointArray::constructor_int_]
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov edx, dword [sym.imp.zmathdll.dll_const_ZPolyline::vftable]
mov dword [esi + 0x30], edi
mov dword [esi], edx
mov dword [esi + 0x24], 1
jmp 0x59b1b6
xor esi, esi
lea eax, [esp + 0x40]
mov ecx, esi
push eax
mov dword [esp + 0x2dbc], 0xffffffff
call dword [sym.imp.zmathdll.dll_public:_int___thiscall_ZPolyline::AddPoint_class_CPoint_const__]
lea ecx, [esp + 0x48]
push ecx
mov ecx, esi
call dword [sym.imp.zmathdll.dll_public:_int___thiscall_ZPolyline::AddPoint_class_CPoint_const__]
mov edx, dword [esp + 0xc]
push esi
mov dword [esi + 0x24], edx
mov eax, dword [ebx + 8]
push eax
mov ecx, ebx
call sub.MFC42.DLL_CPtrArray::SetAtGrow
push 0x34
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
cmp esi, edi
mov dword [esp + 0x2db8], 0x10
je 0x59b237
push 2
lea ecx, [esi + 4]
call dword [sym.imp.zmathdll.dll_public:_void___thiscall_ZPointArray::constructor_int_]
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov eax, dword [sym.imp.zmathdll.dll_const_ZPolyline::vftable]
mov dword [esi + 0x30], edi
mov dword [esi], eax
mov dword [esi + 0x24], 1
jmp 0x59b239
xor esi, esi
lea ecx, [esp + 0x48]
mov dword [esp + 0x2db8], 0xffffffff
push ecx
mov ecx, esi
call dword [sym.imp.zmathdll.dll_public:_int___thiscall_ZPolyline::AddPoint_class_CPoint_const__]
lea edx, [esp + 0x50]
mov ecx, esi
push edx
call dword [sym.imp.zmathdll.dll_public:_int___thiscall_ZPolyline::AddPoint_class_CPoint_const__]
mov eax, dword [esp + 0xc]
push esi
mov dword [esi + 0x24], eax
mov eax, dword [ebx + 8]
push eax
mov ecx, ebx
call sub.MFC42.DLL_CPtrArray::SetAtGrow
push 0x34
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
cmp esi, edi
mov dword [esp + 0x2db8], 0x11
je 0x59b2bb
push 2
lea ecx, [esi + 4]
call dword [sym.imp.zmathdll.dll_public:_void___thiscall_ZPointArray::constructor_int_]
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov ecx, dword [sym.imp.zmathdll.dll_const_ZPolyline::vftable]
mov dword [esi + 0x30], edi
mov dword [esi], ecx
mov dword [esi + 0x24], 1
jmp 0x59b2bd
xor esi, esi
mov edi, dword [sym.imp.zmathdll.dll_public:_int___thiscall_ZPolyline::AddPoint_class_CPoint_const__]
lea edx, [esp + 0x50]
push edx
mov ecx, esi
mov dword [esp + 0x2dbc], 0xffffffff
call edi
lea eax, [esp + 0x38]
mov ecx, esi
push eax
call edi
mov ecx, dword [esp + 0xc]
push esi
mov dword [esi + 0x24], ecx
mov edx, dword [ebx + 8]
push edx
mov ecx, ebx
call sub.MFC42.DLL_CPtrArray::SetAtGrow
mov ecx, dword [esp + 0x2db0]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp + 8]
lea edx, [esp + 0x4a8]
mov ecx, dword [eax + 0x38]
push edx
push 0x400
push ebx
mov dword [esp + 0x4b4], ecx
call fcn.00410d61
add esp, 0xc
test eax, eax
jbe case.0x59a505.10
push 0xffffffffffffffff
push edi
lea ecx, [esi + 0x30a]
call sub.MFC42.DLL_CPtrArray::SetSize
push 0xffffffffffffffff
lea ecx, [esi + 0x242]
push edi
call sub.MFC42.DLL_CPtrArray::SetSize
push 0xffffffffffffffff
lea ecx, [esi + 0x2ce]
push edi
call sub.MFC42.DLL_CPtrArray::SetSize
push 0xffffffffffffffff
push edi
lea ecx, [esi + 0x2e2]
call sub.MFC42.DLL_CPtrArray::SetSize
push 0x6bdc68
lea ecx, [esi + 0x226]
call fcn.0063d7e2
lea ecx, [esi + 0x5fa]
push 0x6bdc68
call fcn.0063d7e2
push 0x6bdc68
lea ecx, [esi + 0x22a]
call fcn.0063d7e2
push 0x6bdc68
lea ecx, [esi + 0x180d]
call fcn.0063d7e2
mov eax, 0x7fffffff
push edi
mov ecx, eax
mov dword [esi + 0x216], eax
mov dword [esi + 0x21e], eax
mov dword [esi + 0x21a], ecx
mov dword [esi + 0x222], ecx
lea eax, [esp + 0xdb4]
push 1
lea ecx, [esp + 0x928]
push eax
lea edx, [esp + 0x4b8]
push ecx
push edx
push ebx
mov dword [esi + 0x1cb9], edi
call fcn.0040e9f3
add esp, 0x18
test eax, eax
jbe 0x59b460
mov edi, dword [ebp + 0x14]
fld qword [ebp + 0x24]
fadd qword [edi + 8]
push 0
push 0
sub esp, 8
mov eax, dword [ebp + 0x18]
lea ecx, [esp + 0xdc0]
lea edx, [esp + 0x930]
fstp qword [esp]
fld qword [ebp + 0x1c]
fadd qword [edi]
sub esp, 8
fstp qword [esp]
push eax
mov eax, dword [ebp + 0xc]
push ecx
push edx
push eax
push ebx
call fcn.00407694
push 0
lea ecx, [esp + 0xde0]
push 4
lea edx, [esp + 0x954]
push ecx
lea eax, [esp + 0x4e4]
push edx
push eax
push ebx
call fcn.0040e9f3
add esp, 0x44
test eax, eax
ja 0x59b3fe
mov eax, dword [esi + 0x2d6]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x1c], eax
jle 0x59b5f6
mov ecx, dword [esi + 0x2d2]
mov edx, dword [ecx + ebx*4]
lea edi, [ecx + ebx*4]
cmp dword [edx + 0x24], 1
jne 0x59b5d1
mov ecx, edx
call dword [sym.imp.zmathdll.dll_public:_int___thiscall_ZPolyline::GetPointNum_void_const]
mov ecx, dword [edi]
dec eax
push eax
add ecx, 4
call dword [sym.imp.zmathdll.dll_public:_class_CPoint____thiscall_ZPointArray::operator___int_]
mov ecx, dword [eax]
push 0xffffffffffffffff
mov dword [esp + 0x9c], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0xa0], edx
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
push edx
mov ecx, esi
call fcn.00403071
mov edi, eax
test edi, edi
jne 0x59b532
push 0x441
call sub.MFC42.DLL_operatornew
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
test edi, edi
mov dword [esp + 0x2db8], 0x12
je 0x59b512
push 0
push 0
push 0
push 0x1b
push 0
lea eax, [esp + 0xac]
push 0
push eax
mov ecx, edi
call dword [sym.imp.zmathdll.dll_public:_void___thiscall_ZPoint::constructor_class_CPoint___int__struct_ZUnit___int__struct_ZGradData____int___int__]
mov dword [edi], 0x6701d4
jmp 0x59b514
xor edi, edi
mov eax, dword [esi + 0x24a]
lea ecx, [esi + 0x242]
push edi
push eax
mov dword [esp + 0x2dc0], 0xffffffff
call sub.MFC42.DLL_CPtrArray::SetAtGrow
mov eax, dword [esp + 0xc]
mov dword [edi + 0x439], 0
test eax, eax
mov dword [edi + 0x7d], 2
jne 0x59b55a
mov ecx, dword [esi + 0x2d2]
mov edx, dword [ecx + ebx*4]
mov dword [esp + 0xc], edx
jmp 0x59b5b9
mov eax, dword [esi + 0x2d2]
mov ecx, dword [eax + ebx*4]
call dword [sym.imp.zmathdll.dll_public:_int___thiscall_ZPolyline::GetPointNum_void_const]
xor edi, edi
mov dword [esp + 0x14], eax
test eax, eax
jle 0x59b59a
mov ecx, dword [esi + 0x2d2]
push edi
mov ecx, dword [ecx + ebx*4]
add ecx, 4
call dword [sym.imp.zmathdll.dll_public:_class_CPoint____thiscall_ZPointArray::operator___int_]
mov ecx, dword [esp + 0xc]
push eax
call dword [sym.imp.zmathdll.dll_public:_int___thiscall_ZPolyline::AddPoint_class_CPoint_const__]
mov eax, dword [esp + 0x14]
inc edi
cmp edi, eax
jl 0x59b573
mov edx, dword [esi + 0x2d2]
mov edi, dword [edx + ebx*4]
test edi, edi
je 0x59b5b9
lea ecx, [edi + 4]
call dword [sym.imp.zmathdll.dll_public:_void___thiscall_ZPointArray::destructor_void_]
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
push 1
push ebx
lea ecx, [esi + 0x2ce]
call sub.MFC42.DLL_CPtrArray::RemoveAt
mov eax, dword [esp + 0x1c]
dec ebx
dec eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
inc ebx
cmp ebx, eax
jl 0x59b478
mov eax, dword [esp + 0xc]
test eax, eax
je 0x59b5f6
push 1
push eax
push 0
lea ecx, [esi + 0x2ce]
call sub.MFC42.DLL_CPtrArray::InsertAt
lea edi, [esi + 0x5fa]
lea ecx, [esp + 0x10]
push edi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0x2db8], 0x13
call fcn.00402572
lea ecx, [esp + 0x10]
push ecx
mov ecx, edi
call fcn.0063d800
push 0
mov ecx, esi
call fcn.00408814
mov ebx, eax
test ebx, ebx
jle 0x59b729
lea edx, [ebx - 1]
push 0
push edx
mov ecx, esi
call fcn.00403756
mov ecx, 1
mov dword [esi + 0x212], eax
mov dword [eax + 0x105], ecx
mov eax, dword [esi + 0x212]
push 0x6bdc68
mov dword [eax + 0x101], ecx
mov eax, dword [edi]
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x59b71f
cmp ebx, 1
jne 0x59b69d
mov ecx, dword [esi + 0x34a]
push edi
mov ecx, dword [ecx]
call fcn.0063d800
mov edx, dword [esi + 0x212]
mov dword [edx + 0x109], 0
jmp 0x59b713
mov ecx, esi
call fcn.00406f46
xor ebx, ebx
mov dword [esp + 0x14], eax
test eax, eax
jle 0x59b6e9
mov eax, dword [esi + 0x34a]
mov ecx, dword [edi]
push ecx
mov eax, dword [eax + ebx*4]
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x59b6d5
mov eax, dword [esp + 0x14]
inc ebx
cmp ebx, eax
jl 0x59b6ae
jmp 0x59b6e9
mov ecx, dword [esi + 0x212]
mov eax, dword [esp + 0x14]
cmp ebx, eax
mov dword [ecx + 0x109], ebx
jl 0x59b713
push 1
push 0
mov ecx, esi
call fcn.0040712b
mov edx, dword [esi + 0x34a]
mov ebx, dword [esp + 0x14]
push edi
mov ecx, dword [edx + ebx*4]
call fcn.0063d800
mov eax, dword [esi + 0x212]
mov dword [eax + 0x109], ebx
push 0x6bdc68
mov ecx, edi
call fcn.0063d7e2
mov dword [esi + 0x212], 0
lea ecx, [esp + 0x10]
mov dword [esp + 0x2db8], 0xffffffff
call fcn.0063d7fa
mov ecx, dword [esp + 0x2db0]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x34
call sub.MFC42.DLL_operatornew
mov ebx, eax
add esp, 4
mov dword [esp + 0x10], ebx
cmp ebx, edi
mov dword [esp + 0x2db8], 0x14
je 0x59b79c
push 2
lea ecx, [ebx + 4]
call dword [sym.imp.zmathdll.dll_public:_void___thiscall_ZPointArray::constructor_int_]
mov dword [ebx + 0x14], edi
mov dword [ebx + 0x18], edi
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x20], edi
mov ecx, dword [sym.imp.zmathdll.dll_const_ZPolyline::vftable]
mov dword [ebx + 0x30], edi
mov dword [ebx], ecx
mov dword [ebx + 0x24], 1
jmp 0x59b79e
xor ebx, ebx
mov edx, dword [ebp + 0x14]
mov dword [esp + 0x2db8], 0xffffffff
mov eax, dword [edx + 4]
dec eax
js 0x59b83a
lea ecx, [eax + eax*2]
lea edi, [ecx + ecx*4]
shl edi, 2
inc eax
mov dword [esp + 0x10], eax
call fcn.0041093d
mov eax, dword [eax + 0x386]
mov edx, dword [ebp + 0x14]
mov ecx, edi
fld dword [eax + 8]
mov eax, dword [edx]
fld qword [ebp + 0x1c]
fadd qword [ecx + eax]
add ecx, eax
fmulp st(1)
fstp qword [esp + 0x64]
call fcn.0041093d
mov eax, dword [eax + 0x386]
mov ecx, dword [ebp + 0x14]
fld dword [eax + 8]
mov edx, dword [ecx]
fld qword [ebp + 0x24]
fadd qword [edi + edx + 8]
fsubr qword [esi + 0x1aed]
fmulp st(1)
fld qword [esp + 0x64]
call sub.MSVCRT.dll__ftol
mov dword [esp + 0x78], eax
call sub.MSVCRT.dll__ftol
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x78]
push eax
mov ecx, ebx
call dword [sym.imp.zmathdll.dll_public:_int___thiscall_ZPolyline::AddPoint_class_CPoint_const__]
mov eax, dword [esp + 0x10]
sub edi, 0x3c
dec eax
mov dword [esp + 0x10], eax
jne 0x59b7c4
mov ecx, dword [esp + 0xc]
mov edx, dword [ebp + 0x14]
mov dword [ebx + 0x24], ecx
add esi, 0x2ce
mov al, byte [edx + 8]
push ebx
and eax, 1
mov dword [ebx + 0x30], eax
mov ecx, dword [esi + 8]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CPtrArray::SetAtGrow
mov ecx, dword [esp + 0x2db0]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x6e4]
mov eax, dword [edx + 0x50]
push ecx
push 0x400
push esi
mov dword [esp + 0x6f0], eax
call fcn.00410d61
add esp, 0xc
test eax, eax
jbe case.0x59a505.10
push edi
lea edx, [esp + 0x1db4]
push 1
lea eax, [esp + 0xb70]
push edx
lea ecx, [esp + 0x6f4]
push eax
push ecx
push esi
call fcn.0040e9f3
add esp, 0x18
test eax, eax
jbe case.0x59a505.10
mov ebx, dword [ebp + 0x28]
mov edx, dword [ebp + 0x24]
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x1c]
push edi
push edi
push ebx
push edx
mov edx, dword [ebp + 0x18]
push eax
push ecx
lea eax, [esp + 0x1dc8]
push edx
mov edx, dword [ebp + 0xc]
lea ecx, [esp + 0xb84]
push eax
push ecx
push edx
push esi
call fcn.004099e4
push edi
lea eax, [esp + 0x1de0]
push 4
lea ecx, [esp + 0xb9c]
push eax
lea edx, [esp + 0x720]
push ecx
push edx
push esi
call fcn.0040e9f3
add esp, 0x44
test eax, eax
ja 0x59b8cd
mov ecx, dword [esp + 0x2db0]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret