4047f7:	8b 48 fc             	mov    -0x4(%eax),%ecx
4047fa:	39 f1                	cmp    %esi,%ecx
4047fc:	7c 02                	jl     0x404800
4047fe:	89 f1                	mov    %esi,%ecx
404800:	e8 6f e1 ff ff       	call   0x402974
404805:	89 d8                	mov    %ebx,%eax
404807:	e8 58 f9 ff ff       	call   0x404164
40480c:	89 3b                	mov    %edi,(%ebx)
40480e:	5f                   	pop    %edi
40480f:	5e                   	pop    %esi
404810:	5b                   	pop    %ebx
404811:	c3                   	ret
404812:	8b c0                	mov    %eax,%eax
404814:	53                   	push   %ebx
404815:	56                   	push   %esi
404816:	57                   	push   %edi
404817:	89 c3                	mov    %eax,%ebx
404819:	89 d6                	mov    %edx,%esi
40481b:	89 cf                	mov    %ecx,%edi
40481d:	89 c8                	mov    %ecx,%eax
40481f:	e8 40 f9 ff ff       	call   0x404164
404824:	85 f6                	test   %esi,%esi
404826:	7e 12                	jle    0x40483a
404828:	89 f0                	mov    %esi,%eax
40482a:	e8 f9 f9 ff ff       	call   0x404228
40482f:	89 07                	mov    %eax,(%edi)
404831:	89 f2                	mov    %esi,%edx
404833:	88 d9                	mov    %bl,%cl
404835:	e8 32 e5 ff ff       	call   0x402d6c
40483a:	5f                   	pop    %edi
40483b:	5e                   	pop    %esi
40483c:	5b                   	pop    %ebx
40483d:	c3                   	ret
40483e:	8b c0                	mov    %eax,%eax
404840:	b0 01                	mov    $0x1,%al
404842:	e9 8d e0 ff ff       	jmp    0x4028d4
404847:	c3                   	ret
404848:	85 c0                	test   %eax,%eax
40484a:	74 10                	je     0x40485c
40484c:	50                   	push   %eax
40484d:	6a 00                	push   $0x0
40484f:	e8 3c cb ff ff       	call   0x401390
404854:	85 c0                	test   %eax,%eax
404856:	0f 84 e4 ff ff ff    	je     0x404840
40485c:	c3                   	ret
40485d:	8d 40 00             	lea    0x0(%eax),%eax
404860:	87 10                	xchg   %edx,(%eax)
404862:	85 d2                	test   %edx,%edx
404864:	74 06                	je     0x40486c
404866:	52                   	push   %edx
404867:	e8 34 cb ff ff       	call   0x4013a0
40486c:	c3                   	ret
40486d:	8d 40 00             	lea    0x0(%eax),%eax
404870:	8b 10                	mov    (%eax),%edx
404872:	85 d2                	test   %edx,%edx
404874:	74 0e                	je     0x404884
404876:	c7 00 00 00 00 00    	movl   $0x0,(%eax)
40487c:	50                   	push   %eax
40487d:	52                   	push   %edx
40487e:	e8 1d cb ff ff       	call   0x4013a0
404883:	58                   	pop    %eax
404884:	c3                   	ret
404885:	8d 40 00             	lea    0x0(%eax),%eax
404888:	53                   	push   %ebx
404889:	56                   	push   %esi
40488a:	89 c3                	mov    %eax,%ebx
40488c:	89 d6                	mov    %edx,%esi
40488e:	8b 03                	mov    (%ebx),%eax
404890:	85 c0                	test   %eax,%eax
404892:	74 0c                	je     0x4048a0
404894:	c7 03 00 00 00 00    	movl   $0x0,(%ebx)
40489a:	50                   	push   %eax
40489b:	e8 00 cb ff ff       	call   0x4013a0
4048a0:	83 c3 04             	add    $0x4,%ebx
4048a3:	4e                   	dec    %esi
4048a4:	75 e8                	jne    0x40488e
4048a6:	5e                   	pop    %esi
4048a7:	5b                   	pop    %ebx
4048a8:	c3                   	ret
4048a9:	8d 40 00             	lea    0x0(%eax),%eax
4048ac:	85 d2                	test   %edx,%edx
4048ae:	0f 84 bc ff ff ff    	je     0x404870
4048b4:	8b 4a fc             	mov    -0x4(%edx),%ecx
4048b7:	d1 e9                	shr    $1,%ecx
4048b9:	0f 84 b1 ff ff ff    	je     0x404870
4048bf:	51                   	push   %ecx
4048c0:	52                   	push   %edx
4048c1:	50                   	push   %eax
4048c2:	e8 d1 ca ff ff       	call   0x401398
4048c7:	85 c0                	test   %eax,%eax
4048c9:	0f 84 71 ff ff ff    	je     0x404840
4048cf:	c3                   	ret
4048d0:	53                   	push   %ebx
4048d1:	56                   	push   %esi
4048d2:	57                   	push   %edi
4048d3:	55                   	push   %ebp
4048d4:	81 c4 04 f0 ff ff    	add    $0xfffff004,%esp
4048da:	50                   	push   %eax
4048db:	83 c4 fc             	add    $0xfffffffc,%esp
4048de:	8b f1                	mov    %ecx,%esi
4048e0:	89 14 24             	mov    %edx,(%esp)
4048e3:	8b f8                	mov    %eax,%edi
4048e5:	85 f6                	test   %esi,%esi
4048e7:	7f 09                	jg     0x4048f2
4048e9:	8b c7                	mov    %edi,%eax
4048eb:	e8 80 ff ff ff       	call   0x404870
4048f0:	eb 5d                	jmp    0x40494f
4048f2:	8d 6e 01             	lea    0x1(%esi),%ebp
4048f5:	81 fd ff 07 00 00    	cmp    $0x7ff,%ebp
4048fb:	7d 28                	jge    0x404925
4048fd:	56                   	push   %esi
4048fe:	8d 44 24 08          	lea    0x8(%esp),%eax
404902:	8b 4c 24 04          	mov    0x4(%esp),%ecx
404906:	ba ff 07 00 00       	mov    $0x7ff,%edx
40490b:	e8 94 f9 ff ff       	call   0x4042a4
404910:	8b d8                	mov    %eax,%ebx
404912:	85 db                	test   %ebx,%ebx
404914:	7e 0f                	jle    0x404925
404916:	8d 54 24 04          	lea    0x4(%esp),%edx
40491a:	8b c7                	mov    %edi,%eax
40491c:	8b cb                	mov    %ebx,%ecx
40491e:	e8 39 00 00 00       	call   0x40495c
404923:	eb 2a                	jmp    0x40494f
404925:	8b dd                	mov    %ebp,%ebx
404927:	8b c7                	mov    %edi,%eax
404929:	8b d3                	mov    %ebx,%edx
40492b:	e8 88 01 00 00       	call   0x404ab8
404930:	56                   	push   %esi
404931:	8b 07                	mov    (%edi),%eax
404933:	8b 4c 24 04          	mov    0x4(%esp),%ecx
404937:	8b d3                	mov    %ebx,%edx
404939:	e8 66 f9 ff ff       	call   0x4042a4
40493e:	8b d8                	mov    %eax,%ebx
404940:	85 db                	test   %ebx,%ebx
404942:	7d 02                	jge    0x404946
404944:	33 db                	xor    %ebx,%ebx
404946:	8b c7                	mov    %edi,%eax
404948:	8b d3                	mov    %ebx,%edx
40494a:	e8 69 01 00 00       	call   0x404ab8
40494f:	81 c4 04 10 00 00    	add    $0x1004,%esp
404955:	5d                   	pop    %ebp
404956:	5f                   	pop    %edi
404957:	5e                   	pop    %esi
404958:	5b                   	pop    %ebx
404959:	c3                   	ret
40495a:	8b c0                	mov    %eax,%eax
40495c:	85 c9                	test   %ecx,%ecx
40495e:	0f 84 0c ff ff ff    	je     0x404870
404964:	50                   	push   %eax
404965:	51                   	push   %ecx
404966:	52                   	push   %edx
404967:	e8 24 ca ff ff       	call   0x401390
40496c:	85 c0                	test   %eax,%eax
40496e:	0f 84 cc fe ff ff    	je     0x404840
404974:	5a                   	pop    %edx
404975:	ff 32                	push   (%edx)
404977:	89 02                	mov    %eax,(%edx)
404979:	e8 22 ca ff ff       	call   0x4013a0
40497e:	c3                   	ret
40497f:	90                   	nop
404980:	31 c9                	xor    %ecx,%ecx
404982:	85 d2                	test   %edx,%edx
404984:	74 2d                	je     0x4049b3
404986:	52                   	push   %edx
404987:	66 3b 0a             	cmp    (%edx),%cx
40498a:	74 20                	je     0x4049ac
40498c:	66 3b 4a 02          	cmp    0x2(%edx),%cx
404990:	74 17                	je     0x4049a9
404992:	66 3b 4a 04          	cmp    0x4(%edx),%cx
404996:	74 0e                	je     0x4049a6
404998:	66 3b 4a 06          	cmp    0x6(%edx),%cx
40499c:	74 05                	je     0x4049a3
40499e:	83 c2 08             	add    $0x8,%edx
4049a1:	eb e4                	jmp    0x404987
4049a3:	83 c2 02             	add    $0x2,%edx
4049a6:	83 c2 02             	add    $0x2,%edx
4049a9:	83 c2 02             	add    $0x2,%edx
4049ac:	89 d1                	mov    %edx,%ecx
4049ae:	5a                   	pop    %edx
4049af:	29 d1                	sub    %edx,%ecx
4049b1:	d1 e9                	shr    $1,%ecx
4049b3:	e9 a4 ff ff ff       	jmp    0x40495c
4049b8:	c3                   	ret
4049b9:	8d 40 00             	lea    0x0(%eax),%eax
4049bc:	31 c9                	xor    %ecx,%ecx
4049be:	85 d2                	test   %edx,%edx
4049c0:	74 03                	je     0x4049c5
4049c2:	8b 4a fc             	mov    -0x4(%edx),%ecx
4049c5:	e9 06 ff ff ff       	jmp    0x4048d0
4049ca:	c3                   	ret
4049cb:	90                   	nop
4049cc:	85 c0                	test   %eax,%eax
4049ce:	74 04                	je     0x4049d4
4049d0:	c3                   	ret
4049d1:	90                   	nop
4049d2:	00 00                	add    %al,(%eax)
4049d4:	b8 d2 49 40 00       	mov    $0x4049d2,%eax
4049d9:	c3                   	ret
4049da:	8b c0                	mov    %eax,%eax
4049dc:	85 c0                	test   %eax,%eax
4049de:	74 05                	je     0x4049e5
4049e0:	8b 40 fc             	mov    -0x4(%eax),%eax
4049e3:	d1 e8                	shr    $1,%eax
4049e5:	c3                   	ret
4049e6:	8b c0                	mov    %eax,%eax
4049e8:	53                   	push   %ebx
4049e9:	56                   	push   %esi
4049ea:	57                   	push   %edi
4049eb:	89 c6                	mov    %eax,%esi
4049ed:	89 d7                	mov    %edx,%edi
4049ef:	39 d0                	cmp    %edx,%eax
4049f1:	74 72                	je     0x404a65
4049f3:	85 f6                	test   %esi,%esi
4049f5:	74 51                	je     0x404a48
4049f7:	85 ff                	test   %edi,%edi
4049f9:	74 54                	je     0x404a4f
4049fb:	8b 46 fc             	mov    -0x4(%esi),%eax
4049fe:	8b 57 fc             	mov    -0x4(%edi),%edx
404a01:	29 d0                	sub    %edx,%eax
404a03:	77 02                	ja     0x404a07
404a05:	01 c2                	add    %eax,%edx
404a07:	52                   	push   %edx
404a08:	c1 ea 02             	shr    $0x2,%edx
404a0b:	74 26                	je     0x404a33
404a0d:	8b 0e                	mov    (%esi),%ecx
404a0f:	8b 1f                	mov    (%edi),%ebx
404a11:	39 d9                	cmp    %ebx,%ecx
404a13:	75 41                	jne    0x404a56
404a15:	4a                   	dec    %edx
404a16:	74 15                	je     0x404a2d
404a18:	8b 4e 04             	mov    0x4(%esi),%ecx
404a1b:	8b 5f 04             	mov    0x4(%edi),%ebx
404a1e:	39 d9                	cmp    %ebx,%ecx
404a20:	75 34                	jne    0x404a56
404a22:	83 c6 08             	add    $0x8,%esi
404a25:	83 c7 08             	add    $0x8,%edi
404a28:	4a                   	dec    %edx
404a29:	75 e2                	jne    0x404a0d
404a2b:	eb 06                	jmp    0x404a33
404a2d:	83 c6 04             	add    $0x4,%esi
404a30:	83 c7 04             	add    $0x4,%edi
404a33:	5a                   	pop    %edx
404a34:	83 e2 02             	and    $0x2,%edx
404a37:	74 0b                	je     0x404a44
404a39:	66 8b 0e             	mov    (%esi),%cx
404a3c:	66 8b 1f             	mov    (%edi),%bx
404a3f:	66 39 d9             	cmp    %bx,%cx
404a42:	75 21                	jne    0x404a65
404a44:	01 c0                	add    %eax,%eax
404a46:	eb 1d                	jmp    0x404a65
404a48:	8b 57 fc             	mov    -0x4(%edi),%edx
404a4b:	29 d0                	sub    %edx,%eax
404a4d:	eb 16                	jmp    0x404a65
404a4f:	8b 46 fc             	mov    -0x4(%esi),%eax
404a52:	29 d0                	sub    %edx,%eax
404a54:	eb 0f                	jmp    0x404a65
404a56:	5a                   	pop    %edx
404a57:	66 39 d9             	cmp    %bx,%cx
404a5a:	75 09                	jne    0x404a65
404a5c:	c1 e9 10             	shr    $0x10,%ecx
404a5f:	c1 eb 10             	shr    $0x10,%ebx
404a62:	66 39 d9             	cmp    %bx,%cx
404a65:	5f                   	pop    %edi
404a66:	5e                   	pop    %esi
404a67:	5b                   	pop    %ebx
404a68:	c3                   	ret
404a69:	8d 40 00             	lea    0x0(%eax),%eax
404a6c:	55                   	push   %ebp
404a6d:	8b ec                	mov    %esp,%ebp
404a6f:	53                   	push   %ebx
404a70:	56                   	push   %esi
404a71:	57                   	push   %edi
404a72:	8b f9                	mov    %ecx,%edi
404a74:	8b da                	mov    %edx,%ebx
404a76:	8b f0                	mov    %eax,%esi
404a78:	8b c6                	mov    %esi,%eax
404a7a:	e8 5d ff ff ff       	call   0x4049dc
404a7f:	83 fb 01             	cmp    $0x1,%ebx
404a82:	7d 04                	jge    0x404a88
404a84:	33 db                	xor    %ebx,%ebx
404a86:	eb 07                	jmp    0x404a8f
404a88:	4b                   	dec    %ebx
404a89:	3b c3                	cmp    %ebx,%eax
404a8b:	7d 02                	jge    0x404a8f
404a8d:	8b d8                	mov    %eax,%ebx
404a8f:	85 ff                	test   %edi,%edi
404a91:	7d 04                	jge    0x404a97
404a93:	33 c0                	xor    %eax,%eax
404a95:	eb 08                	jmp    0x404a9f
404a97:	2b c3                	sub    %ebx,%eax
404a99:	3b f8                	cmp    %eax,%edi
404a9b:	7d 02                	jge    0x404a9f
404a9d:	8b c7                	mov    %edi,%eax
404a9f:	8b d3                	mov    %ebx,%edx
404aa1:	03 d2                	add    %edx,%edx
404aa3:	03 d6                	add    %esi,%edx
404aa5:	8b 4d 08             	mov    0x8(%ebp),%ecx
404aa8:	91                   	xchg   %eax,%ecx
404aa9:	e8 ae fe ff ff       	call   0x40495c
404aae:	5f                   	pop    %edi
404aaf:	5e                   	pop    %esi
404ab0:	5b                   	pop    %ebx
404ab1:	5d                   	pop    %ebp
404ab2:	c2 04 00             	ret    $0x4
404ab5:	8d 40 00             	lea    0x0(%eax),%eax
404ab8:	53                   	push   %ebx
404ab9:	56                   	push   %esi
404aba:	57                   	push   %edi
404abb:	8b f2                	mov    %edx,%esi
404abd:	8b f8                	mov    %eax,%edi
404abf:	33 db                	xor    %ebx,%ebx
404ac1:	85 f6                	test   %esi,%esi
404ac3:	7e 27                	jle    0x404aec
404ac5:	8b c6                	mov    %esi,%eax
404ac7:	e8 7c fd ff ff       	call   0x404848
404acc:	8b d8                	mov    %eax,%ebx
404ace:	8b 07                	mov    (%edi),%eax
404ad0:	e8 07 ff ff ff       	call   0x4049dc
404ad5:	85 c0                	test   %eax,%eax
404ad7:	7e 13                	jle    0x404aec
404ad9:	3b f0                	cmp    %eax,%esi
404adb:	7d 02                	jge    0x404adf
404add:	8b c6                	mov    %esi,%eax
404adf:	8b c8                	mov    %eax,%ecx
404ae1:	03 c9                	add    %ecx,%ecx
404ae3:	8b d3                	mov    %ebx,%edx
404ae5:	8b 07                	mov    (%edi),%eax
404ae7:	e8 88 de ff ff       	call   0x402974
404aec:	8b c7                	mov    %edi,%eax
404aee:	8b d3                	mov    %ebx,%edx
404af0:	e8 6b fd ff ff       	call   0x404860
404af5:	5f                   	pop    %edi
404af6:	5e                   	pop    %esi
404af7:	5b                   	pop    %ebx
404af8:	c3                   	ret
404af9:	8d 40 00             	lea    0x0(%eax),%eax
404afc:	31 c9                	xor    %ecx,%ecx
404afe:	53                   	push   %ebx
404aff:	8a 4a 01             	mov    0x1(%edx),%cl
404b02:	56                   	push   %esi
404b03:	57                   	push   %edi
404b04:	89 c3                	mov    %eax,%ebx
404b06:	8d 74 11 0a          	lea    0xa(%ecx,%edx,1),%esi
404b0a:	8b 7c 11 06          	mov    0x6(%ecx,%edx,1),%edi
404b0e:	8b 16                	mov    (%esi),%edx
404b10:	8b 46 04             	mov    0x4(%esi),%eax
404b13:	01 d8                	add    %ebx,%eax
404b15:	8b 12                	mov    (%edx),%edx
404b17:	b9 01 00 00 00       	mov    $0x1,%ecx
404b1c:	e8 0b 00 00 00       	call   0x404b2c