40f157:	83 c4 10             	add    $0x10,%esp
40f15a:	85 c0                	test   %eax,%eax
40f15c:	75 1c                	jne    0x40f17a
40f15e:	8b 4d 14             	mov    0x14(%ebp),%ecx
40f161:	56                   	push   %esi
40f162:	e8 fb 01 00 00       	call   0x40f362
40f167:	6a 00                	push   $0x0
40f169:	8b f0                	mov    %eax,%esi
40f16b:	e8 b4 a6 ff ff       	call   0x409824
40f170:	59                   	pop    %ecx
40f171:	8b c6                	mov    %esi,%eax
40f173:	5e                   	pop    %esi
40f174:	5f                   	pop    %edi
40f175:	5b                   	pop    %ebx
40f176:	8b e5                	mov    %ebp,%esp
40f178:	5d                   	pop    %ebp
40f179:	c3                   	ret
40f17a:	33 c0                	xor    %eax,%eax
40f17c:	50                   	push   %eax
40f17d:	50                   	push   %eax
40f17e:	50                   	push   %eax
40f17f:	50                   	push   %eax
40f180:	50                   	push   %eax
40f181:	e8 d5 8a ff ff       	call   0x407c5b
40f186:	cc                   	int3
40f187:	8b ff                	mov    %edi,%edi
40f189:	55                   	push   %ebp
40f18a:	8b ec                	mov    %esp,%ebp
40f18c:	81 ec 60 02 00 00    	sub    $0x260,%esp
40f192:	a1 0c 30 42 00       	mov    0x42300c,%eax
40f197:	33 c5                	xor    %ebp,%eax
40f199:	89 45 fc             	mov    %eax,-0x4(%ebp)
40f19c:	8b 55 10             	mov    0x10(%ebp),%edx
40f19f:	8b 4d 0c             	mov    0xc(%ebp),%ecx
40f1a2:	53                   	push   %ebx
40f1a3:	8b 5d 08             	mov    0x8(%ebp),%ebx
40f1a6:	56                   	push   %esi
40f1a7:	57                   	push   %edi
40f1a8:	6a 5c                	push   $0x5c
40f1aa:	5e                   	pop    %esi
40f1ab:	6a 3a                	push   $0x3a
40f1ad:	89 95 a8 fd ff ff    	mov    %edx,-0x258(%ebp)
40f1b3:	c7 85 a4 fd ff ff 2f 	movl   $0x2f,-0x25c(%ebp)
40f1ba:	00 00 00
40f1bd:	5f                   	pop    %edi
40f1be:	eb 19                	jmp    0x40f1d9
40f1c0:	0f b7 01             	movzwl (%ecx),%eax
40f1c3:	66 3b 85 a4 fd ff ff 	cmp    -0x25c(%ebp),%ax
40f1ca:	74 11                	je     0x40f1dd
40f1cc:	66 3b c6             	cmp    %si,%ax
40f1cf:	74 0c                	je     0x40f1dd
40f1d1:	66 3b c7             	cmp    %di,%ax
40f1d4:	74 07                	je     0x40f1dd
40f1d6:	83 e9 02             	sub    $0x2,%ecx
40f1d9:	3b cb                	cmp    %ebx,%ecx
40f1db:	75 e3                	jne    0x40f1c0
40f1dd:	0f b7 31             	movzwl (%ecx),%esi
40f1e0:	66 3b f7             	cmp    %di,%si
40f1e3:	75 1a                	jne    0x40f1ff
40f1e5:	8d 43 02             	lea    0x2(%ebx),%eax
40f1e8:	3b c8                	cmp    %eax,%ecx
40f1ea:	74 13                	je     0x40f1ff
40f1ec:	52                   	push   %edx
40f1ed:	33 ff                	xor    %edi,%edi
40f1ef:	57                   	push   %edi
40f1f0:	57                   	push   %edi
40f1f1:	53                   	push   %ebx
40f1f2:	e8 f2 fe ff ff       	call   0x40f0e9
40f1f7:	83 c4 10             	add    $0x10,%esp
40f1fa:	e9 87 00 00 00       	jmp    0x40f286
40f1ff:	6a 2f                	push   $0x2f
40f201:	8b c6                	mov    %esi,%eax
40f203:	33 ff                	xor    %edi,%edi
40f205:	5a                   	pop    %edx
40f206:	66 3b c2             	cmp    %dx,%ax
40f209:	74 14                	je     0x40f21f
40f20b:	6a 5c                	push   $0x5c
40f20d:	5a                   	pop    %edx
40f20e:	66 3b c2             	cmp    %dx,%ax
40f211:	74 0c                	je     0x40f21f
40f213:	6a 3a                	push   $0x3a
40f215:	5a                   	pop    %edx
40f216:	66 3b c2             	cmp    %dx,%ax
40f219:	74 04                	je     0x40f21f
40f21b:	8b c7                	mov    %edi,%eax
40f21d:	eb 03                	jmp    0x40f222
40f21f:	33 c0                	xor    %eax,%eax
40f221:	40                   	inc    %eax
40f222:	2b cb                	sub    %ebx,%ecx
40f224:	0f b6 c0             	movzbl %al,%eax
40f227:	d1 f9                	sar    $1,%ecx
40f229:	41                   	inc    %ecx
40f22a:	f7 d8                	neg    %eax
40f22c:	68 50 02 00 00       	push   $0x250
40f231:	1b c0                	sbb    %eax,%eax
40f233:	23 c1                	and    %ecx,%eax
40f235:	89 85 a4 fd ff ff    	mov    %eax,-0x25c(%ebp)
40f23b:	8d 85 ac fd ff ff    	lea    -0x254(%ebp),%eax
40f241:	57                   	push   %edi
40f242:	50                   	push   %eax
40f243:	e8 18 58 ff ff       	call   0x404a60
40f248:	83 c4 0c             	add    $0xc,%esp
40f24b:	8d 85 ac fd ff ff    	lea    -0x254(%ebp),%eax
40f251:	57                   	push   %edi
40f252:	57                   	push   %edi
40f253:	57                   	push   %edi
40f254:	50                   	push   %eax
40f255:	57                   	push   %edi
40f256:	53                   	push   %ebx
40f257:	ff 15 70 b1 41 00    	call   *0x41b170
40f25d:	8b f0                	mov    %eax,%esi
40f25f:	83 fe ff             	cmp    $0xffffffff,%esi
40f262:	75 33                	jne    0x40f297
40f264:	8b 85 a8 fd ff ff    	mov    -0x258(%ebp),%eax
40f26a:	50                   	push   %eax
40f26b:	57                   	push   %edi
40f26c:	57                   	push   %edi
40f26d:	53                   	push   %ebx
40f26e:	e8 76 fe ff ff       	call   0x40f0e9
40f273:	83 c4 10             	add    $0x10,%esp
40f276:	8b f8                	mov    %eax,%edi
40f278:	83 fe ff             	cmp    $0xffffffff,%esi
40f27b:	74 07                	je     0x40f284
40f27d:	56                   	push   %esi
40f27e:	ff 15 6c b1 41 00    	call   *0x41b16c
40f284:	8b c7                	mov    %edi,%eax
40f286:	8b 4d fc             	mov    -0x4(%ebp),%ecx
40f289:	5f                   	pop    %edi
40f28a:	5e                   	pop    %esi
40f28b:	33 cd                	xor    %ebp,%ecx
40f28d:	5b                   	pop    %ebx
40f28e:	e8 c3 3c ff ff       	call   0x402f56
40f293:	8b e5                	mov    %ebp,%esp
40f295:	5d                   	pop    %ebp
40f296:	c3                   	ret
40f297:	8b 8d a8 fd ff ff    	mov    -0x258(%ebp),%ecx
40f29d:	6a 2e                	push   $0x2e
40f29f:	8b 41 04             	mov    0x4(%ecx),%eax
40f2a2:	2b 01                	sub    (%ecx),%eax
40f2a4:	c1 f8 02             	sar    $0x2,%eax
40f2a7:	89 85 a0 fd ff ff    	mov    %eax,-0x260(%ebp)
40f2ad:	58                   	pop    %eax
40f2ae:	66 39 85 d8 fd ff ff 	cmp    %ax,-0x228(%ebp)
40f2b5:	75 1b                	jne    0x40f2d2
40f2b7:	66 39 bd da fd ff ff 	cmp    %di,-0x226(%ebp)
40f2be:	74 2d                	je     0x40f2ed
40f2c0:	66 39 85 da fd ff ff 	cmp    %ax,-0x226(%ebp)
40f2c7:	75 09                	jne    0x40f2d2
40f2c9:	66 39 bd dc fd ff ff 	cmp    %di,-0x224(%ebp)
40f2d0:	74 1b                	je     0x40f2ed
40f2d2:	51                   	push   %ecx
40f2d3:	ff b5 a4 fd ff ff    	push   -0x25c(%ebp)
40f2d9:	8d 85 d8 fd ff ff    	lea    -0x228(%ebp),%eax
40f2df:	53                   	push   %ebx
40f2e0:	50                   	push   %eax
40f2e1:	e8 03 fe ff ff       	call   0x40f0e9
40f2e6:	83 c4 10             	add    $0x10,%esp
40f2e9:	85 c0                	test   %eax,%eax
40f2eb:	75 89                	jne    0x40f276
40f2ed:	8d 85 ac fd ff ff    	lea    -0x254(%ebp),%eax
40f2f3:	50                   	push   %eax
40f2f4:	56                   	push   %esi
40f2f5:	ff 15 74 b1 41 00    	call   *0x41b174
40f2fb:	8b 8d a8 fd ff ff    	mov    -0x258(%ebp),%ecx
40f301:	85 c0                	test   %eax,%eax
40f303:	6a 2e                	push   $0x2e
40f305:	58                   	pop    %eax
40f306:	75 a6                	jne    0x40f2ae
40f308:	8b c1                	mov    %ecx,%eax
40f30a:	8b 8d a0 fd ff ff    	mov    -0x260(%ebp),%ecx
40f310:	8b 10                	mov    (%eax),%edx
40f312:	8b 40 04             	mov    0x4(%eax),%eax
40f315:	2b c2                	sub    %edx,%eax
40f317:	c1 f8 02             	sar    $0x2,%eax
40f31a:	3b c8                	cmp    %eax,%ecx
40f31c:	0f 84 56 ff ff ff    	je     0x40f278
40f322:	68 04 ef 40 00       	push   $0x40ef04
40f327:	2b c1                	sub    %ecx,%eax
40f329:	6a 04                	push   $0x4
40f32b:	50                   	push   %eax
40f32c:	8d 04 8a             	lea    (%edx,%ecx,4),%eax
40f32f:	50                   	push   %eax
40f330:	e8 2b 5f 00 00       	call   0x415260
40f335:	83 c4 10             	add    $0x10,%esp
40f338:	e9 3b ff ff ff       	jmp    0x40f278
40f33d:	8b ff                	mov    %edi,%edi
40f33f:	56                   	push   %esi
40f340:	57                   	push   %edi
40f341:	8b f9                	mov    %ecx,%edi
40f343:	8b 37                	mov    (%edi),%esi
40f345:	eb 0b                	jmp    0x40f352
40f347:	ff 36                	push   (%esi)
40f349:	e8 d6 a4 ff ff       	call   0x409824
40f34e:	59                   	pop    %ecx
40f34f:	83 c6 04             	add    $0x4,%esi
40f352:	3b 77 04             	cmp    0x4(%edi),%esi
40f355:	75 f0                	jne    0x40f347
40f357:	ff 37                	push   (%edi)
40f359:	e8 c6 a4 ff ff       	call   0x409824
40f35e:	59                   	pop    %ecx
40f35f:	5f                   	pop    %edi
40f360:	5e                   	pop    %esi
40f361:	c3                   	ret
40f362:	8b ff                	mov    %edi,%edi
40f364:	55                   	push   %ebp
40f365:	8b ec                	mov    %esp,%ebp
40f367:	56                   	push   %esi
40f368:	57                   	push   %edi
40f369:	8b f1                	mov    %ecx,%esi
40f36b:	e8 27 00 00 00       	call   0x40f397
40f370:	8b f8                	mov    %eax,%edi
40f372:	85 ff                	test   %edi,%edi
40f374:	74 0d                	je     0x40f383
40f376:	ff 75 08             	push   0x8(%ebp)
40f379:	e8 a6 a4 ff ff       	call   0x409824
40f37e:	59                   	pop    %ecx
40f37f:	8b c7                	mov    %edi,%eax
40f381:	eb 0e                	jmp    0x40f391
40f383:	8b 4e 04             	mov    0x4(%esi),%ecx
40f386:	8b 45 08             	mov    0x8(%ebp),%eax
40f389:	89 01                	mov    %eax,(%ecx)
40f38b:	83 46 04 04          	addl   $0x4,0x4(%esi)
40f38f:	33 c0                	xor    %eax,%eax
40f391:	5f                   	pop    %edi
40f392:	5e                   	pop    %esi
40f393:	5d                   	pop    %ebp
40f394:	c2 04 00             	ret    $0x4
40f397:	8b ff                	mov    %edi,%edi
40f399:	56                   	push   %esi
40f39a:	8b f1                	mov    %ecx,%esi
40f39c:	57                   	push   %edi
40f39d:	8b 7e 08             	mov    0x8(%esi),%edi
40f3a0:	39 7e 04             	cmp    %edi,0x4(%esi)
40f3a3:	74 04                	je     0x40f3a9
40f3a5:	33 c0                	xor    %eax,%eax
40f3a7:	eb 72                	jmp    0x40f41b
40f3a9:	83 3e 00             	cmpl   $0x0,(%esi)
40f3ac:	75 2b                	jne    0x40f3d9
40f3ae:	6a 04                	push   $0x4
40f3b0:	6a 04                	push   $0x4
40f3b2:	e8 f5 a4 ff ff       	call   0x4098ac
40f3b7:	6a 00                	push   $0x0
40f3b9:	89 06                	mov    %eax,(%esi)
40f3bb:	e8 64 a4 ff ff       	call   0x409824
40f3c0:	8b 06                	mov    (%esi),%eax
40f3c2:	83 c4 0c             	add    $0xc,%esp
40f3c5:	85 c0                	test   %eax,%eax
40f3c7:	75 05                	jne    0x40f3ce
40f3c9:	6a 0c                	push   $0xc
40f3cb:	58                   	pop    %eax
40f3cc:	eb 4d                	jmp    0x40f41b
40f3ce:	89 46 04             	mov    %eax,0x4(%esi)
40f3d1:	83 c0 10             	add    $0x10,%eax
40f3d4:	89 46 08             	mov    %eax,0x8(%esi)
40f3d7:	eb cc                	jmp    0x40f3a5
40f3d9:	2b 3e                	sub    (%esi),%edi
40f3db:	c1 ff 02             	sar    $0x2,%edi
40f3de:	81 ff ff ff ff 7f    	cmp    $0x7fffffff,%edi
40f3e4:	77 e3                	ja     0x40f3c9
40f3e6:	53                   	push   %ebx
40f3e7:	6a 04                	push   $0x4
40f3e9:	8d 1c 3f             	lea    (%edi,%edi,1),%ebx
40f3ec:	53                   	push   %ebx
40f3ed:	ff 36                	push   (%esi)
40f3ef:	e8 1b a3 ff ff       	call   0x40970f
40f3f4:	83 c4 0c             	add    $0xc,%esp
40f3f7:	85 c0                	test   %eax,%eax
40f3f9:	75 05                	jne    0x40f400
40f3fb:	6a 0c                	push   $0xc
40f3fd:	5e                   	pop    %esi
40f3fe:	eb 10                	jmp    0x40f410
40f400:	89 06                	mov    %eax,(%esi)
40f402:	8d 0c b8             	lea    (%eax,%edi,4),%ecx
40f405:	8d 04 98             	lea    (%eax,%ebx,4),%eax
40f408:	89 4e 04             	mov    %ecx,0x4(%esi)
40f40b:	89 46 08             	mov    %eax,0x8(%esi)
40f40e:	33 f6                	xor    %esi,%esi
40f410:	6a 00                	push   $0x0
40f412:	e8 0d a4 ff ff       	call   0x409824
40f417:	59                   	pop    %ecx
40f418:	8b c6                	mov    %esi,%eax
40f41a:	5b                   	pop    %ebx
40f41b:	5f                   	pop    %edi
40f41c:	5e                   	pop    %esi
40f41d:	c3                   	ret
40f41e:	8b ff                	mov    %edi,%edi
40f420:	55                   	push   %ebp
40f421:	8b ec                	mov    %esp,%ebp
40f423:	5d                   	pop    %ebp
40f424:	e9 f3 fa ff ff       	jmp    0x40ef1c
40f429:	6a 08                	push   $0x8
40f42b:	68 88 1e 42 00       	push   $0x421e88
40f430:	e8 1b 47 ff ff       	call   0x403b50
40f435:	8b 45 08             	mov    0x8(%ebp),%eax
40f438:	ff 30                	push   (%eax)
40f43a:	e8 66 fa ff ff       	call   0x40eea5
40f43f:	59                   	pop    %ecx
40f440:	83 65 fc 00          	andl   $0x0,-0x4(%ebp)
40f444:	8b 4d 0c             	mov    0xc(%ebp),%ecx
40f447:	e8 48 00 00 00       	call   0x40f494
40f44c:	c7 45 fc fe ff ff ff 	movl   $0xfffffffe,-0x4(%ebp)
40f453:	e8 08 00 00 00       	call   0x40f460
40f458:	e8 39 47 ff ff       	call   0x403b96
40f45d:	c2 0c 00             	ret    $0xc
40f460:	8b 45 10             	mov    0x10(%ebp),%eax
40f463:	ff 30                	push   (%eax)
40f465:	e8 83 fa ff ff       	call   0x40eeed
40f46a:	59                   	pop    %ecx
40f46b:	c3                   	ret
40f46c:	8b ff                	mov    %edi,%edi
40f46e:	55                   	push   %ebp
40f46f:	8b ec                	mov    %esp,%ebp
40f471:	83 ec 0c             	sub    $0xc,%esp
40f474:	8b 45 08             	mov    0x8(%ebp),%eax
40f477:	8d 4d ff             	lea    -0x1(%ebp),%ecx
40f47a:	89 45 f8             	mov    %eax,-0x8(%ebp)
40f47d:	89 45 f4             	mov    %eax,-0xc(%ebp)
40f480:	8d 45 f8             	lea    -0x8(%ebp),%eax
40f483:	50                   	push   %eax
40f484:	ff 75 0c             	push   0xc(%ebp)
40f487:	8d 45 f4             	lea    -0xc(%ebp),%eax
40f48a:	50                   	push   %eax
40f48b:	e8 99 ff ff ff       	call   0x40f429
40f490:	8b e5                	mov    %ebp,%esp
40f492:	5d                   	pop    %ebp
40f493:	c3                   	ret
40f494:	8b ff                	mov    %edi,%edi
40f496:	56                   	push   %esi
40f497:	8b f1                	mov    %ecx,%esi
40f499:	6a 0c                	push   $0xc
40f49b:	8b 06                	mov    (%esi),%eax
40f49d:	8b 00                	mov    (%eax),%eax
40f49f:	8b 40 48             	mov    0x48(%eax),%eax
40f4a2:	8b 40 04             	mov    0x4(%eax),%eax
40f4a5:	a3 a8 46 42 00       	mov    %eax,0x4246a8
40f4aa:	8b 06                	mov    (%esi),%eax
40f4ac:	8b 00                	mov    (%eax),%eax
40f4ae:	8b 40 48             	mov    0x48(%eax),%eax
40f4b1:	8b 40 08             	mov    0x8(%eax),%eax
40f4b4:	a3 ac 46 42 00       	mov    %eax,0x4246ac
40f4b9:	8b 06                	mov    (%esi),%eax
40f4bb:	8b 00                	mov    (%eax),%eax
40f4bd:	8b 40 48             	mov    0x48(%eax),%eax
40f4c0:	8b 80 1c 02 00 00    	mov    0x21c(%eax),%eax
40f4c6:	a3 a4 46 42 00       	mov    %eax,0x4246a4
40f4cb:	8b 06                	mov    (%esi),%eax
40f4cd:	8b 00                	mov    (%eax),%eax
40f4cf:	8b 40 48             	mov    0x48(%eax),%eax
40f4d2:	83 c0 0c             	add    $0xc,%eax
40f4d5:	50                   	push   %eax