40ead9:	89 8c 82 00 ff ff ff 	mov    %ecx,-0x100(%edx,%eax,4)
40eae0:	8b 55 08             	mov    0x8(%ebp),%edx
40eae3:	52                   	push   %edx
40eae4:	48                   	dec    %eax
40eae5:	e8 ae ff ff ff       	call   0x40ea98
40eaea:	59                   	pop    %ecx
40eaeb:	8b d0                	mov    %eax,%edx
40eaed:	8b c2                	mov    %edx,%eax
40eaef:	5e                   	pop    %esi
40eaf0:	5b                   	pop    %ebx
40eaf1:	5d                   	pop    %ebp
40eaf2:	c3                   	ret
40eaf3:	90                   	nop
40eaf4:	55                   	push   %ebp
40eaf5:	8b ec                	mov    %esp,%ebp
40eaf7:	81 c4 e8 fc ff ff    	add    $0xfffffce8,%esp
40eafd:	53                   	push   %ebx
40eafe:	56                   	push   %esi
40eaff:	57                   	push   %edi
40eb00:	89 85 fc fc ff ff    	mov    %eax,-0x304(%ebp)
40eb06:	8b 85 fc fc ff ff    	mov    -0x304(%ebp),%eax
40eb0c:	f6 40 01 20          	testb  $0x20,0x1(%eax)
40eb10:	75 0a                	jne    0x40eb1c
40eb12:	b8 57 00 07 80       	mov    $0x80070057,%eax
40eb17:	e8 a4 fe ff ff       	call   0x40e9c0
40eb1c:	8b 85 fc fc ff ff    	mov    -0x304(%ebp),%eax
40eb22:	66 8b 00             	mov    (%eax),%ax
40eb25:	8b d0                	mov    %eax,%edx
40eb27:	66 81 e2 ff 0f       	and    $0xfff,%dx
40eb2c:	66 83 fa 0c          	cmp    $0xc,%dx
40eb30:	0f 85 22 01 00 00    	jne    0x40ec58
40eb36:	8b 95 fc fc ff ff    	mov    -0x304(%ebp),%edx
40eb3c:	f6 c4 40             	test   $0x40,%ah
40eb3f:	74 13                	je     0x40eb54
40eb41:	8b 85 fc fc ff ff    	mov    -0x304(%ebp),%eax
40eb47:	8b 40 08             	mov    0x8(%eax),%eax
40eb4a:	8b 00                	mov    (%eax),%eax
40eb4c:	89 85 f8 fc ff ff    	mov    %eax,-0x308(%ebp)
40eb52:	eb 0f                	jmp    0x40eb63
40eb54:	8b 85 fc fc ff ff    	mov    -0x304(%ebp),%eax
40eb5a:	8b 40 08             	mov    0x8(%eax),%eax
40eb5d:	89 85 f8 fc ff ff    	mov    %eax,-0x308(%ebp)
40eb63:	8b 85 f8 fc ff ff    	mov    -0x308(%ebp),%eax
40eb69:	0f b7 00             	movzwl (%eax),%eax
40eb6c:	89 85 f0 fc ff ff    	mov    %eax,-0x310(%ebp)
40eb72:	8b 9d f0 fc ff ff    	mov    -0x310(%ebp),%ebx
40eb78:	4b                   	dec    %ebx
40eb79:	85 db                	test   %ebx,%ebx
40eb7b:	7c 6b                	jl     0x40ebe8
40eb7d:	43                   	inc    %ebx
40eb7e:	33 ff                	xor    %edi,%edi
40eb80:	8d b5 00 fd ff ff    	lea    -0x300(%ebp),%esi
40eb86:	8b c6                	mov    %esi,%eax
40eb88:	89 85 e8 fc ff ff    	mov    %eax,-0x318(%ebp)
40eb8e:	8b 85 e8 fc ff ff    	mov    -0x318(%ebp),%eax
40eb94:	83 c0 04             	add    $0x4,%eax
40eb97:	50                   	push   %eax
40eb98:	8d 47 01             	lea    0x1(%edi),%eax
40eb9b:	50                   	push   %eax
40eb9c:	8b 85 f8 fc ff ff    	mov    -0x308(%ebp),%eax
40eba2:	50                   	push   %eax
40eba3:	e8 28 f0 ff ff       	call   0x40dbd0
40eba8:	e8 13 fe ff ff       	call   0x40e9c0
40ebad:	8d 85 f4 fc ff ff    	lea    -0x30c(%ebp),%eax
40ebb3:	50                   	push   %eax
40ebb4:	8d 47 01             	lea    0x1(%edi),%eax
40ebb7:	50                   	push   %eax
40ebb8:	8b 85 f8 fc ff ff    	mov    -0x308(%ebp),%eax
40ebbe:	50                   	push   %eax
40ebbf:	e8 14 f0 ff ff       	call   0x40dbd8
40ebc4:	e8 f7 fd ff ff       	call   0x40e9c0
40ebc9:	8b 85 e8 fc ff ff    	mov    -0x318(%ebp),%eax
40ebcf:	8b 95 f4 fc ff ff    	mov    -0x30c(%ebp),%edx
40ebd5:	2b 50 04             	sub    0x4(%eax),%edx
40ebd8:	42                   	inc    %edx
40ebd9:	8b 85 e8 fc ff ff    	mov    -0x318(%ebp),%eax
40ebdf:	89 10                	mov    %edx,(%eax)
40ebe1:	47                   	inc    %edi
40ebe2:	83 c6 08             	add    $0x8,%esi
40ebe5:	4b                   	dec    %ebx
40ebe6:	75 9e                	jne    0x40eb86
40ebe8:	8b 9d f0 fc ff ff    	mov    -0x310(%ebp),%ebx
40ebee:	4b                   	dec    %ebx
40ebef:	85 db                	test   %ebx,%ebx
40ebf1:	7c 1a                	jl     0x40ec0d
40ebf3:	43                   	inc    %ebx
40ebf4:	8d 85 04 fd ff ff    	lea    -0x2fc(%ebp),%eax
40ebfa:	8d 95 00 ff ff ff    	lea    -0x100(%ebp),%edx
40ec00:	8b 08                	mov    (%eax),%ecx
40ec02:	89 0a                	mov    %ecx,(%edx)
40ec04:	83 c2 04             	add    $0x4,%edx
40ec07:	83 c0 08             	add    $0x8,%eax
40ec0a:	4b                   	dec    %ebx
40ec0b:	75 f3                	jne    0x40ec00
40ec0d:	55                   	push   %ebp
40ec0e:	8b 9d f0 fc ff ff    	mov    -0x310(%ebp),%ebx
40ec14:	4b                   	dec    %ebx
40ec15:	8b c3                	mov    %ebx,%eax
40ec17:	e8 4c fe ff ff       	call   0x40ea68
40ec1c:	59                   	pop    %ecx
40ec1d:	84 c0                	test   %al,%al
40ec1f:	74 2a                	je     0x40ec4b
40ec21:	8d 85 ec fc ff ff    	lea    -0x314(%ebp),%eax
40ec27:	50                   	push   %eax
40ec28:	8d 85 00 ff ff ff    	lea    -0x100(%ebp),%eax
40ec2e:	50                   	push   %eax
40ec2f:	8b 85 f8 fc ff ff    	mov    -0x308(%ebp),%eax
40ec35:	50                   	push   %eax
40ec36:	e8 a5 ef ff ff       	call   0x40dbe0
40ec3b:	e8 80 fd ff ff       	call   0x40e9c0
40ec40:	8b 85 ec fc ff ff    	mov    -0x314(%ebp),%eax
40ec46:	e8 a1 00 00 00       	call   0x40ecec
40ec4b:	55                   	push   %ebp
40ec4c:	8b c3                	mov    %ebx,%eax
40ec4e:	e8 45 fe ff ff       	call   0x40ea98
40ec53:	59                   	pop    %ecx
40ec54:	84 c0                	test   %al,%al
40ec56:	75 b5                	jne    0x40ec0d
40ec58:	8b 85 fc fc ff ff    	mov    -0x304(%ebp),%eax
40ec5e:	50                   	push   %eax
40ec5f:	e8 08 eb ff ff       	call   0x40d76c
40ec64:	e8 57 fd ff ff       	call   0x40e9c0
40ec69:	5f                   	pop    %edi
40ec6a:	5e                   	pop    %esi
40ec6b:	5b                   	pop    %ebx
40ec6c:	8b e5                	mov    %ebp,%esp
40ec6e:	5d                   	pop    %ebp
40ec6f:	c3                   	ret
40ec70:	53                   	push   %ebx
40ec71:	56                   	push   %esi
40ec72:	51                   	push   %ecx
40ec73:	8b d8                	mov    %eax,%ebx
40ec75:	66 8b 33             	mov    (%ebx),%si
40ec78:	66 83 fe 14          	cmp    $0x14,%si
40ec7c:	73 0d                	jae    0x40ec8b
40ec7e:	53                   	push   %ebx
40ec7f:	e8 e8 ea ff ff       	call   0x40d76c
40ec84:	e8 37 fd ff ff       	call   0x40e9c0
40ec89:	eb 5b                	jmp    0x40ece6
40ec8b:	66 81 fe 00 01       	cmp    $0x100,%si
40ec90:	75 0f                	jne    0x40eca1
40ec92:	66 c7 03 00 00       	movw   $0x0,(%ebx)
40ec97:	8d 43 08             	lea    0x8(%ebx),%eax
40ec9a:	e8 1d 53 ff ff       	call   0x403fbc
40ec9f:	eb 45                	jmp    0x40ece6
40eca1:	66 81 fe 01 01       	cmp    $0x101,%si
40eca6:	75 0a                	jne    0x40ecb2
40eca8:	8b c3                	mov    %ebx,%eax
40ecaa:	ff 15 10 98 46 00    	call   *0x469810
40ecb0:	eb 34                	jmp    0x40ece6
40ecb2:	66 f7 c6 00 20       	test   $0x2000,%si
40ecb7:	74 09                	je     0x40ecc2
40ecb9:	8b c3                	mov    %ebx,%eax
40ecbb:	e8 34 fe ff ff       	call   0x40eaf4
40ecc0:	eb 24                	jmp    0x40ece6
40ecc2:	8b d4                	mov    %esp,%edx
40ecc4:	8b c6                	mov    %esi,%eax
40ecc6:	e8 0d 1a 00 00       	call   0x4106d8
40eccb:	84 c0                	test   %al,%al
40eccd:	74 0c                	je     0x40ecdb
40eccf:	8b d3                	mov    %ebx,%edx
40ecd1:	8b 04 24             	mov    (%esp),%eax
40ecd4:	8b 08                	mov    (%eax),%ecx
40ecd6:	ff 51 24             	call   *0x24(%ecx)
40ecd9:	eb 0b                	jmp    0x40ece6
40ecdb:	53                   	push   %ebx
40ecdc:	e8 8b ea ff ff       	call   0x40d76c
40ece1:	e8 da fc ff ff       	call   0x40e9c0
40ece6:	5a                   	pop    %edx
40ece7:	5e                   	pop    %esi
40ece8:	5b                   	pop    %ebx
40ece9:	c3                   	ret
40ecea:	8b c0                	mov    %eax,%eax
40ecec:	66 f7 00 e8 bf       	testw  $0xbfe8,(%eax)
40ecf1:	75 06                	jne    0x40ecf9
40ecf3:	66 c7 00 00 00       	movw   $0x0,(%eax)
40ecf8:	c3                   	ret
40ecf9:	e8 72 ff ff ff       	call   0x40ec70
40ecfe:	c3                   	ret
40ecff:	90                   	nop
40ed00:	50                   	push   %eax
40ed01:	e8 e6 ff ff ff       	call   0x40ecec
40ed06:	58                   	pop    %eax
40ed07:	c3                   	ret
40ed08:	55                   	push   %ebp
40ed09:	8b ec                	mov    %esp,%ebp
40ed0b:	53                   	push   %ebx
40ed0c:	8b 4d 08             	mov    0x8(%ebp),%ecx
40ed0f:	81 c1 00 fd ff ff    	add    $0xfffffd00,%ecx
40ed15:	8b 54 c1 04          	mov    0x4(%ecx,%eax,8),%edx
40ed19:	03 14 c1             	add    (%ecx,%eax,8),%edx
40ed1c:	8b 5d 08             	mov    0x8(%ebp),%ebx
40ed1f:	3b 94 83 00 ff ff ff 	cmp    -0x100(%ebx,%eax,4),%edx
40ed26:	0f 9f c2             	setg   %dl
40ed29:	48                   	dec    %eax
40ed2a:	84 d2                	test   %dl,%dl
40ed2c:	74 04                	je     0x40ed32
40ed2e:	85 c0                	test   %eax,%eax
40ed30:	7d e3                	jge    0x40ed15
40ed32:	8b c2                	mov    %edx,%eax
40ed34:	5b                   	pop    %ebx
40ed35:	5d                   	pop    %ebp
40ed36:	c3                   	ret
40ed37:	90                   	nop
40ed38:	55                   	push   %ebp
40ed39:	8b ec                	mov    %esp,%ebp
40ed3b:	53                   	push   %ebx
40ed3c:	56                   	push   %esi
40ed3d:	b2 01                	mov    $0x1,%dl
40ed3f:	8b 4d 08             	mov    0x8(%ebp),%ecx
40ed42:	ff 84 81 00 ff ff ff 	incl   -0x100(%ecx,%eax,4)
40ed49:	8b 4d 08             	mov    0x8(%ebp),%ecx
40ed4c:	8b 8c c1 04 fd ff ff 	mov    -0x2fc(%ecx,%eax,8),%ecx
40ed53:	8b d9                	mov    %ecx,%ebx
40ed55:	8b 75 08             	mov    0x8(%ebp),%esi
40ed58:	03 9c c6 00 fd ff ff 	add    -0x300(%esi,%eax,8),%ebx
40ed5f:	8b 75 08             	mov    0x8(%ebp),%esi
40ed62:	3b 9c 86 00 ff ff ff 	cmp    -0x100(%esi,%eax,4),%ebx
40ed69:	7f 22                	jg     0x40ed8d
40ed6b:	85 c0                	test   %eax,%eax
40ed6d:	75 04                	jne    0x40ed73
40ed6f:	33 d2                	xor    %edx,%edx
40ed71:	eb 1a                	jmp    0x40ed8d
40ed73:	8b 55 08             	mov    0x8(%ebp),%edx
40ed76:	8b 55 08             	mov    0x8(%ebp),%edx
40ed79:	89 8c 82 00 ff ff ff 	mov    %ecx,-0x100(%edx,%eax,4)
40ed80:	8b 55 08             	mov    0x8(%ebp),%edx
40ed83:	52                   	push   %edx
40ed84:	48                   	dec    %eax
40ed85:	e8 ae ff ff ff       	call   0x40ed38
40ed8a:	59                   	pop    %ecx
40ed8b:	8b d0                	mov    %eax,%edx
40ed8d:	8b c2                	mov    %edx,%eax
40ed8f:	5e                   	pop    %esi
40ed90:	5b                   	pop    %ebx
40ed91:	5d                   	pop    %ebp
40ed92:	c3                   	ret
40ed93:	90                   	nop
40ed94:	55                   	push   %ebp
40ed95:	8b ec                	mov    %esp,%ebp
40ed97:	81 c4 e0 fc ff ff    	add    $0xfffffce0,%esp
40ed9d:	53                   	push   %ebx
40ed9e:	56                   	push   %esi
40ed9f:	57                   	push   %edi
40eda0:	89 8d f8 fc ff ff    	mov    %ecx,-0x308(%ebp)
40eda6:	8b da                	mov    %edx,%ebx
40eda8:	89 85 fc fc ff ff    	mov    %eax,-0x304(%ebp)
40edae:	f6 43 01 20          	testb  $0x20,0x1(%ebx)
40edb2:	75 0a                	jne    0x40edbe
40edb4:	b8 57 00 07 80       	mov    $0x80070057,%eax
40edb9:	e8 02 fc ff ff       	call   0x40e9c0
40edbe:	66 8b 03             	mov    (%ebx),%ax
40edc1:	8b d0                	mov    %eax,%edx
40edc3:	66 81 e2 ff 0f       	and    $0xfff,%dx
40edc8:	66 83 fa 0c          	cmp    $0xc,%dx
40edcc:	0f 85 73 01 00 00    	jne    0x40ef45
40edd2:	f6 c4 40             	test   $0x40,%ah
40edd5:	74 0d                	je     0x40ede4
40edd7:	8b 43 08             	mov    0x8(%ebx),%eax
40edda:	8b 00                	mov    (%eax),%eax
40eddc:	89 85 ec fc ff ff    	mov    %eax,-0x314(%ebp)
40ede2:	eb 09                	jmp    0x40eded
40ede4:	8b 43 08             	mov    0x8(%ebx),%eax
40ede7:	89 85 ec fc ff ff    	mov    %eax,-0x314(%ebp)
40eded:	8b 85 ec fc ff ff    	mov    -0x314(%ebp),%eax
40edf3:	0f b7 00             	movzwl (%eax),%eax
40edf6:	89 85 f0 fc ff ff    	mov    %eax,-0x310(%ebp)
40edfc:	8b 9d f0 fc ff ff    	mov    -0x310(%ebp),%ebx
40ee02:	4b                   	dec    %ebx
40ee03:	85 db                	test   %ebx,%ebx
40ee05:	7c 6b                	jl     0x40ee72
40ee07:	43                   	inc    %ebx
40ee08:	33 ff                	xor    %edi,%edi
40ee0a:	8d b5 00 fd ff ff    	lea    -0x300(%ebp),%esi
40ee10:	8b c6                	mov    %esi,%eax
40ee12:	89 85 e0 fc ff ff    	mov    %eax,-0x320(%ebp)
40ee18:	8b 85 e0 fc ff ff    	mov    -0x320(%ebp),%eax
40ee1e:	83 c0 04             	add    $0x4,%eax
40ee21:	50                   	push   %eax
40ee22:	8d 47 01             	lea    0x1(%edi),%eax
40ee25:	50                   	push   %eax
40ee26:	8b 85 ec fc ff ff    	mov    -0x314(%ebp),%eax
40ee2c:	50                   	push   %eax
40ee2d:	e8 9e ed ff ff       	call   0x40dbd0
40ee32:	e8 89 fb ff ff       	call   0x40e9c0
40ee37:	8d 85 f4 fc ff ff    	lea    -0x30c(%ebp),%eax
40ee3d:	50                   	push   %eax
40ee3e:	8d 47 01             	lea    0x1(%edi),%eax
40ee41:	50                   	push   %eax
40ee42:	8b 85 ec fc ff ff    	mov    -0x314(%ebp),%eax
40ee48:	50                   	push   %eax
40ee49:	e8 8a ed ff ff       	call   0x40dbd8
40ee4e:	e8 6d fb ff ff       	call   0x40e9c0
40ee53:	8b 85 e0 fc ff ff    	mov    -0x320(%ebp),%eax
40ee59:	8b 95 f4 fc ff ff    	mov    -0x30c(%ebp),%edx
40ee5f:	2b 50 04             	sub    0x4(%eax),%edx
40ee62:	42                   	inc    %edx
40ee63:	8b 85 e0 fc ff ff    	mov    -0x320(%ebp),%eax
40ee69:	89 10                	mov    %edx,(%eax)
40ee6b:	47                   	inc    %edi
40ee6c:	83 c6 08             	add    $0x8,%esi
40ee6f:	4b                   	dec    %ebx
40ee70:	75 9e                	jne    0x40ee10
40ee72:	8d 85 00 fd ff ff    	lea    -0x300(%ebp),%eax
40ee78:	50                   	push   %eax
40ee79:	8b 85 f0 fc ff ff    	mov    -0x310(%ebp),%eax
40ee7f:	50                   	push   %eax
40ee80:	6a 0c                	push   $0xc
40ee82:	e8 41 ed ff ff       	call   0x40dbc8
40ee87:	8b f0                	mov    %eax,%esi
40ee89:	85 f6                	test   %esi,%esi
40ee8b:	75 05                	jne    0x40ee92
40ee8d:	e8 86 f8 ff ff       	call   0x40e718
40ee92:	8b 85 fc fc ff ff    	mov    -0x304(%ebp),%eax
40ee98:	e8 4f fe ff ff       	call   0x40ecec
40ee9d:	8b 85 fc fc ff ff    	mov    -0x304(%ebp),%eax
40eea3:	66 c7 00 0c 20       	movw   $0x200c,(%eax)
40eea8:	8b 85 fc fc ff ff    	mov    -0x304(%ebp),%eax
40eeae:	89 70 08             	mov    %esi,0x8(%eax)
40eeb1:	8b 9d f0 fc ff ff    	mov    -0x310(%ebp),%ebx
40eeb7:	4b                   	dec    %ebx
40eeb8:	85 db                	test   %ebx,%ebx
40eeba:	7c 1a                	jl     0x40eed6
40eebc:	43                   	inc    %ebx
40eebd:	8d 85 04 fd ff ff    	lea    -0x2fc(%ebp),%eax
40eec3:	8d 95 00 ff ff ff    	lea    -0x100(%ebp),%edx
40eec9:	8b 08                	mov    (%eax),%ecx
40eecb:	89 0a                	mov    %ecx,(%edx)
40eecd:	83 c2 04             	add    $0x4,%edx
40eed0:	83 c0 08             	add    $0x8,%eax
40eed3:	4b                   	dec    %ebx
40eed4:	75 f3                	jne    0x40eec9
40eed6:	55                   	push   %ebp
40eed7:	8b 9d f0 fc ff ff    	mov    -0x310(%ebp),%ebx
40eedd:	4b                   	dec    %ebx
40eede:	8b c3                	mov    %ebx,%eax
40eee0:	e8 23 fe ff ff       	call   0x40ed08
40eee5:	59                   	pop    %ecx
40eee6:	84 c0                	test   %al,%al
40eee8:	74 4c                	je     0x40ef36
40eeea:	8d 85 e8 fc ff ff    	lea    -0x318(%ebp),%eax
40eef0:	50                   	push   %eax
40eef1:	8d 85 00 ff ff ff    	lea    -0x100(%ebp),%eax
40eef7:	50                   	push   %eax
40eef8:	8b 85 ec fc ff ff    	mov    -0x314(%ebp),%eax
40eefe:	50                   	push   %eax
40eeff:	e8 dc ec ff ff       	call   0x40dbe0
40ef04:	e8 b7 fa ff ff       	call   0x40e9c0
40ef09:	8d 85 e4 fc ff ff    	lea    -0x31c(%ebp),%eax
40ef0f:	50                   	push   %eax