40565a:	8b c0                	mov    %eax,%eax
40565c:	8b 10                	mov    (%eax),%edx
40565e:	85 d2                	test   %edx,%edx
405660:	74 0e                	je     0x405670
405662:	c7 00 00 00 00 00    	movl   $0x0,(%eax)
405668:	50                   	push   %eax
405669:	52                   	push   %edx
40566a:	8b 02                	mov    (%edx),%eax
40566c:	ff 50 08             	call   *0x8(%eax)
40566f:	58                   	pop    %eax
405670:	c3                   	ret
405671:	8d 40 00             	lea    0x0(%eax),%eax
405674:	85 d2                	test   %edx,%edx
405676:	74 19                	je     0x405691
405678:	52                   	push   %edx
405679:	50                   	push   %eax
40567a:	8b 02                	mov    (%edx),%eax
40567c:	52                   	push   %edx
40567d:	ff 50 04             	call   *0x4(%eax)
405680:	58                   	pop    %eax
405681:	8b 08                	mov    (%eax),%ecx
405683:	8f 00                	pop    (%eax)
405685:	85 c9                	test   %ecx,%ecx
405687:	75 01                	jne    0x40568a
405689:	c3                   	ret
40568a:	8b 01                	mov    (%ecx),%eax
40568c:	51                   	push   %ecx
40568d:	ff 50 08             	call   *0x8(%eax)
405690:	c3                   	ret
405691:	8b 08                	mov    (%eax),%ecx
405693:	85 c9                	test   %ecx,%ecx
405695:	89 10                	mov    %edx,(%eax)
405697:	74 06                	je     0x40569f
405699:	8b 01                	mov    (%ecx),%eax
40569b:	51                   	push   %ecx
40569c:	ff 50 08             	call   *0x8(%eax)
40569f:	c3                   	ret
4056a0:	85 d2                	test   %edx,%edx
4056a2:	0f 84 b4 ff ff ff    	je     0x40565c
4056a8:	57                   	push   %edi
4056a9:	89 c7                	mov    %eax,%edi
4056ab:	6a 00                	push   $0x0
4056ad:	54                   	push   %esp
4056ae:	51                   	push   %ecx
4056af:	52                   	push   %edx
4056b0:	8b 02                	mov    (%edx),%eax
4056b2:	ff 10                	call   *(%eax)
4056b4:	85 c0                	test   %eax,%eax
4056b6:	74 07                	je     0x4056bf
4056b8:	b0 17                	mov    $0x17,%al
4056ba:	e9 59 d1 ff ff       	jmp    0x402818
4056bf:	8b 07                	mov    (%edi),%eax
4056c1:	85 c0                	test   %eax,%eax
4056c3:	74 06                	je     0x4056cb
4056c5:	50                   	push   %eax
4056c6:	8b 00                	mov    (%eax),%eax
4056c8:	ff 50 08             	call   *0x8(%eax)
4056cb:	58                   	pop    %eax
4056cc:	89 07                	mov    %eax,(%edi)
4056ce:	5f                   	pop    %edi
4056cf:	c3                   	ret
4056d0:	85 c0                	test   %eax,%eax
4056d2:	74 06                	je     0x4056da
4056d4:	50                   	push   %eax
4056d5:	8b 00                	mov    (%eax),%eax
4056d7:	ff 50 04             	call   *0x4(%eax)
4056da:	c3                   	ret
4056db:	90                   	nop
4056dc:	83 c0 04             	add    $0x4,%eax
4056df:	50                   	push   %eax
4056e0:	e8 0f bc ff ff       	call   0x4012f4
4056e5:	c3                   	ret
4056e6:	8b c0                	mov    %eax,%eax
4056e8:	83 78 04 00          	cmpl   $0x0,0x4(%eax)
4056ec:	74 07                	je     0x4056f5
4056ee:	b0 02                	mov    $0x2,%al
4056f0:	e8 23 d1 ff ff       	call   0x402818
4056f5:	c3                   	ret
4056f6:	8b c0                	mov    %eax,%eax
4056f8:	e8 07 db ff ff       	call   0x403204
4056fd:	c7 40 04 01 00 00 00 	movl   $0x1,0x4(%eax)
405704:	c3                   	ret
405705:	8d 40 00             	lea    0x0(%eax),%eax
405708:	55                   	push   %ebp
405709:	8b ec                	mov    %esp,%ebp
40570b:	53                   	push   %ebx
40570c:	8b 5d 08             	mov    0x8(%ebp),%ebx
40570f:	8b 4d 10             	mov    0x10(%ebp),%ecx
405712:	8b 55 0c             	mov    0xc(%ebp),%edx
405715:	8b c3                	mov    %ebx,%eax
405717:	e8 04 dc ff ff       	call   0x403320
40571c:	84 c0                	test   %al,%al
40571e:	74 04                	je     0x405724
405720:	33 c0                	xor    %eax,%eax
405722:	eb 05                	jmp    0x405729
405724:	b8 02 40 00 80       	mov    $0x80004002,%eax
405729:	5b                   	pop    %ebx
40572a:	5d                   	pop    %ebp
40572b:	c2 0c 00             	ret    $0xc
40572e:	8b c0                	mov    %eax,%eax
405730:	55                   	push   %ebp
405731:	8b ec                	mov    %esp,%ebp
405733:	8b 45 08             	mov    0x8(%ebp),%eax
405736:	83 c0 04             	add    $0x4,%eax
405739:	50                   	push   %eax
40573a:	e8 ad bb ff ff       	call   0x4012ec
40573f:	5d                   	pop    %ebp
405740:	c2 04 00             	ret    $0x4
405743:	90                   	nop
405744:	55                   	push   %ebp
405745:	8b ec                	mov    %esp,%ebp
405747:	53                   	push   %ebx
405748:	56                   	push   %esi
405749:	8b 5d 08             	mov    0x8(%ebp),%ebx
40574c:	8d 43 04             	lea    0x4(%ebx),%eax
40574f:	50                   	push   %eax
405750:	e8 9f bb ff ff       	call   0x4012f4
405755:	8b f0                	mov    %eax,%esi
405757:	85 f6                	test   %esi,%esi
405759:	75 09                	jne    0x405764
40575b:	b2 01                	mov    $0x1,%dl
40575d:	8b c3                	mov    %ebx,%eax
40575f:	8b 08                	mov    (%eax),%ecx
405761:	ff 51 fc             	call   *-0x4(%ecx)
405764:	8b c6                	mov    %esi,%eax
405766:	5e                   	pop    %esi
405767:	5b                   	pop    %ebx
405768:	5d                   	pop    %ebp
405769:	c2 04 00             	ret    $0x4
40576c:	55                   	push   %ebp
40576d:	8b ec                	mov    %esp,%ebp
40576f:	83 c4 f8             	add    $0xfffffff8,%esp
405772:	53                   	push   %ebx
405773:	56                   	push   %esi
405774:	89 4d f8             	mov    %ecx,-0x8(%ebp)
405777:	89 55 fc             	mov    %edx,-0x4(%ebp)
40577a:	33 d2                	xor    %edx,%edx
40577c:	83 7d f8 00          	cmpl   $0x0,-0x8(%ebp)
405780:	0f 84 b8 00 00 00    	je     0x40583e
405786:	33 f6                	xor    %esi,%esi
405788:	33 c9                	xor    %ecx,%ecx
40578a:	85 c0                	test   %eax,%eax
40578c:	0f 84 87 00 00 00    	je     0x405819
405792:	eb 6c                	jmp    0x405800
405794:	8b 55 f8             	mov    -0x8(%ebp),%edx
405797:	0f b7 14 4a          	movzwl (%edx,%ecx,2),%edx
40579b:	41                   	inc    %ecx
40579c:	83 fa 7f             	cmp    $0x7f,%edx
40579f:	77 06                	ja     0x4057a7
4057a1:	88 14 30             	mov    %dl,(%eax,%esi,1)
4057a4:	46                   	inc    %esi
4057a5:	eb 59                	jmp    0x405800
4057a7:	81 fa ff 07 00 00    	cmp    $0x7ff,%edx
4057ad:	76 31                	jbe    0x4057e0
4057af:	8d 5e 03             	lea    0x3(%esi),%ebx
4057b2:	3b 5d fc             	cmp    -0x4(%ebp),%ebx
4057b5:	77 53                	ja     0x40580a
4057b7:	8b da                	mov    %edx,%ebx
4057b9:	c1 eb 0c             	shr    $0xc,%ebx
4057bc:	80 cb e0             	or     $0xe0,%bl
4057bf:	88 1c 30             	mov    %bl,(%eax,%esi,1)
4057c2:	8b da                	mov    %edx,%ebx
4057c4:	c1 eb 06             	shr    $0x6,%ebx
4057c7:	80 e3 3f             	and    $0x3f,%bl
4057ca:	80 cb 80             	or     $0x80,%bl
4057cd:	88 5c 30 01          	mov    %bl,0x1(%eax,%esi,1)
4057d1:	80 e2 3f             	and    $0x3f,%dl
4057d4:	80 ca 80             	or     $0x80,%dl
4057d7:	88 54 30 02          	mov    %dl,0x2(%eax,%esi,1)
4057db:	83 c6 03             	add    $0x3,%esi
4057de:	eb 20                	jmp    0x405800
4057e0:	8d 5e 02             	lea    0x2(%esi),%ebx
4057e3:	3b 5d fc             	cmp    -0x4(%ebp),%ebx
4057e6:	77 22                	ja     0x40580a
4057e8:	8b da                	mov    %edx,%ebx
4057ea:	c1 eb 06             	shr    $0x6,%ebx
4057ed:	80 cb c0             	or     $0xc0,%bl
4057f0:	88 1c 30             	mov    %bl,(%eax,%esi,1)
4057f3:	80 e2 3f             	and    $0x3f,%dl
4057f6:	80 ca 80             	or     $0x80,%dl
4057f9:	88 54 30 01          	mov    %dl,0x1(%eax,%esi,1)
4057fd:	83 c6 02             	add    $0x2,%esi
405800:	3b 4d 08             	cmp    0x8(%ebp),%ecx
405803:	73 05                	jae    0x40580a
405805:	3b 75 fc             	cmp    -0x4(%ebp),%esi
405808:	72 8a                	jb     0x405794
40580a:	3b 75 fc             	cmp    -0x4(%ebp),%esi
40580d:	72 04                	jb     0x405813
40580f:	8b 75 fc             	mov    -0x4(%ebp),%esi
405812:	4e                   	dec    %esi
405813:	c6 04 30 00          	movb   $0x0,(%eax,%esi,1)
405817:	eb 22                	jmp    0x40583b
405819:	3b 4d 08             	cmp    0x8(%ebp),%ecx
40581c:	73 1d                	jae    0x40583b
40581e:	8b 45 f8             	mov    -0x8(%ebp),%eax
405821:	0f b7 14 48          	movzwl (%eax,%ecx,2),%edx
405825:	41                   	inc    %ecx
405826:	83 fa 7f             	cmp    $0x7f,%edx
405829:	76 0a                	jbe    0x405835
40582b:	81 fa ff 07 00 00    	cmp    $0x7ff,%edx
405831:	76 01                	jbe    0x405834
405833:	46                   	inc    %esi
405834:	46                   	inc    %esi
405835:	46                   	inc    %esi
405836:	3b 4d 08             	cmp    0x8(%ebp),%ecx
405839:	72 e3                	jb     0x40581e
40583b:	8d 56 01             	lea    0x1(%esi),%edx
40583e:	8b c2                	mov    %edx,%eax
405840:	5e                   	pop    %esi
405841:	5b                   	pop    %ebx
405842:	59                   	pop    %ecx
405843:	59                   	pop    %ecx
405844:	5d                   	pop    %ebp
405845:	c2 04 00             	ret    $0x4
405848:	55                   	push   %ebp
405849:	8b ec                	mov    %esp,%ebp
40584b:	83 c4 f0             	add    $0xfffffff0,%esp
40584e:	53                   	push   %ebx
40584f:	56                   	push   %esi
405850:	89 4d f4             	mov    %ecx,-0xc(%ebp)
405853:	89 55 f8             	mov    %edx,-0x8(%ebp)
405856:	89 45 fc             	mov    %eax,-0x4(%ebp)
405859:	83 7d f4 00          	cmpl   $0x0,-0xc(%ebp)
40585d:	75 0a                	jne    0x405869
40585f:	33 c0                	xor    %eax,%eax
405861:	89 45 f0             	mov    %eax,-0x10(%ebp)
405864:	e9 09 01 00 00       	jmp    0x405972
405869:	c7 45 f0 ff ff ff ff 	movl   $0xffffffff,-0x10(%ebp)
405870:	33 c0                	xor    %eax,%eax
405872:	33 f6                	xor    %esi,%esi
405874:	83 7d fc 00          	cmpl   $0x0,-0x4(%ebp)
405878:	0f 84 a9 00 00 00    	je     0x405927
40587e:	e9 82 00 00 00       	jmp    0x405905
405883:	8b 55 f4             	mov    -0xc(%ebp),%edx
405886:	33 c9                	xor    %ecx,%ecx
405888:	8a 0c 32             	mov    (%edx,%esi,1),%cl
40588b:	46                   	inc    %esi
40588c:	f6 c1 80             	test   $0x80,%cl
40588f:	74 6c                	je     0x4058fd
405891:	3b 75 08             	cmp    0x8(%ebp),%esi
405894:	0f 83 d8 00 00 00    	jae    0x405972
40589a:	83 e1 3f             	and    $0x3f,%ecx
40589d:	f6 c1 20             	test   $0x20,%cl
4058a0:	74 2e                	je     0x4058d0
4058a2:	8b 55 f4             	mov    -0xc(%ebp),%edx
4058a5:	8a 14 32             	mov    (%edx,%esi,1),%dl
4058a8:	46                   	inc    %esi
4058a9:	8b da                	mov    %edx,%ebx
4058ab:	80 e3 c0             	and    $0xc0,%bl
4058ae:	80 fb 80             	cmp    $0x80,%bl
4058b1:	0f 85 bb 00 00 00    	jne    0x405972
4058b7:	3b 75 08             	cmp    0x8(%ebp),%esi
4058ba:	0f 83 b2 00 00 00    	jae    0x405972
4058c0:	80 e2 3f             	and    $0x3f,%dl
4058c3:	81 e2 ff 00 00 00    	and    $0xff,%edx
4058c9:	c1 e1 06             	shl    $0x6,%ecx
4058cc:	0b d1                	or     %ecx,%edx
4058ce:	8b ca                	mov    %edx,%ecx
4058d0:	8b 55 f4             	mov    -0xc(%ebp),%edx
4058d3:	8a 14 32             	mov    (%edx,%esi,1),%dl
4058d6:	46                   	inc    %esi
4058d7:	8b da                	mov    %edx,%ebx
4058d9:	80 e3 c0             	and    $0xc0,%bl
4058dc:	80 fb 80             	cmp    $0x80,%bl
4058df:	0f 85 8d 00 00 00    	jne    0x405972
4058e5:	80 e2 3f             	and    $0x3f,%dl
4058e8:	81 e2 ff 00 00 00    	and    $0xff,%edx
4058ee:	c1 e1 06             	shl    $0x6,%ecx
4058f1:	66 0b d1             	or     %cx,%dx
4058f4:	8b 4d fc             	mov    -0x4(%ebp),%ecx
4058f7:	66 89 14 41          	mov    %dx,(%ecx,%eax,2)
4058fb:	eb 07                	jmp    0x405904
4058fd:	8b 55 fc             	mov    -0x4(%ebp),%edx
405900:	66 89 0c 42          	mov    %cx,(%edx,%eax,2)
405904:	40                   	inc    %eax
405905:	3b 75 08             	cmp    0x8(%ebp),%esi
405908:	73 09                	jae    0x405913
40590a:	3b 45 f8             	cmp    -0x8(%ebp),%eax
40590d:	0f 82 70 ff ff ff    	jb     0x405883
405913:	3b 45 f8             	cmp    -0x8(%ebp),%eax
405916:	72 04                	jb     0x40591c
405918:	8b 45 f8             	mov    -0x8(%ebp),%eax
40591b:	48                   	dec    %eax
40591c:	8b 55 fc             	mov    -0x4(%ebp),%edx
40591f:	66 c7 04 42 00 00    	movw   $0x0,(%edx,%eax,2)
405925:	eb 47                	jmp    0x40596e
405927:	3b 75 08             	cmp    0x8(%ebp),%esi
40592a:	73 42                	jae    0x40596e
40592c:	8b 55 f4             	mov    -0xc(%ebp),%edx
40592f:	8a 14 32             	mov    (%edx,%esi,1),%dl
405932:	46                   	inc    %esi
405933:	f6 c2 80             	test   $0x80,%dl
405936:	74 30                	je     0x405968
405938:	3b 75 08             	cmp    0x8(%ebp),%esi
40593b:	73 35                	jae    0x405972
40593d:	80 e2 3f             	and    $0x3f,%dl
405940:	f6 c2 20             	test   $0x20,%dl
405943:	74 14                	je     0x405959
405945:	8b 55 f4             	mov    -0xc(%ebp),%edx
405948:	8a 14 32             	mov    (%edx,%esi,1),%dl
40594b:	46                   	inc    %esi
40594c:	80 e2 c0             	and    $0xc0,%dl
40594f:	80 fa 80             	cmp    $0x80,%dl
405952:	75 1e                	jne    0x405972
405954:	3b 75 08             	cmp    0x8(%ebp),%esi
405957:	73 19                	jae    0x405972
405959:	8b 55 f4             	mov    -0xc(%ebp),%edx
40595c:	8a 14 32             	mov    (%edx,%esi,1),%dl
40595f:	46                   	inc    %esi
405960:	80 e2 c0             	and    $0xc0,%dl
405963:	80 fa 80             	cmp    $0x80,%dl
405966:	75 0a                	jne    0x405972
405968:	40                   	inc    %eax
405969:	3b 75 08             	cmp    0x8(%ebp),%esi
40596c:	72 be                	jb     0x40592c
40596e:	40                   	inc    %eax
40596f:	89 45 f0             	mov    %eax,-0x10(%ebp)
405972:	8b 45 f0             	mov    -0x10(%ebp),%eax
405975:	5e                   	pop    %esi
405976:	5b                   	pop    %ebx
405977:	8b e5                	mov    %ebp,%esp
405979:	5d                   	pop    %ebp
40597a:	c2 04 00             	ret    $0x4
40597d:	8d 40 00             	lea    0x0(%eax),%eax
405980:	55                   	push   %ebp
405981:	8b ec                	mov    %esp,%ebp
405983:	6a 00                	push   $0x0
405985:	53                   	push   %ebx
405986:	56                   	push   %esi
405987:	8b f2                	mov    %edx,%esi
405989:	8b d8                	mov    %eax,%ebx
40598b:	33 c0                	xor    %eax,%eax
40598d:	55                   	push   %ebp
40598e:	68 1f 5a 40 00       	push   $0x405a1f
405993:	64 ff 30             	push   %fs:(%eax)
405996:	64 89 20             	mov    %esp,%fs:(%eax)
405999:	8b c6                	mov    %esi,%eax
40599b:	e8 1c e6 ff ff       	call   0x403fbc
4059a0:	8b c3                	mov    %ebx,%eax
4059a2:	33 d2                	xor    %edx,%edx
4059a4:	e8 6b ee ff ff       	call   0x404814
4059a9:	74 5e                	je     0x405a09
4059ab:	8b c3                	mov    %ebx,%eax
4059ad:	e8 56 ee ff ff       	call   0x404808
4059b2:	8d 14 40             	lea    (%eax,%eax,2),%edx
4059b5:	8d 45 fc             	lea    -0x4(%ebp),%eax
4059b8:	e8 4b ec ff ff       	call   0x404608
4059bd:	8b c3                	mov    %ebx,%eax
4059bf:	e8 44 ee ff ff       	call   0x404808
4059c4:	50                   	push   %eax