40be4a:	8b 40 50             	mov    0x50(%eax),%eax
40be4d:	83 e0 08             	and    $0x8,%eax
40be50:	85 c0                	test   %eax,%eax
40be52:	74 15                	je     0x40be69
40be54:	8d 45 d8             	lea    -0x28(%ebp),%eax
40be57:	50                   	push   %eax
40be58:	e8 be 0a 00 00       	call   0x40c91b
40be5d:	0f bf c0             	movswl %ax,%eax
40be60:	85 c0                	test   %eax,%eax
40be62:	75 05                	jne    0x40be69
40be64:	e9 01 06 00 00       	jmp    0x40c46a
40be69:	ff 75 d8             	push   -0x28(%ebp)
40be6c:	8d 45 cc             	lea    -0x34(%ebp),%eax
40be6f:	50                   	push   %eax
40be70:	e8 6b 56 ff ff       	call   0x4014e0
40be75:	8b 45 cc             	mov    -0x34(%ebp),%eax
40be78:	33 c9                	xor    %ecx,%ecx
40be7a:	2b 48 14             	sub    0x14(%eax),%ecx
40be7d:	8b 45 cc             	mov    -0x34(%ebp),%eax
40be80:	8b 40 0c             	mov    0xc(%eax),%eax
40be83:	03 c1                	add    %ecx,%eax
40be85:	50                   	push   %eax
40be86:	e8 2b 56 ff ff       	call   0x4014b6
40be8b:	89 45 90             	mov    %eax,-0x70(%ebp)
40be8e:	8d 45 cc             	lea    -0x34(%ebp),%eax
40be91:	50                   	push   %eax
40be92:	e8 43 56 ff ff       	call   0x4014da
40be97:	8b 45 d8             	mov    -0x28(%ebp),%eax
40be9a:	f7 d0                	not    %eax
40be9c:	f7 d0                	not    %eax
40be9e:	50                   	push   %eax
40be9f:	e8 ad a5 ff ff       	call   0x406451
40bea4:	50                   	push   %eax
40bea5:	ff 75 90             	push   -0x70(%ebp)
40bea8:	e8 97 38 05 00       	call   0x45f744
40bead:	50                   	push   %eax
40beae:	8d 45 d0             	lea    -0x30(%ebp),%eax
40beb1:	50                   	push   %eax
40beb2:	e8 47 56 ff ff       	call   0x4014fe
40beb7:	ff 75 ec             	push   -0x14(%ebp)
40beba:	8d 45 cc             	lea    -0x34(%ebp),%eax
40bebd:	50                   	push   %eax
40bebe:	e8 1d 56 ff ff       	call   0x4014e0
40bec3:	8b 45 cc             	mov    -0x34(%ebp),%eax
40bec6:	33 c9                	xor    %ecx,%ecx
40bec8:	2b 48 14             	sub    0x14(%eax),%ecx
40becb:	8b 45 cc             	mov    -0x34(%ebp),%eax
40bece:	8b 40 0c             	mov    0xc(%eax),%eax
40bed1:	03 c1                	add    %ecx,%eax
40bed3:	50                   	push   %eax
40bed4:	e8 dd 55 ff ff       	call   0x4014b6
40bed9:	89 45 90             	mov    %eax,-0x70(%ebp)
40bedc:	8d 45 cc             	lea    -0x34(%ebp),%eax
40bedf:	50                   	push   %eax
40bee0:	e8 f5 55 ff ff       	call   0x4014da
40bee5:	8b 45 ec             	mov    -0x14(%ebp),%eax
40bee8:	f7 d0                	not    %eax
40beea:	f7 d0                	not    %eax
40beec:	50                   	push   %eax
40beed:	e8 5f a5 ff ff       	call   0x406451
40bef2:	50                   	push   %eax
40bef3:	ff 75 90             	push   -0x70(%ebp)
40bef6:	e8 49 38 05 00       	call   0x45f744
40befb:	50                   	push   %eax
40befc:	8d 45 e4             	lea    -0x1c(%ebp),%eax
40beff:	50                   	push   %eax
40bf00:	e8 f9 55 ff ff       	call   0x4014fe
40bf05:	8b 45 80             	mov    -0x80(%ebp),%eax
40bf08:	83 78 0c 00          	cmpl   $0x0,0xc(%eax)
40bf0c:	7e 20                	jle    0x40bf2e
40bf0e:	6a 00                	push   $0x0
40bf10:	8b 45 80             	mov    -0x80(%ebp),%eax
40bf13:	8b 40 0c             	mov    0xc(%eax),%eax
40bf16:	48                   	dec    %eax
40bf17:	50                   	push   %eax
40bf18:	6a 01                	push   $0x1
40bf1a:	68 5c 37 40 00       	push   $0x40375c
40bf1f:	ff 75 10             	push   0x10(%ebp)
40bf22:	6a 20                	push   $0x20
40bf24:	6a 00                	push   $0x0
40bf26:	e8 d9 55 ff ff       	call   0x401504
40bf2b:	83 c4 1c             	add    $0x1c,%esp
40bf2e:	8b 45 80             	mov    -0x80(%ebp),%eax
40bf31:	8b 40 0c             	mov    0xc(%eax),%eax
40bf34:	48                   	dec    %eax
40bf35:	89 85 74 ff ff ff    	mov    %eax,-0x8c(%ebp)
40bf3b:	c7 85 78 ff ff ff 01 	movl   $0x1,-0x88(%ebp)
40bf42:	00 00 00
40bf45:	83 65 d4 00          	andl   $0x0,-0x2c(%ebp)
40bf49:	eb 0c                	jmp    0x40bf57
40bf4b:	8b 45 d4             	mov    -0x2c(%ebp),%eax
40bf4e:	03 85 78 ff ff ff    	add    -0x88(%ebp),%eax
40bf54:	89 45 d4             	mov    %eax,-0x2c(%ebp)
40bf57:	8b 45 d4             	mov    -0x2c(%ebp),%eax
40bf5a:	3b 85 74 ff ff ff    	cmp    -0x8c(%ebp),%eax
40bf60:	0f 8f fb 04 00 00    	jg     0x40c461
40bf66:	8b 45 10             	mov    0x10(%ebp),%eax
40bf69:	ff 30                	push   (%eax)
40bf6b:	8d 45 84             	lea    -0x7c(%ebp),%eax
40bf6e:	50                   	push   %eax
40bf6f:	e8 6c 55 ff ff       	call   0x4014e0
40bf74:	8b 45 84             	mov    -0x7c(%ebp),%eax
40bf77:	8b 4d d4             	mov    -0x2c(%ebp),%ecx
40bf7a:	2b 48 14             	sub    0x14(%eax),%ecx
40bf7d:	c1 e1 05             	shl    $0x5,%ecx
40bf80:	8b 45 84             	mov    -0x7c(%ebp),%eax
40bf83:	8b 40 0c             	mov    0xc(%eax),%eax
40bf86:	03 c1                	add    %ecx,%eax
40bf88:	89 85 7c ff ff ff    	mov    %eax,-0x84(%ebp)
40bf8e:	8b 45 0c             	mov    0xc(%ebp),%eax
40bf91:	8b 4d d4             	mov    -0x2c(%ebp),%ecx
40bf94:	3b 48 10             	cmp    0x10(%eax),%ecx
40bf97:	0f 84 be 03 00 00    	je     0x40c35b
40bf9d:	8d 45 90             	lea    -0x70(%ebp),%eax
40bfa0:	50                   	push   %eax
40bfa1:	6a 04                	push   $0x4
40bfa3:	8d 45 e8             	lea    -0x18(%ebp),%eax
40bfa6:	50                   	push   %eax
40bfa7:	8b 45 d0             	mov    -0x30(%ebp),%eax
40bfaa:	8b 00                	mov    (%eax),%eax
40bfac:	ff 75 d0             	push   -0x30(%ebp)
40bfaf:	ff 50 0c             	call   *0xc(%eax)
40bfb2:	db e2                	fnclex
40bfb4:	89 45 88             	mov    %eax,-0x78(%ebp)
40bfb7:	83 7d 88 00          	cmpl   $0x0,-0x78(%ebp)
40bfbb:	7d 1a                	jge    0x40bfd7
40bfbd:	6a 0c                	push   $0xc
40bfbf:	68 c0 47 40 00       	push   $0x4047c0
40bfc4:	ff 75 d0             	push   -0x30(%ebp)
40bfc7:	ff 75 88             	push   -0x78(%ebp)
40bfca:	e8 05 55 ff ff       	call   0x4014d4
40bfcf:	89 85 40 ff ff ff    	mov    %eax,-0xc0(%ebp)
40bfd5:	eb 07                	jmp    0x40bfde
40bfd7:	83 a5 40 ff ff ff 00 	andl   $0x0,-0xc0(%ebp)
40bfde:	6a 20                	push   $0x20
40bfe0:	8d 45 b4             	lea    -0x4c(%ebp),%eax
40bfe3:	50                   	push   %eax
40bfe4:	e8 7f 54 ff ff       	call   0x401468
40bfe9:	8d 45 b4             	lea    -0x4c(%ebp),%eax
40bfec:	50                   	push   %eax
40bfed:	8b 45 e8             	mov    -0x18(%ebp),%eax
40bff0:	99                   	cltd
40bff1:	2b c2                	sub    %edx,%eax
40bff3:	d1 f8                	sar    $1,%eax
40bff5:	50                   	push   %eax
40bff6:	8d 45 a4             	lea    -0x5c(%ebp),%eax
40bff9:	50                   	push   %eax
40bffa:	e8 1b 54 ff ff       	call   0x40141a
40bfff:	8d 45 a4             	lea    -0x5c(%ebp),%eax
40c002:	50                   	push   %eax
40c003:	e8 6c 54 ff ff       	call   0x401474
40c008:	8b d0                	mov    %eax,%edx
40c00a:	8d 4d c8             	lea    -0x38(%ebp),%ecx
40c00d:	e8 b0 54 ff ff       	call   0x4014c2
40c012:	8b d0                	mov    %eax,%edx
40c014:	8b 8d 7c ff ff ff    	mov    -0x84(%ebp),%ecx
40c01a:	e8 a9 54 ff ff       	call   0x4014c8
40c01f:	8d 4d c8             	lea    -0x38(%ebp),%ecx
40c022:	e8 95 54 ff ff       	call   0x4014bc
40c027:	8d 45 a4             	lea    -0x5c(%ebp),%eax
40c02a:	50                   	push   %eax
40c02b:	8d 45 b4             	lea    -0x4c(%ebp),%eax
40c02e:	50                   	push   %eax
40c02f:	6a 02                	push   $0x2
40c031:	e8 5c 54 ff ff       	call   0x401492
40c036:	83 c4 0c             	add    $0xc,%esp
40c039:	8b 85 7c ff ff ff    	mov    -0x84(%ebp),%eax
40c03f:	ff 30                	push   (%eax)
40c041:	e8 70 54 ff ff       	call   0x4014b6
40c046:	89 45 8c             	mov    %eax,-0x74(%ebp)
40c049:	8d 45 90             	lea    -0x70(%ebp),%eax
40c04c:	50                   	push   %eax
40c04d:	ff 75 e8             	push   -0x18(%ebp)
40c050:	ff 75 8c             	push   -0x74(%ebp)
40c053:	8b 45 d0             	mov    -0x30(%ebp),%eax
40c056:	8b 00                	mov    (%eax),%eax
40c058:	ff 75 d0             	push   -0x30(%ebp)
40c05b:	ff 50 0c             	call   *0xc(%eax)
40c05e:	db e2                	fnclex
40c060:	89 45 88             	mov    %eax,-0x78(%ebp)
40c063:	83 7d 88 00          	cmpl   $0x0,-0x78(%ebp)
40c067:	7d 1a                	jge    0x40c083
40c069:	6a 0c                	push   $0xc
40c06b:	68 c0 47 40 00       	push   $0x4047c0
40c070:	ff 75 d0             	push   -0x30(%ebp)
40c073:	ff 75 88             	push   -0x78(%ebp)
40c076:	e8 59 54 ff ff       	call   0x4014d4
40c07b:	89 85 3c ff ff ff    	mov    %eax,-0xc4(%ebp)
40c081:	eb 07                	jmp    0x40c08a
40c083:	83 a5 3c ff ff ff 00 	andl   $0x0,-0xc4(%ebp)
40c08a:	8d 45 90             	lea    -0x70(%ebp),%eax
40c08d:	50                   	push   %eax
40c08e:	6a 04                	push   $0x4
40c090:	8d 45 e8             	lea    -0x18(%ebp),%eax
40c093:	50                   	push   %eax
40c094:	8b 45 d0             	mov    -0x30(%ebp),%eax
40c097:	8b 00                	mov    (%eax),%eax
40c099:	ff 75 d0             	push   -0x30(%ebp)
40c09c:	ff 50 0c             	call   *0xc(%eax)
40c09f:	db e2                	fnclex
40c0a1:	89 45 88             	mov    %eax,-0x78(%ebp)
40c0a4:	83 7d 88 00          	cmpl   $0x0,-0x78(%ebp)
40c0a8:	7d 1a                	jge    0x40c0c4
40c0aa:	6a 0c                	push   $0xc
40c0ac:	68 c0 47 40 00       	push   $0x4047c0
40c0b1:	ff 75 d0             	push   -0x30(%ebp)
40c0b4:	ff 75 88             	push   -0x78(%ebp)
40c0b7:	e8 18 54 ff ff       	call   0x4014d4
40c0bc:	89 85 38 ff ff ff    	mov    %eax,-0xc8(%ebp)
40c0c2:	eb 07                	jmp    0x40c0cb
40c0c4:	83 a5 38 ff ff ff 00 	andl   $0x0,-0xc8(%ebp)
40c0cb:	6a 20                	push   $0x20
40c0cd:	8d 45 b4             	lea    -0x4c(%ebp),%eax
40c0d0:	50                   	push   %eax
40c0d1:	e8 92 53 ff ff       	call   0x401468
40c0d6:	8d 45 b4             	lea    -0x4c(%ebp),%eax
40c0d9:	50                   	push   %eax
40c0da:	8b 45 e8             	mov    -0x18(%ebp),%eax
40c0dd:	99                   	cltd
40c0de:	2b c2                	sub    %edx,%eax
40c0e0:	d1 f8                	sar    $1,%eax
40c0e2:	50                   	push   %eax
40c0e3:	8d 45 a4             	lea    -0x5c(%ebp),%eax
40c0e6:	50                   	push   %eax
40c0e7:	e8 2e 53 ff ff       	call   0x40141a
40c0ec:	8d 55 a4             	lea    -0x5c(%ebp),%edx
40c0ef:	8b 8d 7c ff ff ff    	mov    -0x84(%ebp),%ecx
40c0f5:	83 c1 04             	add    $0x4,%ecx
40c0f8:	e8 8f 53 ff ff       	call   0x40148c
40c0fd:	8d 45 a4             	lea    -0x5c(%ebp),%eax
40c100:	50                   	push   %eax
40c101:	8d 45 b4             	lea    -0x4c(%ebp),%eax
40c104:	50                   	push   %eax
40c105:	6a 02                	push   $0x2
40c107:	e8 86 53 ff ff       	call   0x401492
40c10c:	83 c4 0c             	add    $0xc,%esp
40c10f:	8b 85 7c ff ff ff    	mov    -0x84(%ebp),%eax
40c115:	83 c0 04             	add    $0x4,%eax
40c118:	50                   	push   %eax
40c119:	8d 45 c8             	lea    -0x38(%ebp),%eax
40c11c:	50                   	push   %eax
40c11d:	e8 1c 53 ff ff       	call   0x40143e
40c122:	50                   	push   %eax
40c123:	e8 8e 53 ff ff       	call   0x4014b6
40c128:	89 45 8c             	mov    %eax,-0x74(%ebp)
40c12b:	8d 45 90             	lea    -0x70(%ebp),%eax
40c12e:	50                   	push   %eax
40c12f:	ff 75 e8             	push   -0x18(%ebp)
40c132:	ff 75 8c             	push   -0x74(%ebp)
40c135:	8b 45 d0             	mov    -0x30(%ebp),%eax
40c138:	8b 00                	mov    (%eax),%eax
40c13a:	ff 75 d0             	push   -0x30(%ebp)
40c13d:	ff 50 0c             	call   *0xc(%eax)
40c140:	db e2                	fnclex
40c142:	89 45 88             	mov    %eax,-0x78(%ebp)
40c145:	83 7d 88 00          	cmpl   $0x0,-0x78(%ebp)
40c149:	7d 1a                	jge    0x40c165
40c14b:	6a 0c                	push   $0xc
40c14d:	68 c0 47 40 00       	push   $0x4047c0
40c152:	ff 75 d0             	push   -0x30(%ebp)
40c155:	ff 75 88             	push   -0x78(%ebp)
40c158:	e8 77 53 ff ff       	call   0x4014d4
40c15d:	89 85 34 ff ff ff    	mov    %eax,-0xcc(%ebp)
40c163:	eb 07                	jmp    0x40c16c
40c165:	83 a5 34 ff ff ff 00 	andl   $0x0,-0xcc(%ebp)
40c16c:	8d 4d c8             	lea    -0x38(%ebp),%ecx
40c16f:	e8 48 53 ff ff       	call   0x4014bc
40c174:	8d 45 90             	lea    -0x70(%ebp),%eax
40c177:	50                   	push   %eax
40c178:	6a 04                	push   $0x4
40c17a:	8d 45 e8             	lea    -0x18(%ebp),%eax
40c17d:	50                   	push   %eax
40c17e:	8b 45 d0             	mov    -0x30(%ebp),%eax
40c181:	8b 00                	mov    (%eax),%eax
40c183:	ff 75 d0             	push   -0x30(%ebp)
40c186:	ff 50 0c             	call   *0xc(%eax)
40c189:	db e2                	fnclex
40c18b:	89 45 88             	mov    %eax,-0x78(%ebp)
40c18e:	83 7d 88 00          	cmpl   $0x0,-0x78(%ebp)
40c192:	7d 1a                	jge    0x40c1ae
40c194:	6a 0c                	push   $0xc
40c196:	68 c0 47 40 00       	push   $0x4047c0
40c19b:	ff 75 d0             	push   -0x30(%ebp)
40c19e:	ff 75 88             	push   -0x78(%ebp)
40c1a1:	e8 2e 53 ff ff       	call   0x4014d4
40c1a6:	89 85 30 ff ff ff    	mov    %eax,-0xd0(%ebp)
40c1ac:	eb 07                	jmp    0x40c1b5
40c1ae:	83 a5 30 ff ff ff 00 	andl   $0x0,-0xd0(%ebp)
40c1b5:	6a 20                	push   $0x20
40c1b7:	8d 45 b4             	lea    -0x4c(%ebp),%eax
40c1ba:	50                   	push   %eax
40c1bb:	e8 a8 52 ff ff       	call   0x401468
40c1c0:	8d 45 b4             	lea    -0x4c(%ebp),%eax
40c1c3:	50                   	push   %eax
40c1c4:	8b 45 e8             	mov    -0x18(%ebp),%eax
40c1c7:	99                   	cltd
40c1c8:	2b c2                	sub    %edx,%eax
40c1ca:	d1 f8                	sar    $1,%eax
40c1cc:	50                   	push   %eax
40c1cd:	8d 45 a4             	lea    -0x5c(%ebp),%eax
40c1d0:	50                   	push   %eax
40c1d1:	e8 44 52 ff ff       	call   0x40141a
40c1d6:	8d 45 a4             	lea    -0x5c(%ebp),%eax
40c1d9:	50                   	push   %eax
40c1da:	e8 95 52 ff ff       	call   0x401474
40c1df:	8b d0                	mov    %eax,%edx
40c1e1:	8d 4d c8             	lea    -0x38(%ebp),%ecx
40c1e4:	e8 d9 52 ff ff       	call   0x4014c2
40c1e9:	8b d0                	mov    %eax,%edx
40c1eb:	8b 8d 7c ff ff ff    	mov    -0x84(%ebp),%ecx
40c1f1:	83 c1 14             	add    $0x14,%ecx
40c1f4:	e8 cf 52 ff ff       	call   0x4014c8
40c1f9:	8d 4d c8             	lea    -0x38(%ebp),%ecx
40c1fc:	e8 bb 52 ff ff       	call   0x4014bc
40c201:	8d 45 a4             	lea    -0x5c(%ebp),%eax
40c204:	50                   	push   %eax
40c205:	8d 45 b4             	lea    -0x4c(%ebp),%eax
40c208:	50                   	push   %eax
40c209:	6a 02                	push   $0x2
40c20b:	e8 82 52 ff ff       	call   0x401492
40c210:	83 c4 0c             	add    $0xc,%esp
40c213:	8b 85 7c ff ff ff    	mov    -0x84(%ebp),%eax
40c219:	ff 70 14             	push   0x14(%eax)
40c21c:	e8 95 52 ff ff       	call   0x4014b6
40c221:	89 45 8c             	mov    %eax,-0x74(%ebp)
40c224:	8d 45 90             	lea    -0x70(%ebp),%eax
40c227:	50                   	push   %eax
40c228:	ff 75 e8             	push   -0x18(%ebp)
40c22b:	ff 75 8c             	push   -0x74(%ebp)
40c22e:	8b 45 d0             	mov    -0x30(%ebp),%eax
40c231:	8b 00                	mov    (%eax),%eax
40c233:	ff 75 d0             	push   -0x30(%ebp)
40c236:	ff 50 0c             	call   *0xc(%eax)
40c239:	db e2                	fnclex
40c23b:	89 45 88             	mov    %eax,-0x78(%ebp)
40c23e:	83 7d 88 00          	cmpl   $0x0,-0x78(%ebp)
40c242:	7d 1a                	jge    0x40c25e
40c244:	6a 0c                	push   $0xc
40c246:	68 c0 47 40 00       	push   $0x4047c0
40c24b:	ff 75 d0             	push   -0x30(%ebp)
40c24e:	ff 75 88             	push   -0x78(%ebp)
40c251:	e8 7e 52 ff ff       	call   0x4014d4
40c256:	89 85 2c ff ff ff    	mov    %eax,-0xd4(%ebp)
40c25c:	eb 07                	jmp    0x40c265
40c25e:	83 a5 2c ff ff ff 00 	andl   $0x0,-0xd4(%ebp)
40c265:	8d 45 90             	lea    -0x70(%ebp),%eax
40c268:	50                   	push   %eax
40c269:	6a 04                	push   $0x4
40c26b:	8b 85 7c ff ff ff    	mov    -0x84(%ebp),%eax
40c271:	83 c0 18             	add    $0x18,%eax