40c4d4:	8b ec                	mov    %esp,%ebp
40c4d6:	51                   	push   %ecx
40c4d7:	51                   	push   %ecx
40c4d8:	53                   	push   %ebx
40c4d9:	56                   	push   %esi
40c4da:	8b f1                	mov    %ecx,%esi
40c4dc:	57                   	push   %edi
40c4dd:	8d 4e 40             	lea    0x40(%esi),%ecx
40c4e0:	8b b9 04 04 00 00    	mov    0x404(%ecx),%edi
40c4e6:	85 ff                	test   %edi,%edi
40c4e8:	75 02                	jne    0x40c4ec
40c4ea:	8b f9                	mov    %ecx,%edi
40c4ec:	e8 26 fc ff ff       	call   0x40c117
40c4f1:	8b 55 0c             	mov    0xc(%ebp),%edx
40c4f4:	48                   	dec    %eax
40c4f5:	8b 5d 08             	mov    0x8(%ebp),%ebx
40c4f8:	03 f8                	add    %eax,%edi
40c4fa:	89 7e 34             	mov    %edi,0x34(%esi)
40c4fd:	8b 4e 28             	mov    0x28(%esi),%ecx
40c500:	85 c9                	test   %ecx,%ecx
40c502:	7f 06                	jg     0x40c50a
40c504:	8b c3                	mov    %ebx,%eax
40c506:	0b c2                	or     %edx,%eax
40c508:	74 3a                	je     0x40c544
40c50a:	6a 00                	push   $0x0
40c50c:	ff 75 10             	push   0x10(%ebp)
40c50f:	8d 41 ff             	lea    -0x1(%ecx),%eax
40c512:	52                   	push   %edx
40c513:	53                   	push   %ebx
40c514:	89 46 28             	mov    %eax,0x28(%esi)
40c517:	e8 14 9e 01 00       	call   0x426330
40c51c:	80 c1 30             	add    $0x30,%cl
40c51f:	89 5d fc             	mov    %ebx,-0x4(%ebp)
40c522:	8b d8                	mov    %eax,%ebx
40c524:	80 f9 39             	cmp    $0x39,%cl
40c527:	7e 11                	jle    0x40c53a
40c529:	80 7d 14 00          	cmpb   $0x0,0x14(%ebp)
40c52d:	0f 94 c0             	sete   %al
40c530:	fe c8                	dec    %al
40c532:	24 e0                	and    $0xe0,%al
40c534:	04 61                	add    $0x61,%al
40c536:	2c 3a                	sub    $0x3a,%al
40c538:	02 c8                	add    %al,%cl
40c53a:	8b 46 34             	mov    0x34(%esi),%eax
40c53d:	88 08                	mov    %cl,(%eax)
40c53f:	ff 4e 34             	decl   0x34(%esi)
40c542:	eb b9                	jmp    0x40c4fd
40c544:	8b 46 34             	mov    0x34(%esi),%eax
40c547:	2b f8                	sub    %eax,%edi
40c549:	89 7e 38             	mov    %edi,0x38(%esi)
40c54c:	40                   	inc    %eax
40c54d:	5f                   	pop    %edi
40c54e:	89 46 34             	mov    %eax,0x34(%esi)
40c551:	5e                   	pop    %esi
40c552:	5b                   	pop    %ebx
40c553:	8b e5                	mov    %ebp,%esp
40c555:	5d                   	pop    %ebp
40c556:	c2 10 00             	ret    $0x10
40c559:	8b ff                	mov    %edi,%edi
40c55b:	55                   	push   %ebp
40c55c:	8b ec                	mov    %esp,%ebp
40c55e:	56                   	push   %esi
40c55f:	33 f6                	xor    %esi,%esi
40c561:	39 75 10             	cmp    %esi,0x10(%ebp)
40c564:	7e 1c                	jle    0x40c582
40c566:	57                   	push   %edi
40c567:	8b 7d 14             	mov    0x14(%ebp),%edi
40c56a:	8b 4d 08             	mov    0x8(%ebp),%ecx
40c56d:	57                   	push   %edi
40c56e:	ff 75 0c             	push   0xc(%ebp)
40c571:	e8 44 28 00 00       	call   0x40edba
40c576:	83 3f ff             	cmpl   $0xffffffff,(%edi)
40c579:	74 06                	je     0x40c581
40c57b:	46                   	inc    %esi
40c57c:	3b 75 10             	cmp    0x10(%ebp),%esi
40c57f:	7c e9                	jl     0x40c56a
40c581:	5f                   	pop    %edi
40c582:	5e                   	pop    %esi
40c583:	5d                   	pop    %ebp
40c584:	c3                   	ret
40c585:	8b ff                	mov    %edi,%edi
40c587:	55                   	push   %ebp
40c588:	8b ec                	mov    %esp,%ebp
40c58a:	56                   	push   %esi
40c58b:	33 f6                	xor    %esi,%esi
40c58d:	39 75 10             	cmp    %esi,0x10(%ebp)
40c590:	7e 21                	jle    0x40c5b3
40c592:	53                   	push   %ebx
40c593:	66 0f be 5d 0c       	movsbw 0xc(%ebp),%bx
40c598:	57                   	push   %edi
40c599:	8b 7d 14             	mov    0x14(%ebp),%edi
40c59c:	8b 4d 08             	mov    0x8(%ebp),%ecx
40c59f:	57                   	push   %edi
40c5a0:	53                   	push   %ebx
40c5a1:	e8 51 28 00 00       	call   0x40edf7
40c5a6:	83 3f ff             	cmpl   $0xffffffff,(%edi)
40c5a9:	74 06                	je     0x40c5b1
40c5ab:	46                   	inc    %esi
40c5ac:	3b 75 10             	cmp    0x10(%ebp),%esi
40c5af:	7c eb                	jl     0x40c59c
40c5b1:	5f                   	pop    %edi
40c5b2:	5b                   	pop    %ebx
40c5b3:	5e                   	pop    %esi
40c5b4:	5d                   	pop    %ebp
40c5b5:	c3                   	ret
40c5b6:	8b ff                	mov    %edi,%edi
40c5b8:	55                   	push   %ebp
40c5b9:	8b ec                	mov    %esp,%ebp
40c5bb:	56                   	push   %esi
40c5bc:	33 f6                	xor    %esi,%esi
40c5be:	39 75 10             	cmp    %esi,0x10(%ebp)
40c5c1:	7e 1c                	jle    0x40c5df
40c5c3:	57                   	push   %edi
40c5c4:	8b 7d 14             	mov    0x14(%ebp),%edi
40c5c7:	8b 4d 08             	mov    0x8(%ebp),%ecx
40c5ca:	57                   	push   %edi
40c5cb:	ff 75 0c             	push   0xc(%ebp)
40c5ce:	e8 64 28 00 00       	call   0x40ee37
40c5d3:	83 3f ff             	cmpl   $0xffffffff,(%edi)
40c5d6:	74 06                	je     0x40c5de
40c5d8:	46                   	inc    %esi
40c5d9:	3b 75 10             	cmp    0x10(%ebp),%esi
40c5dc:	7c e9                	jl     0x40c5c7
40c5de:	5f                   	pop    %edi
40c5df:	5e                   	pop    %esi
40c5e0:	5d                   	pop    %ebp
40c5e1:	c3                   	ret
40c5e2:	8b ff                	mov    %edi,%edi
40c5e4:	55                   	push   %ebp
40c5e5:	8b ec                	mov    %esp,%ebp
40c5e7:	51                   	push   %ecx
40c5e8:	33 c0                	xor    %eax,%eax
40c5ea:	89 4d fc             	mov    %ecx,-0x4(%ebp)
40c5ed:	89 01                	mov    %eax,(%ecx)
40c5ef:	89 41 04             	mov    %eax,0x4(%ecx)
40c5f2:	89 41 08             	mov    %eax,0x8(%ecx)
40c5f5:	89 41 0c             	mov    %eax,0xc(%ecx)
40c5f8:	89 41 10             	mov    %eax,0x10(%ecx)
40c5fb:	89 41 14             	mov    %eax,0x14(%ecx)
40c5fe:	89 41 18             	mov    %eax,0x18(%ecx)
40c601:	89 41 1c             	mov    %eax,0x1c(%ecx)
40c604:	89 41 20             	mov    %eax,0x20(%ecx)
40c607:	89 41 24             	mov    %eax,0x24(%ecx)
40c60a:	89 41 28             	mov    %eax,0x28(%ecx)
40c60d:	66 89 41 30          	mov    %ax,0x30(%ecx)
40c611:	89 41 38             	mov    %eax,0x38(%ecx)
40c614:	88 41 3c             	mov    %al,0x3c(%ecx)
40c617:	89 81 40 04 00 00    	mov    %eax,0x440(%ecx)
40c61d:	89 81 44 04 00 00    	mov    %eax,0x444(%ecx)
40c623:	8b c1                	mov    %ecx,%eax
40c625:	8b e5                	mov    %ebp,%esp
40c627:	5d                   	pop    %ebp
40c628:	c3                   	ret
40c629:	8b ff                	mov    %edi,%edi
40c62b:	55                   	push   %ebp
40c62c:	8b ec                	mov    %esp,%ebp
40c62e:	51                   	push   %ecx
40c62f:	33 d2                	xor    %edx,%edx
40c631:	89 4d fc             	mov    %ecx,-0x4(%ebp)
40c634:	33 c0                	xor    %eax,%eax
40c636:	89 11                	mov    %edx,(%ecx)
40c638:	66 89 41 32          	mov    %ax,0x32(%ecx)
40c63c:	8b c1                	mov    %ecx,%eax
40c63e:	89 51 04             	mov    %edx,0x4(%ecx)
40c641:	89 51 08             	mov    %edx,0x8(%ecx)
40c644:	89 51 0c             	mov    %edx,0xc(%ecx)
40c647:	89 51 10             	mov    %edx,0x10(%ecx)
40c64a:	89 51 14             	mov    %edx,0x14(%ecx)
40c64d:	89 51 18             	mov    %edx,0x18(%ecx)
40c650:	89 51 1c             	mov    %edx,0x1c(%ecx)
40c653:	89 51 20             	mov    %edx,0x20(%ecx)
40c656:	89 51 24             	mov    %edx,0x24(%ecx)
40c659:	89 51 28             	mov    %edx,0x28(%ecx)
40c65c:	88 51 30             	mov    %dl,0x30(%ecx)
40c65f:	89 51 38             	mov    %edx,0x38(%ecx)
40c662:	88 51 3c             	mov    %dl,0x3c(%ecx)
40c665:	89 91 40 04 00 00    	mov    %edx,0x440(%ecx)
40c66b:	89 91 44 04 00 00    	mov    %edx,0x444(%ecx)
40c671:	8b e5                	mov    %ebp,%esp
40c673:	5d                   	pop    %ebp
40c674:	c3                   	ret
40c675:	8b ff                	mov    %edi,%edi
40c677:	55                   	push   %ebp
40c678:	8b ec                	mov    %esp,%ebp
40c67a:	56                   	push   %esi
40c67b:	8b f1                	mov    %ecx,%esi
40c67d:	e8 60 ff ff ff       	call   0x40c5e2
40c682:	8b 45 08             	mov    0x8(%ebp),%eax
40c685:	8b 00                	mov    (%eax),%eax
40c687:	89 86 48 04 00 00    	mov    %eax,0x448(%esi)
40c68d:	8b 45 0c             	mov    0xc(%ebp),%eax
40c690:	89 06                	mov    %eax,(%esi)
40c692:	8b 45 10             	mov    0x10(%ebp),%eax
40c695:	89 46 04             	mov    %eax,0x4(%esi)
40c698:	8b 45 18             	mov    0x18(%ebp),%eax
40c69b:	89 46 08             	mov    %eax,0x8(%esi)
40c69e:	8b 45 14             	mov    0x14(%ebp),%eax
40c6a1:	89 46 10             	mov    %eax,0x10(%esi)
40c6a4:	8b 45 1c             	mov    0x1c(%ebp),%eax
40c6a7:	89 46 14             	mov    %eax,0x14(%esi)
40c6aa:	8b c6                	mov    %esi,%eax
40c6ac:	5e                   	pop    %esi
40c6ad:	5d                   	pop    %ebp
40c6ae:	c2 18 00             	ret    $0x18
40c6b1:	8b ff                	mov    %edi,%edi
40c6b3:	55                   	push   %ebp
40c6b4:	8b ec                	mov    %esp,%ebp
40c6b6:	56                   	push   %esi
40c6b7:	8b f1                	mov    %ecx,%esi
40c6b9:	e8 24 ff ff ff       	call   0x40c5e2
40c6be:	8b 45 08             	mov    0x8(%ebp),%eax
40c6c1:	8b 00                	mov    (%eax),%eax
40c6c3:	89 86 48 04 00 00    	mov    %eax,0x448(%esi)
40c6c9:	8b 45 0c             	mov    0xc(%ebp),%eax
40c6cc:	89 06                	mov    %eax,(%esi)
40c6ce:	8b 45 10             	mov    0x10(%ebp),%eax
40c6d1:	89 46 04             	mov    %eax,0x4(%esi)
40c6d4:	8b 45 18             	mov    0x18(%ebp),%eax
40c6d7:	89 46 08             	mov    %eax,0x8(%esi)
40c6da:	8b 45 14             	mov    0x14(%ebp),%eax
40c6dd:	89 46 10             	mov    %eax,0x10(%esi)
40c6e0:	8b 45 1c             	mov    0x1c(%ebp),%eax
40c6e3:	89 46 14             	mov    %eax,0x14(%esi)
40c6e6:	8b c6                	mov    %esi,%eax
40c6e8:	5e                   	pop    %esi
40c6e9:	5d                   	pop    %ebp
40c6ea:	c2 18 00             	ret    $0x18
40c6ed:	8b ff                	mov    %edi,%edi
40c6ef:	55                   	push   %ebp
40c6f0:	8b ec                	mov    %esp,%ebp
40c6f2:	56                   	push   %esi
40c6f3:	8b f1                	mov    %ecx,%esi
40c6f5:	e8 2f ff ff ff       	call   0x40c629
40c6fa:	8b 45 08             	mov    0x8(%ebp),%eax
40c6fd:	8b 00                	mov    (%eax),%eax
40c6ff:	89 86 48 04 00 00    	mov    %eax,0x448(%esi)
40c705:	8b 45 0c             	mov    0xc(%ebp),%eax
40c708:	89 06                	mov    %eax,(%esi)
40c70a:	8b 45 10             	mov    0x10(%ebp),%eax
40c70d:	89 46 04             	mov    %eax,0x4(%esi)
40c710:	8b 45 18             	mov    0x18(%ebp),%eax
40c713:	89 46 08             	mov    %eax,0x8(%esi)
40c716:	8b 45 14             	mov    0x14(%ebp),%eax
40c719:	89 46 10             	mov    %eax,0x10(%esi)
40c71c:	8b 45 1c             	mov    0x1c(%ebp),%eax
40c71f:	89 46 14             	mov    %eax,0x14(%esi)
40c722:	8b c6                	mov    %esi,%eax
40c724:	5e                   	pop    %esi
40c725:	5d                   	pop    %ebp
40c726:	c2 18 00             	ret    $0x18
40c729:	8b ff                	mov    %edi,%edi
40c72b:	55                   	push   %ebp
40c72c:	8b ec                	mov    %esp,%ebp
40c72e:	56                   	push   %esi
40c72f:	ff 75 1c             	push   0x1c(%ebp)
40c732:	8b f1                	mov    %ecx,%esi
40c734:	ff 75 18             	push   0x18(%ebp)
40c737:	ff 75 14             	push   0x14(%ebp)
40c73a:	ff 75 10             	push   0x10(%ebp)
40c73d:	ff 75 0c             	push   0xc(%ebp)
40c740:	ff 75 08             	push   0x8(%ebp)
40c743:	e8 2d ff ff ff       	call   0x40c675
40c748:	83 a6 50 04 00 00 00 	andl   $0x0,0x450(%esi)
40c74f:	e8 17 83 00 00       	call   0x414a6b
40c754:	89 46 0c             	mov    %eax,0xc(%esi)
40c757:	8b c6                	mov    %esi,%eax
40c759:	5e                   	pop    %esi
40c75a:	5d                   	pop    %ebp
40c75b:	c2 18 00             	ret    $0x18
40c75e:	8b ff                	mov    %edi,%edi
40c760:	55                   	push   %ebp
40c761:	8b ec                	mov    %esp,%ebp
40c763:	56                   	push   %esi
40c764:	ff 75 1c             	push   0x1c(%ebp)
40c767:	8b f1                	mov    %ecx,%esi
40c769:	ff 75 18             	push   0x18(%ebp)
40c76c:	ff 75 14             	push   0x14(%ebp)
40c76f:	ff 75 10             	push   0x10(%ebp)
40c772:	ff 75 0c             	push   0xc(%ebp)
40c775:	ff 75 08             	push   0x8(%ebp)
40c778:	e8 34 ff ff ff       	call   0x40c6b1
40c77d:	83 a6 50 04 00 00 00 	andl   $0x0,0x450(%esi)
40c784:	e8 e2 82 00 00       	call   0x414a6b
40c789:	89 46 0c             	mov    %eax,0xc(%esi)
40c78c:	8b c6                	mov    %esi,%eax
40c78e:	5e                   	pop    %esi
40c78f:	5d                   	pop    %ebp
40c790:	c2 18 00             	ret    $0x18
40c793:	8b ff                	mov    %edi,%edi
40c795:	55                   	push   %ebp
40c796:	8b ec                	mov    %esp,%ebp
40c798:	56                   	push   %esi
40c799:	ff 75 1c             	push   0x1c(%ebp)
40c79c:	8b f1                	mov    %ecx,%esi
40c79e:	ff 75 18             	push   0x18(%ebp)
40c7a1:	ff 75 14             	push   0x14(%ebp)
40c7a4:	ff 75 10             	push   0x10(%ebp)
40c7a7:	ff 75 0c             	push   0xc(%ebp)
40c7aa:	ff 75 08             	push   0x8(%ebp)
40c7ad:	e8 3b ff ff ff       	call   0x40c6ed
40c7b2:	83 a6 50 04 00 00 00 	andl   $0x0,0x450(%esi)
40c7b9:	e8 ad 82 00 00       	call   0x414a6b
40c7be:	89 46 0c             	mov    %eax,0xc(%esi)
40c7c1:	8b c6                	mov    %esi,%eax
40c7c3:	5e                   	pop    %esi
40c7c4:	5d                   	pop    %ebp
40c7c5:	c2 18 00             	ret    $0x18
40c7c8:	8b ff                	mov    %edi,%edi
40c7ca:	55                   	push   %ebp
40c7cb:	8b ec                	mov    %esp,%ebp
40c7cd:	57                   	push   %edi
40c7ce:	8b f9                	mov    %ecx,%edi
40c7d0:	8b 4d 08             	mov    0x8(%ebp),%ecx
40c7d3:	c6 47 0c 00          	movb   $0x0,0xc(%edi)
40c7d7:	85 c9                	test   %ecx,%ecx
40c7d9:	74 0a                	je     0x40c7e5
40c7db:	8b 01                	mov    (%ecx),%eax
40c7dd:	89 47 04             	mov    %eax,0x4(%edi)
40c7e0:	8b 41 04             	mov    0x4(%ecx),%eax
40c7e3:	eb 16                	jmp    0x40c7fb
40c7e5:	a1 dc 9c 83 02       	mov    0x2839cdc,%eax
40c7ea:	85 c0                	test   %eax,%eax
40c7ec:	75 12                	jne    0x40c800
40c7ee:	a1 98 bc 43 00       	mov    0x43bc98,%eax
40c7f3:	89 47 04             	mov    %eax,0x4(%edi)
40c7f6:	a1 9c bc 43 00       	mov    0x43bc9c,%eax
40c7fb:	89 47 08             	mov    %eax,0x8(%edi)
40c7fe:	eb 44                	jmp    0x40c844
40c800:	56                   	push   %esi
40c801:	e8 56 c3 00 00       	call   0x418b5c
40c806:	8d 57 04             	lea    0x4(%edi),%edx
40c809:	89 07                	mov    %eax,(%edi)
40c80b:	52                   	push   %edx
40c80c:	8d 77 08             	lea    0x8(%edi),%esi
40c80f:	8b 48 4c             	mov    0x4c(%eax),%ecx
40c812:	89 0a                	mov    %ecx,(%edx)
40c814:	8b 48 48             	mov    0x48(%eax),%ecx
40c817:	50                   	push   %eax
40c818:	89 0e                	mov    %ecx,(%esi)
40c81a:	e8 99 d3 00 00       	call   0x419bb8
40c81f:	56                   	push   %esi
40c820:	ff 37                	push   (%edi)
40c822:	e8 be d3 00 00       	call   0x419be5
40c827:	8b 0f                	mov    (%edi),%ecx
40c829:	83 c4 10             	add    $0x10,%esp
40c82c:	8b 81 50 03 00 00    	mov    0x350(%ecx),%eax
40c832:	5e                   	pop    %esi
40c833:	a8 02                	test   $0x2,%al
40c835:	75 0d                	jne    0x40c844
40c837:	83 c8 02             	or     $0x2,%eax