40ac7c:	0f b7 45 ea          	movzwl -0x16(%ebp),%eax
40ac80:	66 89 45 de          	mov    %ax,-0x22(%ebp)
40ac84:	80 7d e1 00          	cmpb   $0x0,-0x1f(%ebp)
40ac88:	74 1b                	je     0x40aca5
40ac8a:	66 83 7d de 00       	cmpw   $0x0,-0x22(%ebp)
40ac8f:	75 08                	jne    0x40ac99
40ac91:	66 c7 45 de 0c 00    	movw   $0xc,-0x22(%ebp)
40ac97:	eb 0c                	jmp    0x40aca5
40ac99:	66 83 7d de 0c       	cmpw   $0xc,-0x22(%ebp)
40ac9e:	76 05                	jbe    0x40aca5
40aca0:	66 83 6d de 0c       	subw   $0xc,-0x22(%ebp)
40aca5:	83 7d f4 02          	cmpl   $0x2,-0xc(%ebp)
40aca9:	7e 07                	jle    0x40acb2
40acab:	c7 45 f4 02 00 00 00 	movl   $0x2,-0xc(%ebp)
40acb2:	8b 45 08             	mov    0x8(%ebp),%eax
40acb5:	50                   	push   %eax
40acb6:	0f b7 45 de          	movzwl -0x22(%ebp),%eax
40acba:	8b 55 f4             	mov    -0xc(%ebp),%edx
40acbd:	e8 62 f8 ff ff       	call   0x40a524
40acc2:	59                   	pop    %ecx
40acc3:	e9 35 03 00 00       	jmp    0x40affd
40acc8:	55                   	push   %ebp
40acc9:	e8 a2 f8 ff ff       	call   0x40a570
40acce:	59                   	pop    %ecx
40accf:	55                   	push   %ebp
40acd0:	e8 ff f8 ff ff       	call   0x40a5d4
40acd5:	59                   	pop    %ecx
40acd6:	83 7d f4 02          	cmpl   $0x2,-0xc(%ebp)
40acda:	7e 07                	jle    0x40ace3
40acdc:	c7 45 f4 02 00 00 00 	movl   $0x2,-0xc(%ebp)
40ace3:	8b 45 08             	mov    0x8(%ebp),%eax
40ace6:	50                   	push   %eax
40ace7:	0f b7 45 e8          	movzwl -0x18(%ebp),%eax
40aceb:	8b 55 f4             	mov    -0xc(%ebp),%edx
40acee:	e8 31 f8 ff ff       	call   0x40a524
40acf3:	59                   	pop    %ecx
40acf4:	e9 04 03 00 00       	jmp    0x40affd
40acf9:	55                   	push   %ebp
40acfa:	e8 71 f8 ff ff       	call   0x40a570
40acff:	59                   	pop    %ecx
40ad00:	55                   	push   %ebp
40ad01:	e8 ce f8 ff ff       	call   0x40a5d4
40ad06:	59                   	pop    %ecx
40ad07:	83 7d f4 02          	cmpl   $0x2,-0xc(%ebp)
40ad0b:	7e 07                	jle    0x40ad14
40ad0d:	c7 45 f4 02 00 00 00 	movl   $0x2,-0xc(%ebp)
40ad14:	8b 45 08             	mov    0x8(%ebp),%eax
40ad17:	50                   	push   %eax
40ad18:	0f b7 45 e6          	movzwl -0x1a(%ebp),%eax
40ad1c:	8b 55 f4             	mov    -0xc(%ebp),%edx
40ad1f:	e8 00 f8 ff ff       	call   0x40a524
40ad24:	59                   	pop    %ecx
40ad25:	e9 d3 02 00 00       	jmp    0x40affd
40ad2a:	55                   	push   %ebp
40ad2b:	e8 40 f8 ff ff       	call   0x40a570
40ad30:	59                   	pop    %ecx
40ad31:	83 7d f4 01          	cmpl   $0x1,-0xc(%ebp)
40ad35:	75 14                	jne    0x40ad4b
40ad37:	8b 45 08             	mov    0x8(%ebp),%eax
40ad3a:	50                   	push   %eax
40ad3b:	a1 28 08 47 00       	mov    0x470828,%eax
40ad40:	e8 63 fb ff ff       	call   0x40a8a8
40ad45:	59                   	pop    %ecx
40ad46:	e9 b2 02 00 00       	jmp    0x40affd
40ad4b:	8b 45 08             	mov    0x8(%ebp),%eax
40ad4e:	50                   	push   %eax
40ad4f:	a1 2c 08 47 00       	mov    0x47082c,%eax
40ad54:	e8 4f fb ff ff       	call   0x40a8a8
40ad59:	59                   	pop    %ecx
40ad5a:	e9 9e 02 00 00       	jmp    0x40affd
40ad5f:	55                   	push   %ebp
40ad60:	e8 0b f8 ff ff       	call   0x40a570
40ad65:	59                   	pop    %ecx
40ad66:	55                   	push   %ebp
40ad67:	e8 68 f8 ff ff       	call   0x40a5d4
40ad6c:	59                   	pop    %ecx
40ad6d:	83 7d f4 03          	cmpl   $0x3,-0xc(%ebp)
40ad71:	7e 07                	jle    0x40ad7a
40ad73:	c7 45 f4 03 00 00 00 	movl   $0x3,-0xc(%ebp)
40ad7a:	8b 45 08             	mov    0x8(%ebp),%eax
40ad7d:	50                   	push   %eax
40ad7e:	0f b7 45 e4          	movzwl -0x1c(%ebp),%eax
40ad82:	8b 55 f4             	mov    -0xc(%ebp),%edx
40ad85:	e8 9a f7 ff ff       	call   0x40a524
40ad8a:	59                   	pop    %ecx
40ad8b:	e9 6d 02 00 00       	jmp    0x40affd
40ad90:	55                   	push   %ebp
40ad91:	e8 3e f8 ff ff       	call   0x40a5d4
40ad96:	59                   	pop    %ecx
40ad97:	8b 37                	mov    (%edi),%esi
40ad99:	4e                   	dec    %esi
40ad9a:	ba 3c b0 40 00       	mov    $0x40b03c,%edx
40ad9f:	b9 05 00 00 00       	mov    $0x5,%ecx
40ada4:	8b c6                	mov    %esi,%eax
40ada6:	e8 99 e5 ff ff       	call   0x409344
40adab:	85 c0                	test   %eax,%eax
40adad:	75 27                	jne    0x40add6
40adaf:	66 83 7d ea 0c       	cmpw   $0xc,-0x16(%ebp)
40adb4:	72 03                	jb     0x40adb9
40adb6:	83 c6 03             	add    $0x3,%esi
40adb9:	8b 45 08             	mov    0x8(%ebp),%eax
40adbc:	50                   	push   %eax
40adbd:	ba 02 00 00 00       	mov    $0x2,%edx
40adc2:	8b c6                	mov    %esi,%eax
40adc4:	e8 fb f6 ff ff       	call   0x40a4c4
40adc9:	59                   	pop    %ecx
40adca:	83 07 04             	addl   $0x4,(%edi)
40adcd:	c6 45 e1 01          	movb   $0x1,-0x1f(%ebp)
40add1:	e9 27 02 00 00       	jmp    0x40affd
40add6:	ba 44 b0 40 00       	mov    $0x40b044,%edx
40addb:	b9 03 00 00 00       	mov    $0x3,%ecx
40ade0:	8b c6                	mov    %esi,%eax
40ade2:	e8 5d e5 ff ff       	call   0x409344
40ade7:	85 c0                	test   %eax,%eax
40ade9:	75 27                	jne    0x40ae12
40adeb:	66 83 7d ea 0c       	cmpw   $0xc,-0x16(%ebp)
40adf0:	72 03                	jb     0x40adf5
40adf2:	83 c6 02             	add    $0x2,%esi
40adf5:	8b 45 08             	mov    0x8(%ebp),%eax
40adf8:	50                   	push   %eax
40adf9:	ba 01 00 00 00       	mov    $0x1,%edx
40adfe:	8b c6                	mov    %esi,%eax
40ae00:	e8 bf f6 ff ff       	call   0x40a4c4
40ae05:	59                   	pop    %ecx
40ae06:	83 07 02             	addl   $0x2,(%edi)
40ae09:	c6 45 e1 01          	movb   $0x1,-0x1f(%ebp)
40ae0d:	e9 eb 01 00 00       	jmp    0x40affd
40ae12:	ba 48 b0 40 00       	mov    $0x40b048,%edx
40ae17:	b9 04 00 00 00       	mov    $0x4,%ecx
40ae1c:	8b c6                	mov    %esi,%eax
40ae1e:	e8 21 e5 ff ff       	call   0x409344
40ae23:	85 c0                	test   %eax,%eax
40ae25:	75 33                	jne    0x40ae5a
40ae27:	66 83 7d ea 0c       	cmpw   $0xc,-0x16(%ebp)
40ae2c:	73 11                	jae    0x40ae3f
40ae2e:	8b 45 08             	mov    0x8(%ebp),%eax
40ae31:	50                   	push   %eax
40ae32:	a1 20 08 47 00       	mov    0x470820,%eax
40ae37:	e8 cc f6 ff ff       	call   0x40a508
40ae3c:	59                   	pop    %ecx
40ae3d:	eb 0f                	jmp    0x40ae4e
40ae3f:	8b 45 08             	mov    0x8(%ebp),%eax
40ae42:	50                   	push   %eax
40ae43:	a1 24 08 47 00       	mov    0x470824,%eax
40ae48:	e8 bb f6 ff ff       	call   0x40a508
40ae4d:	59                   	pop    %ecx
40ae4e:	83 07 03             	addl   $0x3,(%edi)
40ae51:	c6 45 e1 01          	movb   $0x1,-0x1f(%ebp)
40ae55:	e9 a3 01 00 00       	jmp    0x40affd
40ae5a:	ba 50 b0 40 00       	mov    $0x40b050,%edx
40ae5f:	b9 04 00 00 00       	mov    $0x4,%ecx
40ae64:	8b c6                	mov    %esi,%eax
40ae66:	e8 d9 e4 ff ff       	call   0x409344
40ae6b:	85 c0                	test   %eax,%eax
40ae6d:	75 31                	jne    0x40aea0
40ae6f:	55                   	push   %ebp
40ae70:	e8 27 f7 ff ff       	call   0x40a59c
40ae75:	59                   	pop    %ecx
40ae76:	8b 45 08             	mov    0x8(%ebp),%eax
40ae79:	50                   	push   %eax
40ae7a:	8b 45 08             	mov    0x8(%ebp),%eax
40ae7d:	ff 70 0c             	push   0xc(%eax)
40ae80:	ff 70 08             	push   0x8(%eax)
40ae83:	e8 00 f6 ff ff       	call   0x40a488
40ae88:	0f b7 c0             	movzwl %ax,%eax
40ae8b:	8b 04 85 a8 08 47 00 	mov    0x4708a8(,%eax,4),%eax
40ae92:	e8 71 f6 ff ff       	call   0x40a508
40ae97:	59                   	pop    %ecx
40ae98:	83 07 03             	addl   $0x3,(%edi)
40ae9b:	e9 5d 01 00 00       	jmp    0x40affd
40aea0:	ba 58 b0 40 00       	mov    $0x40b058,%edx
40aea5:	b9 03 00 00 00       	mov    $0x3,%ecx
40aeaa:	8b c6                	mov    %esi,%eax
40aeac:	e8 93 e4 ff ff       	call   0x409344
40aeb1:	85 c0                	test   %eax,%eax
40aeb3:	75 31                	jne    0x40aee6
40aeb5:	55                   	push   %ebp
40aeb6:	e8 e1 f6 ff ff       	call   0x40a59c
40aebb:	59                   	pop    %ecx
40aebc:	8b 45 08             	mov    0x8(%ebp),%eax
40aebf:	50                   	push   %eax
40aec0:	8b 45 08             	mov    0x8(%ebp),%eax
40aec3:	ff 70 0c             	push   0xc(%eax)
40aec6:	ff 70 08             	push   0x8(%eax)
40aec9:	e8 ba f5 ff ff       	call   0x40a488
40aece:	0f b7 c0             	movzwl %ax,%eax
40aed1:	8b 04 85 8c 08 47 00 	mov    0x47088c(,%eax,4),%eax
40aed8:	e8 2b f6 ff ff       	call   0x40a508
40aedd:	59                   	pop    %ecx
40aede:	83 07 02             	addl   $0x2,(%edi)
40aee1:	e9 17 01 00 00       	jmp    0x40affd
40aee6:	8b 45 08             	mov    0x8(%ebp),%eax
40aee9:	50                   	push   %eax
40aeea:	8d 45 fb             	lea    -0x5(%ebp),%eax
40aeed:	ba 01 00 00 00       	mov    $0x1,%edx
40aef2:	e8 cd f5 ff ff       	call   0x40a4c4
40aef7:	59                   	pop    %ecx
40aef8:	e9 00 01 00 00       	jmp    0x40affd
40aefd:	55                   	push   %ebp
40aefe:	e8 6d f6 ff ff       	call   0x40a570
40af03:	59                   	pop    %ecx
40af04:	8b 45 08             	mov    0x8(%ebp),%eax
40af07:	50                   	push   %eax
40af08:	a1 14 08 47 00       	mov    0x470814,%eax
40af0d:	e8 96 f9 ff ff       	call   0x40a8a8
40af12:	59                   	pop    %ecx
40af13:	55                   	push   %ebp
40af14:	e8 bb f6 ff ff       	call   0x40a5d4
40af19:	59                   	pop    %ecx
40af1a:	66 83 7d ea 00       	cmpw   $0x0,-0x16(%ebp)
40af1f:	75 12                	jne    0x40af33
40af21:	66 83 7d e8 00       	cmpw   $0x0,-0x18(%ebp)
40af26:	75 0b                	jne    0x40af33
40af28:	66 83 7d e6 00       	cmpw   $0x0,-0x1a(%ebp)
40af2d:	0f 84 ca 00 00 00    	je     0x40affd
40af33:	8b 45 08             	mov    0x8(%ebp),%eax
40af36:	50                   	push   %eax
40af37:	b8 5c b0 40 00       	mov    $0x40b05c,%eax
40af3c:	ba 01 00 00 00       	mov    $0x1,%edx
40af41:	e8 7e f5 ff ff       	call   0x40a4c4
40af46:	59                   	pop    %ecx
40af47:	8b 45 08             	mov    0x8(%ebp),%eax
40af4a:	50                   	push   %eax
40af4b:	a1 2c 08 47 00       	mov    0x47082c,%eax
40af50:	e8 53 f9 ff ff       	call   0x40a8a8
40af55:	59                   	pop    %ecx
40af56:	e9 a2 00 00 00       	jmp    0x40affd
40af5b:	80 3d 11 08 47 00 00 	cmpb   $0x0,0x470811
40af62:	0f 84 95 00 00 00    	je     0x40affd
40af68:	8b 45 08             	mov    0x8(%ebp),%eax
40af6b:	50                   	push   %eax
40af6c:	b8 11 08 47 00       	mov    $0x470811,%eax
40af71:	ba 01 00 00 00       	mov    $0x1,%edx
40af76:	e8 49 f5 ff ff       	call   0x40a4c4
40af7b:	59                   	pop    %ecx
40af7c:	eb 7f                	jmp    0x40affd
40af7e:	80 3d 1c 08 47 00 00 	cmpb   $0x0,0x47081c
40af85:	74 76                	je     0x40affd
40af87:	8b 45 08             	mov    0x8(%ebp),%eax
40af8a:	50                   	push   %eax
40af8b:	b8 1c 08 47 00       	mov    $0x47081c,%eax
40af90:	ba 01 00 00 00       	mov    $0x1,%edx
40af95:	e8 2a f5 ff ff       	call   0x40a4c4
40af9a:	59                   	pop    %ecx
40af9b:	eb 60                	jmp    0x40affd
40af9d:	8b 37                	mov    (%edi),%esi
40af9f:	eb 1e                	jmp    0x40afbf
40afa1:	8b 07                	mov    (%edi),%eax
40afa3:	0f b6 00             	movzbl (%eax),%eax
40afa6:	0f b6 c0             	movzbl %al,%eax
40afa9:	0f a3 05 0c 08 46 00 	bt     %eax,0x46080c
40afb0:	73 0b                	jae    0x40afbd
40afb2:	8b 07                	mov    (%edi),%eax
40afb4:	e8 df 1e 00 00       	call   0x40ce98
40afb9:	89 07                	mov    %eax,(%edi)
40afbb:	eb 02                	jmp    0x40afbf
40afbd:	ff 07                	incl   (%edi)
40afbf:	8b 07                	mov    (%edi),%eax
40afc1:	80 38 00             	cmpb   $0x0,(%eax)
40afc4:	74 0a                	je     0x40afd0
40afc6:	8b 07                	mov    (%edi),%eax
40afc8:	0f b6 00             	movzbl (%eax),%eax
40afcb:	3a 45 fb             	cmp    -0x5(%ebp),%al
40afce:	75 d1                	jne    0x40afa1
40afd0:	8b 45 08             	mov    0x8(%ebp),%eax
40afd3:	50                   	push   %eax
40afd4:	8b 17                	mov    (%edi),%edx
40afd6:	2b d6                	sub    %esi,%edx
40afd8:	8b c6                	mov    %esi,%eax
40afda:	e8 e5 f4 ff ff       	call   0x40a4c4
40afdf:	59                   	pop    %ecx
40afe0:	8b 07                	mov    (%edi),%eax
40afe2:	80 38 00             	cmpb   $0x0,(%eax)
40afe5:	74 16                	je     0x40affd
40afe7:	ff 07                	incl   (%edi)
40afe9:	eb 12                	jmp    0x40affd
40afeb:	8b 45 08             	mov    0x8(%ebp),%eax
40afee:	50                   	push   %eax
40afef:	8d 45 fb             	lea    -0x5(%ebp),%eax
40aff2:	ba 01 00 00 00       	mov    $0x1,%edx
40aff7:	e8 c8 f4 ff ff       	call   0x40a4c4
40affc:	59                   	pop    %ecx
40affd:	8b 07                	mov    (%edi),%eax
40afff:	80 38 00             	cmpb   $0x0,(%eax)
40b002:	0f 85 fc f8 ff ff    	jne    0x40a904
40b008:	8b 45 08             	mov    0x8(%ebp),%eax
40b00b:	ff 88 f8 fe ff ff    	decl   -0x108(%eax)
40b011:	33 c0                	xor    %eax,%eax
40b013:	5a                   	pop    %edx
40b014:	59                   	pop    %ecx
40b015:	59                   	pop    %ecx
40b016:	64 89 10             	mov    %edx,%fs:(%eax)
40b019:	68 33 b0 40 00       	push   $0x40b033
40b01e:	8d 45 d4             	lea    -0x2c(%ebp),%eax
40b021:	ba 02 00 00 00       	mov    $0x2,%edx
40b026:	e8 19 97 ff ff       	call   0x404744
40b02b:	c3                   	ret
40b02c:	e9 57 90 ff ff       	jmp    0x404088
40b031:	eb eb                	jmp    0x40b01e
40b033:	5f                   	pop    %edi
40b034:	5e                   	pop    %esi
40b035:	5b                   	pop    %ebx
40b036:	8b e5                	mov    %ebp,%esp
40b038:	5d                   	pop    %ebp
40b039:	c3                   	ret
40b03a:	00 00                	add    %al,(%eax)
40b03c:	41                   	inc    %ecx
40b03d:	4d                   	dec    %ebp
40b03e:	2f                   	das
40b03f:	50                   	push   %eax
40b040:	4d                   	dec    %ebp
40b041:	00 00                	add    %al,(%eax)
40b043:	00 41 2f             	add    %al,0x2f(%ecx)
40b046:	50                   	push   %eax
40b047:	00 41 4d             	add    %al,0x4d(%ecx)
40b04a:	50                   	push   %eax
40b04b:	4d                   	dec    %ebp
40b04c:	00 00                	add    %al,(%eax)
40b04e:	00 00                	add    %al,(%eax)
40b050:	41                   	inc    %ecx
40b051:	41                   	inc    %ecx
40b052:	41                   	inc    %ecx
40b053:	41                   	inc    %ecx
40b054:	00 00                	add    %al,(%eax)
40b056:	00 00                	add    %al,(%eax)
40b058:	41                   	inc    %ecx
40b059:	41                   	inc    %ecx
40b05a:	41                   	inc    %ecx
40b05b:	00 20                	add    %ah,(%eax)
40b05d:	00 00                	add    %al,(%eax)
40b05f:	00 55 8b             	add    %dl,-0x75(%ebp)
40b062:	ec                   	in     (%dx),%al
40b063:	81 c4 f8 fe ff ff    	add    $0xfffffef8,%esp
40b069:	53                   	push   %ebx
40b06a:	56                   	push   %esi
40b06b:	8b da                	mov    %edx,%ebx
40b06d:	8b f0                	mov    %eax,%esi
40b06f:	33 c0                	xor    %eax,%eax
40b071:	89 85 fc fe ff ff    	mov    %eax,-0x104(%ebp)
40b077:	33 c0                	xor    %eax,%eax
40b079:	89 85 f8 fe ff ff    	mov    %eax,-0x108(%ebp)
40b07f:	85 db                	test   %ebx,%ebx
40b081:	74 0b                	je     0x40b08e
40b083:	55                   	push   %ebp
40b084:	8b c3                	mov    %ebx,%eax
40b086:	e8 1d f8 ff ff       	call   0x40a8a8
40b08b:	59                   	pop    %ecx
40b08c:	eb 0c                	jmp    0x40b09a
40b08e:	55                   	push   %ebp
40b08f:	b8 b8 b0 40 00       	mov    $0x40b0b8,%eax