40e9c0:	8b 85 f8 fc ff ff    	mov    -0x308(%ebp),%eax
40e9c6:	50                   	push   %eax
40e9c7:	e8 14 f0 ff ff       	call   0x40d9e0
40e9cc:	e8 f7 fd ff ff       	call   0x40e7c8
40e9d1:	8b 85 e8 fc ff ff    	mov    -0x318(%ebp),%eax
40e9d7:	8b 95 f4 fc ff ff    	mov    -0x30c(%ebp),%edx
40e9dd:	2b 50 04             	sub    0x4(%eax),%edx
40e9e0:	42                   	inc    %edx
40e9e1:	8b 85 e8 fc ff ff    	mov    -0x318(%ebp),%eax
40e9e7:	89 10                	mov    %edx,(%eax)
40e9e9:	47                   	inc    %edi
40e9ea:	83 c6 08             	add    $0x8,%esi
40e9ed:	4b                   	dec    %ebx
40e9ee:	75 9e                	jne    0x40e98e
40e9f0:	8b 9d f0 fc ff ff    	mov    -0x310(%ebp),%ebx
40e9f6:	4b                   	dec    %ebx
40e9f7:	85 db                	test   %ebx,%ebx
40e9f9:	7c 1a                	jl     0x40ea15
40e9fb:	43                   	inc    %ebx
40e9fc:	8d 85 04 fd ff ff    	lea    -0x2fc(%ebp),%eax
40ea02:	8d 95 00 ff ff ff    	lea    -0x100(%ebp),%edx
40ea08:	8b 08                	mov    (%eax),%ecx
40ea0a:	89 0a                	mov    %ecx,(%edx)
40ea0c:	83 c2 04             	add    $0x4,%edx
40ea0f:	83 c0 08             	add    $0x8,%eax
40ea12:	4b                   	dec    %ebx
40ea13:	75 f3                	jne    0x40ea08
40ea15:	55                   	push   %ebp
40ea16:	8b 9d f0 fc ff ff    	mov    -0x310(%ebp),%ebx
40ea1c:	4b                   	dec    %ebx
40ea1d:	8b c3                	mov    %ebx,%eax
40ea1f:	e8 4c fe ff ff       	call   0x40e870
40ea24:	59                   	pop    %ecx
40ea25:	84 c0                	test   %al,%al
40ea27:	74 2a                	je     0x40ea53
40ea29:	8d 85 ec fc ff ff    	lea    -0x314(%ebp),%eax
40ea2f:	50                   	push   %eax
40ea30:	8d 85 00 ff ff ff    	lea    -0x100(%ebp),%eax
40ea36:	50                   	push   %eax
40ea37:	8b 85 f8 fc ff ff    	mov    -0x308(%ebp),%eax
40ea3d:	50                   	push   %eax
40ea3e:	e8 a5 ef ff ff       	call   0x40d9e8
40ea43:	e8 80 fd ff ff       	call   0x40e7c8
40ea48:	8b 85 ec fc ff ff    	mov    -0x314(%ebp),%eax
40ea4e:	e8 a1 00 00 00       	call   0x40eaf4
40ea53:	55                   	push   %ebp
40ea54:	8b c3                	mov    %ebx,%eax
40ea56:	e8 45 fe ff ff       	call   0x40e8a0
40ea5b:	59                   	pop    %ecx
40ea5c:	84 c0                	test   %al,%al
40ea5e:	75 b5                	jne    0x40ea15
40ea60:	8b 85 fc fc ff ff    	mov    -0x304(%ebp),%eax
40ea66:	50                   	push   %eax
40ea67:	e8 08 eb ff ff       	call   0x40d574
40ea6c:	e8 57 fd ff ff       	call   0x40e7c8
40ea71:	5f                   	pop    %edi
40ea72:	5e                   	pop    %esi
40ea73:	5b                   	pop    %ebx
40ea74:	8b e5                	mov    %ebp,%esp
40ea76:	5d                   	pop    %ebp
40ea77:	c3                   	ret
40ea78:	53                   	push   %ebx
40ea79:	56                   	push   %esi
40ea7a:	51                   	push   %ecx
40ea7b:	8b d8                	mov    %eax,%ebx
40ea7d:	66 8b 33             	mov    (%ebx),%si
40ea80:	66 83 fe 14          	cmp    $0x14,%si
40ea84:	73 0d                	jae    0x40ea93
40ea86:	53                   	push   %ebx
40ea87:	e8 e8 ea ff ff       	call   0x40d574
40ea8c:	e8 37 fd ff ff       	call   0x40e7c8
40ea91:	eb 5b                	jmp    0x40eaee
40ea93:	66 81 fe 00 01       	cmp    $0x100,%si
40ea98:	75 0f                	jne    0x40eaa9
40ea9a:	66 c7 03 00 00       	movw   $0x0,(%ebx)
40ea9f:	8d 43 08             	lea    0x8(%ebx),%eax
40eaa2:	e8 f1 54 ff ff       	call   0x403f98
40eaa7:	eb 45                	jmp    0x40eaee
40eaa9:	66 81 fe 01 01       	cmp    $0x101,%si
40eaae:	75 0a                	jne    0x40eaba
40eab0:	8b c3                	mov    %ebx,%eax
40eab2:	ff 15 10 e8 46 00    	call   *0x46e810
40eab8:	eb 34                	jmp    0x40eaee
40eaba:	66 f7 c6 00 20       	test   $0x2000,%si
40eabf:	74 09                	je     0x40eaca
40eac1:	8b c3                	mov    %ebx,%eax
40eac3:	e8 34 fe ff ff       	call   0x40e8fc
40eac8:	eb 24                	jmp    0x40eaee
40eaca:	8b d4                	mov    %esp,%edx
40eacc:	8b c6                	mov    %esi,%eax
40eace:	e8 0d 1a 00 00       	call   0x4104e0
40ead3:	84 c0                	test   %al,%al
40ead5:	74 0c                	je     0x40eae3
40ead7:	8b d3                	mov    %ebx,%edx
40ead9:	8b 04 24             	mov    (%esp),%eax
40eadc:	8b 08                	mov    (%eax),%ecx
40eade:	ff 51 24             	call   *0x24(%ecx)
40eae1:	eb 0b                	jmp    0x40eaee
40eae3:	53                   	push   %ebx
40eae4:	e8 8b ea ff ff       	call   0x40d574
40eae9:	e8 da fc ff ff       	call   0x40e7c8
40eaee:	5a                   	pop    %edx
40eaef:	5e                   	pop    %esi
40eaf0:	5b                   	pop    %ebx
40eaf1:	c3                   	ret
40eaf2:	8b c0                	mov    %eax,%eax
40eaf4:	66 f7 00 e8 bf       	testw  $0xbfe8,(%eax)
40eaf9:	75 06                	jne    0x40eb01
40eafb:	66 c7 00 00 00       	movw   $0x0,(%eax)
40eb00:	c3                   	ret
40eb01:	e8 72 ff ff ff       	call   0x40ea78
40eb06:	c3                   	ret
40eb07:	90                   	nop
40eb08:	50                   	push   %eax
40eb09:	e8 e6 ff ff ff       	call   0x40eaf4
40eb0e:	58                   	pop    %eax
40eb0f:	c3                   	ret
40eb10:	55                   	push   %ebp
40eb11:	8b ec                	mov    %esp,%ebp
40eb13:	53                   	push   %ebx
40eb14:	8b 4d 08             	mov    0x8(%ebp),%ecx
40eb17:	81 c1 00 fd ff ff    	add    $0xfffffd00,%ecx
40eb1d:	8b 54 c1 04          	mov    0x4(%ecx,%eax,8),%edx
40eb21:	03 14 c1             	add    (%ecx,%eax,8),%edx
40eb24:	8b 5d 08             	mov    0x8(%ebp),%ebx
40eb27:	3b 94 83 00 ff ff ff 	cmp    -0x100(%ebx,%eax,4),%edx
40eb2e:	0f 9f c2             	setg   %dl
40eb31:	48                   	dec    %eax
40eb32:	84 d2                	test   %dl,%dl
40eb34:	74 04                	je     0x40eb3a
40eb36:	85 c0                	test   %eax,%eax
40eb38:	7d e3                	jge    0x40eb1d
40eb3a:	8b c2                	mov    %edx,%eax
40eb3c:	5b                   	pop    %ebx
40eb3d:	5d                   	pop    %ebp
40eb3e:	c3                   	ret
40eb3f:	90                   	nop
40eb40:	55                   	push   %ebp
40eb41:	8b ec                	mov    %esp,%ebp
40eb43:	53                   	push   %ebx
40eb44:	56                   	push   %esi
40eb45:	b2 01                	mov    $0x1,%dl
40eb47:	8b 4d 08             	mov    0x8(%ebp),%ecx
40eb4a:	ff 84 81 00 ff ff ff 	incl   -0x100(%ecx,%eax,4)
40eb51:	8b 4d 08             	mov    0x8(%ebp),%ecx
40eb54:	8b 8c c1 04 fd ff ff 	mov    -0x2fc(%ecx,%eax,8),%ecx
40eb5b:	8b d9                	mov    %ecx,%ebx
40eb5d:	8b 75 08             	mov    0x8(%ebp),%esi
40eb60:	03 9c c6 00 fd ff ff 	add    -0x300(%esi,%eax,8),%ebx
40eb67:	8b 75 08             	mov    0x8(%ebp),%esi
40eb6a:	3b 9c 86 00 ff ff ff 	cmp    -0x100(%esi,%eax,4),%ebx
40eb71:	7f 22                	jg     0x40eb95
40eb73:	85 c0                	test   %eax,%eax
40eb75:	75 04                	jne    0x40eb7b
40eb77:	33 d2                	xor    %edx,%edx
40eb79:	eb 1a                	jmp    0x40eb95
40eb7b:	8b 55 08             	mov    0x8(%ebp),%edx
40eb7e:	8b 55 08             	mov    0x8(%ebp),%edx
40eb81:	89 8c 82 00 ff ff ff 	mov    %ecx,-0x100(%edx,%eax,4)
40eb88:	8b 55 08             	mov    0x8(%ebp),%edx
40eb8b:	52                   	push   %edx
40eb8c:	48                   	dec    %eax
40eb8d:	e8 ae ff ff ff       	call   0x40eb40
40eb92:	59                   	pop    %ecx
40eb93:	8b d0                	mov    %eax,%edx
40eb95:	8b c2                	mov    %edx,%eax
40eb97:	5e                   	pop    %esi
40eb98:	5b                   	pop    %ebx
40eb99:	5d                   	pop    %ebp
40eb9a:	c3                   	ret
40eb9b:	90                   	nop
40eb9c:	55                   	push   %ebp
40eb9d:	8b ec                	mov    %esp,%ebp
40eb9f:	81 c4 e0 fc ff ff    	add    $0xfffffce0,%esp
40eba5:	53                   	push   %ebx
40eba6:	56                   	push   %esi
40eba7:	57                   	push   %edi
40eba8:	89 8d f8 fc ff ff    	mov    %ecx,-0x308(%ebp)
40ebae:	8b da                	mov    %edx,%ebx
40ebb0:	89 85 fc fc ff ff    	mov    %eax,-0x304(%ebp)
40ebb6:	f6 43 01 20          	testb  $0x20,0x1(%ebx)
40ebba:	75 0a                	jne    0x40ebc6
40ebbc:	b8 57 00 07 80       	mov    $0x80070057,%eax
40ebc1:	e8 02 fc ff ff       	call   0x40e7c8
40ebc6:	66 8b 03             	mov    (%ebx),%ax
40ebc9:	8b d0                	mov    %eax,%edx
40ebcb:	66 81 e2 ff 0f       	and    $0xfff,%dx
40ebd0:	66 83 fa 0c          	cmp    $0xc,%dx
40ebd4:	0f 85 73 01 00 00    	jne    0x40ed4d
40ebda:	f6 c4 40             	test   $0x40,%ah
40ebdd:	74 0d                	je     0x40ebec
40ebdf:	8b 43 08             	mov    0x8(%ebx),%eax
40ebe2:	8b 00                	mov    (%eax),%eax
40ebe4:	89 85 ec fc ff ff    	mov    %eax,-0x314(%ebp)
40ebea:	eb 09                	jmp    0x40ebf5
40ebec:	8b 43 08             	mov    0x8(%ebx),%eax
40ebef:	89 85 ec fc ff ff    	mov    %eax,-0x314(%ebp)
40ebf5:	8b 85 ec fc ff ff    	mov    -0x314(%ebp),%eax
40ebfb:	0f b7 00             	movzwl (%eax),%eax
40ebfe:	89 85 f0 fc ff ff    	mov    %eax,-0x310(%ebp)
40ec04:	8b 9d f0 fc ff ff    	mov    -0x310(%ebp),%ebx
40ec0a:	4b                   	dec    %ebx
40ec0b:	85 db                	test   %ebx,%ebx
40ec0d:	7c 6b                	jl     0x40ec7a
40ec0f:	43                   	inc    %ebx
40ec10:	33 ff                	xor    %edi,%edi
40ec12:	8d b5 00 fd ff ff    	lea    -0x300(%ebp),%esi
40ec18:	8b c6                	mov    %esi,%eax
40ec1a:	89 85 e0 fc ff ff    	mov    %eax,-0x320(%ebp)
40ec20:	8b 85 e0 fc ff ff    	mov    -0x320(%ebp),%eax
40ec26:	83 c0 04             	add    $0x4,%eax
40ec29:	50                   	push   %eax
40ec2a:	8d 47 01             	lea    0x1(%edi),%eax
40ec2d:	50                   	push   %eax
40ec2e:	8b 85 ec fc ff ff    	mov    -0x314(%ebp),%eax
40ec34:	50                   	push   %eax
40ec35:	e8 9e ed ff ff       	call   0x40d9d8
40ec3a:	e8 89 fb ff ff       	call   0x40e7c8
40ec3f:	8d 85 f4 fc ff ff    	lea    -0x30c(%ebp),%eax
40ec45:	50                   	push   %eax
40ec46:	8d 47 01             	lea    0x1(%edi),%eax
40ec49:	50                   	push   %eax
40ec4a:	8b 85 ec fc ff ff    	mov    -0x314(%ebp),%eax
40ec50:	50                   	push   %eax
40ec51:	e8 8a ed ff ff       	call   0x40d9e0
40ec56:	e8 6d fb ff ff       	call   0x40e7c8
40ec5b:	8b 85 e0 fc ff ff    	mov    -0x320(%ebp),%eax
40ec61:	8b 95 f4 fc ff ff    	mov    -0x30c(%ebp),%edx
40ec67:	2b 50 04             	sub    0x4(%eax),%edx
40ec6a:	42                   	inc    %edx
40ec6b:	8b 85 e0 fc ff ff    	mov    -0x320(%ebp),%eax
40ec71:	89 10                	mov    %edx,(%eax)
40ec73:	47                   	inc    %edi
40ec74:	83 c6 08             	add    $0x8,%esi
40ec77:	4b                   	dec    %ebx
40ec78:	75 9e                	jne    0x40ec18
40ec7a:	8d 85 00 fd ff ff    	lea    -0x300(%ebp),%eax
40ec80:	50                   	push   %eax
40ec81:	8b 85 f0 fc ff ff    	mov    -0x310(%ebp),%eax
40ec87:	50                   	push   %eax
40ec88:	6a 0c                	push   $0xc
40ec8a:	e8 41 ed ff ff       	call   0x40d9d0
40ec8f:	8b f0                	mov    %eax,%esi
40ec91:	85 f6                	test   %esi,%esi
40ec93:	75 05                	jne    0x40ec9a
40ec95:	e8 86 f8 ff ff       	call   0x40e520
40ec9a:	8b 85 fc fc ff ff    	mov    -0x304(%ebp),%eax
40eca0:	e8 4f fe ff ff       	call   0x40eaf4
40eca5:	8b 85 fc fc ff ff    	mov    -0x304(%ebp),%eax
40ecab:	66 c7 00 0c 20       	movw   $0x200c,(%eax)
40ecb0:	8b 85 fc fc ff ff    	mov    -0x304(%ebp),%eax
40ecb6:	89 70 08             	mov    %esi,0x8(%eax)
40ecb9:	8b 9d f0 fc ff ff    	mov    -0x310(%ebp),%ebx
40ecbf:	4b                   	dec    %ebx
40ecc0:	85 db                	test   %ebx,%ebx
40ecc2:	7c 1a                	jl     0x40ecde
40ecc4:	43                   	inc    %ebx
40ecc5:	8d 85 04 fd ff ff    	lea    -0x2fc(%ebp),%eax
40eccb:	8d 95 00 ff ff ff    	lea    -0x100(%ebp),%edx
40ecd1:	8b 08                	mov    (%eax),%ecx
40ecd3:	89 0a                	mov    %ecx,(%edx)
40ecd5:	83 c2 04             	add    $0x4,%edx
40ecd8:	83 c0 08             	add    $0x8,%eax
40ecdb:	4b                   	dec    %ebx
40ecdc:	75 f3                	jne    0x40ecd1
40ecde:	55                   	push   %ebp
40ecdf:	8b 9d f0 fc ff ff    	mov    -0x310(%ebp),%ebx
40ece5:	4b                   	dec    %ebx
40ece6:	8b c3                	mov    %ebx,%eax
40ece8:	e8 23 fe ff ff       	call   0x40eb10
40eced:	59                   	pop    %ecx
40ecee:	84 c0                	test   %al,%al
40ecf0:	74 4c                	je     0x40ed3e
40ecf2:	8d 85 e8 fc ff ff    	lea    -0x318(%ebp),%eax
40ecf8:	50                   	push   %eax
40ecf9:	8d 85 00 ff ff ff    	lea    -0x100(%ebp),%eax
40ecff:	50                   	push   %eax
40ed00:	8b 85 ec fc ff ff    	mov    -0x314(%ebp),%eax
40ed06:	50                   	push   %eax
40ed07:	e8 dc ec ff ff       	call   0x40d9e8
40ed0c:	e8 b7 fa ff ff       	call   0x40e7c8
40ed11:	8d 85 e4 fc ff ff    	lea    -0x31c(%ebp),%eax
40ed17:	50                   	push   %eax
40ed18:	8d 85 00 ff ff ff    	lea    -0x100(%ebp),%eax
40ed1e:	50                   	push   %eax
40ed1f:	56                   	push   %esi
40ed20:	e8 c3 ec ff ff       	call   0x40d9e8
40ed25:	e8 9e fa ff ff       	call   0x40e7c8
40ed2a:	8b 85 e8 fc ff ff    	mov    -0x318(%ebp),%eax
40ed30:	8b d0                	mov    %eax,%edx
40ed32:	8b 85 e4 fc ff ff    	mov    -0x31c(%ebp),%eax
40ed38:	ff 95 f8 fc ff ff    	call   *-0x308(%ebp)
40ed3e:	55                   	push   %ebp
40ed3f:	8b c3                	mov    %ebx,%eax
40ed41:	e8 fa fd ff ff       	call   0x40eb40
40ed46:	59                   	pop    %ecx
40ed47:	84 c0                	test   %al,%al
40ed49:	75 93                	jne    0x40ecde
40ed4b:	eb 12                	jmp    0x40ed5f
40ed4d:	53                   	push   %ebx
40ed4e:	8b 85 fc fc ff ff    	mov    -0x304(%ebp),%eax
40ed54:	50                   	push   %eax
40ed55:	e8 22 e8 ff ff       	call   0x40d57c
40ed5a:	e8 69 fa ff ff       	call   0x40e7c8
40ed5f:	5f                   	pop    %edi
40ed60:	5e                   	pop    %esi
40ed61:	5b                   	pop    %ebx
40ed62:	8b e5                	mov    %ebp,%esp
40ed64:	5d                   	pop    %ebp
40ed65:	c3                   	ret
40ed66:	8b c0                	mov    %eax,%eax
40ed68:	e8 af 00 00 00       	call   0x40ee1c
40ed6d:	c3                   	ret
40ed6e:	8b c0                	mov    %eax,%eax
40ed70:	53                   	push   %ebx
40ed71:	56                   	push   %esi
40ed72:	57                   	push   %edi
40ed73:	51                   	push   %ecx
40ed74:	8b f2                	mov    %edx,%esi
40ed76:	8b d8                	mov    %eax,%ebx
40ed78:	66 f7 03 e8 bf       	testw  $0xbfe8,(%ebx)
40ed7d:	74 07                	je     0x40ed86
40ed7f:	8b c3                	mov    %ebx,%eax
40ed81:	e8 f2 fc ff ff       	call   0x40ea78
40ed86:	66 8b 3e             	mov    (%esi),%di
40ed89:	66 83 ff 14          	cmp    $0x14,%di
40ed8d:	73 0e                	jae    0x40ed9d
40ed8f:	56                   	push   %esi
40ed90:	53                   	push   %ebx
40ed91:	e8 e6 e7 ff ff       	call   0x40d57c
40ed96:	e8 2d fa ff ff       	call   0x40e7c8
40ed9b:	eb 79                	jmp    0x40ee16
40ed9d:	66 81 ff 00 01       	cmp    $0x100,%di
40eda2:	75 17                	jne    0x40edbb
40eda4:	66 c7 03 00 01       	movw   $0x100,(%ebx)
40eda9:	33 c0                	xor    %eax,%eax
40edab:	89 43 08             	mov    %eax,0x8(%ebx)
40edae:	8d 43 08             	lea    0x8(%ebx),%eax
40edb1:	8b 56 08             	mov    0x8(%esi),%edx
40edb4:	e8 33 52 ff ff       	call   0x403fec
40edb9:	eb 5b                	jmp    0x40ee16
40edbb:	66 81 ff 01 01       	cmp    $0x101,%di
40edc0:	75 13                	jne    0x40edd5
40edc2:	66 89 3b             	mov    %di,(%ebx)
40edc5:	8b 46 08             	mov    0x8(%esi),%eax
40edc8:	89 43 08             	mov    %eax,0x8(%ebx)
40edcb:	8b c3                	mov    %ebx,%eax
40edcd:	ff 15 18 e8 46 00    	call   *0x46e818
40edd3:	eb 41                	jmp    0x40ee16
40edd5:	66 f7 c7 00 20       	test   $0x2000,%di