40d740:	5d                   	pop    %ebp
40d741:	c2 04 00             	ret    $0x4
40d744:	cc                   	int3
40d745:	cc                   	int3
40d746:	cc                   	int3
40d747:	cc                   	int3
40d748:	cc                   	int3
40d749:	cc                   	int3
40d74a:	cc                   	int3
40d74b:	cc                   	int3
40d74c:	cc                   	int3
40d74d:	cc                   	int3
40d74e:	cc                   	int3
40d74f:	cc                   	int3
40d750:	8b c1                	mov    %ecx,%eax
40d752:	c2 04 00             	ret    $0x4
40d755:	8b ff                	mov    %edi,%edi
40d757:	55                   	push   %ebp
40d758:	8b ec                	mov    %esp,%ebp
40d75a:	51                   	push   %ecx
40d75b:	51                   	push   %ecx
40d75c:	53                   	push   %ebx
40d75d:	8b da                	mov    %edx,%ebx
40d75f:	56                   	push   %esi
40d760:	8b f1                	mov    %ecx,%esi
40d762:	89 5d f8             	mov    %ebx,-0x8(%ebp)
40d765:	8b cb                	mov    %ebx,%ecx
40d767:	57                   	push   %edi
40d768:	33 ff                	xor    %edi,%edi
40d76a:	8d 51 02             	lea    0x2(%ecx),%edx
40d76d:	66 8b 01             	mov    (%ecx),%ax
40d770:	83 c1 02             	add    $0x2,%ecx
40d773:	66 3b c7             	cmp    %di,%ax
40d776:	75 f5                	jne    0x40d76d
40d778:	2b ca                	sub    %edx,%ecx
40d77a:	d1 f9                	sar    $1,%ecx
40d77c:	8d 41 14             	lea    0x14(%ecx),%eax
40d77f:	8b ce                	mov    %esi,%ecx
40d781:	50                   	push   %eax
40d782:	e8 66 a1 ff ff       	call   0x4078ed
40d787:	ff 75 08             	push   0x8(%ebp)
40d78a:	53                   	push   %ebx
40d78b:	eb 37                	jmp    0x40d7c4
40d78d:	8b 7e 04             	mov    0x4(%esi),%edi
40d790:	2b 3e                	sub    (%esi),%edi
40d792:	d1 ff                	sar    $1,%edi
40d794:	81 ff ff ff ff 7f    	cmp    $0x7fffffff,%edi
40d79a:	73 46                	jae    0x40d7e2
40d79c:	6a 00                	push   $0x0
40d79e:	8b ce                	mov    %esi,%ecx
40d7a0:	e8 48 a1 ff ff       	call   0x4078ed
40d7a5:	81 ff ff ff ff 3f    	cmp    $0x3fffffff,%edi
40d7ab:	72 07                	jb     0x40d7b4
40d7ad:	bf ff ff ff 7f       	mov    $0x7fffffff,%edi
40d7b2:	eb 02                	jmp    0x40d7b6
40d7b4:	03 ff                	add    %edi,%edi
40d7b6:	57                   	push   %edi
40d7b7:	8b ce                	mov    %esi,%ecx
40d7b9:	e8 2f a1 ff ff       	call   0x4078ed
40d7be:	ff 75 08             	push   0x8(%ebp)
40d7c1:	ff 75 f8             	push   -0x8(%ebp)
40d7c4:	8b 56 04             	mov    0x4(%esi),%edx
40d7c7:	8d 45 fc             	lea    -0x4(%ebp),%eax
40d7ca:	2b 16                	sub    (%esi),%edx
40d7cc:	51                   	push   %ecx
40d7cd:	51                   	push   %ecx
40d7ce:	8b 0e                	mov    (%esi),%ecx
40d7d0:	50                   	push   %eax
40d7d1:	d1 fa                	sar    $1,%edx
40d7d3:	e8 25 fd ff ff       	call   0x40d4fd
40d7d8:	8b d8                	mov    %eax,%ebx
40d7da:	81 fb 7a 00 07 80    	cmp    $0x8007007a,%ebx
40d7e0:	74 ab                	je     0x40d78d
40d7e2:	8b ce                	mov    %esi,%ecx
40d7e4:	85 db                	test   %ebx,%ebx
40d7e6:	78 10                	js     0x40d7f8
40d7e8:	8b 45 fc             	mov    -0x4(%ebp),%eax
40d7eb:	2b 06                	sub    (%esi),%eax
40d7ed:	d1 f8                	sar    $1,%eax
40d7ef:	40                   	inc    %eax
40d7f0:	50                   	push   %eax
40d7f1:	e8 f7 a0 ff ff       	call   0x4078ed
40d7f6:	eb 0e                	jmp    0x40d806
40d7f8:	6a 01                	push   $0x1
40d7fa:	e8 ee a0 ff ff       	call   0x4078ed
40d7ff:	8b 06                	mov    (%esi),%eax
40d801:	33 c9                	xor    %ecx,%ecx
40d803:	66 89 08             	mov    %cx,(%eax)
40d806:	5f                   	pop    %edi
40d807:	5e                   	pop    %esi
40d808:	8b c3                	mov    %ebx,%eax
40d80a:	5b                   	pop    %ebx
40d80b:	c9                   	leave
40d80c:	c3                   	ret
40d80d:	8b ff                	mov    %edi,%edi
40d80f:	55                   	push   %ebp
40d810:	8b ec                	mov    %esp,%ebp
40d812:	53                   	push   %ebx
40d813:	56                   	push   %esi
40d814:	57                   	push   %edi
40d815:	33 db                	xor    %ebx,%ebx
40d817:	8b f9                	mov    %ecx,%edi
40d819:	53                   	push   %ebx
40d81a:	53                   	push   %ebx
40d81b:	53                   	push   %ebx
40d81c:	53                   	push   %ebx
40d81d:	6a ff                	push   $0xffffffff
40d81f:	57                   	push   %edi
40d820:	53                   	push   %ebx
40d821:	68 e9 fd 00 00       	push   $0xfde9
40d826:	ff 15 f8 20 41 00    	call   *0x4120f8
40d82c:	8b 75 08             	mov    0x8(%ebp),%esi
40d82f:	8b ce                	mov    %esi,%ecx
40d831:	85 c0                	test   %eax,%eax
40d833:	75 1f                	jne    0x40d854
40d835:	6a 01                	push   $0x1
40d837:	e8 bf 01 00 00       	call   0x40d9fb
40d83c:	8b 06                	mov    (%esi),%eax
40d83e:	88 18                	mov    %bl,(%eax)
40d840:	ff 15 70 20 41 00    	call   *0x412070
40d846:	85 c0                	test   %eax,%eax
40d848:	7e 37                	jle    0x40d881
40d84a:	0f b7 c0             	movzwl %ax,%eax
40d84d:	0d 00 00 07 80       	or     $0x80070000,%eax
40d852:	eb 2d                	jmp    0x40d881
40d854:	50                   	push   %eax
40d855:	e8 a1 01 00 00       	call   0x40d9fb
40d85a:	8b 46 04             	mov    0x4(%esi),%eax
40d85d:	2b 06                	sub    (%esi),%eax
40d85f:	53                   	push   %ebx
40d860:	53                   	push   %ebx
40d861:	50                   	push   %eax
40d862:	ff 36                	push   (%esi)
40d864:	6a ff                	push   $0xffffffff
40d866:	57                   	push   %edi
40d867:	53                   	push   %ebx
40d868:	68 e9 fd 00 00       	push   $0xfde9
40d86d:	ff 15 f8 20 41 00    	call   *0x4120f8
40d873:	8b ce                	mov    %esi,%ecx
40d875:	85 c0                	test   %eax,%eax
40d877:	74 bc                	je     0x40d835
40d879:	50                   	push   %eax
40d87a:	e8 7c 01 00 00       	call   0x40d9fb
40d87f:	33 c0                	xor    %eax,%eax
40d881:	5f                   	pop    %edi
40d882:	5e                   	pop    %esi
40d883:	5b                   	pop    %ebx
40d884:	5d                   	pop    %ebp
40d885:	c2 04 00             	ret    $0x4
40d888:	8b ff                	mov    %edi,%edi
40d88a:	51                   	push   %ecx
40d88b:	56                   	push   %esi
40d88c:	57                   	push   %edi
40d88d:	6a 00                	push   $0x0
40d88f:	8b f2                	mov    %edx,%esi
40d891:	8b f9                	mov    %ecx,%edi
40d893:	ff 15 b0 20 41 00    	call   *0x4120b0
40d899:	6a 00                	push   $0x0
40d89b:	56                   	push   %esi
40d89c:	8b d7                	mov    %edi,%edx
40d89e:	8b c8                	mov    %eax,%ecx
40d8a0:	e8 04 00 00 00       	call   0x40d8a9
40d8a5:	5f                   	pop    %edi
40d8a6:	5e                   	pop    %esi
40d8a7:	59                   	pop    %ecx
40d8a8:	c3                   	ret
40d8a9:	8b ff                	mov    %edi,%edi
40d8ab:	55                   	push   %ebp
40d8ac:	8b ec                	mov    %esp,%ebp
40d8ae:	83 ec 2c             	sub    $0x2c,%esp
40d8b1:	53                   	push   %ebx
40d8b2:	56                   	push   %esi
40d8b3:	8b f2                	mov    %edx,%esi
40d8b5:	8b d1                	mov    %ecx,%edx
40d8b7:	8b 4d 0c             	mov    0xc(%ebp),%ecx
40d8ba:	8b d9                	mov    %ecx,%ebx
40d8bc:	f7 db                	neg    %ebx
40d8be:	89 55 fc             	mov    %edx,-0x4(%ebp)
40d8c1:	57                   	push   %edi
40d8c2:	8b 46 04             	mov    0x4(%esi),%eax
40d8c5:	1b db                	sbb    %ebx,%ebx
40d8c7:	2b 06                	sub    (%esi),%eax
40d8c9:	81 e3 00 fe ff ff    	and    $0xfffffe00,%ebx
40d8cf:	d1 f8                	sar    $1,%eax
40d8d1:	81 c3 00 0a 00 00    	add    $0xa00,%ebx
40d8d7:	83 f8 40             	cmp    $0x40,%eax
40d8da:	73 0f                	jae    0x40d8eb
40d8dc:	6a 40                	push   $0x40
40d8de:	8b ce                	mov    %esi,%ecx
40d8e0:	e8 08 a0 ff ff       	call   0x4078ed
40d8e5:	8b 55 fc             	mov    -0x4(%ebp),%edx
40d8e8:	8b 4d 0c             	mov    0xc(%ebp),%ecx
40d8eb:	85 c9                	test   %ecx,%ecx
40d8ed:	74 05                	je     0x40d8f4
40d8ef:	8b 01                	mov    (%ecx),%eax
40d8f1:	89 45 f8             	mov    %eax,-0x8(%ebp)
40d8f4:	8b 46 04             	mov    0x4(%esi),%eax
40d8f7:	8d 4d f8             	lea    -0x8(%ebp),%ecx
40d8fa:	2b 06                	sub    (%esi),%eax
40d8fc:	51                   	push   %ecx
40d8fd:	d1 f8                	sar    $1,%eax
40d8ff:	50                   	push   %eax
40d900:	ff 36                	push   (%esi)
40d902:	6a 00                	push   $0x0
40d904:	ff 75 08             	push   0x8(%ebp)
40d907:	52                   	push   %edx
40d908:	53                   	push   %ebx
40d909:	ff 15 c4 20 41 00    	call   *0x4120c4
40d90f:	85 c0                	test   %eax,%eax
40d911:	75 6d                	jne    0x40d980
40d913:	ff 15 70 20 41 00    	call   *0x412070
40d919:	8b f8                	mov    %eax,%edi
40d91b:	85 ff                	test   %edi,%edi
40d91d:	74 05                	je     0x40d924
40d91f:	83 ff 7a             	cmp    $0x7a,%edi
40d922:	75 63                	jne    0x40d987
40d924:	8b 46 04             	mov    0x4(%esi),%eax
40d927:	2b 06                	sub    (%esi),%eax
40d929:	d1 f8                	sar    $1,%eax
40d92b:	3d 00 00 01 00       	cmp    $0x10000,%eax
40d930:	73 13                	jae    0x40d945
40d932:	3d 00 80 00 00       	cmp    $0x8000,%eax
40d937:	72 07                	jb     0x40d940
40d939:	b8 00 00 01 00       	mov    $0x10000,%eax
40d93e:	eb 02                	jmp    0x40d942
40d940:	03 c0                	add    %eax,%eax
40d942:	50                   	push   %eax
40d943:	eb 99                	jmp    0x40d8de
40d945:	a1 00 10 41 00       	mov    0x411000,%eax
40d94a:	3d 00 10 41 00       	cmp    $0x411000,%eax
40d94f:	74 21                	je     0x40d972
40d951:	f6 40 1c 01          	testb  $0x1,0x1c(%eax)
40d955:	74 1b                	je     0x40d972
40d957:	80 78 19 02          	cmpb   $0x2,0x19(%eax)
40d95b:	72 15                	jb     0x40d972
40d95d:	6a 0d                	push   $0xd
40d95f:	ff 70 14             	push   0x14(%eax)
40d962:	ba d4 47 40 00       	mov    $0x4047d4,%edx
40d967:	ff 70 10             	push   0x10(%eax)
40d96a:	6a 11                	push   $0x11
40d96c:	59                   	pop    %ecx
40d96d:	e8 24 fc ff ff       	call   0x40d596
40d972:	68 f4 00 00 00       	push   $0xf4
40d977:	68 a4 47 40 00       	push   $0x4047a4
40d97c:	6a 0d                	push   $0xd
40d97e:	eb 3e                	jmp    0x40d9be
40d980:	5f                   	pop    %edi
40d981:	5e                   	pop    %esi
40d982:	5b                   	pop    %ebx
40d983:	c9                   	leave
40d984:	c2 08 00             	ret    $0x8
40d987:	a1 00 10 41 00       	mov    0x411000,%eax
40d98c:	3d 00 10 41 00       	cmp    $0x411000,%eax
40d991:	74 20                	je     0x40d9b3
40d993:	f6 40 1c 01          	testb  $0x1,0x1c(%eax)
40d997:	74 1a                	je     0x40d9b3
40d999:	80 78 19 02          	cmpb   $0x2,0x19(%eax)
40d99d:	72 14                	jb     0x40d9b3
40d99f:	57                   	push   %edi
40d9a0:	ff 70 14             	push   0x14(%eax)
40d9a3:	ba d4 47 40 00       	mov    $0x4047d4,%edx
40d9a8:	ff 70 10             	push   0x10(%eax)
40d9ab:	6a 10                	push   $0x10
40d9ad:	59                   	pop    %ecx
40d9ae:	e8 e3 fb ff ff       	call   0x40d596
40d9b3:	68 f2 00 00 00       	push   $0xf2
40d9b8:	68 a4 47 40 00       	push   $0x4047a4
40d9bd:	57                   	push   %edi
40d9be:	8d 4d d4             	lea    -0x2c(%ebp),%ecx
40d9c1:	e8 3b fa ff ff       	call   0x40d401
40d9c6:	68 60 03 41 00       	push   $0x410360
40d9cb:	8b c1                	mov    %ecx,%eax
40d9cd:	50                   	push   %eax
40d9ce:	e8 43 0c 00 00       	call   0x40e616
40d9d3:	cc                   	int3
40d9d4:	8b ff                	mov    %edi,%edi
40d9d6:	55                   	push   %ebp
40d9d7:	8b ec                	mov    %esp,%ebp
40d9d9:	51                   	push   %ecx
40d9da:	8d 45 10             	lea    0x10(%ebp),%eax
40d9dd:	89 45 fc             	mov    %eax,-0x4(%ebp)
40d9e0:	8d 45 fc             	lea    -0x4(%ebp),%eax
40d9e3:	50                   	push   %eax
40d9e4:	ff 75 0c             	push   0xc(%ebp)
40d9e7:	6a 00                	push   $0x0
40d9e9:	ff 15 b0 20 41 00    	call   *0x4120b0
40d9ef:	8b 55 08             	mov    0x8(%ebp),%edx
40d9f2:	8b c8                	mov    %eax,%ecx
40d9f4:	e8 b0 fe ff ff       	call   0x40d8a9
40d9f9:	c9                   	leave
40d9fa:	c3                   	ret
40d9fb:	8b ff                	mov    %edi,%edi
40d9fd:	55                   	push   %ebp
40d9fe:	8b ec                	mov    %esp,%ebp
40da00:	56                   	push   %esi
40da01:	8b f1                	mov    %ecx,%esi
40da03:	57                   	push   %edi
40da04:	8b 7d 08             	mov    0x8(%ebp),%edi
40da07:	8b 46 04             	mov    0x4(%esi),%eax
40da0a:	8b 0e                	mov    (%esi),%ecx
40da0c:	2b c1                	sub    %ecx,%eax
40da0e:	3b f8                	cmp    %eax,%edi
40da10:	73 13                	jae    0x40da25
40da12:	8d 04 39             	lea    (%ecx,%edi,1),%eax
40da15:	3b c1                	cmp    %ecx,%eax
40da17:	75 05                	jne    0x40da1e
40da19:	89 4e 04             	mov    %ecx,0x4(%esi)
40da1c:	eb 32                	jmp    0x40da50
40da1e:	3b 46 04             	cmp    0x4(%esi),%eax
40da21:	74 2d                	je     0x40da50
40da23:	eb 28                	jmp    0x40da4d
40da25:	76 29                	jbe    0x40da50
40da27:	2b 4e 04             	sub    0x4(%esi),%ecx
40da2a:	03 cf                	add    %edi,%ecx
40da2c:	51                   	push   %ecx
40da2d:	8b ce                	mov    %esi,%ecx
40da2f:	e8 83 00 00 00       	call   0x40dab7
40da34:	8b 06                	mov    (%esi),%eax
40da36:	2b 46 04             	sub    0x4(%esi),%eax
40da39:	03 c7                	add    %edi,%eax
40da3b:	50                   	push   %eax
40da3c:	6a 00                	push   $0x0
40da3e:	ff 76 04             	push   0x4(%esi)
40da41:	e8 09 12 00 00       	call   0x40ec4f
40da46:	8b 06                	mov    (%esi),%eax
40da48:	83 c4 0c             	add    $0xc,%esp
40da4b:	03 c7                	add    %edi,%eax
40da4d:	89 46 04             	mov    %eax,0x4(%esi)
40da50:	5f                   	pop    %edi
40da51:	5e                   	pop    %esi
40da52:	5d                   	pop    %ebp
40da53:	c2 04 00             	ret    $0x4
40da56:	8b ff                	mov    %edi,%edi
40da58:	55                   	push   %ebp
40da59:	8b ec                	mov    %esp,%ebp
40da5b:	56                   	push   %esi
40da5c:	8b f1                	mov    %ecx,%esi
40da5e:	57                   	push   %edi
40da5f:	8b 7d 08             	mov    0x8(%ebp),%edi
40da62:	8b 4e 04             	mov    0x4(%esi),%ecx
40da65:	3b f9                	cmp    %ecx,%edi
40da67:	73 08                	jae    0x40da71
40da69:	39 3e                	cmp    %edi,(%esi)
40da6b:	77 04                	ja     0x40da71
40da6d:	b0 01                	mov    $0x1,%al
40da6f:	eb 02                	jmp    0x40da73
40da71:	32 c0                	xor    %al,%al
40da73:	84 c0                	test   %al,%al
40da75:	74 1f                	je     0x40da96
40da77:	8b 06                	mov    (%esi),%eax