40361f:	e8 1f ff ff ff       	call   0x403543
403624:	83 c4 0c             	add    $0xc,%esp
403627:	89 45 e4             	mov    %eax,-0x1c(%ebp)
40362a:	c7 45 fc fe ff ff ff 	movl   $0xfffffffe,-0x4(%ebp)
403631:	e8 09 00 00 00       	call   0x40363f
403636:	8b 45 e4             	mov    -0x1c(%ebp),%eax
403639:	e8 77 0b 00 00       	call   0x4041b5
40363e:	c3                   	ret
40363f:	ff 75 08             	push   0x8(%ebp)
403642:	e8 86 ed ff ff       	call   0x4023cd
403647:	59                   	pop    %ecx
403648:	c3                   	ret
403649:	8b ff                	mov    %edi,%edi
40364b:	55                   	push   %ebp
40364c:	8b ec                	mov    %esp,%ebp
40364e:	83 3d 20 47 41 00 00 	cmpl   $0x0,0x414720
403655:	56                   	push   %esi
403656:	8b 35 70 32 41 00    	mov    0x413270,%esi
40365c:	75 04                	jne    0x403662
40365e:	33 c0                	xor    %eax,%eax
403660:	eb 77                	jmp    0x4036d9
403662:	57                   	push   %edi
403663:	85 f6                	test   %esi,%esi
403665:	75 2e                	jne    0x403695
403667:	39 35 68 32 41 00    	cmp    %esi,0x413268
40366d:	74 67                	je     0x4036d6
40366f:	e8 20 61 00 00       	call   0x409794
403674:	a3 ec 2e 41 00       	mov    %eax,0x412eec
403679:	e8 3a 60 00 00       	call   0x4096b8
40367e:	85 c0                	test   %eax,%eax
403680:	79 09                	jns    0x40368b
403682:	e8 aa 5f 00 00       	call   0x409631
403687:	85 c0                	test   %eax,%eax
403689:	75 4b                	jne    0x4036d6
40368b:	8b 35 70 32 41 00    	mov    0x413270,%esi
403691:	85 f6                	test   %esi,%esi
403693:	74 41                	je     0x4036d6
403695:	83 7d 08 00          	cmpl   $0x0,0x8(%ebp)
403699:	74 3b                	je     0x4036d6
40369b:	ff 75 08             	push   0x8(%ebp)
40369e:	e8 73 5f 00 00       	call   0x409616
4036a3:	59                   	pop    %ecx
4036a4:	8b f8                	mov    %eax,%edi
4036a6:	eb 28                	jmp    0x4036d0
4036a8:	50                   	push   %eax
4036a9:	e8 68 5f 00 00       	call   0x409616
4036ae:	59                   	pop    %ecx
4036af:	3b c7                	cmp    %edi,%eax
4036b1:	76 1a                	jbe    0x4036cd
4036b3:	8b 06                	mov    (%esi),%eax
4036b5:	66 83 3c 78 3d       	cmpw   $0x3d,(%eax,%edi,2)
4036ba:	75 11                	jne    0x4036cd
4036bc:	57                   	push   %edi
4036bd:	ff 75 08             	push   0x8(%ebp)
4036c0:	50                   	push   %eax
4036c1:	e8 96 5e 00 00       	call   0x40955c
4036c6:	83 c4 0c             	add    $0xc,%esp
4036c9:	85 c0                	test   %eax,%eax
4036cb:	74 0f                	je     0x4036dc
4036cd:	83 c6 04             	add    $0x4,%esi
4036d0:	8b 06                	mov    (%esi),%eax
4036d2:	85 c0                	test   %eax,%eax
4036d4:	75 d2                	jne    0x4036a8
4036d6:	33 c0                	xor    %eax,%eax
4036d8:	5f                   	pop    %edi
4036d9:	5e                   	pop    %esi
4036da:	5d                   	pop    %ebp
4036db:	c3                   	ret
4036dc:	8b 06                	mov    (%esi),%eax
4036de:	8d 44 78 02          	lea    0x2(%eax,%edi,2),%eax
4036e2:	eb f4                	jmp    0x4036d8
4036e4:	6a 0c                	push   $0xc
4036e6:	68 58 11 41 00       	push   $0x411158
4036eb:	e8 80 0a 00 00       	call   0x404170
4036f0:	6a 07                	push   $0x7
4036f2:	e8 a2 36 00 00       	call   0x406d99
4036f7:	59                   	pop    %ecx
4036f8:	33 f6                	xor    %esi,%esi
4036fa:	89 75 fc             	mov    %esi,-0x4(%ebp)
4036fd:	33 c0                	xor    %eax,%eax
4036ff:	8b 7d 08             	mov    0x8(%ebp),%edi
403702:	3b fe                	cmp    %esi,%edi
403704:	0f 95 c0             	setne  %al
403707:	3b c6                	cmp    %esi,%eax
403709:	75 14                	jne    0x40371f
40370b:	e8 17 0a 00 00       	call   0x404127
403710:	6a 16                	push   $0x16
403712:	5e                   	pop    %esi
403713:	89 30                	mov    %esi,(%eax)
403715:	e8 6d f5 ff ff       	call   0x402c87
40371a:	89 75 e4             	mov    %esi,-0x1c(%ebp)
40371d:	eb 74                	jmp    0x403793
40371f:	89 37                	mov    %esi,(%edi)
403721:	8b 45 0c             	mov    0xc(%ebp),%eax
403724:	3b c6                	cmp    %esi,%eax
403726:	74 02                	je     0x40372a
403728:	89 30                	mov    %esi,(%eax)
40372a:	33 c0                	xor    %eax,%eax
40372c:	39 75 10             	cmp    %esi,0x10(%ebp)
40372f:	0f 95 c0             	setne  %al
403732:	3b c6                	cmp    %esi,%eax
403734:	74 d5                	je     0x40370b
403736:	ff 75 10             	push   0x10(%ebp)
403739:	e8 0b ff ff ff       	call   0x403649
40373e:	59                   	pop    %ecx
40373f:	8b d8                	mov    %eax,%ebx
403741:	3b de                	cmp    %esi,%ebx
403743:	74 d5                	je     0x40371a
403745:	53                   	push   %ebx
403746:	e8 cb 5e 00 00       	call   0x409616
40374b:	8d 70 01             	lea    0x1(%eax),%esi
40374e:	6a 02                	push   $0x2
403750:	56                   	push   %esi
403751:	e8 4f e8 ff ff       	call   0x401fa5
403756:	83 c4 0c             	add    $0xc,%esp
403759:	89 07                	mov    %eax,(%edi)
40375b:	33 ff                	xor    %edi,%edi
40375d:	3b c7                	cmp    %edi,%eax
40375f:	75 17                	jne    0x403778
403761:	e8 c1 09 00 00       	call   0x404127
403766:	c7 00 0c 00 00 00    	movl   $0xc,(%eax)
40376c:	e8 b6 09 00 00       	call   0x404127
403771:	8b 00                	mov    (%eax),%eax
403773:	89 45 e4             	mov    %eax,-0x1c(%ebp)
403776:	eb 1b                	jmp    0x403793
403778:	53                   	push   %ebx
403779:	56                   	push   %esi
40377a:	50                   	push   %eax
40377b:	e8 3b 00 00 00       	call   0x4037bb
403780:	83 c4 0c             	add    $0xc,%esp
403783:	3b c7                	cmp    %edi,%eax
403785:	75 21                	jne    0x4037a8
403787:	8b 45 0c             	mov    0xc(%ebp),%eax
40378a:	3b c7                	cmp    %edi,%eax
40378c:	74 02                	je     0x403790
40378e:	89 30                	mov    %esi,(%eax)
403790:	89 7d e4             	mov    %edi,-0x1c(%ebp)
403793:	c7 45 fc fe ff ff ff 	movl   $0xfffffffe,-0x4(%ebp)
40379a:	e8 13 00 00 00       	call   0x4037b2
40379f:	8b 45 e4             	mov    -0x1c(%ebp),%eax
4037a2:	e8 0e 0a 00 00       	call   0x4041b5
4037a7:	c3                   	ret
4037a8:	57                   	push   %edi
4037a9:	57                   	push   %edi
4037aa:	57                   	push   %edi
4037ab:	57                   	push   %edi
4037ac:	57                   	push   %edi
4037ad:	e8 83 f4 ff ff       	call   0x402c35
4037b2:	6a 07                	push   $0x7
4037b4:	e8 07 35 00 00       	call   0x406cc0
4037b9:	59                   	pop    %ecx
4037ba:	c3                   	ret
4037bb:	8b ff                	mov    %edi,%edi
4037bd:	55                   	push   %ebp
4037be:	8b ec                	mov    %esp,%ebp
4037c0:	56                   	push   %esi
4037c1:	8b 75 08             	mov    0x8(%ebp),%esi
4037c4:	57                   	push   %edi
4037c5:	85 f6                	test   %esi,%esi
4037c7:	74 07                	je     0x4037d0
4037c9:	8b 7d 0c             	mov    0xc(%ebp),%edi
4037cc:	85 ff                	test   %edi,%edi
4037ce:	75 15                	jne    0x4037e5
4037d0:	e8 52 09 00 00       	call   0x404127
4037d5:	6a 16                	push   $0x16
4037d7:	5e                   	pop    %esi
4037d8:	89 30                	mov    %esi,(%eax)
4037da:	e8 a8 f4 ff ff       	call   0x402c87
4037df:	8b c6                	mov    %esi,%eax
4037e1:	5f                   	pop    %edi
4037e2:	5e                   	pop    %esi
4037e3:	5d                   	pop    %ebp
4037e4:	c3                   	ret
4037e5:	8b 45 10             	mov    0x10(%ebp),%eax
4037e8:	85 c0                	test   %eax,%eax
4037ea:	75 05                	jne    0x4037f1
4037ec:	66 89 06             	mov    %ax,(%esi)
4037ef:	eb df                	jmp    0x4037d0
4037f1:	8b d6                	mov    %esi,%edx
4037f3:	2b d0                	sub    %eax,%edx
4037f5:	0f b7 08             	movzwl (%eax),%ecx
4037f8:	66 89 0c 02          	mov    %cx,(%edx,%eax,1)
4037fc:	83 c0 02             	add    $0x2,%eax
4037ff:	66 85 c9             	test   %cx,%cx
403802:	74 03                	je     0x403807
403804:	4f                   	dec    %edi
403805:	75 ee                	jne    0x4037f5
403807:	33 c0                	xor    %eax,%eax
403809:	85 ff                	test   %edi,%edi
40380b:	75 d4                	jne    0x4037e1
40380d:	66 89 06             	mov    %ax,(%esi)
403810:	e8 12 09 00 00       	call   0x404127
403815:	6a 22                	push   $0x22
403817:	59                   	pop    %ecx
403818:	89 08                	mov    %ecx,(%eax)
40381a:	8b f1                	mov    %ecx,%esi
40381c:	eb bc                	jmp    0x4037da
40381e:	8b ff                	mov    %edi,%edi
403820:	55                   	push   %ebp
403821:	8b ec                	mov    %esp,%ebp
403823:	56                   	push   %esi
403824:	8b 75 08             	mov    0x8(%ebp),%esi
403827:	57                   	push   %edi
403828:	83 cf ff             	or     $0xffffffff,%edi
40382b:	85 f6                	test   %esi,%esi
40382d:	75 14                	jne    0x403843
40382f:	e8 f3 08 00 00       	call   0x404127
403834:	c7 00 16 00 00 00    	movl   $0x16,(%eax)
40383a:	e8 48 f4 ff ff       	call   0x402c87
40383f:	0b c7                	or     %edi,%eax
403841:	eb 44                	jmp    0x403887
403843:	f6 46 0c 83          	testb  $0x83,0xc(%esi)
403847:	74 38                	je     0x403881
403849:	56                   	push   %esi
40384a:	e8 3d 32 00 00       	call   0x406a8c
40384f:	56                   	push   %esi
403850:	8b f8                	mov    %eax,%edi
403852:	e8 95 5f 00 00       	call   0x4097ec
403857:	56                   	push   %esi
403858:	e8 53 f2 ff ff       	call   0x402ab0
40385d:	50                   	push   %eax
40385e:	e8 38 01 00 00       	call   0x40399b
403863:	83 c4 10             	add    $0x10,%esp
403866:	85 c0                	test   %eax,%eax
403868:	79 05                	jns    0x40386f
40386a:	83 cf ff             	or     $0xffffffff,%edi
40386d:	eb 12                	jmp    0x403881
40386f:	8b 46 1c             	mov    0x1c(%esi),%eax
403872:	85 c0                	test   %eax,%eax
403874:	74 0b                	je     0x403881
403876:	50                   	push   %eax
403877:	e8 ef e6 ff ff       	call   0x401f6b
40387c:	83 66 1c 00          	andl   $0x0,0x1c(%esi)
403880:	59                   	pop    %ecx
403881:	83 66 0c 00          	andl   $0x0,0xc(%esi)
403885:	8b c7                	mov    %edi,%eax
403887:	5f                   	pop    %edi
403888:	5e                   	pop    %esi
403889:	5d                   	pop    %ebp
40388a:	c3                   	ret
40388b:	6a 0c                	push   $0xc
40388d:	68 78 11 41 00       	push   $0x411178
403892:	e8 d9 08 00 00       	call   0x404170
403897:	83 4d e4 ff          	orl    $0xffffffff,-0x1c(%ebp)
40389b:	33 c0                	xor    %eax,%eax
40389d:	8b 75 08             	mov    0x8(%ebp),%esi
4038a0:	85 f6                	test   %esi,%esi
4038a2:	0f 95 c0             	setne  %al
4038a5:	85 c0                	test   %eax,%eax
4038a7:	75 15                	jne    0x4038be
4038a9:	e8 79 08 00 00       	call   0x404127
4038ae:	c7 00 16 00 00 00    	movl   $0x16,(%eax)
4038b4:	e8 ce f3 ff ff       	call   0x402c87
4038b9:	83 c8 ff             	or     $0xffffffff,%eax
4038bc:	eb 0d                	jmp    0x4038cb
4038be:	f6 46 0c 40          	testb  $0x40,0xc(%esi)
4038c2:	74 0d                	je     0x4038d1
4038c4:	83 66 0c 00          	andl   $0x0,0xc(%esi)
4038c8:	8b 45 e4             	mov    -0x1c(%ebp),%eax
4038cb:	e8 e5 08 00 00       	call   0x4041b5
4038d0:	c3                   	ret
4038d1:	56                   	push   %esi
4038d2:	e8 83 ea ff ff       	call   0x40235a
4038d7:	59                   	pop    %ecx
4038d8:	83 65 fc 00          	andl   $0x0,-0x4(%ebp)
4038dc:	56                   	push   %esi
4038dd:	e8 3c ff ff ff       	call   0x40381e
4038e2:	59                   	pop    %ecx
4038e3:	89 45 e4             	mov    %eax,-0x1c(%ebp)
4038e6:	c7 45 fc fe ff ff ff 	movl   $0xfffffffe,-0x4(%ebp)
4038ed:	e8 05 00 00 00       	call   0x4038f7
4038f2:	eb d4                	jmp    0x4038c8
4038f4:	8b 75 08             	mov    0x8(%ebp),%esi
4038f7:	56                   	push   %esi
4038f8:	e8 d0 ea ff ff       	call   0x4023cd
4038fd:	59                   	pop    %ecx
4038fe:	c3                   	ret
4038ff:	8b ff                	mov    %edi,%edi
403901:	55                   	push   %ebp
403902:	8b ec                	mov    %esp,%ebp
403904:	56                   	push   %esi
403905:	8b 75 08             	mov    0x8(%ebp),%esi
403908:	57                   	push   %edi
403909:	56                   	push   %esi
40390a:	e8 66 f7 ff ff       	call   0x403075
40390f:	59                   	pop    %ecx
403910:	83 f8 ff             	cmp    $0xffffffff,%eax
403913:	74 50                	je     0x403965
403915:	a1 20 46 41 00       	mov    0x414620,%eax
40391a:	83 fe 01             	cmp    $0x1,%esi
40391d:	75 09                	jne    0x403928
40391f:	f6 80 84 00 00 00 01 	testb  $0x1,0x84(%eax)
403926:	75 0b                	jne    0x403933
403928:	83 fe 02             	cmp    $0x2,%esi
40392b:	75 1c                	jne    0x403949
40392d:	f6 40 44 01          	testb  $0x1,0x44(%eax)
403931:	74 16                	je     0x403949
403933:	6a 02                	push   $0x2
403935:	e8 3b f7 ff ff       	call   0x403075
40393a:	6a 01                	push   $0x1
40393c:	8b f8                	mov    %eax,%edi
40393e:	e8 32 f7 ff ff       	call   0x403075
403943:	59                   	pop    %ecx
403944:	59                   	pop    %ecx
403945:	3b c7                	cmp    %edi,%eax
403947:	74 1c                	je     0x403965
403949:	56                   	push   %esi
40394a:	e8 26 f7 ff ff       	call   0x403075
40394f:	59                   	pop    %ecx
403950:	50                   	push   %eax
403951:	ff 15 58 f0 40 00    	call   *0x40f058
403957:	85 c0                	test   %eax,%eax
403959:	75 0a                	jne    0x403965
40395b:	ff 15 44 f0 40 00    	call   *0x40f044
403961:	8b f8                	mov    %eax,%edi
403963:	eb 02                	jmp    0x403967
403965:	33 ff                	xor    %edi,%edi
403967:	56                   	push   %esi
403968:	e8 82 f6 ff ff       	call   0x402fef
40396d:	8b c6                	mov    %esi,%eax
40396f:	c1 f8 05             	sar    $0x5,%eax
403972:	8b 04 85 20 46 41 00 	mov    0x414620(,%eax,4),%eax
403979:	83 e6 1f             	and    $0x1f,%esi
40397c:	c1 e6 06             	shl    $0x6,%esi
40397f:	59                   	pop    %ecx
403980:	c6 44 30 04 00       	movb   $0x0,0x4(%eax,%esi,1)
403985:	85 ff                	test   %edi,%edi
403987:	74 0c                	je     0x403995
403989:	57                   	push   %edi
40398a:	e8 be 07 00 00       	call   0x40414d
40398f:	59                   	pop    %ecx
403990:	83 c8 ff             	or     $0xffffffff,%eax
403993:	eb 02                	jmp    0x403997
403995:	33 c0                	xor    %eax,%eax
403997:	5f                   	pop    %edi
403998:	5e                   	pop    %esi
403999:	5d                   	pop    %ebp
40399a:	c3                   	ret
40399b:	6a 10                	push   $0x10
40399d:	68 98 11 41 00       	push   $0x411198
4039a2:	e8 c9 07 00 00       	call   0x404170
4039a7:	8b 5d 08             	mov    0x8(%ebp),%ebx
4039aa:	83 fb fe             	cmp    $0xfffffffe,%ebx
4039ad:	75 1b                	jne    0x4039ca
4039af:	e8 86 07 00 00       	call   0x40413a
4039b4:	83 20 00             	andl   $0x0,(%eax)
4039b7:	e8 6b 07 00 00       	call   0x404127
4039bc:	c7 00 09 00 00 00    	movl   $0x9,(%eax)
4039c2:	83 c8 ff             	or     $0xffffffff,%eax
4039c5:	e9 84 00 00 00       	jmp    0x403a4e