40e1c7:	8b 38                	mov    (%eax),%edi
40e1c9:	8b 46 04             	mov    0x4(%esi),%eax
40e1cc:	83 e7 fe             	and    $0xfffffffe,%edi
40e1cf:	ff 30                	push   (%eax)
40e1d1:	e8 fb f2 ff ff       	call   0x40d4d1
40e1d6:	8b 46 04             	mov    0x4(%esi),%eax
40e1d9:	ff 30                	push   (%eax)
40e1db:	e8 50 57 00 00       	call   0x413930
40e1e0:	8b 46 04             	mov    0x4(%esi),%eax
40e1e3:	59                   	pop    %ecx
40e1e4:	59                   	pop    %ecx
40e1e5:	b9 1f f8 ff ff       	mov    $0xfffff81f,%ecx
40e1ea:	8b 00                	mov    (%eax),%eax
40e1ec:	83 c0 0c             	add    $0xc,%eax
40e1ef:	f0 21 08             	lock and %ecx,(%eax)
40e1f2:	8b 46 08             	mov    0x8(%esi),%eax
40e1f5:	f6 00 04             	testb  $0x4,(%eax)
40e1f8:	74 14                	je     0x40e20e
40e1fa:	8b 4e 04             	mov    0x4(%esi),%ecx
40e1fd:	68 00 04 00 00       	push   $0x400
40e202:	6a 02                	push   $0x2
40e204:	8b 01                	mov    (%ecx),%eax
40e206:	83 c0 14             	add    $0x14,%eax
40e209:	50                   	push   %eax
40e20a:	ff 31                	push   (%ecx)
40e20c:	eb 41                	jmp    0x40e24f
40e20e:	8b 46 0c             	mov    0xc(%esi),%eax
40e211:	8b 00                	mov    (%eax),%eax
40e213:	85 c0                	test   %eax,%eax
40e215:	75 2c                	jne    0x40e243
40e217:	6a 01                	push   $0x1
40e219:	57                   	push   %edi
40e21a:	e8 8f 4e 00 00       	call   0x4130ae
40e21f:	6a 00                	push   $0x0
40e221:	8b d8                	mov    %eax,%ebx
40e223:	e8 e3 4e 00 00       	call   0x41310b
40e228:	83 c4 0c             	add    $0xc,%esp
40e22b:	85 db                	test   %ebx,%ebx
40e22d:	75 0b                	jne    0x40e23a
40e22f:	ff 05 1c 46 43 00    	incl   0x43461c
40e235:	83 c8 ff             	or     $0xffffffff,%eax
40e238:	eb 1d                	jmp    0x40e257
40e23a:	68 40 01 00 00       	push   $0x140
40e23f:	57                   	push   %edi
40e240:	53                   	push   %ebx
40e241:	eb 07                	jmp    0x40e24a
40e243:	68 80 01 00 00       	push   $0x180
40e248:	57                   	push   %edi
40e249:	50                   	push   %eax
40e24a:	8b 46 04             	mov    0x4(%esi),%eax
40e24d:	ff 30                	push   (%eax)
40e24f:	e8 07 00 00 00       	call   0x40e25b
40e254:	83 c4 10             	add    $0x10,%esp
40e257:	5f                   	pop    %edi
40e258:	5e                   	pop    %esi
40e259:	5b                   	pop    %ebx
40e25a:	c3                   	ret
40e25b:	8b ff                	mov    %edi,%edi
40e25d:	55                   	push   %ebp
40e25e:	8b ec                	mov    %esp,%ebp
40e260:	8b 45 08             	mov    0x8(%ebp),%eax
40e263:	8b 4d 14             	mov    0x14(%ebp),%ecx
40e266:	83 c0 0c             	add    $0xc,%eax
40e269:	f0 09 08             	lock or %ecx,(%eax)
40e26c:	8b 4d 08             	mov    0x8(%ebp),%ecx
40e26f:	8b 45 10             	mov    0x10(%ebp),%eax
40e272:	89 41 18             	mov    %eax,0x18(%ecx)
40e275:	8b 45 08             	mov    0x8(%ebp),%eax
40e278:	8b 4d 0c             	mov    0xc(%ebp),%ecx
40e27b:	89 08                	mov    %ecx,(%eax)
40e27d:	8b 45 08             	mov    0x8(%ebp),%eax
40e280:	89 48 04             	mov    %ecx,0x4(%eax)
40e283:	8b 45 08             	mov    0x8(%ebp),%eax
40e286:	83 60 08 00          	andl   $0x0,0x8(%eax)
40e28a:	33 c0                	xor    %eax,%eax
40e28c:	5d                   	pop    %ebp
40e28d:	c3                   	ret
40e28e:	8b ff                	mov    %edi,%edi
40e290:	55                   	push   %ebp
40e291:	8b ec                	mov    %esp,%ebp
40e293:	83 ec 20             	sub    $0x20,%esp
40e296:	8b 4d 08             	mov    0x8(%ebp),%ecx
40e299:	89 4d f8             	mov    %ecx,-0x8(%ebp)
40e29c:	85 c9                	test   %ecx,%ecx
40e29e:	75 15                	jne    0x40e2b5
40e2a0:	e8 56 0b 00 00       	call   0x40edfb
40e2a5:	c7 00 16 00 00 00    	movl   $0x16,(%eax)
40e2ab:	e8 d1 ed ff ff       	call   0x40d081
40e2b0:	83 c8 ff             	or     $0xffffffff,%eax
40e2b3:	c9                   	leave
40e2b4:	c3                   	ret
40e2b5:	8b 45 10             	mov    0x10(%ebp),%eax
40e2b8:	83 f8 04             	cmp    $0x4,%eax
40e2bb:	74 09                	je     0x40e2c6
40e2bd:	85 c0                	test   %eax,%eax
40e2bf:	74 0e                	je     0x40e2cf
40e2c1:	83 f8 40             	cmp    $0x40,%eax
40e2c4:	75 da                	jne    0x40e2a0
40e2c6:	85 c0                	test   %eax,%eax
40e2c8:	74 05                	je     0x40e2cf
40e2ca:	83 f8 40             	cmp    $0x40,%eax
40e2cd:	75 0d                	jne    0x40e2dc
40e2cf:	8b 45 14             	mov    0x14(%ebp),%eax
40e2d2:	83 c0 fe             	add    $0xfffffffe,%eax
40e2d5:	3d fd ff ff 7f       	cmp    $0x7ffffffd,%eax
40e2da:	77 c4                	ja     0x40e2a0
40e2dc:	8d 45 14             	lea    0x14(%ebp),%eax
40e2df:	89 4d f4             	mov    %ecx,-0xc(%ebp)
40e2e2:	89 45 e0             	mov    %eax,-0x20(%ebp)
40e2e5:	8d 45 f8             	lea    -0x8(%ebp),%eax
40e2e8:	89 45 e4             	mov    %eax,-0x1c(%ebp)
40e2eb:	8d 45 10             	lea    0x10(%ebp),%eax
40e2ee:	89 45 e8             	mov    %eax,-0x18(%ebp)
40e2f1:	8d 45 0c             	lea    0xc(%ebp),%eax
40e2f4:	89 45 ec             	mov    %eax,-0x14(%ebp)
40e2f7:	8d 45 f4             	lea    -0xc(%ebp),%eax
40e2fa:	50                   	push   %eax
40e2fb:	8d 45 e0             	lea    -0x20(%ebp),%eax
40e2fe:	89 4d f0             	mov    %ecx,-0x10(%ebp)
40e301:	50                   	push   %eax
40e302:	8d 45 f0             	lea    -0x10(%ebp),%eax
40e305:	50                   	push   %eax
40e306:	8d 4d ff             	lea    -0x1(%ebp),%ecx
40e309:	e8 55 fe ff ff       	call   0x40e163
40e30e:	c9                   	leave
40e30f:	c3                   	ret
40e310:	8b ff                	mov    %edi,%edi
40e312:	55                   	push   %ebp
40e313:	8b ec                	mov    %esp,%ebp
40e315:	53                   	push   %ebx
40e316:	56                   	push   %esi
40e317:	8b 75 0c             	mov    0xc(%ebp),%esi
40e31a:	57                   	push   %edi
40e31b:	8d 56 0c             	lea    0xc(%esi),%edx
40e31e:	8b 02                	mov    (%edx),%eax
40e320:	90                   	nop
40e321:	c1 e8 0c             	shr    $0xc,%eax
40e324:	a8 01                	test   $0x1,%al
40e326:	75 73                	jne    0x40e39b
40e328:	56                   	push   %esi
40e329:	e8 60 6c 00 00       	call   0x414f8e
40e32e:	bf 90 31 43 00       	mov    $0x433190,%edi
40e333:	59                   	pop    %ecx
40e334:	83 f8 ff             	cmp    $0xffffffff,%eax
40e337:	74 1b                	je     0x40e354
40e339:	83 f8 fe             	cmp    $0xfffffffe,%eax
40e33c:	74 16                	je     0x40e354
40e33e:	8b d0                	mov    %eax,%edx
40e340:	8b c8                	mov    %eax,%ecx
40e342:	83 e2 3f             	and    $0x3f,%edx
40e345:	c1 f9 06             	sar    $0x6,%ecx
40e348:	6b da 38             	imul   $0x38,%edx,%ebx
40e34b:	03 1c 8d c0 4a 43 00 	add    0x434ac0(,%ecx,4),%ebx
40e352:	eb 0c                	jmp    0x40e360
40e354:	8b c8                	mov    %eax,%ecx
40e356:	8b d0                	mov    %eax,%edx
40e358:	c1 f9 06             	sar    $0x6,%ecx
40e35b:	8b df                	mov    %edi,%ebx
40e35d:	83 e2 3f             	and    $0x3f,%edx
40e360:	80 7b 29 00          	cmpb   $0x0,0x29(%ebx)
40e364:	75 1a                	jne    0x40e380
40e366:	83 f8 ff             	cmp    $0xffffffff,%eax
40e369:	74 0f                	je     0x40e37a
40e36b:	83 f8 fe             	cmp    $0xfffffffe,%eax
40e36e:	74 0a                	je     0x40e37a
40e370:	6b fa 38             	imul   $0x38,%edx,%edi
40e373:	03 3c 8d c0 4a 43 00 	add    0x434ac0(,%ecx,4),%edi
40e37a:	f6 47 2d 01          	testb  $0x1,0x2d(%edi)
40e37e:	74 18                	je     0x40e398
40e380:	e8 76 0a 00 00       	call   0x40edfb
40e385:	c7 00 16 00 00 00    	movl   $0x16,(%eax)
40e38b:	e8 f1 ec ff ff       	call   0x40d081
40e390:	83 c8 ff             	or     $0xffffffff,%eax
40e393:	5f                   	pop    %edi
40e394:	5e                   	pop    %esi
40e395:	5b                   	pop    %ebx
40e396:	5d                   	pop    %ebp
40e397:	c3                   	ret
40e398:	8d 56 0c             	lea    0xc(%esi),%edx
40e39b:	8b 5d 08             	mov    0x8(%ebp),%ebx
40e39e:	83 fb ff             	cmp    $0xffffffff,%ebx
40e3a1:	74 ed                	je     0x40e390
40e3a3:	8b 02                	mov    (%edx),%eax
40e3a5:	90                   	nop
40e3a6:	8b 0a                	mov    (%edx),%ecx
40e3a8:	90                   	nop
40e3a9:	a8 01                	test   $0x1,%al
40e3ab:	75 08                	jne    0x40e3b5
40e3ad:	83 e1 06             	and    $0x6,%ecx
40e3b0:	80 f9 06             	cmp    $0x6,%cl
40e3b3:	75 db                	jne    0x40e390
40e3b5:	8b 46 04             	mov    0x4(%esi),%eax
40e3b8:	85 c0                	test   %eax,%eax
40e3ba:	75 0d                	jne    0x40e3c9
40e3bc:	56                   	push   %esi
40e3bd:	e8 a6 99 00 00       	call   0x417d68
40e3c2:	8b 46 04             	mov    0x4(%esi),%eax
40e3c5:	8d 56 0c             	lea    0xc(%esi),%edx
40e3c8:	59                   	pop    %ecx
40e3c9:	8b 0e                	mov    (%esi),%ecx
40e3cb:	3b c8                	cmp    %eax,%ecx
40e3cd:	75 0b                	jne    0x40e3da
40e3cf:	83 7e 08 00          	cmpl   $0x0,0x8(%esi)
40e3d3:	75 bb                	jne    0x40e390
40e3d5:	8d 41 01             	lea    0x1(%ecx),%eax
40e3d8:	89 06                	mov    %eax,(%esi)
40e3da:	8b 02                	mov    (%edx),%eax
40e3dc:	90                   	nop
40e3dd:	8b 0e                	mov    (%esi),%ecx
40e3df:	c1 e8 0c             	shr    $0xc,%eax
40e3e2:	49                   	dec    %ecx
40e3e3:	89 0e                	mov    %ecx,(%esi)
40e3e5:	24 01                	and    $0x1,%al
40e3e7:	74 0b                	je     0x40e3f4
40e3e9:	38 19                	cmp    %bl,(%ecx)
40e3eb:	74 09                	je     0x40e3f6
40e3ed:	8d 41 01             	lea    0x1(%ecx),%eax
40e3f0:	89 06                	mov    %eax,(%esi)
40e3f2:	eb 9c                	jmp    0x40e390
40e3f4:	88 19                	mov    %bl,(%ecx)
40e3f6:	ff 46 08             	incl   0x8(%esi)
40e3f9:	6a f7                	push   $0xfffffff7
40e3fb:	58                   	pop    %eax
40e3fc:	f0 21 02             	lock and %eax,(%edx)
40e3ff:	33 c0                	xor    %eax,%eax
40e401:	40                   	inc    %eax
40e402:	f0 09 02             	lock or %eax,(%edx)
40e405:	0f b6 c3             	movzbl %bl,%eax
40e408:	eb 89                	jmp    0x40e393
40e40a:	6a 0c                	push   $0xc
40e40c:	68 f8 15 43 00       	push   $0x4315f8
40e411:	e8 aa 9b ff ff       	call   0x407fc0
40e416:	8b 75 0c             	mov    0xc(%ebp),%esi
40e419:	85 f6                	test   %esi,%esi
40e41b:	75 15                	jne    0x40e432
40e41d:	e8 d9 09 00 00       	call   0x40edfb
40e422:	c7 00 16 00 00 00    	movl   $0x16,(%eax)
40e428:	e8 54 ec ff ff       	call   0x40d081
40e42d:	83 c8 ff             	or     $0xffffffff,%eax
40e430:	eb 2d                	jmp    0x40e45f
40e432:	83 4d e4 ff          	orl    $0xffffffff,-0x1c(%ebp)
40e436:	56                   	push   %esi
40e437:	e8 4a d3 ff ff       	call   0x40b786
40e43c:	59                   	pop    %ecx
40e43d:	83 65 fc 00          	andl   $0x0,-0x4(%ebp)
40e441:	56                   	push   %esi
40e442:	ff 75 08             	push   0x8(%ebp)
40e445:	e8 c6 fe ff ff       	call   0x40e310
40e44a:	59                   	pop    %ecx
40e44b:	59                   	pop    %ecx
40e44c:	8b f8                	mov    %eax,%edi
40e44e:	89 7d e4             	mov    %edi,-0x1c(%ebp)
40e451:	c7 45 fc fe ff ff ff 	movl   $0xfffffffe,-0x4(%ebp)
40e458:	e8 18 00 00 00       	call   0x40e475
40e45d:	8b c7                	mov    %edi,%eax
40e45f:	8b 4d f0             	mov    -0x10(%ebp),%ecx
40e462:	64 89 0d 00 00 00 00 	mov    %ecx,%fs:0x0
40e469:	59                   	pop    %ecx
40e46a:	5f                   	pop    %edi
40e46b:	5e                   	pop    %esi
40e46c:	5b                   	pop    %ebx
40e46d:	c9                   	leave
40e46e:	c3                   	ret
40e46f:	8b 75 0c             	mov    0xc(%ebp),%esi
40e472:	8b 7d e4             	mov    -0x1c(%ebp),%edi
40e475:	56                   	push   %esi
40e476:	e8 1f d3 ff ff       	call   0x40b79a
40e47b:	59                   	pop    %ecx
40e47c:	c3                   	ret
40e47d:	8b ff                	mov    %edi,%edi
40e47f:	55                   	push   %ebp
40e480:	8b ec                	mov    %esp,%ebp
40e482:	5d                   	pop    %ebp
40e483:	e9 de 56 00 00       	jmp    0x413b66
40e488:	6a 0c                	push   $0xc
40e48a:	68 18 16 43 00       	push   $0x431618
40e48f:	e8 2c 9b ff ff       	call   0x407fc0
40e494:	83 65 e4 00          	andl   $0x0,-0x1c(%ebp)
40e498:	8b 45 08             	mov    0x8(%ebp),%eax
40e49b:	ff 30                	push   (%eax)
40e49d:	e8 81 ec ff ff       	call   0x40d123
40e4a2:	59                   	pop    %ecx
40e4a3:	83 65 fc 00          	andl   $0x0,-0x4(%ebp)
40e4a7:	8b 4d 0c             	mov    0xc(%ebp),%ecx
40e4aa:	e8 34 00 00 00       	call   0x40e4e3
40e4af:	8b f0                	mov    %eax,%esi
40e4b1:	89 75 e4             	mov    %esi,-0x1c(%ebp)
40e4b4:	c7 45 fc fe ff ff ff 	movl   $0xfffffffe,-0x4(%ebp)
40e4bb:	e8 17 00 00 00       	call   0x40e4d7
40e4c0:	8b c6                	mov    %esi,%eax
40e4c2:	8b 4d f0             	mov    -0x10(%ebp),%ecx
40e4c5:	64 89 0d 00 00 00 00 	mov    %ecx,%fs:0x0
40e4cc:	59                   	pop    %ecx
40e4cd:	5f                   	pop    %edi
40e4ce:	5e                   	pop    %esi
40e4cf:	5b                   	pop    %ebx
40e4d0:	c9                   	leave
40e4d1:	c2 0c 00             	ret    $0xc
40e4d4:	8b 75 e4             	mov    -0x1c(%ebp),%esi
40e4d7:	8b 45 10             	mov    0x10(%ebp),%eax
40e4da:	ff 30                	push   (%eax)
40e4dc:	e8 8a ec ff ff       	call   0x40d16b
40e4e1:	59                   	pop    %ecx
40e4e2:	c3                   	ret
40e4e3:	8b ff                	mov    %edi,%edi
40e4e5:	55                   	push   %ebp
40e4e6:	8b ec                	mov    %esp,%ebp
40e4e8:	83 ec 10             	sub    $0x10,%esp
40e4eb:	53                   	push   %ebx
40e4ec:	56                   	push   %esi
40e4ed:	8b f1                	mov    %ecx,%esi
40e4ef:	57                   	push   %edi
40e4f0:	8b 46 04             	mov    0x4(%esi),%eax
40e4f3:	ff 30                	push   (%eax)
40e4f5:	8b 06                	mov    (%esi),%eax
40e4f7:	ff 30                	push   (%eax)
40e4f9:	e8 44 01 00 00       	call   0x40e642
40e4fe:	8b f8                	mov    %eax,%edi
40e500:	59                   	pop    %ecx
40e501:	59                   	pop    %ecx
40e502:	85 ff                	test   %edi,%edi
40e504:	74 43                	je     0x40e549
40e506:	e8 c8 5c 00 00       	call   0x4141d3
40e50b:	89 45 f8             	mov    %eax,-0x8(%ebp)
40e50e:	33 db                	xor    %ebx,%ebx
40e510:	8b 48 4c             	mov    0x4c(%eax),%ecx
40e513:	89 4d f0             	mov    %ecx,-0x10(%ebp)
40e516:	8b 48 48             	mov    0x48(%eax),%ecx
40e519:	8d 45 f0             	lea    -0x10(%ebp),%eax
40e51c:	50                   	push   %eax
40e51d:	53                   	push   %ebx
40e51e:	57                   	push   %edi
40e51f:	53                   	push   %ebx
40e520:	8d 45 fc             	lea    -0x4(%ebp),%eax
40e523:	89 4d f4             	mov    %ecx,-0xc(%ebp)
40e526:	53                   	push   %ebx
40e527:	50                   	push   %eax
40e528:	89 5d fc             	mov    %ebx,-0x4(%ebp)
40e52b:	e8 d6 9d 00 00       	call   0x418306
40e530:	83 c4 18             	add    $0x18,%esp
40e533:	85 c0                	test   %eax,%eax
40e535:	74 19                	je     0x40e550
40e537:	83 f8 16             	cmp    $0x16,%eax
40e53a:	0f 84 f7 00 00 00    	je     0x40e637
40e540:	83 f8 22             	cmp    $0x22,%eax
40e543:	0f 84 ee 00 00 00    	je     0x40e637
40e549:	33 c0                	xor    %eax,%eax
40e54b:	5f                   	pop    %edi
40e54c:	5e                   	pop    %esi
40e54d:	5b                   	pop    %ebx