405420:	7c 04                	jl     0x405426
405422:	3b f8                	cmp    %eax,%edi
405424:	73 0a                	jae    0x405430
405426:	8b c7                	mov    %edi,%eax
405428:	89 7c 24 14          	mov    %edi,0x14(%esp)
40542c:	89 5c 24 18          	mov    %ebx,0x18(%esp)
405430:	8b 4c 24 10          	mov    0x10(%esp),%ecx
405434:	50                   	push   %eax
405435:	ff 74 24 28          	push   0x28(%esp)
405439:	e8 e1 f7 ff ff       	call   0x404c1f
40543e:	50                   	push   %eax
40543f:	e8 da ee ff ff       	call   0x40431e
405444:	8b 44 24 20          	mov    0x20(%esp),%eax
405448:	83 c4 0c             	add    $0xc,%esp
40544b:	8b 4c 24 10          	mov    0x10(%esp),%ecx
40544f:	03 f0                	add    %eax,%esi
405451:	89 74 24 28          	mov    %esi,0x28(%esp)
405455:	13 6c 24 18          	adc    0x18(%esp),%ebp
405459:	2b f8                	sub    %eax,%edi
40545b:	50                   	push   %eax
40545c:	1b 5c 24 1c          	sbb    0x1c(%esp),%ebx
405460:	e8 79 f7 ff ff       	call   0x404bde
405465:	8b 44 24 14          	mov    0x14(%esp),%eax
405469:	03 c0                	add    %eax,%eax
40546b:	eb 5a                	jmp    0x4054c7
40546d:	8b 44 24 10          	mov    0x10(%esp),%eax
405471:	ff 74 24 24          	push   0x24(%esp)
405475:	8b 30                	mov    (%eax),%esi
405477:	e8 a7 fc ff ff       	call   0x405123
40547c:	59                   	pop    %ecx
40547d:	8b 4c 24 10          	mov    0x10(%esp),%ecx
405481:	0f b7 c0             	movzwl %ax,%eax
405484:	50                   	push   %eax
405485:	ff 56 0c             	call   *0xc(%esi)
405488:	0f b7 c0             	movzwl %ax,%eax
40548b:	89 44 24 18          	mov    %eax,0x18(%esp)
40548f:	e8 ee f0 ff ff       	call   0x404582
405494:	0f b7 c0             	movzwl %ax,%eax
405497:	89 44 24 14          	mov    %eax,0x14(%esp)
40549b:	8d 44 24 18          	lea    0x18(%esp),%eax
40549f:	50                   	push   %eax
4054a0:	8d 44 24 18          	lea    0x18(%esp),%eax
4054a4:	50                   	push   %eax
4054a5:	e8 fe f0 ff ff       	call   0x4045a8
4054aa:	59                   	pop    %ecx
4054ab:	59                   	pop    %ecx
4054ac:	84 c0                	test   %al,%al
4054ae:	75 31                	jne    0x4054e1
4054b0:	8b 74 24 28          	mov    0x28(%esp),%esi
4054b4:	83 c6 01             	add    $0x1,%esi
4054b7:	6a 02                	push   $0x2
4054b9:	83 d5 00             	adc    $0x0,%ebp
4054bc:	89 74 24 2c          	mov    %esi,0x2c(%esp)
4054c0:	83 c7 ff             	add    $0xffffffff,%edi
4054c3:	58                   	pop    %eax
4054c4:	83 d3 ff             	adc    $0xffffffff,%ebx
4054c7:	01 44 24 24          	add    %eax,0x24(%esp)
4054cb:	8b 44 24 10          	mov    0x10(%esp),%eax
4054cf:	85 db                	test   %ebx,%ebx
4054d1:	0f 8f 2a ff ff ff    	jg     0x405401
4054d7:	7c 08                	jl     0x4054e1
4054d9:	85 ff                	test   %edi,%edi
4054db:	0f 85 20 ff ff ff    	jne    0x405401
4054e1:	8b 44 24 28          	mov    0x28(%esp),%eax
4054e5:	5e                   	pop    %esi
4054e6:	5f                   	pop    %edi
4054e7:	8b d5                	mov    %ebp,%edx
4054e9:	5d                   	pop    %ebp
4054ea:	5b                   	pop    %ebx
4054eb:	83 c4 10             	add    $0x10,%esp
4054ee:	c2 0c 00             	ret    $0xc
4054f1:	8b 6c 24 18          	mov    0x18(%esp),%ebp
4054f5:	8b 44 24 14          	mov    0x14(%esp),%eax
4054f9:	eb eb                	jmp    0x4054e6
4054fb:	b8 30 93 83 02       	mov    $0x2839330,%eax
405500:	c3                   	ret
405501:	b8 38 93 83 02       	mov    $0x2839338,%eax
405506:	c3                   	ret
405507:	ff 74 24 10          	push   0x10(%esp)
40550b:	ff 74 24 10          	push   0x10(%esp)
40550f:	ff 74 24 10          	push   0x10(%esp)
405513:	ff 74 24 10          	push   0x10(%esp)
405517:	e8 df ff ff ff       	call   0x4054fb
40551c:	ff 70 04             	push   0x4(%eax)
40551f:	ff 30                	push   (%eax)
405521:	e8 d6 9c 00 00       	call   0x40f1fc
405526:	83 c4 18             	add    $0x18,%esp
405529:	c3                   	ret
40552a:	ff 74 24 10          	push   0x10(%esp)
40552e:	ff 74 24 10          	push   0x10(%esp)
405532:	ff 74 24 10          	push   0x10(%esp)
405536:	ff 74 24 10          	push   0x10(%esp)
40553a:	e8 bc ff ff ff       	call   0x4054fb
40553f:	ff 70 04             	push   0x4(%eax)
405542:	ff 30                	push   (%eax)
405544:	e8 2a 9d 00 00       	call   0x40f273
405549:	83 c4 18             	add    $0x18,%esp
40554c:	c3                   	ret
40554d:	55                   	push   %ebp
40554e:	8b ec                	mov    %esp,%ebp
405550:	ff 75 18             	push   0x18(%ebp)
405553:	ff 75 14             	push   0x14(%ebp)
405556:	ff 75 10             	push   0x10(%ebp)
405559:	ff 75 0c             	push   0xc(%ebp)
40555c:	ff 75 08             	push   0x8(%ebp)
40555f:	e8 97 ff ff ff       	call   0x4054fb
405564:	8b 08                	mov    (%eax),%ecx
405566:	ff 70 04             	push   0x4(%eax)
405569:	83 c9 01             	or     $0x1,%ecx
40556c:	51                   	push   %ecx
40556d:	e8 78 9d 00 00       	call   0x40f2ea
405572:	83 c9 ff             	or     $0xffffffff,%ecx
405575:	83 c4 1c             	add    $0x1c,%esp
405578:	85 c0                	test   %eax,%eax
40557a:	0f 48 c1             	cmovs  %ecx,%eax
40557d:	5d                   	pop    %ebp
40557e:	c3                   	ret
40557f:	ff 74 24 10          	push   0x10(%esp)
405583:	ff 74 24 10          	push   0x10(%esp)
405587:	ff 74 24 10          	push   0x10(%esp)
40558b:	6a ff                	push   $0xffffffff
40558d:	ff 74 24 14          	push   0x14(%esp)
405591:	e8 b7 ff ff ff       	call   0x40554d
405596:	83 c4 14             	add    $0x14,%esp
405599:	c3                   	ret
40559a:	ff 74 24 10          	push   0x10(%esp)
40559e:	ff 74 24 10          	push   0x10(%esp)
4055a2:	ff 74 24 10          	push   0x10(%esp)
4055a6:	6a ff                	push   $0xffffffff
4055a8:	ff 74 24 14          	push   0x14(%esp)
4055ac:	e8 50 ff ff ff       	call   0x405501
4055b1:	ff 70 04             	push   0x4(%eax)
4055b4:	ff 30                	push   (%eax)
4055b6:	e8 d6 e7 00 00       	call   0x413d91
4055bb:	83 c4 1c             	add    $0x1c,%esp
4055be:	c3                   	ret
4055bf:	55                   	push   %ebp
4055c0:	8b ec                	mov    %esp,%ebp
4055c2:	51                   	push   %ecx
4055c3:	51                   	push   %ecx
4055c4:	f2 0f 10 45 08       	movsd  0x8(%ebp),%xmm0
4055c9:	51                   	push   %ecx
4055ca:	51                   	push   %ecx
4055cb:	f2 0f 11 04 24       	movsd  %xmm0,(%esp)
4055d0:	e8 cb e8 00 00       	call   0x413ea0
4055d5:	dd 5d f8             	fstpl  -0x8(%ebp)
4055d8:	dd 45 f8             	fldl   -0x8(%ebp)
4055db:	59                   	pop    %ecx
4055dc:	59                   	pop    %ecx
4055dd:	8b e5                	mov    %ebp,%esp
4055df:	5d                   	pop    %ebp
4055e0:	c3                   	ret
4055e1:	55                   	push   %ebp
4055e2:	8b ec                	mov    %esp,%ebp
4055e4:	51                   	push   %ecx
4055e5:	51                   	push   %ecx
4055e6:	f2 0f 10 45 08       	movsd  0x8(%ebp),%xmm0
4055eb:	51                   	push   %ecx
4055ec:	51                   	push   %ecx
4055ed:	f2 0f 11 04 24       	movsd  %xmm0,(%esp)
4055f2:	e8 f9 e9 00 00       	call   0x413ff0
4055f7:	dd 5d f8             	fstpl  -0x8(%ebp)
4055fa:	dd 45 f8             	fldl   -0x8(%ebp)
4055fd:	59                   	pop    %ecx
4055fe:	59                   	pop    %ecx
4055ff:	8b e5                	mov    %ebp,%esp
405601:	5d                   	pop    %ebp
405602:	c3                   	ret
405603:	55                   	push   %ebp
405604:	8b ec                	mov    %esp,%ebp
405606:	f3 0f 10 45 08       	movss  0x8(%ebp),%xmm0
40560b:	0f 5a c0             	cvtps2pd %xmm0,%xmm0
40560e:	51                   	push   %ecx
40560f:	51                   	push   %ecx
405610:	f2 0f 11 04 24       	movsd  %xmm0,(%esp)
405615:	e8 26 eb 00 00       	call   0x414140
40561a:	d9 5d 08             	fstps  0x8(%ebp)
40561d:	d9 45 08             	flds   0x8(%ebp)
405620:	59                   	pop    %ecx
405621:	59                   	pop    %ecx
405622:	5d                   	pop    %ebp
405623:	c3                   	ret
405624:	55                   	push   %ebp
405625:	8b ec                	mov    %esp,%ebp
405627:	51                   	push   %ecx
405628:	51                   	push   %ecx
405629:	f2 0f 10 45 08       	movsd  0x8(%ebp),%xmm0
40562e:	51                   	push   %ecx
40562f:	51                   	push   %ecx
405630:	f2 0f 11 04 24       	movsd  %xmm0,(%esp)
405635:	e8 26 ec 00 00       	call   0x414260
40563a:	dd 5d f8             	fstpl  -0x8(%ebp)
40563d:	dd 45 f8             	fldl   -0x8(%ebp)
405640:	59                   	pop    %ecx
405641:	59                   	pop    %ecx
405642:	8b e5                	mov    %ebp,%esp
405644:	5d                   	pop    %ebp
405645:	c3                   	ret
405646:	8d 44 24 08          	lea    0x8(%esp),%eax
40564a:	50                   	push   %eax
40564b:	6a 00                	push   $0x0
40564d:	ff 74 24 0c          	push   0xc(%esp)
405651:	6a 01                	push   $0x1
405653:	e8 cd 67 00 00       	call   0x40be25
405658:	59                   	pop    %ecx
405659:	50                   	push   %eax
40565a:	e8 a8 fe ff ff       	call   0x405507
40565f:	83 c4 10             	add    $0x10,%esp
405662:	c3                   	ret
405663:	8d 44 24 0c          	lea    0xc(%esp),%eax
405667:	50                   	push   %eax
405668:	6a 00                	push   $0x0
40566a:	ff 74 24 10          	push   0x10(%esp)
40566e:	ff 74 24 10          	push   0x10(%esp)
405672:	e8 08 ff ff ff       	call   0x40557f
405677:	83 c4 10             	add    $0x10,%esp
40567a:	c3                   	ret
40567b:	ff 74 24 0c          	push   0xc(%esp)
40567f:	6a 00                	push   $0x0
405681:	ff 74 24 10          	push   0x10(%esp)
405685:	6a ff                	push   $0xffffffff
405687:	ff 74 24 14          	push   0x14(%esp)
40568b:	e8 bd fe ff ff       	call   0x40554d
405690:	83 c4 14             	add    $0x14,%esp
405693:	c3                   	ret
405694:	ff 74 24 0c          	push   0xc(%esp)
405698:	6a 00                	push   $0x0
40569a:	ff 74 24 10          	push   0x10(%esp)
40569e:	ff 74 24 10          	push   0x10(%esp)
4056a2:	e8 f3 fe ff ff       	call   0x40559a
4056a7:	83 c4 10             	add    $0x10,%esp
4056aa:	c3                   	ret
4056ab:	8b 44 24 0c          	mov    0xc(%esp),%eax
4056af:	03 c0                	add    %eax,%eax
4056b1:	50                   	push   %eax
4056b2:	ff 74 24 0c          	push   0xc(%esp)
4056b6:	ff 74 24 0c          	push   0xc(%esp)
4056ba:	e8 a1 2d 00 00       	call   0x408460
4056bf:	83 c4 0c             	add    $0xc,%esp
4056c2:	c3                   	ret
4056c3:	8d 44 24 08          	lea    0x8(%esp),%eax
4056c7:	50                   	push   %eax
4056c8:	6a 00                	push   $0x0
4056ca:	ff 74 24 0c          	push   0xc(%esp)
4056ce:	6a 01                	push   $0x1
4056d0:	e8 50 67 00 00       	call   0x40be25
4056d5:	59                   	pop    %ecx
4056d6:	50                   	push   %eax
4056d7:	e8 4e fe ff ff       	call   0x40552a
4056dc:	83 c4 10             	add    $0x10,%esp
4056df:	c3                   	ret
4056e0:	ff 25 e4 70 42 00    	jmp    *0x4270e4
4056e6:	33 c0                	xor    %eax,%eax
4056e8:	57                   	push   %edi
4056e9:	8b f9                	mov    %ecx,%edi
4056eb:	40                   	inc    %eax
4056ec:	f0 0f c1 05 a4 b9 43 	lock xadd %eax,0x43b9a4
4056f3:	00
4056f4:	75 19                	jne    0x40570f
4056f6:	56                   	push   %esi
4056f7:	be 58 93 83 02       	mov    $0x2839358,%esi
4056fc:	56                   	push   %esi
4056fd:	e8 59 0b 00 00       	call   0x40625b
405702:	83 c6 18             	add    $0x18,%esi
405705:	59                   	pop    %ecx
405706:	81 fe 18 94 83 02    	cmp    $0x2839418,%esi
40570c:	7c ee                	jl     0x4056fc
40570e:	5e                   	pop    %esi
40570f:	8b c7                	mov    %edi,%eax
405711:	5f                   	pop    %edi
405712:	c3                   	ret
405713:	55                   	push   %ebp
405714:	8b ec                	mov    %esp,%ebp
405716:	8b 45 08             	mov    0x8(%ebp),%eax
405719:	56                   	push   %esi
40571a:	8b f1                	mov    %ecx,%esi
40571c:	89 06                	mov    %eax,(%esi)
40571e:	85 c0                	test   %eax,%eax
405720:	75 07                	jne    0x405729
405722:	e8 f6 ec 00 00       	call   0x41441d
405727:	eb 14                	jmp    0x40573d
405729:	83 f8 08             	cmp    $0x8,%eax
40572c:	7d 0f                	jge    0x40573d
40572e:	6b c0 18             	imul   $0x18,%eax,%eax
405731:	05 58 93 83 02       	add    $0x2839358,%eax
405736:	50                   	push   %eax
405737:	e8 36 0b 00 00       	call   0x406272
40573c:	59                   	pop    %ecx
40573d:	8b c6                	mov    %esi,%eax
40573f:	5e                   	pop    %esi
405740:	5d                   	pop    %ebp
405741:	c2 04 00             	ret    $0x4
405744:	83 c8 ff             	or     $0xffffffff,%eax
405747:	f0 0f c1 05 a4 b9 43 	lock xadd %eax,0x43b9a4
40574e:	00
40574f:	79 19                	jns    0x40576a
405751:	56                   	push   %esi
405752:	be 58 93 83 02       	mov    $0x2839358,%esi
405757:	56                   	push   %esi
405758:	e8 f0 0a 00 00       	call   0x40624d
40575d:	83 c6 18             	add    $0x18,%esi
405760:	59                   	pop    %ecx
405761:	81 fe 18 94 83 02    	cmp    $0x2839418,%esi
405767:	7c ee                	jl     0x405757
405769:	5e                   	pop    %esi
40576a:	c3                   	ret
40576b:	8b 01                	mov    (%ecx),%eax
40576d:	85 c0                	test   %eax,%eax
40576f:	0f 84 b1 ec 00 00    	je     0x414426
405775:	83 f8 08             	cmp    $0x8,%eax
405778:	7d 0f                	jge    0x405789
40577a:	6b c0 18             	imul   $0x18,%eax,%eax
40577d:	05 58 93 83 02       	add    $0x2839358,%eax
405782:	50                   	push   %eax
405783:	e8 f8 0a 00 00       	call   0x406280
405788:	59                   	pop    %ecx
405789:	c3                   	ret
40578a:	e9 57 41 00 00       	jmp    0x4098e6
40578f:	55                   	push   %ebp
405790:	8b ec                	mov    %esp,%ebp
405792:	56                   	push   %esi
405793:	ff 75 08             	push   0x8(%ebp)
405796:	8b f1                	mov    %ecx,%esi
405798:	e8 52 d4 ff ff       	call   0x402bef
40579d:	c7 06 e0 75 42 00    	movl   $0x4275e0,(%esi)
4057a3:	8b c6                	mov    %esi,%eax
4057a5:	5e                   	pop    %esi
4057a6:	5d                   	pop    %ebp
4057a7:	c2 04 00             	ret    $0x4
4057aa:	83 61 04 00          	andl   $0x0,0x4(%ecx)
4057ae:	8b c1                	mov    %ecx,%eax
4057b0:	83 61 08 00          	andl   $0x0,0x8(%ecx)
4057b4:	c7 41 04 e8 75 42 00 	movl   $0x4275e8,0x4(%ecx)
4057bb:	c7 01 e0 75 42 00    	movl   $0x4275e0,(%ecx)
4057c1:	c3                   	ret
4057c2:	55                   	push   %ebp
4057c3:	8b ec                	mov    %esp,%ebp
4057c5:	56                   	push   %esi
4057c6:	ff 75 08             	push   0x8(%ebp)
4057c9:	8b f1                	mov    %ecx,%esi
4057cb:	e8 1f d4 ff ff       	call   0x402bef
4057d0:	c7 06 08 76 42 00    	movl   $0x427608,(%esi)
4057d6:	8b c6                	mov    %esi,%eax
4057d8:	5e                   	pop    %esi
4057d9:	5d                   	pop    %ebp
4057da:	c2 04 00             	ret    $0x4
4057dd:	55                   	push   %ebp
4057de:	8b ec                	mov    %esp,%ebp
4057e0:	51                   	push   %ecx
4057e1:	56                   	push   %esi