40a4d3:	80 7d fd 00          	cmpb   $0x0,-0x3(%ebp)
40a4d7:	88 08                	mov    %cl,(%eax)
40a4d9:	75 21                	jne    0x40a4fc
40a4db:	f6 45 10 08          	testb  $0x8,0x10(%ebp)
40a4df:	74 1b                	je     0x40a4fc
40a4e1:	8b 06                	mov    (%esi),%eax
40a4e3:	8b c8                	mov    %eax,%ecx
40a4e5:	83 e0 1f             	and    $0x1f,%eax
40a4e8:	c1 f9 05             	sar    $0x5,%ecx
40a4eb:	8b 0c 8d 20 46 41 00 	mov    0x414620(,%ecx,4),%ecx
40a4f2:	c1 e0 06             	shl    $0x6,%eax
40a4f5:	8d 44 01 04          	lea    0x4(%ecx,%eax,1),%eax
40a4f9:	80 08 20             	orb    $0x20,(%eax)
40a4fc:	8b 4d f4             	mov    -0xc(%ebp),%ecx
40a4ff:	b8 00 00 00 c0       	mov    $0xc0000000,%eax
40a504:	23 c8                	and    %eax,%ecx
40a506:	3b c8                	cmp    %eax,%ecx
40a508:	75 7e                	jne    0x40a588
40a50a:	f6 45 10 01          	testb  $0x1,0x10(%ebp)
40a50e:	74 78                	je     0x40a588
40a510:	ff 75 e0             	push   -0x20(%ebp)
40a513:	ff 15 58 f0 40 00    	call   *0x40f058
40a519:	6a 00                	push   $0x0
40a51b:	ff 75 f0             	push   -0x10(%ebp)
40a51e:	8d 45 cc             	lea    -0x34(%ebp),%eax
40a521:	6a 03                	push   $0x3
40a523:	50                   	push   %eax
40a524:	ff 75 ec             	push   -0x14(%ebp)
40a527:	8b 45 f4             	mov    -0xc(%ebp),%eax
40a52a:	25 ff ff ff 7f       	and    $0x7fffffff,%eax
40a52f:	50                   	push   %eax
40a530:	ff 75 0c             	push   0xc(%ebp)
40a533:	ff 15 24 f1 40 00    	call   *0x40f124
40a539:	3b c3                	cmp    %ebx,%eax
40a53b:	75 34                	jne    0x40a571
40a53d:	ff 15 44 f0 40 00    	call   *0x40f044
40a543:	50                   	push   %eax
40a544:	e8 04 9c ff ff       	call   0x40414d
40a549:	8b 06                	mov    (%esi),%eax
40a54b:	8b c8                	mov    %eax,%ecx
40a54d:	83 e0 1f             	and    $0x1f,%eax
40a550:	c1 f9 05             	sar    $0x5,%ecx
40a553:	8b 0c 8d 20 46 41 00 	mov    0x414620(,%ecx,4),%ecx
40a55a:	c1 e0 06             	shl    $0x6,%eax
40a55d:	8d 44 01 04          	lea    0x4(%ecx,%eax,1),%eax
40a561:	80 20 fe             	andb   $0xfe,(%eax)
40a564:	ff 36                	push   (%esi)
40a566:	e8 84 8a ff ff       	call   0x402fef
40a56b:	59                   	pop    %ecx
40a56c:	e9 a1 fb ff ff       	jmp    0x40a112
40a571:	8b 36                	mov    (%esi),%esi
40a573:	8b ce                	mov    %esi,%ecx
40a575:	c1 f9 05             	sar    $0x5,%ecx
40a578:	8b 0c 8d 20 46 41 00 	mov    0x414620(,%ecx,4),%ecx
40a57f:	83 e6 1f             	and    $0x1f,%esi
40a582:	c1 e6 06             	shl    $0x6,%esi
40a585:	89 04 0e             	mov    %eax,(%esi,%ecx,1)
40a588:	8b 45 f8             	mov    -0x8(%ebp),%eax
40a58b:	e9 55 fa ff ff       	jmp    0x409fe5
40a590:	53                   	push   %ebx
40a591:	53                   	push   %ebx
40a592:	53                   	push   %ebx
40a593:	53                   	push   %ebx
40a594:	53                   	push   %ebx
40a595:	e8 9b 86 ff ff       	call   0x402c35
40a59a:	cc                   	int3
40a59b:	6a 14                	push   $0x14
40a59d:	68 70 13 41 00       	push   $0x411370
40a5a2:	e8 c9 9b ff ff       	call   0x404170
40a5a7:	33 ff                	xor    %edi,%edi
40a5a9:	89 7d e4             	mov    %edi,-0x1c(%ebp)
40a5ac:	33 c0                	xor    %eax,%eax
40a5ae:	8b 75 18             	mov    0x18(%ebp),%esi
40a5b1:	3b f7                	cmp    %edi,%esi
40a5b3:	0f 95 c0             	setne  %al
40a5b6:	3b c7                	cmp    %edi,%eax
40a5b8:	75 13                	jne    0x40a5cd
40a5ba:	e8 68 9b ff ff       	call   0x404127
40a5bf:	6a 16                	push   $0x16
40a5c1:	5e                   	pop    %esi
40a5c2:	89 30                	mov    %esi,(%eax)
40a5c4:	e8 be 86 ff ff       	call   0x402c87
40a5c9:	8b c6                	mov    %esi,%eax
40a5cb:	eb 59                	jmp    0x40a626
40a5cd:	83 0e ff             	orl    $0xffffffff,(%esi)
40a5d0:	33 c0                	xor    %eax,%eax
40a5d2:	39 7d 08             	cmp    %edi,0x8(%ebp)
40a5d5:	0f 95 c0             	setne  %al
40a5d8:	3b c7                	cmp    %edi,%eax
40a5da:	74 de                	je     0x40a5ba
40a5dc:	39 7d 1c             	cmp    %edi,0x1c(%ebp)
40a5df:	74 0f                	je     0x40a5f0
40a5e1:	8b 45 14             	mov    0x14(%ebp),%eax
40a5e4:	25 7f fe ff ff       	and    $0xfffffe7f,%eax
40a5e9:	f7 d8                	neg    %eax
40a5eb:	1b c0                	sbb    %eax,%eax
40a5ed:	40                   	inc    %eax
40a5ee:	74 ca                	je     0x40a5ba
40a5f0:	89 7d fc             	mov    %edi,-0x4(%ebp)
40a5f3:	ff 75 14             	push   0x14(%ebp)
40a5f6:	ff 75 10             	push   0x10(%ebp)
40a5f9:	ff 75 0c             	push   0xc(%ebp)
40a5fc:	ff 75 08             	push   0x8(%ebp)
40a5ff:	8d 45 e4             	lea    -0x1c(%ebp),%eax
40a602:	50                   	push   %eax
40a603:	8b c6                	mov    %esi,%eax
40a605:	e8 5c f8 ff ff       	call   0x409e66
40a60a:	83 c4 14             	add    $0x14,%esp
40a60d:	89 45 e0             	mov    %eax,-0x20(%ebp)
40a610:	c7 45 fc fe ff ff ff 	movl   $0xfffffffe,-0x4(%ebp)
40a617:	e8 15 00 00 00       	call   0x40a631
40a61c:	8b 45 e0             	mov    -0x20(%ebp),%eax
40a61f:	3b c7                	cmp    %edi,%eax
40a621:	74 03                	je     0x40a626
40a623:	83 0e ff             	orl    $0xffffffff,(%esi)
40a626:	e8 8a 9b ff ff       	call   0x4041b5
40a62b:	c3                   	ret
40a62c:	33 ff                	xor    %edi,%edi
40a62e:	8b 75 18             	mov    0x18(%ebp),%esi
40a631:	39 7d e4             	cmp    %edi,-0x1c(%ebp)
40a634:	74 28                	je     0x40a65e
40a636:	39 7d e0             	cmp    %edi,-0x20(%ebp)
40a639:	74 1b                	je     0x40a656
40a63b:	8b 06                	mov    (%esi),%eax
40a63d:	8b c8                	mov    %eax,%ecx
40a63f:	c1 f9 05             	sar    $0x5,%ecx
40a642:	83 e0 1f             	and    $0x1f,%eax
40a645:	c1 e0 06             	shl    $0x6,%eax
40a648:	8b 0c 8d 20 46 41 00 	mov    0x414620(,%ecx,4),%ecx
40a64f:	8d 44 01 04          	lea    0x4(%ecx,%eax,1),%eax
40a653:	80 20 fe             	andb   $0xfe,(%eax)
40a656:	ff 36                	push   (%esi)
40a658:	e8 20 8b ff ff       	call   0x40317d
40a65d:	59                   	pop    %ecx
40a65e:	c3                   	ret
40a65f:	8b ff                	mov    %edi,%edi
40a661:	55                   	push   %ebp
40a662:	8b ec                	mov    %esp,%ebp
40a664:	6a 01                	push   $0x1
40a666:	ff 75 08             	push   0x8(%ebp)
40a669:	ff 75 18             	push   0x18(%ebp)
40a66c:	ff 75 14             	push   0x14(%ebp)
40a66f:	ff 75 10             	push   0x10(%ebp)
40a672:	ff 75 0c             	push   0xc(%ebp)
40a675:	e8 21 ff ff ff       	call   0x40a59b
40a67a:	83 c4 18             	add    $0x18,%esp
40a67d:	5d                   	pop    %ebp
40a67e:	c3                   	ret
40a67f:	8b ff                	mov    %edi,%edi
40a681:	55                   	push   %ebp
40a682:	8b ec                	mov    %esp,%ebp
40a684:	83 7d 10 00          	cmpl   $0x0,0x10(%ebp)
40a688:	75 04                	jne    0x40a68e
40a68a:	33 c0                	xor    %eax,%eax
40a68c:	5d                   	pop    %ebp
40a68d:	c3                   	ret
40a68e:	8b 55 0c             	mov    0xc(%ebp),%edx
40a691:	8b 4d 08             	mov    0x8(%ebp),%ecx
40a694:	ff 4d 10             	decl   0x10(%ebp)
40a697:	74 15                	je     0x40a6ae
40a699:	0f b7 01             	movzwl (%ecx),%eax
40a69c:	66 85 c0             	test   %ax,%ax
40a69f:	74 0d                	je     0x40a6ae
40a6a1:	66 3b 02             	cmp    (%edx),%ax
40a6a4:	75 08                	jne    0x40a6ae
40a6a6:	83 c1 02             	add    $0x2,%ecx
40a6a9:	83 c2 02             	add    $0x2,%edx
40a6ac:	eb e6                	jmp    0x40a694
40a6ae:	0f b7 01             	movzwl (%ecx),%eax
40a6b1:	0f b7 0a             	movzwl (%edx),%ecx
40a6b4:	2b c1                	sub    %ecx,%eax
40a6b6:	5d                   	pop    %ebp
40a6b7:	c3                   	ret
40a6b8:	cc                   	int3
40a6b9:	cc                   	int3
40a6ba:	cc                   	int3
40a6bb:	cc                   	int3
40a6bc:	cc                   	int3
40a6bd:	cc                   	int3
40a6be:	cc                   	int3
40a6bf:	cc                   	int3
40a6c0:	8b ff                	mov    %edi,%edi
40a6c2:	55                   	push   %ebp
40a6c3:	8b ec                	mov    %esp,%ebp
40a6c5:	8b 4d 08             	mov    0x8(%ebp),%ecx
40a6c8:	b8 4d 5a 00 00       	mov    $0x5a4d,%eax
40a6cd:	66 39 01             	cmp    %ax,(%ecx)
40a6d0:	74 04                	je     0x40a6d6
40a6d2:	33 c0                	xor    %eax,%eax
40a6d4:	5d                   	pop    %ebp
40a6d5:	c3                   	ret
40a6d6:	8b 41 3c             	mov    0x3c(%ecx),%eax
40a6d9:	03 c1                	add    %ecx,%eax
40a6db:	81 38 50 45 00 00    	cmpl   $0x4550,(%eax)
40a6e1:	75 ef                	jne    0x40a6d2
40a6e3:	33 d2                	xor    %edx,%edx
40a6e5:	b9 0b 01 00 00       	mov    $0x10b,%ecx
40a6ea:	66 39 48 18          	cmp    %cx,0x18(%eax)
40a6ee:	0f 94 c2             	sete   %dl
40a6f1:	8b c2                	mov    %edx,%eax
40a6f3:	5d                   	pop    %ebp
40a6f4:	c3                   	ret
40a6f5:	cc                   	int3
40a6f6:	cc                   	int3
40a6f7:	cc                   	int3
40a6f8:	cc                   	int3
40a6f9:	cc                   	int3
40a6fa:	cc                   	int3
40a6fb:	cc                   	int3
40a6fc:	cc                   	int3
40a6fd:	cc                   	int3
40a6fe:	cc                   	int3
40a6ff:	cc                   	int3
40a700:	8b ff                	mov    %edi,%edi
40a702:	55                   	push   %ebp
40a703:	8b ec                	mov    %esp,%ebp
40a705:	8b 45 08             	mov    0x8(%ebp),%eax
40a708:	8b 48 3c             	mov    0x3c(%eax),%ecx
40a70b:	03 c8                	add    %eax,%ecx
40a70d:	0f b7 41 14          	movzwl 0x14(%ecx),%eax
40a711:	53                   	push   %ebx
40a712:	56                   	push   %esi
40a713:	0f b7 71 06          	movzwl 0x6(%ecx),%esi
40a717:	33 d2                	xor    %edx,%edx
40a719:	57                   	push   %edi
40a71a:	8d 44 08 18          	lea    0x18(%eax,%ecx,1),%eax
40a71e:	85 f6                	test   %esi,%esi
40a720:	74 1b                	je     0x40a73d
40a722:	8b 7d 0c             	mov    0xc(%ebp),%edi
40a725:	8b 48 0c             	mov    0xc(%eax),%ecx
40a728:	3b f9                	cmp    %ecx,%edi
40a72a:	72 09                	jb     0x40a735
40a72c:	8b 58 08             	mov    0x8(%eax),%ebx
40a72f:	03 d9                	add    %ecx,%ebx
40a731:	3b fb                	cmp    %ebx,%edi
40a733:	72 0a                	jb     0x40a73f
40a735:	42                   	inc    %edx
40a736:	83 c0 28             	add    $0x28,%eax
40a739:	3b d6                	cmp    %esi,%edx
40a73b:	72 e8                	jb     0x40a725
40a73d:	33 c0                	xor    %eax,%eax
40a73f:	5f                   	pop    %edi
40a740:	5e                   	pop    %esi
40a741:	5b                   	pop    %ebx
40a742:	5d                   	pop    %ebp
40a743:	c3                   	ret
40a744:	cc                   	int3
40a745:	cc                   	int3
40a746:	cc                   	int3
40a747:	cc                   	int3
40a748:	cc                   	int3
40a749:	cc                   	int3
40a74a:	cc                   	int3
40a74b:	cc                   	int3
40a74c:	cc                   	int3
40a74d:	cc                   	int3
40a74e:	cc                   	int3
40a74f:	cc                   	int3
40a750:	8b ff                	mov    %edi,%edi
40a752:	55                   	push   %ebp
40a753:	8b ec                	mov    %esp,%ebp
40a755:	6a fe                	push   $0xfffffffe
40a757:	68 90 13 41 00       	push   $0x411390
40a75c:	68 d0 41 40 00       	push   $0x4041d0
40a761:	64 a1 00 00 00 00    	mov    %fs:0x0,%eax
40a767:	50                   	push   %eax
40a768:	83 ec 08             	sub    $0x8,%esp
40a76b:	53                   	push   %ebx
40a76c:	56                   	push   %esi
40a76d:	57                   	push   %edi
40a76e:	a1 84 22 41 00       	mov    0x412284,%eax
40a773:	31 45 f8             	xor    %eax,-0x8(%ebp)
40a776:	33 c5                	xor    %ebp,%eax
40a778:	50                   	push   %eax
40a779:	8d 45 f0             	lea    -0x10(%ebp),%eax
40a77c:	64 a3 00 00 00 00    	mov    %eax,%fs:0x0
40a782:	89 65 e8             	mov    %esp,-0x18(%ebp)
40a785:	c7 45 fc 00 00 00 00 	movl   $0x0,-0x4(%ebp)
40a78c:	68 00 00 40 00       	push   $0x400000
40a791:	e8 2a ff ff ff       	call   0x40a6c0
40a796:	83 c4 04             	add    $0x4,%esp
40a799:	85 c0                	test   %eax,%eax
40a79b:	74 54                	je     0x40a7f1
40a79d:	8b 45 08             	mov    0x8(%ebp),%eax
40a7a0:	2d 00 00 40 00       	sub    $0x400000,%eax
40a7a5:	50                   	push   %eax
40a7a6:	68 00 00 40 00       	push   $0x400000
40a7ab:	e8 50 ff ff ff       	call   0x40a700
40a7b0:	83 c4 08             	add    $0x8,%esp
40a7b3:	85 c0                	test   %eax,%eax
40a7b5:	74 3a                	je     0x40a7f1
40a7b7:	8b 40 24             	mov    0x24(%eax),%eax
40a7ba:	c1 e8 1f             	shr    $0x1f,%eax
40a7bd:	f7 d0                	not    %eax
40a7bf:	83 e0 01             	and    $0x1,%eax
40a7c2:	c7 45 fc fe ff ff ff 	movl   $0xfffffffe,-0x4(%ebp)
40a7c9:	8b 4d f0             	mov    -0x10(%ebp),%ecx
40a7cc:	64 89 0d 00 00 00 00 	mov    %ecx,%fs:0x0
40a7d3:	59                   	pop    %ecx
40a7d4:	5f                   	pop    %edi
40a7d5:	5e                   	pop    %esi
40a7d6:	5b                   	pop    %ebx
40a7d7:	8b e5                	mov    %ebp,%esp
40a7d9:	5d                   	pop    %ebp
40a7da:	c3                   	ret
40a7db:	8b 45 ec             	mov    -0x14(%ebp),%eax
40a7de:	8b 08                	mov    (%eax),%ecx
40a7e0:	33 d2                	xor    %edx,%edx
40a7e2:	81 39 05 00 00 c0    	cmpl   $0xc0000005,(%ecx)
40a7e8:	0f 94 c2             	sete   %dl
40a7eb:	8b c2                	mov    %edx,%eax
40a7ed:	c3                   	ret
40a7ee:	8b 65 e8             	mov    -0x18(%ebp),%esp
40a7f1:	c7 45 fc fe ff ff ff 	movl   $0xfffffffe,-0x4(%ebp)
40a7f8:	33 c0                	xor    %eax,%eax
40a7fa:	8b 4d f0             	mov    -0x10(%ebp),%ecx
40a7fd:	64 89 0d 00 00 00 00 	mov    %ecx,%fs:0x0
40a804:	59                   	pop    %ecx
40a805:	5f                   	pop    %edi
40a806:	5e                   	pop    %esi
40a807:	5b                   	pop    %ebx
40a808:	8b e5                	mov    %ebp,%esp
40a80a:	5d                   	pop    %ebp
40a80b:	c3                   	ret
40a80c:	cc                   	int3
40a80d:	cc                   	int3
40a80e:	cc                   	int3
40a80f:	cc                   	int3
40a810:	55                   	push   %ebp
40a811:	8b ec                	mov    %esp,%ebp
40a813:	53                   	push   %ebx
40a814:	56                   	push   %esi
40a815:	57                   	push   %edi
40a816:	55                   	push   %ebp
40a817:	6a 00                	push   $0x0
40a819:	6a 00                	push   $0x0
40a81b:	68 28 a8 40 00       	push   $0x40a828
40a820:	ff 75 08             	push   0x8(%ebp)
40a823:	e8 ec 3e 00 00       	call   0x40e714
40a828:	5d                   	pop    %ebp
40a829:	5f                   	pop    %edi
40a82a:	5e                   	pop    %esi
40a82b:	5b                   	pop    %ebx
40a82c:	8b e5                	mov    %ebp,%esp
40a82e:	5d                   	pop    %ebp
40a82f:	c3                   	ret
40a830:	8b 4c 24 04          	mov    0x4(%esp),%ecx
40a834:	f7 41 04 06 00 00 00 	testl  $0x6,0x4(%ecx)
40a83b:	b8 01 00 00 00       	mov    $0x1,%eax
40a840:	74 32                	je     0x40a874