40fdca:	8b 40 08             	mov    0x8(%eax),%eax
40fdcd:	89 85 f8 fc ff ff    	mov    %eax,-0x308(%ebp)
40fdd3:	8b 85 f8 fc ff ff    	mov    -0x308(%ebp),%eax
40fdd9:	0f b7 00             	movzwl (%eax),%eax
40fddc:	89 85 f0 fc ff ff    	mov    %eax,-0x310(%ebp)
40fde2:	8b 9d f0 fc ff ff    	mov    -0x310(%ebp),%ebx
40fde8:	4b                   	dec    %ebx
40fde9:	85 db                	test   %ebx,%ebx
40fdeb:	7c 6b                	jl     0x40fe58
40fded:	43                   	inc    %ebx
40fdee:	33 ff                	xor    %edi,%edi
40fdf0:	8d b5 00 fd ff ff    	lea    -0x300(%ebp),%esi
40fdf6:	8b c6                	mov    %esi,%eax
40fdf8:	89 85 e8 fc ff ff    	mov    %eax,-0x318(%ebp)
40fdfe:	8b 85 e8 fc ff ff    	mov    -0x318(%ebp),%eax
40fe04:	83 c0 04             	add    $0x4,%eax
40fe07:	50                   	push   %eax
40fe08:	8d 47 01             	lea    0x1(%edi),%eax
40fe0b:	50                   	push   %eax
40fe0c:	8b 85 f8 fc ff ff    	mov    -0x308(%ebp),%eax
40fe12:	50                   	push   %eax
40fe13:	e8 54 ed ff ff       	call   0x40eb6c
40fe18:	e8 8f fd ff ff       	call   0x40fbac
40fe1d:	8d 85 f4 fc ff ff    	lea    -0x30c(%ebp),%eax
40fe23:	50                   	push   %eax
40fe24:	8d 47 01             	lea    0x1(%edi),%eax
40fe27:	50                   	push   %eax
40fe28:	8b 85 f8 fc ff ff    	mov    -0x308(%ebp),%eax
40fe2e:	50                   	push   %eax
40fe2f:	e8 40 ed ff ff       	call   0x40eb74
40fe34:	e8 73 fd ff ff       	call   0x40fbac
40fe39:	8b 85 e8 fc ff ff    	mov    -0x318(%ebp),%eax
40fe3f:	8b 95 f4 fc ff ff    	mov    -0x30c(%ebp),%edx
40fe45:	2b 50 04             	sub    0x4(%eax),%edx
40fe48:	42                   	inc    %edx
40fe49:	8b 85 e8 fc ff ff    	mov    -0x318(%ebp),%eax
40fe4f:	89 10                	mov    %edx,(%eax)
40fe51:	47                   	inc    %edi
40fe52:	83 c6 08             	add    $0x8,%esi
40fe55:	4b                   	dec    %ebx
40fe56:	75 9e                	jne    0x40fdf6
40fe58:	8b 9d f0 fc ff ff    	mov    -0x310(%ebp),%ebx
40fe5e:	4b                   	dec    %ebx
40fe5f:	85 db                	test   %ebx,%ebx
40fe61:	7c 1a                	jl     0x40fe7d
40fe63:	43                   	inc    %ebx
40fe64:	8d 85 04 fd ff ff    	lea    -0x2fc(%ebp),%eax
40fe6a:	8d 95 00 ff ff ff    	lea    -0x100(%ebp),%edx
40fe70:	8b 08                	mov    (%eax),%ecx
40fe72:	89 0a                	mov    %ecx,(%edx)
40fe74:	83 c2 04             	add    $0x4,%edx
40fe77:	83 c0 08             	add    $0x8,%eax
40fe7a:	4b                   	dec    %ebx
40fe7b:	75 f3                	jne    0x40fe70
40fe7d:	55                   	push   %ebp
40fe7e:	8b 9d f0 fc ff ff    	mov    -0x310(%ebp),%ebx
40fe84:	4b                   	dec    %ebx
40fe85:	8b c3                	mov    %ebx,%eax
40fe87:	e8 4c fe ff ff       	call   0x40fcd8
40fe8c:	59                   	pop    %ecx
40fe8d:	84 c0                	test   %al,%al
40fe8f:	74 2a                	je     0x40febb
40fe91:	8d 85 ec fc ff ff    	lea    -0x314(%ebp),%eax
40fe97:	50                   	push   %eax
40fe98:	8d 85 00 ff ff ff    	lea    -0x100(%ebp),%eax
40fe9e:	50                   	push   %eax
40fe9f:	8b 85 f8 fc ff ff    	mov    -0x308(%ebp),%eax
40fea5:	50                   	push   %eax
40fea6:	e8 f1 ec ff ff       	call   0x40eb9c
40feab:	e8 fc fc ff ff       	call   0x40fbac
40feb0:	8b 85 ec fc ff ff    	mov    -0x314(%ebp),%eax
40feb6:	e8 a1 00 00 00       	call   0x40ff5c
40febb:	55                   	push   %ebp
40febc:	8b c3                	mov    %ebx,%eax
40febe:	e8 45 fe ff ff       	call   0x40fd08
40fec3:	59                   	pop    %ecx
40fec4:	84 c0                	test   %al,%al
40fec6:	75 b5                	jne    0x40fe7d
40fec8:	8b 85 fc fc ff ff    	mov    -0x304(%ebp),%eax
40fece:	50                   	push   %eax
40fecf:	e8 2c e8 ff ff       	call   0x40e700
40fed4:	e8 d3 fc ff ff       	call   0x40fbac
40fed9:	5f                   	pop    %edi
40feda:	5e                   	pop    %esi
40fedb:	5b                   	pop    %ebx
40fedc:	8b e5                	mov    %ebp,%esp
40fede:	5d                   	pop    %ebp
40fedf:	c3                   	ret
40fee0:	53                   	push   %ebx
40fee1:	56                   	push   %esi
40fee2:	51                   	push   %ecx
40fee3:	8b d8                	mov    %eax,%ebx
40fee5:	66 8b 33             	mov    (%ebx),%si
40fee8:	66 83 fe 14          	cmp    $0x14,%si
40feec:	73 0d                	jae    0x40fefb
40feee:	53                   	push   %ebx
40feef:	e8 0c e8 ff ff       	call   0x40e700
40fef4:	e8 b3 fc ff ff       	call   0x40fbac
40fef9:	eb 5b                	jmp    0x40ff56
40fefb:	66 81 fe 00 01       	cmp    $0x100,%si
40ff00:	75 0f                	jne    0x40ff11
40ff02:	66 c7 03 00 00       	movw   $0x0,(%ebx)
40ff07:	8d 43 08             	lea    0x8(%ebx),%eax
40ff0a:	e8 55 42 ff ff       	call   0x404164
40ff0f:	eb 45                	jmp    0x40ff56
40ff11:	66 81 fe 01 01       	cmp    $0x101,%si
40ff16:	75 0a                	jne    0x40ff22
40ff18:	8b c3                	mov    %ebx,%eax
40ff1a:	ff 15 14 c8 49 00    	call   *0x49c814
40ff20:	eb 34                	jmp    0x40ff56
40ff22:	66 f7 c6 00 20       	test   $0x2000,%si
40ff27:	74 09                	je     0x40ff32
40ff29:	8b c3                	mov    %ebx,%eax
40ff2b:	e8 34 fe ff ff       	call   0x40fd64
40ff30:	eb 24                	jmp    0x40ff56
40ff32:	8b d4                	mov    %esp,%edx
40ff34:	8b c6                	mov    %esi,%eax
40ff36:	e8 61 71 00 00       	call   0x41709c
40ff3b:	84 c0                	test   %al,%al
40ff3d:	74 0c                	je     0x40ff4b
40ff3f:	8b d3                	mov    %ebx,%edx
40ff41:	8b 04 24             	mov    (%esp),%eax
40ff44:	8b 08                	mov    (%eax),%ecx
40ff46:	ff 51 24             	call   *0x24(%ecx)
40ff49:	eb 0b                	jmp    0x40ff56
40ff4b:	53                   	push   %ebx
40ff4c:	e8 af e7 ff ff       	call   0x40e700
40ff51:	e8 56 fc ff ff       	call   0x40fbac
40ff56:	5a                   	pop    %edx
40ff57:	5e                   	pop    %esi
40ff58:	5b                   	pop    %ebx
40ff59:	c3                   	ret
40ff5a:	8b c0                	mov    %eax,%eax
40ff5c:	66 f7 00 e8 bf       	testw  $0xbfe8,(%eax)
40ff61:	75 06                	jne    0x40ff69
40ff63:	66 c7 00 00 00       	movw   $0x0,(%eax)
40ff68:	c3                   	ret
40ff69:	e8 72 ff ff ff       	call   0x40fee0
40ff6e:	c3                   	ret
40ff6f:	90                   	nop
40ff70:	50                   	push   %eax
40ff71:	e8 e6 ff ff ff       	call   0x40ff5c
40ff76:	58                   	pop    %eax
40ff77:	c3                   	ret
40ff78:	55                   	push   %ebp
40ff79:	8b ec                	mov    %esp,%ebp
40ff7b:	53                   	push   %ebx
40ff7c:	8b 4d 08             	mov    0x8(%ebp),%ecx
40ff7f:	81 c1 00 fd ff ff    	add    $0xfffffd00,%ecx
40ff85:	8b 54 c1 04          	mov    0x4(%ecx,%eax,8),%edx
40ff89:	03 14 c1             	add    (%ecx,%eax,8),%edx
40ff8c:	8b 5d 08             	mov    0x8(%ebp),%ebx
40ff8f:	3b 94 83 00 ff ff ff 	cmp    -0x100(%ebx,%eax,4),%edx
40ff96:	0f 9f c2             	setg   %dl
40ff99:	48                   	dec    %eax
40ff9a:	84 d2                	test   %dl,%dl
40ff9c:	74 04                	je     0x40ffa2
40ff9e:	85 c0                	test   %eax,%eax
40ffa0:	7d e3                	jge    0x40ff85
40ffa2:	8b c2                	mov    %edx,%eax
40ffa4:	5b                   	pop    %ebx
40ffa5:	5d                   	pop    %ebp
40ffa6:	c3                   	ret
40ffa7:	90                   	nop
40ffa8:	55                   	push   %ebp
40ffa9:	8b ec                	mov    %esp,%ebp
40ffab:	53                   	push   %ebx
40ffac:	56                   	push   %esi
40ffad:	b2 01                	mov    $0x1,%dl
40ffaf:	8b 4d 08             	mov    0x8(%ebp),%ecx
40ffb2:	ff 84 81 00 ff ff ff 	incl   -0x100(%ecx,%eax,4)
40ffb9:	8b 4d 08             	mov    0x8(%ebp),%ecx
40ffbc:	8b 8c c1 04 fd ff ff 	mov    -0x2fc(%ecx,%eax,8),%ecx
40ffc3:	8b d9                	mov    %ecx,%ebx
40ffc5:	8b 75 08             	mov    0x8(%ebp),%esi
40ffc8:	03 9c c6 00 fd ff ff 	add    -0x300(%esi,%eax,8),%ebx
40ffcf:	8b 75 08             	mov    0x8(%ebp),%esi
40ffd2:	3b 9c 86 00 ff ff ff 	cmp    -0x100(%esi,%eax,4),%ebx
40ffd9:	7f 22                	jg     0x40fffd
40ffdb:	85 c0                	test   %eax,%eax
40ffdd:	75 04                	jne    0x40ffe3
40ffdf:	33 d2                	xor    %edx,%edx
40ffe1:	eb 1a                	jmp    0x40fffd
40ffe3:	8b 55 08             	mov    0x8(%ebp),%edx
40ffe6:	8b 55 08             	mov    0x8(%ebp),%edx
40ffe9:	89 8c 82 00 ff ff ff 	mov    %ecx,-0x100(%edx,%eax,4)
40fff0:	8b 55 08             	mov    0x8(%ebp),%edx
40fff3:	52                   	push   %edx
40fff4:	48                   	dec    %eax
40fff5:	e8 ae ff ff ff       	call   0x40ffa8
40fffa:	59                   	pop    %ecx
40fffb:	8b d0                	mov    %eax,%edx
40fffd:	8b c2                	mov    %edx,%eax
40ffff:	5e                   	pop    %esi
410000:	5b                   	pop    %ebx
410001:	5d                   	pop    %ebp
410002:	c3                   	ret
410003:	90                   	nop
410004:	55                   	push   %ebp
410005:	8b ec                	mov    %esp,%ebp
410007:	81 c4 e0 fc ff ff    	add    $0xfffffce0,%esp
41000d:	53                   	push   %ebx
41000e:	56                   	push   %esi
41000f:	57                   	push   %edi
410010:	89 8d f8 fc ff ff    	mov    %ecx,-0x308(%ebp)
410016:	8b da                	mov    %edx,%ebx
410018:	89 85 fc fc ff ff    	mov    %eax,-0x304(%ebp)
41001e:	f6 43 01 20          	testb  $0x20,0x1(%ebx)
410022:	75 0a                	jne    0x41002e
410024:	b8 57 00 07 80       	mov    $0x80070057,%eax
410029:	e8 7e fb ff ff       	call   0x40fbac
41002e:	66 8b 03             	mov    (%ebx),%ax
410031:	8b d0                	mov    %eax,%edx
410033:	66 81 e2 ff 0f       	and    $0xfff,%dx
410038:	66 83 fa 0c          	cmp    $0xc,%dx
41003c:	0f 85 73 01 00 00    	jne    0x4101b5
410042:	f6 c4 40             	test   $0x40,%ah
410045:	74 0d                	je     0x410054
410047:	8b 43 08             	mov    0x8(%ebx),%eax
41004a:	8b 00                	mov    (%eax),%eax
41004c:	89 85 ec fc ff ff    	mov    %eax,-0x314(%ebp)
410052:	eb 09                	jmp    0x41005d
410054:	8b 43 08             	mov    0x8(%ebx),%eax
410057:	89 85 ec fc ff ff    	mov    %eax,-0x314(%ebp)
41005d:	8b 85 ec fc ff ff    	mov    -0x314(%ebp),%eax
410063:	0f b7 00             	movzwl (%eax),%eax
410066:	89 85 f0 fc ff ff    	mov    %eax,-0x310(%ebp)
41006c:	8b 9d f0 fc ff ff    	mov    -0x310(%ebp),%ebx
410072:	4b                   	dec    %ebx
410073:	85 db                	test   %ebx,%ebx
410075:	7c 6b                	jl     0x4100e2
410077:	43                   	inc    %ebx
410078:	33 ff                	xor    %edi,%edi
41007a:	8d b5 00 fd ff ff    	lea    -0x300(%ebp),%esi
410080:	8b c6                	mov    %esi,%eax
410082:	89 85 e0 fc ff ff    	mov    %eax,-0x320(%ebp)
410088:	8b 85 e0 fc ff ff    	mov    -0x320(%ebp),%eax
41008e:	83 c0 04             	add    $0x4,%eax
410091:	50                   	push   %eax
410092:	8d 47 01             	lea    0x1(%edi),%eax
410095:	50                   	push   %eax
410096:	8b 85 ec fc ff ff    	mov    -0x314(%ebp),%eax
41009c:	50                   	push   %eax
41009d:	e8 ca ea ff ff       	call   0x40eb6c
4100a2:	e8 05 fb ff ff       	call   0x40fbac
4100a7:	8d 85 f4 fc ff ff    	lea    -0x30c(%ebp),%eax
4100ad:	50                   	push   %eax
4100ae:	8d 47 01             	lea    0x1(%edi),%eax
4100b1:	50                   	push   %eax
4100b2:	8b 85 ec fc ff ff    	mov    -0x314(%ebp),%eax
4100b8:	50                   	push   %eax
4100b9:	e8 b6 ea ff ff       	call   0x40eb74
4100be:	e8 e9 fa ff ff       	call   0x40fbac
4100c3:	8b 85 e0 fc ff ff    	mov    -0x320(%ebp),%eax
4100c9:	8b 95 f4 fc ff ff    	mov    -0x30c(%ebp),%edx
4100cf:	2b 50 04             	sub    0x4(%eax),%edx
4100d2:	42                   	inc    %edx
4100d3:	8b 85 e0 fc ff ff    	mov    -0x320(%ebp),%eax
4100d9:	89 10                	mov    %edx,(%eax)
4100db:	47                   	inc    %edi
4100dc:	83 c6 08             	add    $0x8,%esi
4100df:	4b                   	dec    %ebx
4100e0:	75 9e                	jne    0x410080
4100e2:	8d 85 00 fd ff ff    	lea    -0x300(%ebp),%eax
4100e8:	50                   	push   %eax
4100e9:	8b 85 f0 fc ff ff    	mov    -0x310(%ebp),%eax
4100ef:	50                   	push   %eax
4100f0:	6a 0c                	push   $0xc
4100f2:	e8 6d ea ff ff       	call   0x40eb64
4100f7:	8b f0                	mov    %eax,%esi
4100f9:	85 f6                	test   %esi,%esi
4100fb:	75 05                	jne    0x410102
4100fd:	e8 02 f8 ff ff       	call   0x40f904
410102:	8b 85 fc fc ff ff    	mov    -0x304(%ebp),%eax
410108:	e8 4f fe ff ff       	call   0x40ff5c
41010d:	8b 85 fc fc ff ff    	mov    -0x304(%ebp),%eax
410113:	66 c7 00 0c 20       	movw   $0x200c,(%eax)
410118:	8b 85 fc fc ff ff    	mov    -0x304(%ebp),%eax
41011e:	89 70 08             	mov    %esi,0x8(%eax)
410121:	8b 9d f0 fc ff ff    	mov    -0x310(%ebp),%ebx
410127:	4b                   	dec    %ebx
410128:	85 db                	test   %ebx,%ebx
41012a:	7c 1a                	jl     0x410146
41012c:	43                   	inc    %ebx
41012d:	8d 85 04 fd ff ff    	lea    -0x2fc(%ebp),%eax
410133:	8d 95 00 ff ff ff    	lea    -0x100(%ebp),%edx
410139:	8b 08                	mov    (%eax),%ecx
41013b:	89 0a                	mov    %ecx,(%edx)
41013d:	83 c2 04             	add    $0x4,%edx
410140:	83 c0 08             	add    $0x8,%eax
410143:	4b                   	dec    %ebx
410144:	75 f3                	jne    0x410139
410146:	55                   	push   %ebp
410147:	8b 9d f0 fc ff ff    	mov    -0x310(%ebp),%ebx
41014d:	4b                   	dec    %ebx
41014e:	8b c3                	mov    %ebx,%eax
410150:	e8 23 fe ff ff       	call   0x40ff78
410155:	59                   	pop    %ecx
410156:	84 c0                	test   %al,%al
410158:	74 4c                	je     0x4101a6
41015a:	8d 85 e8 fc ff ff    	lea    -0x318(%ebp),%eax
410160:	50                   	push   %eax
410161:	8d 85 00 ff ff ff    	lea    -0x100(%ebp),%eax
410167:	50                   	push   %eax
410168:	8b 85 ec fc ff ff    	mov    -0x314(%ebp),%eax
41016e:	50                   	push   %eax
41016f:	e8 28 ea ff ff       	call   0x40eb9c
410174:	e8 33 fa ff ff       	call   0x40fbac
410179:	8d 85 e4 fc ff ff    	lea    -0x31c(%ebp),%eax
41017f:	50                   	push   %eax
410180:	8d 85 00 ff ff ff    	lea    -0x100(%ebp),%eax
410186:	50                   	push   %eax
410187:	56                   	push   %esi
410188:	e8 0f ea ff ff       	call   0x40eb9c
41018d:	e8 1a fa ff ff       	call   0x40fbac
410192:	8b 85 e8 fc ff ff    	mov    -0x318(%ebp),%eax
410198:	8b d0                	mov    %eax,%edx
41019a:	8b 85 e4 fc ff ff    	mov    -0x31c(%ebp),%eax
4101a0:	ff 95 f8 fc ff ff    	call   *-0x308(%ebp)
4101a6:	55                   	push   %ebp
4101a7:	8b c3                	mov    %ebx,%eax
4101a9:	e8 fa fd ff ff       	call   0x40ffa8
4101ae:	59                   	pop    %ecx
4101af:	84 c0                	test   %al,%al
4101b1:	75 93                	jne    0x410146
4101b3:	eb 12                	jmp    0x4101c7
4101b5:	53                   	push   %ebx
4101b6:	8b 85 fc fc ff ff    	mov    -0x304(%ebp),%eax
4101bc:	50                   	push   %eax
4101bd:	e8 46 e5 ff ff       	call   0x40e708
4101c2:	e8 e5 f9 ff ff       	call   0x40fbac
4101c7:	5f                   	pop    %edi
4101c8:	5e                   	pop    %esi
4101c9:	5b                   	pop    %ebx
4101ca:	8b e5                	mov    %ebp,%esp
4101cc:	5d                   	pop    %ebp
4101cd:	c3                   	ret
4101ce:	8b c0                	mov    %eax,%eax
4101d0:	e8 af 00 00 00       	call   0x410284
4101d5:	c3                   	ret
4101d6:	8b c0                	mov    %eax,%eax
4101d8:	53                   	push   %ebx
4101d9:	56                   	push   %esi
4101da:	57                   	push   %edi
4101db:	51                   	push   %ecx
4101dc:	8b f2                	mov    %edx,%esi
4101de:	8b d8                	mov    %eax,%ebx
4101e0:	66 f7 03 e8 bf       	testw  $0xbfe8,(%ebx)
4101e5:	74 07                	je     0x4101ee
4101e7:	8b c3                	mov    %ebx,%eax