4070be:	3b 42 08             	cmp    0x8(%edx),%eax
4070c1:	75 03                	jne    0x4070c6
4070c3:	89 7a 08             	mov    %edi,0x8(%edx)
4070c6:	8b 47 04             	mov    0x4(%edi),%eax
4070c9:	8b f7                	mov    %edi,%esi
4070cb:	80 78 0c 00          	cmpb   $0x0,0xc(%eax)
4070cf:	0f 85 97 00 00 00    	jne    0x40716c
4070d5:	53                   	push   %ebx
4070d6:	8b 46 04             	mov    0x4(%esi),%eax
4070d9:	8b 58 04             	mov    0x4(%eax),%ebx
4070dc:	8b 13                	mov    (%ebx),%edx
4070de:	3b c2                	cmp    %edx,%eax
4070e0:	75 34                	jne    0x407116
4070e2:	8b 53 08             	mov    0x8(%ebx),%edx
4070e5:	80 7a 0c 00          	cmpb   $0x0,0xc(%edx)
4070e9:	74 31                	je     0x40711c
4070eb:	3b 70 08             	cmp    0x8(%eax),%esi
4070ee:	75 08                	jne    0x4070f8
4070f0:	8b f0                	mov    %eax,%esi
4070f2:	56                   	push   %esi
4070f3:	e8 2a ef ff ff       	call   0x406022
4070f8:	8b 46 04             	mov    0x4(%esi),%eax
4070fb:	c6 40 0c 01          	movb   $0x1,0xc(%eax)
4070ff:	8b 46 04             	mov    0x4(%esi),%eax
407102:	8b 40 04             	mov    0x4(%eax),%eax
407105:	c6 40 0c 00          	movb   $0x0,0xc(%eax)
407109:	8b 46 04             	mov    0x4(%esi),%eax
40710c:	ff 70 04             	push   0x4(%eax)
40710f:	e8 c6 ee ff ff       	call   0x405fda
407114:	eb 48                	jmp    0x40715e
407116:	80 7a 0c 00          	cmpb   $0x0,0xc(%edx)
40711a:	75 1a                	jne    0x407136
40711c:	c6 40 0c 01          	movb   $0x1,0xc(%eax)
407120:	c6 42 0c 01          	movb   $0x1,0xc(%edx)
407124:	8b 46 04             	mov    0x4(%esi),%eax
407127:	8b 40 04             	mov    0x4(%eax),%eax
40712a:	c6 40 0c 00          	movb   $0x0,0xc(%eax)
40712e:	8b 46 04             	mov    0x4(%esi),%eax
407131:	8b 70 04             	mov    0x4(%eax),%esi
407134:	eb 28                	jmp    0x40715e
407136:	3b 30                	cmp    (%eax),%esi
407138:	75 08                	jne    0x407142
40713a:	8b f0                	mov    %eax,%esi
40713c:	56                   	push   %esi
40713d:	e8 98 ee ff ff       	call   0x405fda
407142:	8b 46 04             	mov    0x4(%esi),%eax
407145:	c6 40 0c 01          	movb   $0x1,0xc(%eax)
407149:	8b 46 04             	mov    0x4(%esi),%eax
40714c:	8b 40 04             	mov    0x4(%eax),%eax
40714f:	c6 40 0c 00          	movb   $0x0,0xc(%eax)
407153:	8b 46 04             	mov    0x4(%esi),%eax
407156:	ff 70 04             	push   0x4(%eax)
407159:	e8 c4 ee ff ff       	call   0x406022
40715e:	8b 46 04             	mov    0x4(%esi),%eax
407161:	80 78 0c 00          	cmpb   $0x0,0xc(%eax)
407165:	0f 84 6b ff ff ff    	je     0x4070d6
40716b:	5b                   	pop    %ebx
40716c:	8b 01                	mov    (%ecx),%eax
40716e:	8b 40 04             	mov    0x4(%eax),%eax
407171:	c6 40 0c 01          	movb   $0x1,0xc(%eax)
407175:	8b 45 08             	mov    0x8(%ebp),%eax
407178:	89 38                	mov    %edi,(%eax)
40717a:	5f                   	pop    %edi
40717b:	5e                   	pop    %esi
40717c:	5d                   	pop    %ebp
40717d:	c2 14 00             	ret    $0x14
407180:	ff 75 18             	push   0x18(%ebp)
407183:	e8 b9 fe ff ff       	call   0x407041
407188:	68 ac 24 40 00       	push   $0x4024ac
40718d:	e8 9e 6e 00 00       	call   0x40e030
407192:	cc                   	int3
407193:	6a 0c                	push   $0xc
407195:	b8 30 ee 40 00       	mov    $0x40ee30,%eax
40719a:	e8 18 75 00 00       	call   0x40e6b7
40719f:	8b d9                	mov    %ecx,%ebx
4071a1:	83 65 fc 00          	andl   $0x0,-0x4(%ebp)
4071a5:	b0 01                	mov    $0x1,%al
4071a7:	8b 3b                	mov    (%ebx),%edi
4071a9:	88 45 e8             	mov    %al,-0x18(%ebp)
4071ac:	8b 77 04             	mov    0x4(%edi),%esi
4071af:	eb 1c                	jmp    0x4071cd
4071b1:	8d 46 10             	lea    0x10(%esi),%eax
4071b4:	8b fe                	mov    %esi,%edi
4071b6:	50                   	push   %eax
4071b7:	ff 75 10             	push   0x10(%ebp)
4071ba:	e8 9c e1 ff ff       	call   0x40535b
4071bf:	88 45 e8             	mov    %al,-0x18(%ebp)
4071c2:	84 c0                	test   %al,%al
4071c4:	74 04                	je     0x4071ca
4071c6:	8b 36                	mov    (%esi),%esi
4071c8:	eb 03                	jmp    0x4071cd
4071ca:	8b 76 08             	mov    0x8(%esi),%esi
4071cd:	80 7e 0d 00          	cmpb   $0x0,0xd(%esi)
4071d1:	74 de                	je     0x4071b1
4071d3:	8b f7                	mov    %edi,%esi
4071d5:	89 75 ec             	mov    %esi,-0x14(%ebp)
4071d8:	84 c0                	test   %al,%al
4071da:	74 30                	je     0x40720c
4071dc:	8b 03                	mov    (%ebx),%eax
4071de:	3b 38                	cmp    (%eax),%edi
4071e0:	75 1f                	jne    0x407201
4071e2:	ff 75 14             	push   0x14(%ebp)
4071e5:	8d 45 e8             	lea    -0x18(%ebp),%eax
4071e8:	51                   	push   %ecx
4071e9:	57                   	push   %edi
4071ea:	6a 01                	push   $0x1
4071ec:	50                   	push   %eax
4071ed:	8b cb                	mov    %ebx,%ecx
4071ef:	e8 7d fe ff ff       	call   0x407071
4071f4:	8b 08                	mov    (%eax),%ecx
4071f6:	8b 45 08             	mov    0x8(%ebp),%eax
4071f9:	89 08                	mov    %ecx,(%eax)
4071fb:	c6 40 04 01          	movb   $0x1,0x4(%eax)
4071ff:	eb 36                	jmp    0x407237
407201:	8d 4d ec             	lea    -0x14(%ebp),%ecx
407204:	e8 a6 fd ff ff       	call   0x406faf
407209:	8b 75 ec             	mov    -0x14(%ebp),%esi
40720c:	ff 75 10             	push   0x10(%ebp)
40720f:	8d 46 10             	lea    0x10(%esi),%eax
407212:	50                   	push   %eax
407213:	e8 43 e1 ff ff       	call   0x40535b
407218:	ff 75 14             	push   0x14(%ebp)
40721b:	84 c0                	test   %al,%al
40721d:	74 0a                	je     0x407229
40721f:	51                   	push   %ecx
407220:	57                   	push   %edi
407221:	ff 75 e8             	push   -0x18(%ebp)
407224:	8d 45 ec             	lea    -0x14(%ebp),%eax
407227:	eb c3                	jmp    0x4071ec
407229:	e8 13 fe ff ff       	call   0x407041
40722e:	8b 45 08             	mov    0x8(%ebp),%eax
407231:	89 30                	mov    %esi,(%eax)
407233:	c6 40 04 00          	movb   $0x0,0x4(%eax)
407237:	e8 e0 73 00 00       	call   0x40e61c
40723c:	c2 10 00             	ret    $0x10
40723f:	ff 75 14             	push   0x14(%ebp)
407242:	e8 fa fd ff ff       	call   0x407041
407247:	6a 00                	push   $0x0
407249:	6a 00                	push   $0x0
40724b:	e8 c6 73 00 00       	call   0x40e616
407250:	cc                   	int3
407251:	8b ff                	mov    %edi,%edi
407253:	55                   	push   %ebp
407254:	8b ec                	mov    %esp,%ebp
407256:	53                   	push   %ebx
407257:	56                   	push   %esi
407258:	8b 75 08             	mov    0x8(%ebp),%esi
40725b:	8b da                	mov    %edx,%ebx
40725d:	57                   	push   %edi
40725e:	8b f9                	mov    %ecx,%edi
407260:	3b fb                	cmp    %ebx,%edi
407262:	74 10                	je     0x407274
407264:	57                   	push   %edi
407265:	8b ce                	mov    %esi,%ecx
407267:	e8 11 00 00 00       	call   0x40727d
40726c:	83 c6 18             	add    $0x18,%esi
40726f:	83 c7 18             	add    $0x18,%edi
407272:	eb ec                	jmp    0x407260
407274:	5f                   	pop    %edi
407275:	8b c6                	mov    %esi,%eax
407277:	5e                   	pop    %esi
407278:	5b                   	pop    %ebx
407279:	5d                   	pop    %ebp
40727a:	c2 10 00             	ret    $0x10
40727d:	8b ff                	mov    %edi,%edi
40727f:	55                   	push   %ebp
407280:	8b ec                	mov    %esp,%ebp
407282:	56                   	push   %esi
407283:	8b 75 08             	mov    0x8(%ebp),%esi
407286:	33 c0                	xor    %eax,%eax
407288:	57                   	push   %edi
407289:	8b f9                	mov    %ecx,%edi
40728b:	83 67 10 00          	andl   $0x0,0x10(%edi)
40728f:	c7 47 14 07 00 00 00 	movl   $0x7,0x14(%edi)
407296:	66 89 07             	mov    %ax,(%edi)
407299:	83 7e 14 08          	cmpl   $0x8,0x14(%esi)
40729d:	73 17                	jae    0x4072b6
40729f:	8b 46 10             	mov    0x10(%esi),%eax
4072a2:	83 c0 01             	add    $0x1,%eax
4072a5:	74 16                	je     0x4072bd
4072a7:	03 c0                	add    %eax,%eax
4072a9:	50                   	push   %eax
4072aa:	56                   	push   %esi
4072ab:	57                   	push   %edi
4072ac:	e8 7b 74 00 00       	call   0x40e72c
4072b1:	83 c4 0c             	add    $0xc,%esp
4072b4:	eb 07                	jmp    0x4072bd
4072b6:	8b 06                	mov    (%esi),%eax
4072b8:	89 07                	mov    %eax,(%edi)
4072ba:	83 26 00             	andl   $0x0,(%esi)
4072bd:	8b 46 10             	mov    0x10(%esi),%eax
4072c0:	89 47 10             	mov    %eax,0x10(%edi)
4072c3:	8b 46 14             	mov    0x14(%esi),%eax
4072c6:	89 47 14             	mov    %eax,0x14(%edi)
4072c9:	83 66 10 00          	andl   $0x0,0x10(%esi)
4072cd:	33 c0                	xor    %eax,%eax
4072cf:	c7 46 14 07 00 00 00 	movl   $0x7,0x14(%esi)
4072d6:	66 89 06             	mov    %ax,(%esi)
4072d9:	8b c7                	mov    %edi,%eax
4072db:	5f                   	pop    %edi
4072dc:	5e                   	pop    %esi
4072dd:	5d                   	pop    %ebp
4072de:	c2 04 00             	ret    $0x4
4072e1:	8b 01                	mov    (%ecx),%eax
4072e3:	c3                   	ret
4072e4:	8b ff                	mov    %edi,%edi
4072e6:	55                   	push   %ebp
4072e7:	8b ec                	mov    %esp,%ebp
4072e9:	6a 00                	push   $0x0
4072eb:	6a 04                	push   $0x4
4072ed:	8d 45 14             	lea    0x14(%ebp),%eax
4072f0:	50                   	push   %eax
4072f1:	6a 11                	push   $0x11
4072f3:	68 c0 24 40 00       	push   $0x4024c0
4072f8:	6a 0a                	push   $0xa
4072fa:	68 0c 26 40 00       	push   $0x40260c
4072ff:	6a 2b                	push   $0x2b
407301:	ff 75 0c             	push   0xc(%ebp)
407304:	ff 75 08             	push   0x8(%ebp)
407307:	ff 15 08 22 41 00    	call   *0x412208
40730d:	83 c4 28             	add    $0x28,%esp
407310:	5d                   	pop    %ebp
407311:	c2 10 00             	ret    $0x10
407314:	6a 14                	push   $0x14
407316:	b8 53 ee 40 00       	mov    $0x40ee53,%eax
40731b:	e8 2e 73 00 00       	call   0x40e64e
407320:	8b fa                	mov    %edx,%edi
407322:	8b d9                	mov    %ecx,%ebx
407324:	33 d2                	xor    %edx,%edx
407326:	66 39 17             	cmp    %dx,(%edi)
407329:	0f 84 e3 00 00 00    	je     0x407412
40732f:	8b f7                	mov    %edi,%esi
407331:	8d 4e 02             	lea    0x2(%esi),%ecx
407334:	66 8b 06             	mov    (%esi),%ax
407337:	83 c6 02             	add    $0x2,%esi
40733a:	66 3b c2             	cmp    %dx,%ax
40733d:	75 f5                	jne    0x407334
40733f:	2b f1                	sub    %ecx,%esi
407341:	53                   	push   %ebx
407342:	d1 fe                	sar    $1,%esi
407344:	ff 15 8c 20 41 00    	call   *0x41208c
40734a:	83 f8 02             	cmp    $0x2,%eax
40734d:	75 46                	jne    0x407395
40734f:	8d 45 ec             	lea    -0x14(%ebp),%eax
407352:	50                   	push   %eax
407353:	53                   	push   %ebx
407354:	ff 15 54 20 41 00    	call   *0x412054
40735a:	85 c0                	test   %eax,%eax
40735c:	74 37                	je     0x407395
40735e:	85 f6                	test   %esi,%esi
407360:	0f 8e ac 00 00 00    	jle    0x407412
407366:	6a 00                	push   $0x0
407368:	8d 45 f0             	lea    -0x10(%ebp),%eax
40736b:	50                   	push   %eax
40736c:	56                   	push   %esi
40736d:	57                   	push   %edi
40736e:	53                   	push   %ebx
40736f:	ff 15 58 20 41 00    	call   *0x412058
407375:	85 c0                	test   %eax,%eax
407377:	0f 85 95 00 00 00    	jne    0x407412
40737d:	ff 15 70 20 41 00    	call   *0x412070
407383:	85 c0                	test   %eax,%eax
407385:	0f 8e 89 00 00 00    	jle    0x407414
40738b:	0f b7 c0             	movzwl %ax,%eax
40738e:	0d 00 00 07 80       	or     $0x80070000,%eax
407393:	eb 7f                	jmp    0x407414
407395:	80 3d 04 17 41 00 00 	cmpb   $0x0,0x411704
40739c:	75 7c                	jne    0x40741a
40739e:	33 c0                	xor    %eax,%eax
4073a0:	89 45 e0             	mov    %eax,-0x20(%ebp)
4073a3:	89 45 e4             	mov    %eax,-0x1c(%ebp)
4073a6:	89 45 e8             	mov    %eax,-0x18(%ebp)
4073a9:	89 45 fc             	mov    %eax,-0x4(%ebp)
4073ac:	8b cf                	mov    %edi,%ecx
4073ae:	8d 45 e0             	lea    -0x20(%ebp),%eax
4073b1:	50                   	push   %eax
4073b2:	e8 56 64 00 00       	call   0x40d80d
4073b7:	8b 7d e0             	mov    -0x20(%ebp),%edi
4073ba:	8b f0                	mov    %eax,%esi
4073bc:	85 f6                	test   %esi,%esi
4073be:	78 36                	js     0x4073f6
4073c0:	8b cf                	mov    %edi,%ecx
4073c2:	8d 51 01             	lea    0x1(%ecx),%edx
4073c5:	8a 01                	mov    (%ecx),%al
4073c7:	41                   	inc    %ecx
4073c8:	84 c0                	test   %al,%al
4073ca:	75 f9                	jne    0x4073c5
4073cc:	6a 00                	push   $0x0
4073ce:	8d 45 f0             	lea    -0x10(%ebp),%eax
4073d1:	2b ca                	sub    %edx,%ecx
4073d3:	50                   	push   %eax
4073d4:	51                   	push   %ecx
4073d5:	57                   	push   %edi
4073d6:	53                   	push   %ebx
4073d7:	ff 15 88 20 41 00    	call   *0x412088
4073dd:	85 c0                	test   %eax,%eax
4073df:	75 25                	jne    0x407406
4073e1:	ff 15 70 20 41 00    	call   *0x412070
4073e7:	8b f0                	mov    %eax,%esi
4073e9:	85 f6                	test   %esi,%esi
4073eb:	7e 09                	jle    0x4073f6
4073ed:	0f b7 f6             	movzwl %si,%esi
4073f0:	81 ce 00 00 07 80    	or     $0x80070000,%esi
4073f6:	85 ff                	test   %edi,%edi
4073f8:	74 08                	je     0x407402
4073fa:	57                   	push   %edi
4073fb:	ff 15 e4 21 41 00    	call   *0x4121e4
407401:	59                   	pop    %ecx
407402:	8b c6                	mov    %esi,%eax
407404:	eb 0e                	jmp    0x407414
407406:	85 ff                	test   %edi,%edi
407408:	74 08                	je     0x407412
40740a:	57                   	push   %edi
40740b:	ff 15 e4 21 41 00    	call   *0x4121e4
407411:	59                   	pop    %ecx
407412:	33 c0                	xor    %eax,%eax
407414:	e8 03 72 00 00       	call   0x40e61c
407419:	c3                   	ret
40741a:	6a 00                	push   $0x0
40741c:	8d 45 f0             	lea    -0x10(%ebp),%eax
40741f:	50                   	push   %eax
407420:	8d 04 36             	lea    (%esi,%esi,1),%eax
407423:	50                   	push   %eax
407424:	57                   	push   %edi
407425:	53                   	push   %ebx
407426:	ff 15 88 20 41 00    	call   *0x412088
40742c:	e9 44 ff ff ff       	jmp    0x407375
407431:	8b ff                	mov    %edi,%edi
407433:	55                   	push   %ebp
407434:	8b ec                	mov    %esp,%ebp
407436:	8b 55 0c             	mov    0xc(%ebp),%edx
407439:	8d 45 10             	lea    0x10(%ebp),%eax
40743c:	8b 4d 08             	mov    0x8(%ebp),%ecx
40743f:	50                   	push   %eax
407440:	e8 03 00 00 00       	call   0x407448
407445:	59                   	pop    %ecx
407446:	5d                   	pop    %ebp
407447:	c3                   	ret
407448:	6a 0c                	push   $0xc
40744a:	b8 78 ec 40 00       	mov    $0x40ec78,%eax
40744f:	e8 fa 71 00 00       	call   0x40e64e
407454:	8b d9                	mov    %ecx,%ebx
407456:	33 c0                	xor    %eax,%eax
407458:	89 45 e8             	mov    %eax,-0x18(%ebp)
40745b:	89 45 ec             	mov    %eax,-0x14(%ebp)
40745e:	89 45 f0             	mov    %eax,-0x10(%ebp)
407461:	ff 75 08             	push   0x8(%ebp)
407464:	8d 4d e8             	lea    -0x18(%ebp),%ecx
407467:	89 45 fc             	mov    %eax,-0x4(%ebp)
40746a:	e8 e6 62 00 00       	call   0x40d755