40f70e:	8b 85 fc fc ff ff    	mov    -0x304(%ebp),%eax
40f714:	f6 40 01 20          	testb  $0x20,0x1(%eax)
40f718:	75 0a                	jne    0x40f724
40f71a:	b8 57 00 07 80       	mov    $0x80070057,%eax
40f71f:	e8 20 fe ff ff       	call   0x40f544
40f724:	8b 85 fc fc ff ff    	mov    -0x304(%ebp),%eax
40f72a:	0f b7 00             	movzwl (%eax),%eax
40f72d:	8b d0                	mov    %eax,%edx
40f72f:	66 81 e2 ff 0f       	and    $0xfff,%dx
40f734:	66 83 fa 0c          	cmp    $0xc,%dx
40f738:	0f 85 22 01 00 00    	jne    0x40f860
40f73e:	8b 95 fc fc ff ff    	mov    -0x304(%ebp),%edx
40f744:	f6 c4 40             	test   $0x40,%ah
40f747:	74 13                	je     0x40f75c
40f749:	8b 85 fc fc ff ff    	mov    -0x304(%ebp),%eax
40f74f:	8b 40 08             	mov    0x8(%eax),%eax
40f752:	8b 00                	mov    (%eax),%eax
40f754:	89 85 f8 fc ff ff    	mov    %eax,-0x308(%ebp)
40f75a:	eb 0f                	jmp    0x40f76b
40f75c:	8b 85 fc fc ff ff    	mov    -0x304(%ebp),%eax
40f762:	8b 40 08             	mov    0x8(%eax),%eax
40f765:	89 85 f8 fc ff ff    	mov    %eax,-0x308(%ebp)
40f76b:	8b 85 f8 fc ff ff    	mov    -0x308(%ebp),%eax
40f771:	0f b7 00             	movzwl (%eax),%eax
40f774:	89 85 f0 fc ff ff    	mov    %eax,-0x310(%ebp)
40f77a:	8b 9d f0 fc ff ff    	mov    -0x310(%ebp),%ebx
40f780:	4b                   	dec    %ebx
40f781:	85 db                	test   %ebx,%ebx
40f783:	7c 6b                	jl     0x40f7f0
40f785:	43                   	inc    %ebx
40f786:	33 ff                	xor    %edi,%edi
40f788:	8d b5 00 fd ff ff    	lea    -0x300(%ebp),%esi
40f78e:	8b c6                	mov    %esi,%eax
40f790:	89 85 e8 fc ff ff    	mov    %eax,-0x318(%ebp)
40f796:	8b 85 e8 fc ff ff    	mov    -0x318(%ebp),%eax
40f79c:	83 c0 04             	add    $0x4,%eax
40f79f:	50                   	push   %eax
40f7a0:	8d 47 01             	lea    0x1(%edi),%eax
40f7a3:	50                   	push   %eax
40f7a4:	8b 85 f8 fc ff ff    	mov    -0x308(%ebp),%eax
40f7aa:	50                   	push   %eax
40f7ab:	e8 b4 ef ff ff       	call   0x40e764
40f7b0:	e8 8f fd ff ff       	call   0x40f544
40f7b5:	8d 85 f4 fc ff ff    	lea    -0x30c(%ebp),%eax
40f7bb:	50                   	push   %eax
40f7bc:	8d 47 01             	lea    0x1(%edi),%eax
40f7bf:	50                   	push   %eax
40f7c0:	8b 85 f8 fc ff ff    	mov    -0x308(%ebp),%eax
40f7c6:	50                   	push   %eax
40f7c7:	e8 a0 ef ff ff       	call   0x40e76c
40f7cc:	e8 73 fd ff ff       	call   0x40f544
40f7d1:	8b 85 e8 fc ff ff    	mov    -0x318(%ebp),%eax
40f7d7:	8b 95 f4 fc ff ff    	mov    -0x30c(%ebp),%edx
40f7dd:	2b 50 04             	sub    0x4(%eax),%edx
40f7e0:	42                   	inc    %edx
40f7e1:	8b 85 e8 fc ff ff    	mov    -0x318(%ebp),%eax
40f7e7:	89 10                	mov    %edx,(%eax)
40f7e9:	47                   	inc    %edi
40f7ea:	83 c6 08             	add    $0x8,%esi
40f7ed:	4b                   	dec    %ebx
40f7ee:	75 9e                	jne    0x40f78e
40f7f0:	8b 9d f0 fc ff ff    	mov    -0x310(%ebp),%ebx
40f7f6:	4b                   	dec    %ebx
40f7f7:	85 db                	test   %ebx,%ebx
40f7f9:	7c 1a                	jl     0x40f815
40f7fb:	43                   	inc    %ebx
40f7fc:	8d 85 04 fd ff ff    	lea    -0x2fc(%ebp),%eax
40f802:	8d 95 00 ff ff ff    	lea    -0x100(%ebp),%edx
40f808:	8b 08                	mov    (%eax),%ecx
40f80a:	89 0a                	mov    %ecx,(%edx)
40f80c:	83 c2 04             	add    $0x4,%edx
40f80f:	83 c0 08             	add    $0x8,%eax
40f812:	4b                   	dec    %ebx
40f813:	75 f3                	jne    0x40f808
40f815:	55                   	push   %ebp
40f816:	8b 9d f0 fc ff ff    	mov    -0x310(%ebp),%ebx
40f81c:	4b                   	dec    %ebx
40f81d:	8b c3                	mov    %ebx,%eax
40f81f:	e8 4c fe ff ff       	call   0x40f670
40f824:	59                   	pop    %ecx
40f825:	84 c0                	test   %al,%al
40f827:	74 2a                	je     0x40f853
40f829:	8d 85 ec fc ff ff    	lea    -0x314(%ebp),%eax
40f82f:	50                   	push   %eax
40f830:	8d 85 00 ff ff ff    	lea    -0x100(%ebp),%eax
40f836:	50                   	push   %eax
40f837:	8b 85 f8 fc ff ff    	mov    -0x308(%ebp),%eax
40f83d:	50                   	push   %eax
40f83e:	e8 31 ef ff ff       	call   0x40e774
40f843:	e8 fc fc ff ff       	call   0x40f544
40f848:	8b 85 ec fc ff ff    	mov    -0x314(%ebp),%eax
40f84e:	e8 a1 00 00 00       	call   0x40f8f4
40f853:	55                   	push   %ebp
40f854:	8b c3                	mov    %ebx,%eax
40f856:	e8 45 fe ff ff       	call   0x40f6a0
40f85b:	59                   	pop    %ecx
40f85c:	84 c0                	test   %al,%al
40f85e:	75 b5                	jne    0x40f815
40f860:	8b 85 fc fc ff ff    	mov    -0x304(%ebp),%eax
40f866:	50                   	push   %eax
40f867:	e8 90 ea ff ff       	call   0x40e2fc
40f86c:	e8 d3 fc ff ff       	call   0x40f544
40f871:	5f                   	pop    %edi
40f872:	5e                   	pop    %esi
40f873:	5b                   	pop    %ebx
40f874:	8b e5                	mov    %ebp,%esp
40f876:	5d                   	pop    %ebp
40f877:	c3                   	ret
40f878:	53                   	push   %ebx
40f879:	56                   	push   %esi
40f87a:	51                   	push   %ecx
40f87b:	8b d8                	mov    %eax,%ebx
40f87d:	0f b7 33             	movzwl (%ebx),%esi
40f880:	66 83 fe 14          	cmp    $0x14,%si
40f884:	73 0d                	jae    0x40f893
40f886:	53                   	push   %ebx
40f887:	e8 70 ea ff ff       	call   0x40e2fc
40f88c:	e8 b3 fc ff ff       	call   0x40f544
40f891:	eb 5c                	jmp    0x40f8ef
40f893:	66 81 fe 00 01       	cmp    $0x100,%si
40f898:	75 0f                	jne    0x40f8a9
40f89a:	66 c7 03 00 00       	movw   $0x0,(%ebx)
40f89f:	8d 43 08             	lea    0x8(%ebx),%eax
40f8a2:	e8 79 4e ff ff       	call   0x404720
40f8a7:	eb 46                	jmp    0x40f8ef
40f8a9:	66 81 fe 01 01       	cmp    $0x101,%si
40f8ae:	75 0a                	jne    0x40f8ba
40f8b0:	8b c3                	mov    %ebx,%eax
40f8b2:	ff 15 98 12 47 00    	call   *0x471298
40f8b8:	eb 35                	jmp    0x40f8ef
40f8ba:	66 f7 c6 00 20       	test   $0x2000,%si
40f8bf:	74 09                	je     0x40f8ca
40f8c1:	8b c3                	mov    %ebx,%eax
40f8c3:	e8 34 fe ff ff       	call   0x40f6fc
40f8c8:	eb 25                	jmp    0x40f8ef
40f8ca:	8b d4                	mov    %esp,%edx
40f8cc:	8b c6                	mov    %esi,%eax
40f8ce:	e8 81 4c 00 00       	call   0x414554
40f8d3:	84 c0                	test   %al,%al
40f8d5:	74 0c                	je     0x40f8e3
40f8d7:	8b d3                	mov    %ebx,%edx
40f8d9:	8b 04 24             	mov    (%esp),%eax
40f8dc:	8b 08                	mov    (%eax),%ecx
40f8de:	ff 51 24             	call   *0x24(%ecx)
40f8e1:	eb 0c                	jmp    0x40f8ef
40f8e3:	53                   	push   %ebx
40f8e4:	e8 13 ea ff ff       	call   0x40e2fc
40f8e9:	53                   	push   %ebx
40f8ea:	e8 05 ea ff ff       	call   0x40e2f4
40f8ef:	5a                   	pop    %edx
40f8f0:	5e                   	pop    %esi
40f8f1:	5b                   	pop    %ebx
40f8f2:	c3                   	ret
40f8f3:	90                   	nop
40f8f4:	66 f7 00 e8 bf       	testw  $0xbfe8,(%eax)
40f8f9:	75 06                	jne    0x40f901
40f8fb:	66 c7 00 00 00       	movw   $0x0,(%eax)
40f900:	c3                   	ret
40f901:	e8 72 ff ff ff       	call   0x40f878
40f906:	c3                   	ret
40f907:	90                   	nop
40f908:	50                   	push   %eax
40f909:	e8 e6 ff ff ff       	call   0x40f8f4
40f90e:	58                   	pop    %eax
40f90f:	c3                   	ret
40f910:	55                   	push   %ebp
40f911:	8b ec                	mov    %esp,%ebp
40f913:	53                   	push   %ebx
40f914:	8b 4d 08             	mov    0x8(%ebp),%ecx
40f917:	81 c1 00 fd ff ff    	add    $0xfffffd00,%ecx
40f91d:	8b 54 c1 04          	mov    0x4(%ecx,%eax,8),%edx
40f921:	03 14 c1             	add    (%ecx,%eax,8),%edx
40f924:	8b 5d 08             	mov    0x8(%ebp),%ebx
40f927:	3b 94 83 00 ff ff ff 	cmp    -0x100(%ebx,%eax,4),%edx
40f92e:	0f 9f c2             	setg   %dl
40f931:	48                   	dec    %eax
40f932:	84 d2                	test   %dl,%dl
40f934:	74 04                	je     0x40f93a
40f936:	85 c0                	test   %eax,%eax
40f938:	7d e3                	jge    0x40f91d
40f93a:	8b c2                	mov    %edx,%eax
40f93c:	5b                   	pop    %ebx
40f93d:	5d                   	pop    %ebp
40f93e:	c3                   	ret
40f93f:	90                   	nop
40f940:	55                   	push   %ebp
40f941:	8b ec                	mov    %esp,%ebp
40f943:	53                   	push   %ebx
40f944:	56                   	push   %esi
40f945:	b2 01                	mov    $0x1,%dl
40f947:	8b 4d 08             	mov    0x8(%ebp),%ecx
40f94a:	ff 84 81 00 ff ff ff 	incl   -0x100(%ecx,%eax,4)
40f951:	8b 4d 08             	mov    0x8(%ebp),%ecx
40f954:	8b 8c c1 04 fd ff ff 	mov    -0x2fc(%ecx,%eax,8),%ecx
40f95b:	8b d9                	mov    %ecx,%ebx
40f95d:	8b 75 08             	mov    0x8(%ebp),%esi
40f960:	03 9c c6 00 fd ff ff 	add    -0x300(%esi,%eax,8),%ebx
40f967:	8b 75 08             	mov    0x8(%ebp),%esi
40f96a:	3b 9c 86 00 ff ff ff 	cmp    -0x100(%esi,%eax,4),%ebx
40f971:	7f 22                	jg     0x40f995
40f973:	85 c0                	test   %eax,%eax
40f975:	75 04                	jne    0x40f97b
40f977:	33 d2                	xor    %edx,%edx
40f979:	eb 1a                	jmp    0x40f995
40f97b:	8b 55 08             	mov    0x8(%ebp),%edx
40f97e:	8b 55 08             	mov    0x8(%ebp),%edx
40f981:	89 8c 82 00 ff ff ff 	mov    %ecx,-0x100(%edx,%eax,4)
40f988:	8b 55 08             	mov    0x8(%ebp),%edx
40f98b:	52                   	push   %edx
40f98c:	48                   	dec    %eax
40f98d:	e8 ae ff ff ff       	call   0x40f940
40f992:	59                   	pop    %ecx
40f993:	8b d0                	mov    %eax,%edx
40f995:	8b c2                	mov    %edx,%eax
40f997:	5e                   	pop    %esi
40f998:	5b                   	pop    %ebx
40f999:	5d                   	pop    %ebp
40f99a:	c3                   	ret
40f99b:	90                   	nop
40f99c:	55                   	push   %ebp
40f99d:	8b ec                	mov    %esp,%ebp
40f99f:	81 c4 e0 fc ff ff    	add    $0xfffffce0,%esp
40f9a5:	53                   	push   %ebx
40f9a6:	56                   	push   %esi
40f9a7:	57                   	push   %edi
40f9a8:	89 8d f8 fc ff ff    	mov    %ecx,-0x308(%ebp)
40f9ae:	8b da                	mov    %edx,%ebx
40f9b0:	89 85 fc fc ff ff    	mov    %eax,-0x304(%ebp)
40f9b6:	f6 43 01 20          	testb  $0x20,0x1(%ebx)
40f9ba:	75 0a                	jne    0x40f9c6
40f9bc:	b8 57 00 07 80       	mov    $0x80070057,%eax
40f9c1:	e8 7e fb ff ff       	call   0x40f544
40f9c6:	0f b7 03             	movzwl (%ebx),%eax
40f9c9:	8b d0                	mov    %eax,%edx
40f9cb:	66 81 e2 ff 0f       	and    $0xfff,%dx
40f9d0:	66 83 fa 0c          	cmp    $0xc,%dx
40f9d4:	0f 85 73 01 00 00    	jne    0x40fb4d
40f9da:	f6 c4 40             	test   $0x40,%ah
40f9dd:	74 0d                	je     0x40f9ec
40f9df:	8b 43 08             	mov    0x8(%ebx),%eax
40f9e2:	8b 00                	mov    (%eax),%eax
40f9e4:	89 85 ec fc ff ff    	mov    %eax,-0x314(%ebp)
40f9ea:	eb 09                	jmp    0x40f9f5
40f9ec:	8b 43 08             	mov    0x8(%ebx),%eax
40f9ef:	89 85 ec fc ff ff    	mov    %eax,-0x314(%ebp)
40f9f5:	8b 85 ec fc ff ff    	mov    -0x314(%ebp),%eax
40f9fb:	0f b7 00             	movzwl (%eax),%eax
40f9fe:	89 85 f0 fc ff ff    	mov    %eax,-0x310(%ebp)
40fa04:	8b 9d f0 fc ff ff    	mov    -0x310(%ebp),%ebx
40fa0a:	4b                   	dec    %ebx
40fa0b:	85 db                	test   %ebx,%ebx
40fa0d:	7c 6b                	jl     0x40fa7a
40fa0f:	43                   	inc    %ebx
40fa10:	33 ff                	xor    %edi,%edi
40fa12:	8d b5 00 fd ff ff    	lea    -0x300(%ebp),%esi
40fa18:	8b c6                	mov    %esi,%eax
40fa1a:	89 85 e0 fc ff ff    	mov    %eax,-0x320(%ebp)
40fa20:	8b 85 e0 fc ff ff    	mov    -0x320(%ebp),%eax
40fa26:	83 c0 04             	add    $0x4,%eax
40fa29:	50                   	push   %eax
40fa2a:	8d 47 01             	lea    0x1(%edi),%eax
40fa2d:	50                   	push   %eax
40fa2e:	8b 85 ec fc ff ff    	mov    -0x314(%ebp),%eax
40fa34:	50                   	push   %eax
40fa35:	e8 2a ed ff ff       	call   0x40e764
40fa3a:	e8 05 fb ff ff       	call   0x40f544
40fa3f:	8d 85 f4 fc ff ff    	lea    -0x30c(%ebp),%eax
40fa45:	50                   	push   %eax
40fa46:	8d 47 01             	lea    0x1(%edi),%eax
40fa49:	50                   	push   %eax
40fa4a:	8b 85 ec fc ff ff    	mov    -0x314(%ebp),%eax
40fa50:	50                   	push   %eax
40fa51:	e8 16 ed ff ff       	call   0x40e76c
40fa56:	e8 e9 fa ff ff       	call   0x40f544
40fa5b:	8b 85 e0 fc ff ff    	mov    -0x320(%ebp),%eax
40fa61:	8b 95 f4 fc ff ff    	mov    -0x30c(%ebp),%edx
40fa67:	2b 50 04             	sub    0x4(%eax),%edx
40fa6a:	42                   	inc    %edx
40fa6b:	8b 85 e0 fc ff ff    	mov    -0x320(%ebp),%eax
40fa71:	89 10                	mov    %edx,(%eax)
40fa73:	47                   	inc    %edi
40fa74:	83 c6 08             	add    $0x8,%esi
40fa77:	4b                   	dec    %ebx
40fa78:	75 9e                	jne    0x40fa18
40fa7a:	8d 85 00 fd ff ff    	lea    -0x300(%ebp),%eax
40fa80:	50                   	push   %eax
40fa81:	8b 85 f0 fc ff ff    	mov    -0x310(%ebp),%eax
40fa87:	50                   	push   %eax
40fa88:	6a 0c                	push   $0xc
40fa8a:	e8 cd ec ff ff       	call   0x40e75c
40fa8f:	8b f0                	mov    %eax,%esi
40fa91:	85 f6                	test   %esi,%esi
40fa93:	75 05                	jne    0x40fa9a
40fa95:	e8 02 f8 ff ff       	call   0x40f29c
40fa9a:	8b 85 fc fc ff ff    	mov    -0x304(%ebp),%eax
40faa0:	e8 4f fe ff ff       	call   0x40f8f4
40faa5:	8b 85 fc fc ff ff    	mov    -0x304(%ebp),%eax
40faab:	66 c7 00 0c 20       	movw   $0x200c,(%eax)
40fab0:	8b 85 fc fc ff ff    	mov    -0x304(%ebp),%eax
40fab6:	89 70 08             	mov    %esi,0x8(%eax)
40fab9:	8b 9d f0 fc ff ff    	mov    -0x310(%ebp),%ebx
40fabf:	4b                   	dec    %ebx
40fac0:	85 db                	test   %ebx,%ebx
40fac2:	7c 1a                	jl     0x40fade
40fac4:	43                   	inc    %ebx
40fac5:	8d 85 04 fd ff ff    	lea    -0x2fc(%ebp),%eax
40facb:	8d 95 00 ff ff ff    	lea    -0x100(%ebp),%edx
40fad1:	8b 08                	mov    (%eax),%ecx
40fad3:	89 0a                	mov    %ecx,(%edx)
40fad5:	83 c2 04             	add    $0x4,%edx
40fad8:	83 c0 08             	add    $0x8,%eax
40fadb:	4b                   	dec    %ebx
40fadc:	75 f3                	jne    0x40fad1
40fade:	55                   	push   %ebp
40fadf:	8b 9d f0 fc ff ff    	mov    -0x310(%ebp),%ebx
40fae5:	4b                   	dec    %ebx
40fae6:	8b c3                	mov    %ebx,%eax
40fae8:	e8 23 fe ff ff       	call   0x40f910
40faed:	59                   	pop    %ecx
40faee:	84 c0                	test   %al,%al
40faf0:	74 4c                	je     0x40fb3e
40faf2:	8d 85 e8 fc ff ff    	lea    -0x318(%ebp),%eax
40faf8:	50                   	push   %eax
40faf9:	8d 85 00 ff ff ff    	lea    -0x100(%ebp),%eax
40faff:	50                   	push   %eax
40fb00:	8b 85 ec fc ff ff    	mov    -0x314(%ebp),%eax
40fb06:	50                   	push   %eax
40fb07:	e8 68 ec ff ff       	call   0x40e774
40fb0c:	e8 33 fa ff ff       	call   0x40f544
40fb11:	8d 85 e4 fc ff ff    	lea    -0x31c(%ebp),%eax
40fb17:	50                   	push   %eax
40fb18:	8d 85 00 ff ff ff    	lea    -0x100(%ebp),%eax
40fb1e:	50                   	push   %eax
40fb1f:	56                   	push   %esi
40fb20:	e8 4f ec ff ff       	call   0x40e774
40fb25:	e8 1a fa ff ff       	call   0x40f544
40fb2a:	8b 85 e8 fc ff ff    	mov    -0x318(%ebp),%eax
40fb30:	8b d0                	mov    %eax,%edx
40fb32:	8b 85 e4 fc ff ff    	mov    -0x31c(%ebp),%eax
40fb38:	ff 95 f8 fc ff ff    	call   *-0x308(%ebp)
40fb3e:	55                   	push   %ebp
40fb3f:	8b c3                	mov    %ebx,%eax
40fb41:	e8 fa fd ff ff       	call   0x40f940
40fb46:	59                   	pop    %ecx
40fb47:	84 c0                	test   %al,%al
40fb49:	75 93                	jne    0x40fade
40fb4b:	eb 12                	jmp    0x40fb5f
40fb4d:	53                   	push   %ebx
40fb4e:	8b 85 fc fc ff ff    	mov    -0x304(%ebp),%eax
40fb54:	50                   	push   %eax