40a99d:	b9 ff ff 00 00       	mov    $0xffff,%ecx
40a9a2:	0f b7 c0             	movzwl %ax,%eax
40a9a5:	66 3b c8             	cmp    %ax,%cx
40a9a8:	75 04                	jne    0x40a9ae
40a9aa:	c6 45 10 01          	movb   $0x1,0x10(%ebp)
40a9ae:	83 c7 02             	add    $0x2,%edi
40a9b1:	89 7d fc             	mov    %edi,-0x4(%ebp)
40a9b4:	83 eb 01             	sub    $0x1,%ebx
40a9b7:	75 97                	jne    0x40a950
40a9b9:	8b 45 f4             	mov    -0xc(%ebp),%eax
40a9bc:	8b 4d 10             	mov    0x10(%ebp),%ecx
40a9bf:	5f                   	pop    %edi
40a9c0:	89 70 04             	mov    %esi,0x4(%eax)
40a9c3:	5e                   	pop    %esi
40a9c4:	89 08                	mov    %ecx,(%eax)
40a9c6:	5b                   	pop    %ebx
40a9c7:	8b e5                	mov    %ebp,%esp
40a9c9:	5d                   	pop    %ebp
40a9ca:	c3                   	ret
40a9cb:	cc                   	int3
40a9cc:	cc                   	int3
40a9cd:	cc                   	int3
40a9ce:	cc                   	int3
40a9cf:	cc                   	int3
40a9d0:	55                   	push   %ebp
40a9d1:	8b ec                	mov    %esp,%ebp
40a9d3:	6a ff                	push   $0xffffffff
40a9d5:	68 35 db 43 00       	push   $0x43db35
40a9da:	64 a1 00 00 00 00    	mov    %fs:0x0,%eax
40a9e0:	50                   	push   %eax
40a9e1:	83 ec 54             	sub    $0x54,%esp
40a9e4:	a1 14 40 45 00       	mov    0x454014,%eax
40a9e9:	33 c5                	xor    %ebp,%eax
40a9eb:	89 45 f0             	mov    %eax,-0x10(%ebp)
40a9ee:	53                   	push   %ebx
40a9ef:	56                   	push   %esi
40a9f0:	57                   	push   %edi
40a9f1:	50                   	push   %eax
40a9f2:	8d 45 f4             	lea    -0xc(%ebp),%eax
40a9f5:	64 a3 00 00 00 00    	mov    %eax,%fs:0x0
40a9fb:	8b 5d 24             	mov    0x24(%ebp),%ebx
40a9fe:	8b 45 0c             	mov    0xc(%ebp),%eax
40aa01:	8b 7d 18             	mov    0x18(%ebp),%edi
40aa04:	8b 55 20             	mov    0x20(%ebp),%edx
40aa07:	89 45 a0             	mov    %eax,-0x60(%ebp)
40aa0a:	89 7d ac             	mov    %edi,-0x54(%ebp)
40aa0d:	89 55 a8             	mov    %edx,-0x58(%ebp)
40aa10:	85 db                	test   %ebx,%ebx
40aa12:	74 11                	je     0x40aa25
40aa14:	8a 02                	mov    (%edx),%al
40aa16:	3c 2b                	cmp    $0x2b,%al
40aa18:	74 04                	je     0x40aa1e
40aa1a:	3c 2d                	cmp    $0x2d,%al
40aa1c:	75 07                	jne    0x40aa25
40aa1e:	b9 01 00 00 00       	mov    $0x1,%ecx
40aa23:	eb 02                	jmp    0x40aa27
40aa25:	33 c9                	xor    %ecx,%ecx
40aa27:	8b 47 14             	mov    0x14(%edi),%eax
40aa2a:	25 00 0e 00 00       	and    $0xe00,%eax
40aa2f:	89 4d b8             	mov    %ecx,-0x48(%ebp)
40aa32:	3d 00 08 00 00       	cmp    $0x800,%eax
40aa37:	75 1c                	jne    0x40aa55
40aa39:	8d 71 02             	lea    0x2(%ecx),%esi
40aa3c:	3b f3                	cmp    %ebx,%esi
40aa3e:	77 15                	ja     0x40aa55
40aa40:	80 3c 0a 30          	cmpb   $0x30,(%edx,%ecx,1)
40aa44:	75 0f                	jne    0x40aa55
40aa46:	8a 44 0a 01          	mov    0x1(%edx,%ecx,1),%al
40aa4a:	3c 78                	cmp    $0x78,%al
40aa4c:	74 04                	je     0x40aa52
40aa4e:	3c 58                	cmp    $0x58,%al
40aa50:	75 03                	jne    0x40aa55
40aa52:	89 75 b8             	mov    %esi,-0x48(%ebp)
40aa55:	8b 47 30             	mov    0x30(%edi),%eax
40aa58:	8b 78 04             	mov    0x4(%eax),%edi
40aa5b:	89 7d b4             	mov    %edi,-0x4c(%ebp)
40aa5e:	8b 07                	mov    (%edi),%eax
40aa60:	8b 70 04             	mov    0x4(%eax),%esi
40aa63:	8b ce                	mov    %esi,%ecx
40aa65:	ff 15 3c f2 43 00    	call   *0x43f23c
40aa6b:	8b cf                	mov    %edi,%ecx
40aa6d:	ff d6                	call   *%esi
40aa6f:	8d 45 b0             	lea    -0x50(%ebp),%eax
40aa72:	c7 45 fc 00 00 00 00 	movl   $0x0,-0x4(%ebp)
40aa79:	50                   	push   %eax
40aa7a:	e8 11 1a 00 00       	call   0x40c490
40aa7f:	c7 45 fc ff ff ff ff 	movl   $0xffffffff,-0x4(%ebp)
40aa86:	83 c4 04             	add    $0x4,%esp
40aa89:	8b 7d b4             	mov    -0x4c(%ebp),%edi
40aa8c:	89 45 bc             	mov    %eax,-0x44(%ebp)
40aa8f:	85 ff                	test   %edi,%edi
40aa91:	74 29                	je     0x40aabc
40aa93:	8b 07                	mov    (%edi),%eax
40aa95:	8b 70 08             	mov    0x8(%eax),%esi
40aa98:	8b ce                	mov    %esi,%ecx
40aa9a:	ff 15 3c f2 43 00    	call   *0x43f23c
40aaa0:	8b cf                	mov    %edi,%ecx
40aaa2:	ff d6                	call   *%esi
40aaa4:	8b f8                	mov    %eax,%edi
40aaa6:	85 ff                	test   %edi,%edi
40aaa8:	74 12                	je     0x40aabc
40aaaa:	8b 07                	mov    (%edi),%eax
40aaac:	6a 01                	push   $0x1
40aaae:	8b 30                	mov    (%eax),%esi
40aab0:	8b ce                	mov    %esi,%ecx
40aab2:	ff 15 3c f2 43 00    	call   *0x43f23c
40aab8:	8b cf                	mov    %edi,%ecx
40aaba:	ff d6                	call   *%esi
40aabc:	53                   	push   %ebx
40aabd:	6a 00                	push   $0x0
40aabf:	8d 4d d8             	lea    -0x28(%ebp),%ecx
40aac2:	c7 45 d8 00 00 00 00 	movl   $0x0,-0x28(%ebp)
40aac9:	c7 45 e8 00 00 00 00 	movl   $0x0,-0x18(%ebp)
40aad0:	c7 45 ec 00 00 00 00 	movl   $0x0,-0x14(%ebp)
40aad7:	e8 74 14 00 00       	call   0x40bf50
40aadc:	8b 7d bc             	mov    -0x44(%ebp),%edi
40aadf:	8d 45 d8             	lea    -0x28(%ebp),%eax
40aae2:	c7 45 fc 01 00 00 00 	movl   $0x1,-0x4(%ebp)
40aae9:	8b 55 a8             	mov    -0x58(%ebp),%edx
40aaec:	83 7d ec 08          	cmpl   $0x8,-0x14(%ebp)
40aaf0:	8b 0f                	mov    (%edi),%ecx
40aaf2:	0f 43 45 d8          	cmovae -0x28(%ebp),%eax
40aaf6:	50                   	push   %eax
40aaf7:	8d 04 13             	lea    (%ebx,%edx,1),%eax
40aafa:	8b 71 2c             	mov    0x2c(%ecx),%esi
40aafd:	8b ce                	mov    %esi,%ecx
40aaff:	50                   	push   %eax
40ab00:	52                   	push   %edx
40ab01:	ff 15 3c f2 43 00    	call   *0x43f23c
40ab07:	8b cf                	mov    %edi,%ecx
40ab09:	ff d6                	call   *%esi
40ab0b:	8b 55 ac             	mov    -0x54(%ebp),%edx
40ab0e:	8b 42 30             	mov    0x30(%edx),%eax
40ab11:	8b 78 04             	mov    0x4(%eax),%edi
40ab14:	89 7d a8             	mov    %edi,-0x58(%ebp)
40ab17:	8b 07                	mov    (%edi),%eax
40ab19:	8b 70 04             	mov    0x4(%eax),%esi
40ab1c:	8b ce                	mov    %esi,%ecx
40ab1e:	ff 15 3c f2 43 00    	call   *0x43f23c
40ab24:	8b cf                	mov    %edi,%ecx
40ab26:	ff d6                	call   *%esi
40ab28:	8d 45 a4             	lea    -0x5c(%ebp),%eax
40ab2b:	c6 45 fc 02          	movb   $0x2,-0x4(%ebp)
40ab2f:	50                   	push   %eax
40ab30:	e8 4b 16 00 00       	call   0x40c180
40ab35:	8b f8                	mov    %eax,%edi
40ab37:	c6 45 fc 01          	movb   $0x1,-0x4(%ebp)
40ab3b:	8b 45 a8             	mov    -0x58(%ebp),%eax
40ab3e:	83 c4 04             	add    $0x4,%esp
40ab41:	89 7d bc             	mov    %edi,-0x44(%ebp)
40ab44:	85 c0                	test   %eax,%eax
40ab46:	74 2d                	je     0x40ab75
40ab48:	8b 00                	mov    (%eax),%eax
40ab4a:	8b 70 08             	mov    0x8(%eax),%esi
40ab4d:	8b ce                	mov    %esi,%ecx
40ab4f:	ff 15 3c f2 43 00    	call   *0x43f23c
40ab55:	8b 4d a8             	mov    -0x58(%ebp),%ecx
40ab58:	ff d6                	call   *%esi
40ab5a:	8b f8                	mov    %eax,%edi
40ab5c:	85 ff                	test   %edi,%edi
40ab5e:	74 12                	je     0x40ab72
40ab60:	8b 07                	mov    (%edi),%eax
40ab62:	6a 01                	push   $0x1
40ab64:	8b 30                	mov    (%eax),%esi
40ab66:	8b ce                	mov    %esi,%ecx
40ab68:	ff 15 3c f2 43 00    	call   *0x43f23c
40ab6e:	8b cf                	mov    %edi,%ecx
40ab70:	ff d6                	call   *%esi
40ab72:	8b 7d bc             	mov    -0x44(%ebp),%edi
40ab75:	8b 07                	mov    (%edi),%eax
40ab77:	8d 4d c0             	lea    -0x40(%ebp),%ecx
40ab7a:	51                   	push   %ecx
40ab7b:	8b 70 14             	mov    0x14(%eax),%esi
40ab7e:	8b ce                	mov    %esi,%ecx
40ab80:	ff 15 3c f2 43 00    	call   *0x43f23c
40ab86:	8b cf                	mov    %edi,%ecx
40ab88:	ff d6                	call   *%esi
40ab8a:	c6 45 fc 03          	movb   $0x3,-0x4(%ebp)
40ab8e:	8d 7d c0             	lea    -0x40(%ebp),%edi
40ab91:	83 7d d4 10          	cmpl   $0x10,-0x2c(%ebp)
40ab95:	0f 43 7d c0          	cmovae -0x40(%ebp),%edi
40ab99:	8a 07                	mov    (%edi),%al
40ab9b:	3c 7f                	cmp    $0x7f,%al
40ab9d:	0f 84 b9 00 00 00    	je     0x40ac5c
40aba3:	84 c0                	test   %al,%al
40aba5:	0f 8e b1 00 00 00    	jle    0x40ac5c
40abab:	8b 45 bc             	mov    -0x44(%ebp),%eax
40abae:	8b 00                	mov    (%eax),%eax
40abb0:	8b 70 10             	mov    0x10(%eax),%esi
40abb3:	8b ce                	mov    %esi,%ecx
40abb5:	ff 15 3c f2 43 00    	call   *0x43f23c
40abbb:	8b 4d bc             	mov    -0x44(%ebp),%ecx
40abbe:	ff d6                	call   *%esi
40abc0:	0f b7 f0             	movzwl %ax,%esi
40abc3:	8a 07                	mov    (%edi),%al
40abc5:	89 75 bc             	mov    %esi,-0x44(%ebp)
40abc8:	3c 7f                	cmp    $0x7f,%al
40abca:	0f 84 8c 00 00 00    	je     0x40ac5c
40abd0:	8b 55 b8             	mov    -0x48(%ebp),%edx
40abd3:	84 c0                	test   %al,%al
40abd5:	0f 8e 84 00 00 00    	jle    0x40ac5f
40abdb:	0f be c8             	movsbl %al,%ecx
40abde:	8b c3                	mov    %ebx,%eax
40abe0:	2b c2                	sub    %edx,%eax
40abe2:	3b c8                	cmp    %eax,%ecx
40abe4:	73 79                	jae    0x40ac5f
40abe6:	2b d9                	sub    %ecx,%ebx
40abe8:	8b 4d e8             	mov    -0x18(%ebp),%ecx
40abeb:	3b cb                	cmp    %ebx,%ecx
40abed:	0f 82 3d 02 00 00    	jb     0x40ae30
40abf3:	8b 55 ec             	mov    -0x14(%ebp),%edx
40abf6:	8b c2                	mov    %edx,%eax
40abf8:	2b c1                	sub    %ecx,%eax
40abfa:	83 f8 01             	cmp    $0x1,%eax
40abfd:	72 34                	jb     0x40ac33
40abff:	8d 41 01             	lea    0x1(%ecx),%eax
40ac02:	83 fa 08             	cmp    $0x8,%edx
40ac05:	89 45 e8             	mov    %eax,-0x18(%ebp)
40ac08:	8d 45 d8             	lea    -0x28(%ebp),%eax
40ac0b:	0f 43 45 d8          	cmovae -0x28(%ebp),%eax
40ac0f:	2b cb                	sub    %ebx,%ecx
40ac11:	8d 34 58             	lea    (%eax,%ebx,2),%esi
40ac14:	8d 04 4d 02 00 00 00 	lea    0x2(,%ecx,2),%eax
40ac1b:	50                   	push   %eax
40ac1c:	8d 46 02             	lea    0x2(%esi),%eax
40ac1f:	56                   	push   %esi
40ac20:	50                   	push   %eax
40ac21:	e8 2a 28 01 00       	call   0x41d450
40ac26:	8b 45 bc             	mov    -0x44(%ebp),%eax
40ac29:	83 c4 0c             	add    $0xc,%esp
40ac2c:	66 89 06             	mov    %ax,(%esi)
40ac2f:	8b f0                	mov    %eax,%esi
40ac31:	eb 15                	jmp    0x40ac48
40ac33:	56                   	push   %esi
40ac34:	6a 01                	push   $0x1
40ac36:	53                   	push   %ebx
40ac37:	c6 45 a8 00          	movb   $0x0,-0x58(%ebp)
40ac3b:	8d 4d d8             	lea    -0x28(%ebp),%ecx
40ac3e:	ff 75 a8             	push   -0x58(%ebp)
40ac41:	6a 01                	push   $0x1
40ac43:	e8 88 19 00 00       	call   0x40c5d0
40ac48:	80 7f 01 00          	cmpb   $0x0,0x1(%edi)
40ac4c:	8d 47 01             	lea    0x1(%edi),%eax
40ac4f:	0f 4f f8             	cmovg  %eax,%edi
40ac52:	8a 07                	mov    (%edi),%al
40ac54:	3c 7f                	cmp    $0x7f,%al
40ac56:	0f 85 74 ff ff ff    	jne    0x40abd0
40ac5c:	8b 55 b8             	mov    -0x48(%ebp),%edx
40ac5f:	8b 45 ac             	mov    -0x54(%ebp),%eax
40ac62:	8b 4d e8             	mov    -0x18(%ebp),%ecx
40ac65:	89 4d bc             	mov    %ecx,-0x44(%ebp)
40ac68:	83 78 24 00          	cmpl   $0x0,0x24(%eax)
40ac6c:	8b 78 20             	mov    0x20(%eax),%edi
40ac6f:	7c 0e                	jl     0x40ac7f
40ac71:	7f 04                	jg     0x40ac77
40ac73:	85 ff                	test   %edi,%edi
40ac75:	74 08                	je     0x40ac7f
40ac77:	3b f9                	cmp    %ecx,%edi
40ac79:	76 04                	jbe    0x40ac7f
40ac7b:	2b f9                	sub    %ecx,%edi
40ac7d:	eb 02                	jmp    0x40ac81
40ac7f:	33 ff                	xor    %edi,%edi
40ac81:	8b 40 14             	mov    0x14(%eax),%eax
40ac84:	8b 75 1c             	mov    0x1c(%ebp),%esi
40ac87:	25 c0 01 00 00       	and    $0x1c0,%eax
40ac8c:	8b 5d 08             	mov    0x8(%ebp),%ebx
40ac8f:	83 f8 40             	cmp    $0x40,%eax
40ac92:	0f 84 84 00 00 00    	je     0x40ad1c
40ac98:	3d 00 01 00 00       	cmp    $0x100,%eax
40ac9d:	74 40                	je     0x40acdf
40ac9f:	57                   	push   %edi
40aca0:	56                   	push   %esi
40aca1:	ff 75 14             	push   0x14(%ebp)
40aca4:	8d 45 b0             	lea    -0x50(%ebp),%eax
40aca7:	ff 75 10             	push   0x10(%ebp)
40acaa:	50                   	push   %eax
40acab:	53                   	push   %ebx
40acac:	e8 ff fb ff ff       	call   0x40a8b0
40acb1:	8b 75 b8             	mov    -0x48(%ebp),%esi
40acb4:	33 ff                	xor    %edi,%edi
40acb6:	83 7d ec 08          	cmpl   $0x8,-0x14(%ebp)
40acba:	56                   	push   %esi
40acbb:	8b 10                	mov    (%eax),%edx
40acbd:	8b 48 04             	mov    0x4(%eax),%ecx
40acc0:	8d 45 d8             	lea    -0x28(%ebp),%eax
40acc3:	0f 43 45 d8          	cmovae -0x28(%ebp),%eax
40acc7:	50                   	push   %eax
40acc8:	51                   	push   %ecx
40acc9:	52                   	push   %edx
40acca:	8d 45 b0             	lea    -0x50(%ebp),%eax
40accd:	89 55 10             	mov    %edx,0x10(%ebp)
40acd0:	50                   	push   %eax
40acd1:	53                   	push   %ebx
40acd2:	89 4d 14             	mov    %ecx,0x14(%ebp)
40acd5:	e8 56 fc ff ff       	call   0x40a930
40acda:	83 c4 30             	add    $0x30,%esp
40acdd:	eb 60                	jmp    0x40ad3f
40acdf:	83 7d ec 08          	cmpl   $0x8,-0x14(%ebp)
40ace3:	8d 45 d8             	lea    -0x28(%ebp),%eax
40ace6:	52                   	push   %edx
40ace7:	0f 43 45 d8          	cmovae -0x28(%ebp),%eax
40aceb:	50                   	push   %eax
40acec:	ff 75 14             	push   0x14(%ebp)
40acef:	8d 45 b0             	lea    -0x50(%ebp),%eax
40acf2:	ff 75 10             	push   0x10(%ebp)
40acf5:	50                   	push   %eax
40acf6:	53                   	push   %ebx
40acf7:	e8 34 fc ff ff       	call   0x40a930
40acfc:	57                   	push   %edi
40acfd:	56                   	push   %esi
40acfe:	8b 08                	mov    (%eax),%ecx
40ad00:	8b 40 04             	mov    0x4(%eax),%eax
40ad03:	50                   	push   %eax
40ad04:	89 45 14             	mov    %eax,0x14(%ebp)
40ad07:	8d 45 b0             	lea    -0x50(%ebp),%eax
40ad0a:	51                   	push   %ecx
40ad0b:	50                   	push   %eax
40ad0c:	53                   	push   %ebx
40ad0d:	89 4d 10             	mov    %ecx,0x10(%ebp)
40ad10:	e8 9b fb ff ff       	call   0x40a8b0
40ad15:	83 c4 30             	add    $0x30,%esp
40ad18:	33 ff                	xor    %edi,%edi
40ad1a:	eb 20                	jmp    0x40ad3c
40ad1c:	83 7d ec 08          	cmpl   $0x8,-0x14(%ebp)
40ad20:	8d 45 d8             	lea    -0x28(%ebp),%eax
40ad23:	52                   	push   %edx
40ad24:	0f 43 45 d8          	cmovae -0x28(%ebp),%eax
40ad28:	50                   	push   %eax
40ad29:	ff 75 14             	push   0x14(%ebp)
40ad2c:	8d 45 b0             	lea    -0x50(%ebp),%eax
40ad2f:	ff 75 10             	push   0x10(%ebp)
40ad32:	50                   	push   %eax
40ad33:	53                   	push   %ebx
40ad34:	e8 f7 fb ff ff       	call   0x40a930
40ad39:	83 c4 18             	add    $0x18,%esp
40ad3c:	8b 75 b8             	mov    -0x48(%ebp),%esi
40ad3f:	8b 10                	mov    (%eax),%edx
40ad41:	8b 48 04             	mov    0x4(%eax),%ecx
40ad44:	8d 45 d8             	lea    -0x28(%ebp),%eax
40ad47:	83 7d ec 08          	cmpl   $0x8,-0x14(%ebp)
40ad4b:	89 55 10             	mov    %edx,0x10(%ebp)
40ad4e:	0f 43 45 d8          	cmovae -0x28(%ebp),%eax
40ad52:	29 75 bc             	sub    %esi,-0x44(%ebp)
40ad55:	ff 75 bc             	push   -0x44(%ebp)
40ad58:	89 4d 14             	mov    %ecx,0x14(%ebp)
40ad5b:	8d 04 70             	lea    (%eax,%esi,2),%eax
40ad5e:	50                   	push   %eax
40ad5f:	51                   	push   %ecx
40ad60:	52                   	push   %edx
40ad61:	8d 45 b0             	lea    -0x50(%ebp),%eax