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
40da79:	2b f8                	sub    %eax,%edi
40da7b:	d1 ff                	sar    $1,%edi
40da7d:	3b 4e 08             	cmp    0x8(%esi),%ecx
40da80:	75 0e                	jne    0x40da90
40da82:	6a 01                	push   $0x1
40da84:	8b ce                	mov    %esi,%ecx
40da86:	e8 d3 9e ff ff       	call   0x40795e
40da8b:	8b 06                	mov    (%esi),%eax
40da8d:	8b 4e 04             	mov    0x4(%esi),%ecx
40da90:	66 8b 04 78          	mov    (%eax,%edi,2),%ax
40da94:	eb 14                	jmp    0x40daaa
40da96:	3b 4e 08             	cmp    0x8(%esi),%ecx
40da99:	75 0c                	jne    0x40daa7
40da9b:	6a 01                	push   $0x1
40da9d:	8b ce                	mov    %esi,%ecx
40da9f:	e8 ba 9e ff ff       	call   0x40795e
40daa4:	8b 4e 04             	mov    0x4(%esi),%ecx
40daa7:	66 8b 07             	mov    (%edi),%ax
40daaa:	66 89 01             	mov    %ax,(%ecx)
40daad:	83 46 04 02          	addl   $0x2,0x4(%esi)
40dab1:	5f                   	pop    %edi
40dab2:	5e                   	pop    %esi
40dab3:	5d                   	pop    %ebp
40dab4:	c2 04 00             	ret    $0x4
40dab7:	8b ff                	mov    %edi,%edi
40dab9:	55                   	push   %ebp
40daba:	8b ec                	mov    %esp,%ebp
40dabc:	56                   	push   %esi
40dabd:	8b f1                	mov    %ecx,%esi
40dabf:	57                   	push   %edi
40dac0:	8b 7e 08             	mov    0x8(%esi),%edi
40dac3:	8b c7                	mov    %edi,%eax
40dac5:	8b 56 04             	mov    0x4(%esi),%edx
40dac8:	2b c2                	sub    %edx,%eax
40daca:	3b 45 08             	cmp    0x8(%ebp),%eax
40dacd:	73 31                	jae    0x40db00
40dacf:	8b 06                	mov    (%esi),%eax
40dad1:	2b c2                	sub    %edx,%eax
40dad3:	48                   	dec    %eax
40dad4:	3b 45 08             	cmp    0x8(%ebp),%eax
40dad7:	72 2d                	jb     0x40db06
40dad9:	2b 3e                	sub    (%esi),%edi
40dadb:	2b 16                	sub    (%esi),%edx
40dadd:	8b cf                	mov    %edi,%ecx
40dadf:	03 55 08             	add    0x8(%ebp),%edx
40dae2:	d1 e9                	shr    $1,%ecx
40dae4:	8b c1                	mov    %ecx,%eax
40dae6:	03 cf                	add    %edi,%ecx
40dae8:	f7 d0                	not    %eax
40daea:	3b c7                	cmp    %edi,%eax
40daec:	1b c0                	sbb    %eax,%eax
40daee:	f7 d0                	not    %eax
40daf0:	23 c1                	and    %ecx,%eax
40daf2:	3b c2                	cmp    %edx,%eax
40daf4:	73 02                	jae    0x40daf8
40daf6:	8b c2                	mov    %edx,%eax
40daf8:	50                   	push   %eax
40daf9:	8b ce                	mov    %esi,%ecx
40dafb:	e8 0c 00 00 00       	call   0x40db0c
40db00:	5f                   	pop    %edi
40db01:	5e                   	pop    %esi
40db02:	5d                   	pop    %ebp
40db03:	c2 04 00             	ret    $0x4
40db06:	e8 3f 92 ff ff       	call   0x406d4a
40db0b:	cc                   	int3
40db0c:	8b ff                	mov    %edi,%edi
40db0e:	55                   	push   %ebp
40db0f:	8b ec                	mov    %esp,%ebp
40db11:	51                   	push   %ecx
40db12:	53                   	push   %ebx
40db13:	56                   	push   %esi
40db14:	57                   	push   %edi
40db15:	ff 75 08             	push   0x8(%ebp)
40db18:	8b f1                	mov    %ecx,%esi
40db1a:	8d 4d ff             	lea    -0x1(%ebp),%ecx
40db1d:	e8 16 78 ff ff       	call   0x405338
40db22:	8b 56 04             	mov    0x4(%esi),%edx
40db25:	8b f8                	mov    %eax,%edi
40db27:	2b 16                	sub    (%esi),%edx
40db29:	52                   	push   %edx
40db2a:	ff 36                	push   (%esi)
40db2c:	57                   	push   %edi
40db2d:	e8 fa 0b 00 00       	call   0x40e72c
40db32:	8b 5e 04             	mov    0x4(%esi),%ebx
40db35:	83 c4 0c             	add    $0xc,%esp
40db38:	2b 1e                	sub    (%esi),%ebx
40db3a:	83 3e 00             	cmpl   $0x0,(%esi)
40db3d:	74 09                	je     0x40db48
40db3f:	ff 36                	push   (%esi)
40db41:	ff 15 e4 21 41 00    	call   *0x4121e4
40db47:	59                   	pop    %ecx
40db48:	8b 45 08             	mov    0x8(%ebp),%eax
40db4b:	03 c7                	add    %edi,%eax
40db4d:	89 3e                	mov    %edi,(%esi)
40db4f:	89 46 08             	mov    %eax,0x8(%esi)
40db52:	8d 04 3b             	lea    (%ebx,%edi,1),%eax
40db55:	5f                   	pop    %edi
40db56:	89 46 04             	mov    %eax,0x4(%esi)
40db59:	5e                   	pop    %esi
40db5a:	5b                   	pop    %ebx
40db5b:	c9                   	leave
40db5c:	c2 04 00             	ret    $0x4
40db5f:	eb 08                	jmp    0x40db69
40db61:	39 51 04             	cmp    %edx,0x4(%ecx)
40db64:	74 0b                	je     0x40db71
40db66:	83 c1 08             	add    $0x8,%ecx
40db69:	83 39 00             	cmpl   $0x0,(%ecx)
40db6c:	75 f3                	jne    0x40db61
40db6e:	33 c0                	xor    %eax,%eax
40db70:	c3                   	ret
40db71:	8b 01                	mov    (%ecx),%eax
40db73:	c3                   	ret
40db74:	8b ff                	mov    %edi,%edi
40db76:	56                   	push   %esi
40db77:	57                   	push   %edi
40db78:	8b fa                	mov    %edx,%edi
40db7a:	8b f1                	mov    %ecx,%esi
40db7c:	eb 11                	jmp    0x40db8f
40db7e:	57                   	push   %edi
40db7f:	50                   	push   %eax
40db80:	ff 15 a0 21 41 00    	call   *0x4121a0
40db86:	59                   	pop    %ecx
40db87:	59                   	pop    %ecx
40db88:	85 c0                	test   %eax,%eax
40db8a:	74 0f                	je     0x40db9b
40db8c:	83 c6 08             	add    $0x8,%esi
40db8f:	8b 06                	mov    (%esi),%eax
40db91:	85 c0                	test   %eax,%eax
40db93:	75 e9                	jne    0x40db7e
40db95:	83 c8 ff             	or     $0xffffffff,%eax
40db98:	5f                   	pop    %edi
40db99:	5e                   	pop    %esi
40db9a:	c3                   	ret
40db9b:	8b 46 04             	mov    0x4(%esi),%eax
40db9e:	eb f8                	jmp    0x40db98
40dba0:	8b ff                	mov    %edi,%edi
40dba2:	55                   	push   %ebp
40dba3:	8b ec                	mov    %esp,%ebp
40dba5:	83 ec 3c             	sub    $0x3c,%esp
40dba8:	53                   	push   %ebx
40dba9:	56                   	push   %esi
40dbaa:	57                   	push   %edi
40dbab:	8b f1                	mov    %ecx,%esi
40dbad:	8d 7d ec             	lea    -0x14(%ebp),%edi
40dbb0:	8b da                	mov    %edx,%ebx
40dbb2:	a5                   	movsl  %ds:(%esi),%es:(%edi)
40dbb3:	a5                   	movsl  %ds:(%esi),%es:(%edi)
40dbb4:	a5                   	movsl  %ds:(%esi),%es:(%edi)
40dbb5:	a5                   	movsl  %ds:(%esi),%es:(%edi)
40dbb6:	0f b7 45 f8          	movzwl -0x8(%ebp),%eax
40dbba:	8b 4d f4             	mov    -0xc(%ebp),%ecx
40dbbd:	50                   	push   %eax
40dbbe:	8b c1                	mov    %ecx,%eax
40dbc0:	c1 e8 10             	shr    $0x10,%eax
40dbc3:	50                   	push   %eax
40dbc4:	0f b7 c1             	movzwl %cx,%eax
40dbc7:	8b 4d ec             	mov    -0x14(%ebp),%ecx
40dbca:	50                   	push   %eax
40dbcb:	8b 45 f0             	mov    -0x10(%ebp),%eax
40dbce:	c1 e8 10             	shr    $0x10,%eax
40dbd1:	50                   	push   %eax
40dbd2:	8b c1                	mov    %ecx,%eax
40dbd4:	c1 e8 10             	shr    $0x10,%eax
40dbd7:	50                   	push   %eax
40dbd8:	0f b7 c1             	movzwl %cx,%eax
40dbdb:	50                   	push   %eax
40dbdc:	68 e8 47 40 00       	push   $0x4047e8
40dbe1:	6a 20                	push   $0x20
40dbe3:	5f                   	pop    %edi
40dbe4:	57                   	push   %edi
40dbe5:	53                   	push   %ebx
40dbe6:	ff 15 c8 21 41 00    	call   *0x4121c8
40dbec:	83 c4 24             	add    $0x24,%esp
40dbef:	89 45 fc             	mov    %eax,-0x4(%ebp)
40dbf2:	83 f8 ff             	cmp    $0xffffffff,%eax