407036:	56                   	push   %esi
407037:	e8 74 ba ff ff       	call   0x402ab0
40703c:	89 45 0c             	mov    %eax,0xc(%ebp)
40703f:	8b 46 0c             	mov    0xc(%esi),%eax
407042:	59                   	pop    %ecx
407043:	a8 82                	test   $0x82,%al
407045:	75 17                	jne    0x40705e
407047:	e8 db d0 ff ff       	call   0x404127
40704c:	c7 00 09 00 00 00    	movl   $0x9,(%eax)
407052:	83 4e 0c 20          	orl    $0x20,0xc(%esi)
407056:	83 c8 ff             	or     $0xffffffff,%eax
407059:	e9 2f 01 00 00       	jmp    0x40718d
40705e:	a8 40                	test   $0x40,%al
407060:	74 0d                	je     0x40706f
407062:	e8 c0 d0 ff ff       	call   0x404127
407067:	c7 00 22 00 00 00    	movl   $0x22,(%eax)
40706d:	eb e3                	jmp    0x407052
40706f:	53                   	push   %ebx
407070:	33 db                	xor    %ebx,%ebx
407072:	a8 01                	test   $0x1,%al
407074:	74 16                	je     0x40708c
407076:	89 5e 04             	mov    %ebx,0x4(%esi)
407079:	a8 10                	test   $0x10,%al
40707b:	0f 84 87 00 00 00    	je     0x407108
407081:	8b 4e 08             	mov    0x8(%esi),%ecx
407084:	83 e0 fe             	and    $0xfffffffe,%eax
407087:	89 0e                	mov    %ecx,(%esi)
407089:	89 46 0c             	mov    %eax,0xc(%esi)
40708c:	8b 46 0c             	mov    0xc(%esi),%eax
40708f:	83 e0 ef             	and    $0xffffffef,%eax
407092:	83 c8 02             	or     $0x2,%eax
407095:	89 46 0c             	mov    %eax,0xc(%esi)
407098:	89 5e 04             	mov    %ebx,0x4(%esi)
40709b:	89 5d fc             	mov    %ebx,-0x4(%ebp)
40709e:	a9 0c 01 00 00       	test   $0x10c,%eax
4070a3:	75 2c                	jne    0x4070d1
4070a5:	e8 d9 b1 ff ff       	call   0x402283
4070aa:	83 c0 20             	add    $0x20,%eax
4070ad:	3b f0                	cmp    %eax,%esi
4070af:	74 0c                	je     0x4070bd
4070b1:	e8 cd b1 ff ff       	call   0x402283
4070b6:	83 c0 40             	add    $0x40,%eax
4070b9:	3b f0                	cmp    %eax,%esi
4070bb:	75 0d                	jne    0x4070ca
4070bd:	ff 75 0c             	push   0xc(%ebp)
4070c0:	e8 82 38 00 00       	call   0x40a947
4070c5:	59                   	pop    %ecx
4070c6:	85 c0                	test   %eax,%eax
4070c8:	75 07                	jne    0x4070d1
4070ca:	56                   	push   %esi
4070cb:	e8 ca 68 00 00       	call   0x40d99a
4070d0:	59                   	pop    %ecx
4070d1:	f7 46 0c 08 01 00 00 	testl  $0x108,0xc(%esi)
4070d8:	57                   	push   %edi
4070d9:	0f 84 80 00 00 00    	je     0x40715f
4070df:	8b 46 08             	mov    0x8(%esi),%eax
4070e2:	8b 3e                	mov    (%esi),%edi
4070e4:	8d 48 01             	lea    0x1(%eax),%ecx
4070e7:	89 0e                	mov    %ecx,(%esi)
4070e9:	8b 4e 18             	mov    0x18(%esi),%ecx
4070ec:	2b f8                	sub    %eax,%edi
4070ee:	49                   	dec    %ecx
4070ef:	89 4e 04             	mov    %ecx,0x4(%esi)
4070f2:	3b fb                	cmp    %ebx,%edi
4070f4:	7e 1d                	jle    0x407113
4070f6:	57                   	push   %edi
4070f7:	50                   	push   %eax
4070f8:	ff 75 0c             	push   0xc(%ebp)
4070fb:	e8 de 58 00 00       	call   0x40c9de
407100:	83 c4 0c             	add    $0xc,%esp
407103:	89 45 fc             	mov    %eax,-0x4(%ebp)
407106:	eb 4d                	jmp    0x407155
407108:	83 c8 20             	or     $0x20,%eax
40710b:	89 46 0c             	mov    %eax,0xc(%esi)
40710e:	83 c8 ff             	or     $0xffffffff,%eax
407111:	eb 79                	jmp    0x40718c
407113:	8b 4d 0c             	mov    0xc(%ebp),%ecx
407116:	83 f9 ff             	cmp    $0xffffffff,%ecx
407119:	74 1b                	je     0x407136
40711b:	83 f9 fe             	cmp    $0xfffffffe,%ecx
40711e:	74 16                	je     0x407136
407120:	8b c1                	mov    %ecx,%eax
407122:	83 e0 1f             	and    $0x1f,%eax
407125:	8b d1                	mov    %ecx,%edx
407127:	c1 fa 05             	sar    $0x5,%edx
40712a:	c1 e0 06             	shl    $0x6,%eax
40712d:	03 04 95 20 46 41 00 	add    0x414620(,%edx,4),%eax
407134:	eb 05                	jmp    0x40713b
407136:	b8 78 2b 41 00       	mov    $0x412b78,%eax
40713b:	f6 40 04 20          	testb  $0x20,0x4(%eax)
40713f:	74 14                	je     0x407155
407141:	6a 02                	push   $0x2
407143:	53                   	push   %ebx
407144:	53                   	push   %ebx
407145:	51                   	push   %ecx
407146:	e8 65 67 00 00       	call   0x40d8b0
40714b:	23 c2                	and    %edx,%eax
40714d:	83 c4 10             	add    $0x10,%esp
407150:	83 f8 ff             	cmp    $0xffffffff,%eax
407153:	74 25                	je     0x40717a
407155:	8b 46 08             	mov    0x8(%esi),%eax
407158:	8a 4d 08             	mov    0x8(%ebp),%cl
40715b:	88 08                	mov    %cl,(%eax)
40715d:	eb 16                	jmp    0x407175
40715f:	33 ff                	xor    %edi,%edi
407161:	47                   	inc    %edi
407162:	57                   	push   %edi
407163:	8d 45 08             	lea    0x8(%ebp),%eax
407166:	50                   	push   %eax
407167:	ff 75 0c             	push   0xc(%ebp)
40716a:	e8 6f 58 00 00       	call   0x40c9de
40716f:	83 c4 0c             	add    $0xc,%esp
407172:	89 45 fc             	mov    %eax,-0x4(%ebp)
407175:	39 7d fc             	cmp    %edi,-0x4(%ebp)
407178:	74 09                	je     0x407183
40717a:	83 4e 0c 20          	orl    $0x20,0xc(%esi)
40717e:	83 c8 ff             	or     $0xffffffff,%eax
407181:	eb 08                	jmp    0x40718b
407183:	8b 45 08             	mov    0x8(%ebp),%eax
407186:	25 ff 00 00 00       	and    $0xff,%eax
40718b:	5f                   	pop    %edi
40718c:	5b                   	pop    %ebx
40718d:	5e                   	pop    %esi
40718e:	c9                   	leave
40718f:	c3                   	ret
407190:	8b ff                	mov    %edi,%edi
407192:	55                   	push   %ebp
407193:	8b ec                	mov    %esp,%ebp
407195:	56                   	push   %esi
407196:	8b 75 08             	mov    0x8(%ebp),%esi
407199:	85 f6                	test   %esi,%esi
40719b:	75 15                	jne    0x4071b2
40719d:	e8 85 cf ff ff       	call   0x404127
4071a2:	c7 00 16 00 00 00    	movl   $0x16,(%eax)
4071a8:	e8 da ba ff ff       	call   0x402c87
4071ad:	e9 fa 00 00 00       	jmp    0x4072ac
4071b2:	8b 46 0c             	mov    0xc(%esi),%eax
4071b5:	a8 83                	test   $0x83,%al
4071b7:	0f 84 ef 00 00 00    	je     0x4072ac
4071bd:	a8 40                	test   $0x40,%al
4071bf:	0f 85 e7 00 00 00    	jne    0x4072ac
4071c5:	a8 02                	test   $0x2,%al
4071c7:	74 0b                	je     0x4071d4
4071c9:	83 c8 20             	or     $0x20,%eax
4071cc:	89 46 0c             	mov    %eax,0xc(%esi)
4071cf:	e9 d8 00 00 00       	jmp    0x4072ac
4071d4:	83 c8 01             	or     $0x1,%eax
4071d7:	89 46 0c             	mov    %eax,0xc(%esi)
4071da:	a9 0c 01 00 00       	test   $0x10c,%eax
4071df:	75 09                	jne    0x4071ea
4071e1:	56                   	push   %esi
4071e2:	e8 b3 67 00 00       	call   0x40d99a
4071e7:	59                   	pop    %ecx
4071e8:	eb 05                	jmp    0x4071ef
4071ea:	8b 46 08             	mov    0x8(%esi),%eax
4071ed:	89 06                	mov    %eax,(%esi)
4071ef:	ff 76 18             	push   0x18(%esi)
4071f2:	ff 76 08             	push   0x8(%esi)
4071f5:	56                   	push   %esi
4071f6:	e8 b5 b8 ff ff       	call   0x402ab0
4071fb:	59                   	pop    %ecx
4071fc:	50                   	push   %eax
4071fd:	e8 67 06 00 00       	call   0x407869
407202:	83 c4 0c             	add    $0xc,%esp
407205:	89 46 04             	mov    %eax,0x4(%esi)
407208:	85 c0                	test   %eax,%eax
40720a:	0f 84 8b 00 00 00    	je     0x40729b
407210:	83 f8 ff             	cmp    $0xffffffff,%eax
407213:	0f 84 82 00 00 00    	je     0x40729b
407219:	f6 46 0c 82          	testb  $0x82,0xc(%esi)
40721d:	75 51                	jne    0x407270
40721f:	56                   	push   %esi
407220:	e8 8b b8 ff ff       	call   0x402ab0
407225:	59                   	pop    %ecx
407226:	83 f8 ff             	cmp    $0xffffffff,%eax
407229:	74 30                	je     0x40725b
40722b:	56                   	push   %esi
40722c:	e8 7f b8 ff ff       	call   0x402ab0
407231:	59                   	pop    %ecx
407232:	83 f8 fe             	cmp    $0xfffffffe,%eax
407235:	74 24                	je     0x40725b
407237:	57                   	push   %edi
407238:	56                   	push   %esi
407239:	e8 72 b8 ff ff       	call   0x402ab0
40723e:	c1 f8 05             	sar    $0x5,%eax
407241:	56                   	push   %esi
407242:	8d 3c 85 20 46 41 00 	lea    0x414620(,%eax,4),%edi
407249:	e8 62 b8 ff ff       	call   0x402ab0
40724e:	83 e0 1f             	and    $0x1f,%eax
407251:	59                   	pop    %ecx
407252:	c1 e0 06             	shl    $0x6,%eax
407255:	03 07                	add    (%edi),%eax
407257:	59                   	pop    %ecx
407258:	5f                   	pop    %edi
407259:	eb 05                	jmp    0x407260
40725b:	b8 78 2b 41 00       	mov    $0x412b78,%eax
407260:	8a 40 04             	mov    0x4(%eax),%al
407263:	24 82                	and    $0x82,%al
407265:	3c 82                	cmp    $0x82,%al
407267:	75 07                	jne    0x407270
407269:	81 4e 0c 00 20 00 00 	orl    $0x2000,0xc(%esi)
407270:	81 7e 18 00 02 00 00 	cmpl   $0x200,0x18(%esi)
407277:	75 15                	jne    0x40728e
407279:	8b 46 0c             	mov    0xc(%esi),%eax
40727c:	a8 08                	test   $0x8,%al
40727e:	74 0e                	je     0x40728e
407280:	a9 00 04 00 00       	test   $0x400,%eax
407285:	75 07                	jne    0x40728e
407287:	c7 46 18 00 10 00 00 	movl   $0x1000,0x18(%esi)
40728e:	8b 0e                	mov    (%esi),%ecx
407290:	ff 4e 04             	decl   0x4(%esi)
407293:	0f b6 01             	movzbl (%ecx),%eax
407296:	41                   	inc    %ecx
407297:	89 0e                	mov    %ecx,(%esi)
407299:	eb 14                	jmp    0x4072af
40729b:	f7 d8                	neg    %eax
40729d:	1b c0                	sbb    %eax,%eax
40729f:	83 e0 10             	and    $0x10,%eax
4072a2:	83 c0 10             	add    $0x10,%eax
4072a5:	09 46 0c             	or     %eax,0xc(%esi)
4072a8:	83 66 04 00          	andl   $0x0,0x4(%esi)
4072ac:	83 c8 ff             	or     $0xffffffff,%eax
4072af:	5e                   	pop    %esi
4072b0:	5d                   	pop    %ebp
4072b1:	c3                   	ret
4072b2:	8b ff                	mov    %edi,%edi
4072b4:	55                   	push   %ebp
4072b5:	8b ec                	mov    %esp,%ebp
4072b7:	83 ec 1c             	sub    $0x1c,%esp
4072ba:	8b 55 10             	mov    0x10(%ebp),%edx
4072bd:	56                   	push   %esi
4072be:	8b 75 08             	mov    0x8(%ebp),%esi
4072c1:	6a fe                	push   $0xfffffffe
4072c3:	58                   	pop    %eax
4072c4:	89 45 ec             	mov    %eax,-0x14(%ebp)
4072c7:	89 55 e4             	mov    %edx,-0x1c(%ebp)
4072ca:	3b f0                	cmp    %eax,%esi
4072cc:	75 1b                	jne    0x4072e9
4072ce:	e8 67 ce ff ff       	call   0x40413a
4072d3:	83 20 00             	andl   $0x0,(%eax)
4072d6:	e8 4c ce ff ff       	call   0x404127
4072db:	c7 00 09 00 00 00    	movl   $0x9,(%eax)
4072e1:	83 c8 ff             	or     $0xffffffff,%eax
4072e4:	e9 7d 05 00 00       	jmp    0x407866
4072e9:	53                   	push   %ebx
4072ea:	33 db                	xor    %ebx,%ebx
4072ec:	3b f3                	cmp    %ebx,%esi
4072ee:	7c 08                	jl     0x4072f8
4072f0:	3b 35 00 46 41 00    	cmp    0x414600,%esi
4072f6:	72 1f                	jb     0x407317
4072f8:	e8 3d ce ff ff       	call   0x40413a
4072fd:	89 18                	mov    %ebx,(%eax)
4072ff:	e8 23 ce ff ff       	call   0x404127
407304:	c7 00 09 00 00 00    	movl   $0x9,(%eax)
40730a:	e8 78 b9 ff ff       	call   0x402c87
40730f:	83 c8 ff             	or     $0xffffffff,%eax
407312:	e9 4e 05 00 00       	jmp    0x407865
407317:	8b c6                	mov    %esi,%eax
407319:	c1 f8 05             	sar    $0x5,%eax
40731c:	57                   	push   %edi
40731d:	83 e6 1f             	and    $0x1f,%esi
407320:	8d 3c 85 20 46 41 00 	lea    0x414620(,%eax,4),%edi
407327:	8b 07                	mov    (%edi),%eax
407329:	c1 e6 06             	shl    $0x6,%esi
40732c:	8a 4c 30 04          	mov    0x4(%eax,%esi,1),%cl
407330:	f6 c1 01             	test   $0x1,%cl
407333:	75 14                	jne    0x407349
407335:	e8 00 ce ff ff       	call   0x40413a
40733a:	89 18                	mov    %ebx,(%eax)
40733c:	e8 e6 cd ff ff       	call   0x404127
407341:	c7 00 09 00 00 00    	movl   $0x9,(%eax)
407347:	eb 68                	jmp    0x4073b1
407349:	81 fa ff ff ff 7f    	cmp    $0x7fffffff,%edx
40734f:	77 4e                	ja     0x40739f
407351:	89 5d f4             	mov    %ebx,-0xc(%ebp)
407354:	3b d3                	cmp    %ebx,%edx
407356:	0f 84 06 05 00 00    	je     0x407862
40735c:	f6 c1 02             	test   $0x2,%cl
40735f:	0f 85 fd 04 00 00    	jne    0x407862
407365:	39 5d 0c             	cmp    %ebx,0xc(%ebp)
407368:	74 35                	je     0x40739f
40736a:	8a 44 30 24          	mov    0x24(%eax,%esi,1),%al
40736e:	02 c0                	add    %al,%al
407370:	d0 f8                	sar    $1,%al
407372:	88 45 fe             	mov    %al,-0x2(%ebp)
407375:	0f be c0             	movsbl %al,%eax
407378:	48                   	dec    %eax
407379:	6a 04                	push   $0x4
40737b:	59                   	pop    %ecx
40737c:	74 19                	je     0x407397
40737e:	48                   	dec    %eax
40737f:	75 0e                	jne    0x40738f
407381:	8b c2                	mov    %edx,%eax
407383:	f7 d0                	not    %eax
407385:	a8 01                	test   $0x1,%al
407387:	74 16                	je     0x40739f
407389:	83 e2 fe             	and    $0xfffffffe,%edx
40738c:	89 55 10             	mov    %edx,0x10(%ebp)
40738f:	8b 5d 0c             	mov    0xc(%ebp),%ebx
407392:	89 5d f0             	mov    %ebx,-0x10(%ebp)
407395:	eb 7a                	jmp    0x407411
407397:	8b c2                	mov    %edx,%eax
407399:	f7 d0                	not    %eax
40739b:	a8 01                	test   $0x1,%al
40739d:	75 19                	jne    0x4073b8
40739f:	e8 96 cd ff ff       	call   0x40413a
4073a4:	89 18                	mov    %ebx,(%eax)
4073a6:	e8 7c cd ff ff       	call   0x404127
4073ab:	c7 00 16 00 00 00    	movl   $0x16,(%eax)
4073b1:	e8 d1 b8 ff ff       	call   0x402c87
4073b6:	eb 36                	jmp    0x4073ee
4073b8:	8b c2                	mov    %edx,%eax
4073ba:	d1 e8                	shr    $1,%eax
4073bc:	89 4d 10             	mov    %ecx,0x10(%ebp)
4073bf:	3b c1                	cmp    %ecx,%eax
4073c1:	72 03                	jb     0x4073c6
4073c3:	89 45 10             	mov    %eax,0x10(%ebp)
4073c6:	ff 75 10             	push   0x10(%ebp)
4073c9:	e8 f1 f4 ff ff       	call   0x4068bf
4073ce:	8b d8                	mov    %eax,%ebx
4073d0:	59                   	pop    %ecx
4073d1:	89 5d f0             	mov    %ebx,-0x10(%ebp)
4073d4:	85 db                	test   %ebx,%ebx
4073d6:	75 1e                	jne    0x4073f6
4073d8:	e8 4a cd ff ff       	call   0x404127
4073dd:	c7 00 0c 00 00 00    	movl   $0xc,(%eax)
4073e3:	e8 52 cd ff ff       	call   0x40413a
4073e8:	c7 00 08 00 00 00    	movl   $0x8,(%eax)
4073ee:	83 c8 ff             	or     $0xffffffff,%eax
4073f1:	e9 6e 04 00 00       	jmp    0x407864
4073f6:	6a 01                	push   $0x1
4073f8:	6a 00                	push   $0x0
4073fa:	6a 00                	push   $0x0
4073fc:	ff 75 08             	push   0x8(%ebp)
4073ff:	e8 27 64 00 00       	call   0x40d82b
407404:	8b 0f                	mov    (%edi),%ecx
407406:	89 44 0e 28          	mov    %eax,0x28(%esi,%ecx,1)
40740a:	83 c4 10             	add    $0x10,%esp
40740d:	89 54 0e 2c          	mov    %edx,0x2c(%esi,%ecx,1)
407411:	8b 0f                	mov    (%edi),%ecx
407413:	03 ce                	add    %esi,%ecx
407415:	f6 41 04 48          	testb  $0x48,0x4(%ecx)
407419:	8b c3                	mov    %ebx,%eax
40741b:	74 7a                	je     0x407497
40741d:	8a 49 05             	mov    0x5(%ecx),%cl
407420:	80 f9 0a             	cmp    $0xa,%cl
407423:	74 72                	je     0x407497
407425:	83 7d 10 00          	cmpl   $0x0,0x10(%ebp)
407429:	74 6c                	je     0x407497
40742b:	ff 4d 10             	decl   0x10(%ebp)