40d071:	8d 40 00             	lea    0x0(%eax),%eax
40d074:	50                   	push   %eax
40d075:	e8 8e 9d ff ff       	call   0x406e08
40d07a:	c3                   	ret
40d07b:	90                   	nop
40d07c:	53                   	push   %ebx
40d07d:	56                   	push   %esi
40d07e:	8b f2                	mov    %edx,%esi
40d080:	8b d8                	mov    %eax,%ebx
40d082:	b8 01 00 00 00       	mov    $0x1,%eax
40d087:	80 3d d4 a8 4a 00 00 	cmpb   $0x0,0x4aa8d4
40d08e:	74 20                	je     0x40d0b0
40d090:	0f b6 54 33 ff       	movzbl -0x1(%ebx,%esi,1),%edx
40d095:	0f b6 d2             	movzbl %dl,%edx
40d098:	0f a3 15 08 b8 49 00 	bt     %edx,0x49b808
40d09f:	73 0f                	jae    0x40d0b0
40d0a1:	8b c3                	mov    %ebx,%eax
40d0a3:	e8 64 7b ff ff       	call   0x404c0c
40d0a8:	03 c6                	add    %esi,%eax
40d0aa:	48                   	dec    %eax
40d0ab:	e8 a4 ff ff ff       	call   0x40d054
40d0b0:	5e                   	pop    %esi
40d0b1:	5b                   	pop    %ebx
40d0b2:	c3                   	ret
40d0b3:	90                   	nop
40d0b4:	53                   	push   %ebx
40d0b5:	56                   	push   %esi
40d0b6:	8b da                	mov    %edx,%ebx
40d0b8:	8b f0                	mov    %eax,%esi
40d0ba:	8d 43 01             	lea    0x1(%ebx),%eax
40d0bd:	80 3d d4 a8 4a 00 00 	cmpb   $0x0,0x4aa8d4
40d0c4:	74 22                	je     0x40d0e8
40d0c6:	0f b6 54 1e ff       	movzbl -0x1(%esi,%ebx,1),%edx
40d0cb:	0f b6 d2             	movzbl %dl,%edx
40d0ce:	0f a3 15 08 b8 49 00 	bt     %edx,0x49b808
40d0d5:	73 11                	jae    0x40d0e8
40d0d7:	8b c6                	mov    %esi,%eax
40d0d9:	e8 2e 7b ff ff       	call   0x404c0c
40d0de:	03 c3                	add    %ebx,%eax
40d0e0:	48                   	dec    %eax
40d0e1:	e8 6e ff ff ff       	call   0x40d054
40d0e6:	03 c3                	add    %ebx,%eax
40d0e8:	5e                   	pop    %esi
40d0e9:	5b                   	pop    %ebx
40d0ea:	c3                   	ret
40d0eb:	90                   	nop
40d0ec:	53                   	push   %ebx
40d0ed:	56                   	push   %esi
40d0ee:	8b da                	mov    %edx,%ebx
40d0f0:	8b f0                	mov    %eax,%esi
40d0f2:	85 db                	test   %ebx,%ebx
40d0f4:	7e 12                	jle    0x40d108
40d0f6:	8b c6                	mov    %esi,%eax
40d0f8:	85 c0                	test   %eax,%eax
40d0fa:	74 05                	je     0x40d101
40d0fc:	83 e8 04             	sub    $0x4,%eax
40d0ff:	8b 00                	mov    (%eax),%eax
40d101:	3b c3                	cmp    %ebx,%eax
40d103:	0f 9d c0             	setge  %al
40d106:	eb 02                	jmp    0x40d10a
40d108:	33 c0                	xor    %eax,%eax
40d10a:	84 c0                	test   %al,%al
40d10c:	74 0a                	je     0x40d118
40d10e:	80 7c 1e ff 5c       	cmpb   $0x5c,-0x1(%esi,%ebx,1)
40d113:	0f 94 c0             	sete   %al
40d116:	eb 02                	jmp    0x40d11a
40d118:	33 c0                	xor    %eax,%eax
40d11a:	84 c0                	test   %al,%al
40d11c:	74 11                	je     0x40d12f
40d11e:	8b d3                	mov    %ebx,%edx
40d120:	8b c6                	mov    %esi,%eax
40d122:	e8 e1 fc ff ff       	call   0x40ce08
40d127:	84 c0                	test   %al,%al
40d129:	0f 94 c0             	sete   %al
40d12c:	5e                   	pop    %esi
40d12d:	5b                   	pop    %ebx
40d12e:	c3                   	ret
40d12f:	33 c0                	xor    %eax,%eax
40d131:	5e                   	pop    %esi
40d132:	5b                   	pop    %ebx
40d133:	c3                   	ret
40d134:	53                   	push   %ebx
40d135:	56                   	push   %esi
40d136:	57                   	push   %edi
40d137:	55                   	push   %ebp
40d138:	8b f9                	mov    %ecx,%edi
40d13a:	8b f2                	mov    %edx,%esi
40d13c:	8b e8                	mov    %eax,%ebp
40d13e:	33 db                	xor    %ebx,%ebx
40d140:	85 ff                	test   %edi,%edi
40d142:	7f 04                	jg     0x40d148
40d144:	b0 01                	mov    $0x1,%al
40d146:	eb 10                	jmp    0x40d158
40d148:	8b c6                	mov    %esi,%eax
40d14a:	85 c0                	test   %eax,%eax
40d14c:	74 05                	je     0x40d153
40d14e:	83 e8 04             	sub    $0x4,%eax
40d151:	8b 00                	mov    (%eax),%eax
40d153:	3b c7                	cmp    %edi,%eax
40d155:	0f 9c c0             	setl   %al
40d158:	84 c0                	test   %al,%al
40d15a:	74 04                	je     0x40d160
40d15c:	b0 01                	mov    $0x1,%al
40d15e:	eb 0e                	jmp    0x40d16e
40d160:	8b d7                	mov    %edi,%edx
40d162:	8b c6                	mov    %esi,%eax
40d164:	e8 9f fc ff ff       	call   0x40ce08
40d169:	84 c0                	test   %al,%al
40d16b:	0f 95 c0             	setne  %al
40d16e:	84 c0                	test   %al,%al
40d170:	75 16                	jne    0x40d188
40d172:	8b c5                	mov    %ebp,%eax
40d174:	e8 93 7a ff ff       	call   0x404c0c
40d179:	0f b6 54 3e ff       	movzbl -0x1(%esi,%edi,1),%edx
40d17e:	e8 89 c3 ff ff       	call   0x40950c
40d183:	85 c0                	test   %eax,%eax
40d185:	0f 95 c3             	setne  %bl
40d188:	8b c3                	mov    %ebx,%eax
40d18a:	5d                   	pop    %ebp
40d18b:	5f                   	pop    %edi
40d18c:	5e                   	pop    %esi
40d18d:	5b                   	pop    %ebx
40d18e:	c3                   	ret
40d18f:	90                   	nop
40d190:	53                   	push   %ebx
40d191:	56                   	push   %esi
40d192:	57                   	push   %edi
40d193:	55                   	push   %ebp
40d194:	8b f2                	mov    %edx,%esi
40d196:	8b d8                	mov    %eax,%ebx
40d198:	33 ff                	xor    %edi,%edi
40d19a:	8b c3                	mov    %ebx,%eax
40d19c:	e8 6b 7a ff ff       	call   0x404c0c
40d1a1:	50                   	push   %eax
40d1a2:	8b c6                	mov    %esi,%eax
40d1a4:	e8 63 7a ff ff       	call   0x404c0c
40d1a9:	8b e8                	mov    %eax,%ebp
40d1ab:	8b c5                	mov    %ebp,%eax
40d1ad:	5a                   	pop    %edx
40d1ae:	e8 a9 00 00 00       	call   0x40d25c
40d1b3:	8b d8                	mov    %eax,%ebx
40d1b5:	85 db                	test   %ebx,%ebx
40d1b7:	74 05                	je     0x40d1be
40d1b9:	8b fb                	mov    %ebx,%edi
40d1bb:	2b fd                	sub    %ebp,%edi
40d1bd:	47                   	inc    %edi
40d1be:	8b c7                	mov    %edi,%eax
40d1c0:	5d                   	pop    %ebp
40d1c1:	5f                   	pop    %edi
40d1c2:	5e                   	pop    %esi
40d1c3:	5b                   	pop    %ebx
40d1c4:	c3                   	ret
40d1c5:	8d 40 00             	lea    0x0(%eax),%eax
40d1c8:	53                   	push   %ebx
40d1c9:	56                   	push   %esi
40d1ca:	57                   	push   %edi
40d1cb:	55                   	push   %ebp
40d1cc:	8b fa                	mov    %edx,%edi
40d1ce:	8b f0                	mov    %eax,%esi
40d1d0:	80 3d d4 a8 4a 00 00 	cmpb   $0x0,0x4aa8d4
40d1d7:	74 73                	je     0x40d24c
40d1d9:	8b c6                	mov    %esi,%eax
40d1db:	85 c0                	test   %eax,%eax
40d1dd:	74 05                	je     0x40d1e4
40d1df:	83 e8 04             	sub    $0x4,%eax
40d1e2:	8b 00                	mov    (%eax),%eax
40d1e4:	8b e8                	mov    %eax,%ebp
40d1e6:	8b c7                	mov    %edi,%eax
40d1e8:	8b d5                	mov    %ebp,%edx
40d1ea:	e8 a5 7c ff ff       	call   0x404e94
40d1ef:	bb 01 00 00 00       	mov    $0x1,%ebx
40d1f4:	3b eb                	cmp    %ebx,%ebp
40d1f6:	7c 5d                	jl     0x40d255
40d1f8:	8b c7                	mov    %edi,%eax
40d1fa:	e8 65 7a ff ff       	call   0x404c64
40d1ff:	0f b6 54 1e ff       	movzbl -0x1(%esi,%ebx,1),%edx
40d204:	88 54 18 ff          	mov    %dl,-0x1(%eax,%ebx,1)
40d208:	0f b6 44 1e ff       	movzbl -0x1(%esi,%ebx,1),%eax
40d20d:	0f b6 c0             	movzbl %al,%eax
40d210:	0f a3 05 08 b8 49 00 	bt     %eax,0x49b808
40d217:	73 13                	jae    0x40d22c
40d219:	43                   	inc    %ebx
40d21a:	8b c7                	mov    %edi,%eax
40d21c:	e8 43 7a ff ff       	call   0x404c64
40d221:	0f b6 54 1e ff       	movzbl -0x1(%esi,%ebx,1),%edx
40d226:	88 54 18 ff          	mov    %dl,-0x1(%eax,%ebx,1)
40d22a:	eb 19                	jmp    0x40d245
40d22c:	8b 07                	mov    (%edi),%eax
40d22e:	0f b6 44 18 ff       	movzbl -0x1(%eax,%ebx,1),%eax
40d233:	04 bf                	add    $0xbf,%al
40d235:	2c 1a                	sub    $0x1a,%al
40d237:	73 0c                	jae    0x40d245
40d239:	8b c7                	mov    %edi,%eax
40d23b:	e8 24 7a ff ff       	call   0x404c64
40d240:	80 44 18 ff 20       	addb   $0x20,-0x1(%eax,%ebx,1)
40d245:	43                   	inc    %ebx
40d246:	3b eb                	cmp    %ebx,%ebp
40d248:	7d ae                	jge    0x40d1f8
40d24a:	eb 09                	jmp    0x40d255
40d24c:	8b d7                	mov    %edi,%edx
40d24e:	8b c6                	mov    %esi,%eax
40d250:	e8 6b b8 ff ff       	call   0x408ac0
40d255:	5d                   	pop    %ebp
40d256:	5f                   	pop    %edi
40d257:	5e                   	pop    %esi
40d258:	5b                   	pop    %ebx
40d259:	c3                   	ret
40d25a:	8b c0                	mov    %eax,%eax
40d25c:	53                   	push   %ebx
40d25d:	56                   	push   %esi
40d25e:	57                   	push   %edi
40d25f:	55                   	push   %ebp
40d260:	83 c4 f8             	add    $0xfffffff8,%esp
40d263:	8b ea                	mov    %edx,%ebp
40d265:	8b f0                	mov    %eax,%esi
40d267:	33 db                	xor    %ebx,%ebx
40d269:	85 f6                	test   %esi,%esi
40d26b:	0f 84 81 00 00 00    	je     0x40d2f2
40d271:	80 3e 00             	cmpb   $0x0,(%esi)
40d274:	74 7c                	je     0x40d2f2
40d276:	85 ed                	test   %ebp,%ebp
40d278:	74 78                	je     0x40d2f2
40d27a:	80 7d 00 00          	cmpb   $0x0,0x0(%ebp)
40d27e:	74 72                	je     0x40d2f2
40d280:	8b c6                	mov    %esi,%eax
40d282:	e8 c5 c0 ff ff       	call   0x40934c
40d287:	89 04 24             	mov    %eax,(%esp)
40d28a:	8b c5                	mov    %ebp,%eax
40d28c:	e8 bb c0 ff ff       	call   0x40934c
40d291:	8b f8                	mov    %eax,%edi
40d293:	8b d5                	mov    %ebp,%edx
40d295:	8b c6                	mov    %esi,%eax
40d297:	e8 84 c2 ff ff       	call   0x409520
40d29c:	8b d8                	mov    %eax,%ebx
40d29e:	eb 3f                	jmp    0x40d2df
40d2a0:	8b d3                	mov    %ebx,%edx
40d2a2:	2b d6                	sub    %esi,%edx
40d2a4:	8b c6                	mov    %esi,%eax
40d2a6:	e8 81 fb ff ff       	call   0x40ce2c
40d2ab:	88 44 24 04          	mov    %al,0x4(%esp)
40d2af:	80 7c 24 04 02       	cmpb   $0x2,0x4(%esp)
40d2b4:	74 15                	je     0x40d2cb
40d2b6:	57                   	push   %edi
40d2b7:	55                   	push   %ebp
40d2b8:	57                   	push   %edi
40d2b9:	53                   	push   %ebx
40d2ba:	6a 00                	push   $0x0
40d2bc:	68 00 04 00 00       	push   $0x400
40d2c1:	e8 c2 96 ff ff       	call   0x406988
40d2c6:	83 f8 02             	cmp    $0x2,%eax
40d2c9:	74 27                	je     0x40d2f2
40d2cb:	80 7c 24 04 01       	cmpb   $0x1,0x4(%esp)
40d2d0:	75 01                	jne    0x40d2d3
40d2d2:	43                   	inc    %ebx
40d2d3:	43                   	inc    %ebx
40d2d4:	8b d5                	mov    %ebp,%edx
40d2d6:	8b c3                	mov    %ebx,%eax
40d2d8:	e8 43 c2 ff ff       	call   0x409520
40d2dd:	8b d8                	mov    %eax,%ebx
40d2df:	85 db                	test   %ebx,%ebx
40d2e1:	74 0d                	je     0x40d2f0
40d2e3:	8b c3                	mov    %ebx,%eax
40d2e5:	2b c6                	sub    %esi,%eax
40d2e7:	8b 14 24             	mov    (%esp),%edx
40d2ea:	2b d0                	sub    %eax,%edx
40d2ec:	3b fa                	cmp    %edx,%edi
40d2ee:	76 b0                	jbe    0x40d2a0
40d2f0:	33 db                	xor    %ebx,%ebx
40d2f2:	8b c3                	mov    %ebx,%eax
40d2f4:	59                   	pop    %ecx
40d2f5:	5a                   	pop    %edx
40d2f6:	5d                   	pop    %ebp
40d2f7:	5f                   	pop    %edi
40d2f8:	5e                   	pop    %esi
40d2f9:	5b                   	pop    %ebx
40d2fa:	c3                   	ret
40d2fb:	90                   	nop
40d2fc:	53                   	push   %ebx
40d2fd:	56                   	push   %esi
40d2fe:	57                   	push   %edi
40d2ff:	8b da                	mov    %edx,%ebx
40d301:	8b f0                	mov    %eax,%esi
40d303:	8b d3                	mov    %ebx,%edx
40d305:	8b c6                	mov    %esi,%eax
40d307:	e8 24 00 00 00       	call   0x40d330
40d30c:	8b f0                	mov    %eax,%esi
40d30e:	8b fe                	mov    %esi,%edi
40d310:	84 db                	test   %bl,%bl
40d312:	74 16                	je     0x40d32a
40d314:	85 f6                	test   %esi,%esi
40d316:	74 12                	je     0x40d32a
40d318:	8b fe                	mov    %esi,%edi
40d31a:	46                   	inc    %esi
40d31b:	8b d3                	mov    %ebx,%edx
40d31d:	8b c6                	mov    %esi,%eax
40d31f:	e8 0c 00 00 00       	call   0x40d330
40d324:	8b f0                	mov    %eax,%esi
40d326:	85 f6                	test   %esi,%esi
40d328:	75 ee                	jne    0x40d318
40d32a:	8b c7                	mov    %edi,%eax
40d32c:	5f                   	pop    %edi
40d32d:	5e                   	pop    %esi
40d32e:	5b                   	pop    %ebx
40d32f:	c3                   	ret
40d330:	53                   	push   %ebx
40d331:	56                   	push   %esi
40d332:	57                   	push   %edi
40d333:	8b da                	mov    %edx,%ebx
40d335:	8b f0                	mov    %eax,%esi
40d337:	8b d3                	mov    %ebx,%edx
40d339:	8b c6                	mov    %esi,%eax
40d33b:	e8 cc c1 ff ff       	call   0x40950c
40d340:	8b f8                	mov    %eax,%edi
40d342:	85 ff                	test   %edi,%edi
40d344:	74 24                	je     0x40d36a
40d346:	8b d7                	mov    %edi,%edx
40d348:	2b d6                	sub    %esi,%edx
40d34a:	8b c6                	mov    %esi,%eax
40d34c:	e8 db fa ff ff       	call   0x40ce2c
40d351:	2c 01                	sub    $0x1,%al
40d353:	72 15                	jb     0x40d36a
40d355:	74 02                	je     0x40d359
40d357:	eb 01                	jmp    0x40d35a
40d359:	47                   	inc    %edi
40d35a:	47                   	inc    %edi
40d35b:	8b d3                	mov    %ebx,%edx
40d35d:	8b c7                	mov    %edi,%eax
40d35f:	e8 a8 c1 ff ff       	call   0x40950c
40d364:	8b f8                	mov    %eax,%edi
40d366:	85 ff                	test   %edi,%edi
40d368:	75 dc                	jne    0x40d346
40d36a:	8b c7                	mov    %edi,%eax
40d36c:	5f                   	pop    %edi
40d36d:	5e                   	pop    %esi
40d36e:	5b                   	pop    %ebx
40d36f:	c3                   	ret
40d370:	55                   	push   %ebp
40d371:	8b ec                	mov    %esp,%ebp
40d373:	51                   	push   %ecx
40d374:	53                   	push   %ebx
40d375:	56                   	push   %esi
40d376:	57                   	push   %edi
40d377:	8b 7d 08             	mov    0x8(%ebp),%edi
40d37a:	83 c7 ec             	add    $0xffffffec,%edi
40d37d:	57                   	push   %edi
40d37e:	6a 00                	push   $0x0
40d380:	e8 63 96 ff ff       	call   0x4069e8
40d385:	33 f6                	xor    %esi,%esi
40d387:	eb 2a                	jmp    0x40d3b3
40d389:	0f b6 44 37 06       	movzbl 0x6(%edi,%esi,1),%eax