405fca:	32 c0                	xor    %al,%al
405fcc:	5d                   	pop    %ebp
405fcd:	c3                   	ret
405fce:	55                   	push   %ebp
405fcf:	8b ec                	mov    %esp,%ebp
405fd1:	8b 55 0c             	mov    0xc(%ebp),%edx
405fd4:	53                   	push   %ebx
405fd5:	56                   	push   %esi
405fd6:	57                   	push   %edi
405fd7:	8b 7d 18             	mov    0x18(%ebp),%edi
405fda:	3b fa                	cmp    %edx,%edi
405fdc:	77 5d                	ja     0x40603b
405fde:	8b 75 10             	mov    0x10(%ebp),%esi
405fe1:	8b ca                	mov    %edx,%ecx
405fe3:	2b cf                	sub    %edi,%ecx
405fe5:	3b f1                	cmp    %ecx,%esi
405fe7:	77 52                	ja     0x40603b
405fe9:	85 ff                	test   %edi,%edi
405feb:	75 04                	jne    0x405ff1
405fed:	8b c6                	mov    %esi,%eax
405fef:	eb 4d                	jmp    0x40603e
405ff1:	8b 5d 08             	mov    0x8(%ebp),%ebx
405ff4:	42                   	inc    %edx
405ff5:	8b c3                	mov    %ebx,%eax
405ff7:	2b c7                	sub    %edi,%eax
405ff9:	03 d0                	add    %eax,%edx
405ffb:	8b 45 14             	mov    0x14(%ebp),%eax
405ffe:	8d 0c 33             	lea    (%ebx,%esi,1),%ecx
406001:	89 55 18             	mov    %edx,0x18(%ebp)
406004:	2b d1                	sub    %ecx,%edx
406006:	52                   	push   %edx
406007:	0f be 30             	movsbl (%eax),%esi
40600a:	56                   	push   %esi
40600b:	89 75 0c             	mov    %esi,0xc(%ebp)
40600e:	51                   	push   %ecx
40600f:	eb 1c                	jmp    0x40602d
406011:	57                   	push   %edi
406012:	ff 75 14             	push   0x14(%ebp)
406015:	56                   	push   %esi
406016:	e8 b7 b5 03 00       	call   0x4415d2
40601b:	83 c4 0c             	add    $0xc,%esp
40601e:	85 c0                	test   %eax,%eax
406020:	74 21                	je     0x406043
406022:	8b 45 18             	mov    0x18(%ebp),%eax
406025:	46                   	inc    %esi
406026:	2b c6                	sub    %esi,%eax
406028:	50                   	push   %eax
406029:	ff 75 0c             	push   0xc(%ebp)
40602c:	56                   	push   %esi
40602d:	e8 fe b3 03 00       	call   0x441430
406032:	8b f0                	mov    %eax,%esi
406034:	83 c4 0c             	add    $0xc,%esp
406037:	85 f6                	test   %esi,%esi
406039:	75 d6                	jne    0x406011
40603b:	83 c8 ff             	or     $0xffffffff,%eax
40603e:	5f                   	pop    %edi
40603f:	5e                   	pop    %esi
406040:	5b                   	pop    %ebx
406041:	5d                   	pop    %ebp
406042:	c3                   	ret
406043:	2b f3                	sub    %ebx,%esi
406045:	eb a6                	jmp    0x405fed
406047:	55                   	push   %ebp
406048:	8b ec                	mov    %esp,%ebp
40604a:	8b 4d 0c             	mov    0xc(%ebp),%ecx
40604d:	53                   	push   %ebx
40604e:	56                   	push   %esi
40604f:	57                   	push   %edi
406050:	8b 7d 18             	mov    0x18(%ebp),%edi
406053:	3b f9                	cmp    %ecx,%edi
406055:	77 55                	ja     0x4060ac
406057:	8b 45 10             	mov    0x10(%ebp),%eax
40605a:	2b cf                	sub    %edi,%ecx
40605c:	3b c1                	cmp    %ecx,%eax
40605e:	77 4c                	ja     0x4060ac
406060:	85 ff                	test   %edi,%edi
406062:	74 4b                	je     0x4060af
406064:	8b 5d 08             	mov    0x8(%ebp),%ebx
406067:	41                   	inc    %ecx
406068:	ff 75 14             	push   0x14(%ebp)
40606b:	8d 14 4b             	lea    (%ebx,%ecx,2),%edx
40606e:	8d 0c 43             	lea    (%ebx,%eax,2),%ecx
406071:	89 55 18             	mov    %edx,0x18(%ebp)
406074:	8b c2                	mov    %edx,%eax
406076:	2b c1                	sub    %ecx,%eax
406078:	d1 f8                	sar    $1,%eax
40607a:	50                   	push   %eax
40607b:	51                   	push   %ecx
40607c:	eb 20                	jmp    0x40609e
40607e:	57                   	push   %edi
40607f:	ff 75 14             	push   0x14(%ebp)
406082:	56                   	push   %esi
406083:	e8 75 99 01 00       	call   0x41f9fd
406088:	83 c4 0c             	add    $0xc,%esp
40608b:	85 c0                	test   %eax,%eax
40608d:	74 25                	je     0x4060b4
40608f:	8b 45 18             	mov    0x18(%ebp),%eax
406092:	83 c6 02             	add    $0x2,%esi
406095:	ff 75 14             	push   0x14(%ebp)
406098:	2b c6                	sub    %esi,%eax
40609a:	d1 f8                	sar    $1,%eax
40609c:	50                   	push   %eax
40609d:	56                   	push   %esi
40609e:	e8 2d ae 01 00       	call   0x420ed0
4060a3:	8b f0                	mov    %eax,%esi
4060a5:	83 c4 0c             	add    $0xc,%esp
4060a8:	85 f6                	test   %esi,%esi
4060aa:	75 d2                	jne    0x40607e
4060ac:	83 c8 ff             	or     $0xffffffff,%eax
4060af:	5f                   	pop    %edi
4060b0:	5e                   	pop    %esi
4060b1:	5b                   	pop    %ebx
4060b2:	5d                   	pop    %ebp
4060b3:	c3                   	ret
4060b4:	2b f3                	sub    %ebx,%esi
4060b6:	d1 fe                	sar    $1,%esi
4060b8:	8b c6                	mov    %esi,%eax
4060ba:	eb f3                	jmp    0x4060af
4060bc:	55                   	push   %ebp
4060bd:	8b ec                	mov    %esp,%ebp
4060bf:	81 ec 0c 01 00 00    	sub    $0x10c,%esp
4060c5:	a1 94 80 4b 00       	mov    0x4b8094,%eax
4060ca:	33 c5                	xor    %ebp,%eax
4060cc:	89 45 fc             	mov    %eax,-0x4(%ebp)
4060cf:	8b 45 14             	mov    0x14(%ebp),%eax
4060d2:	53                   	push   %ebx
4060d3:	56                   	push   %esi
4060d4:	8b 75 18             	mov    0x18(%ebp),%esi
4060d7:	89 85 f8 fe ff ff    	mov    %eax,-0x108(%ebp)
4060dd:	57                   	push   %edi
4060de:	8b 7d 08             	mov    0x8(%ebp),%edi
4060e1:	85 f6                	test   %esi,%esi
4060e3:	0f 84 8f 00 00 00    	je     0x406178
4060e9:	8b 5d 0c             	mov    0xc(%ebp),%ebx
4060ec:	85 db                	test   %ebx,%ebx
4060ee:	0f 84 84 00 00 00    	je     0x406178
4060f4:	68 00 01 00 00       	push   $0x100
4060f9:	8d 85 fc fe ff ff    	lea    -0x104(%ebp),%eax
4060ff:	6a 00                	push   $0x0
406101:	50                   	push   %eax
406102:	e8 59 dd 03 00       	call   0x443e60
406107:	8b 8d f8 fe ff ff    	mov    -0x108(%ebp),%ecx
40610d:	83 c4 0c             	add    $0xc,%esp
406110:	8d 04 71             	lea    (%ecx,%esi,2),%eax
406113:	50                   	push   %eax
406114:	51                   	push   %ecx
406115:	8d 8d fc fe ff ff    	lea    -0x104(%ebp),%ecx
40611b:	e8 64 56 01 00       	call   0x41b784
406120:	84 c0                	test   %al,%al
406122:	75 22                	jne    0x406146
406124:	88 85 f4 fe ff ff    	mov    %al,-0x10c(%ebp)
40612a:	ff b5 f4 fe ff ff    	push   -0x10c(%ebp)
406130:	56                   	push   %esi
406131:	ff b5 f8 fe ff ff    	push   -0x108(%ebp)
406137:	ff 75 10             	push   0x10(%ebp)
40613a:	53                   	push   %ebx
40613b:	57                   	push   %edi
40613c:	e8 49 00 00 00       	call   0x40618a
406141:	83 c4 18             	add    $0x18,%esp
406144:	eb 35                	jmp    0x40617b
406146:	8b 4d 10             	mov    0x10(%ebp),%ecx
406149:	8d 43 ff             	lea    -0x1(%ebx),%eax
40614c:	3b c1                	cmp    %ecx,%eax
40614e:	0f 42 c8             	cmovb  %eax,%ecx
406151:	8d 34 4f             	lea    (%edi,%ecx,2),%esi
406154:	eb 07                	jmp    0x40615d
406156:	3b f7                	cmp    %edi,%esi
406158:	74 1e                	je     0x406178
40615a:	83 ee 02             	sub    $0x2,%esi
40615d:	0f b7 06             	movzwl (%esi),%eax
406160:	8d 8d fc fe ff ff    	lea    -0x104(%ebp),%ecx
406166:	50                   	push   %eax
406167:	e8 48 56 01 00       	call   0x41b7b4
40616c:	84 c0                	test   %al,%al
40616e:	74 e6                	je     0x406156
406170:	2b f7                	sub    %edi,%esi
406172:	d1 fe                	sar    $1,%esi
406174:	8b c6                	mov    %esi,%eax
406176:	eb 03                	jmp    0x40617b
406178:	83 c8 ff             	or     $0xffffffff,%eax
40617b:	8b 4d fc             	mov    -0x4(%ebp),%ecx
40617e:	5f                   	pop    %edi
40617f:	5e                   	pop    %esi
406180:	33 cd                	xor    %ebp,%ecx
406182:	5b                   	pop    %ebx
406183:	e8 7a 98 03 00       	call   0x43fa02
406188:	c9                   	leave
406189:	c3                   	ret
40618a:	55                   	push   %ebp
40618b:	8b ec                	mov    %esp,%ebp
40618d:	83 7d 18 00          	cmpl   $0x0,0x18(%ebp)
406191:	53                   	push   %ebx
406192:	56                   	push   %esi
406193:	74 3a                	je     0x4061cf
406195:	8b 45 0c             	mov    0xc(%ebp),%eax
406198:	85 c0                	test   %eax,%eax
40619a:	74 33                	je     0x4061cf
40619c:	8b 4d 10             	mov    0x10(%ebp),%ecx
40619f:	48                   	dec    %eax
4061a0:	8b 5d 08             	mov    0x8(%ebp),%ebx
4061a3:	3b c1                	cmp    %ecx,%eax
4061a5:	0f 42 c8             	cmovb  %eax,%ecx
4061a8:	8d 34 4b             	lea    (%ebx,%ecx,2),%esi
4061ab:	eb 07                	jmp    0x4061b4
4061ad:	3b f3                	cmp    %ebx,%esi
4061af:	74 1e                	je     0x4061cf
4061b1:	83 ee 02             	sub    $0x2,%esi
4061b4:	56                   	push   %esi
4061b5:	ff 75 18             	push   0x18(%ebp)
4061b8:	ff 75 14             	push   0x14(%ebp)
4061bb:	e8 10 ad 01 00       	call   0x420ed0
4061c0:	83 c4 0c             	add    $0xc,%esp
4061c3:	85 c0                	test   %eax,%eax
4061c5:	74 e6                	je     0x4061ad
4061c7:	2b f3                	sub    %ebx,%esi
4061c9:	d1 fe                	sar    $1,%esi
4061cb:	8b c6                	mov    %esi,%eax
4061cd:	eb 03                	jmp    0x4061d2
4061cf:	83 c8 ff             	or     $0xffffffff,%eax
4061d2:	5e                   	pop    %esi
4061d3:	5b                   	pop    %ebx
4061d4:	5d                   	pop    %ebp
4061d5:	c3                   	ret
4061d6:	55                   	push   %ebp
4061d7:	8b ec                	mov    %esp,%ebp
4061d9:	57                   	push   %edi
4061da:	8b 7d 18             	mov    0x18(%ebp),%edi
4061dd:	85 ff                	test   %edi,%edi
4061df:	75 0c                	jne    0x4061ed
4061e1:	8b 45 10             	mov    0x10(%ebp),%eax
4061e4:	39 45 0c             	cmp    %eax,0xc(%ebp)
4061e7:	0f 42 45 0c          	cmovb  0xc(%ebp),%eax
4061eb:	eb 52                	jmp    0x40623f
4061ed:	8b 4d 0c             	mov    0xc(%ebp),%ecx
4061f0:	53                   	push   %ebx
4061f1:	56                   	push   %esi
4061f2:	3b f9                	cmp    %ecx,%edi
4061f4:	77 44                	ja     0x40623a
4061f6:	8b 45 10             	mov    0x10(%ebp),%eax
4061f9:	2b cf                	sub    %edi,%ecx
4061fb:	8b 5d 08             	mov    0x8(%ebp),%ebx
4061fe:	3b c8                	cmp    %eax,%ecx
406200:	0f 42 c1             	cmovb  %ecx,%eax
406203:	8d 34 43             	lea    (%ebx,%eax,2),%esi
406206:	8b 45 14             	mov    0x14(%ebp),%eax
406209:	0f b7 08             	movzwl (%eax),%ecx
40620c:	89 4d 18             	mov    %ecx,0x18(%ebp)
40620f:	66 39 0e             	cmp    %cx,(%esi)
406212:	75 15                	jne    0x406229
406214:	57                   	push   %edi
406215:	50                   	push   %eax
406216:	56                   	push   %esi
406217:	e8 e1 97 01 00       	call   0x41f9fd
40621c:	83 c4 0c             	add    $0xc,%esp
40621f:	85 c0                	test   %eax,%eax
406221:	74 0f                	je     0x406232
406223:	8b 45 14             	mov    0x14(%ebp),%eax
406226:	8b 4d 18             	mov    0x18(%ebp),%ecx
406229:	3b f3                	cmp    %ebx,%esi
40622b:	74 0d                	je     0x40623a
40622d:	83 ee 02             	sub    $0x2,%esi
406230:	eb dd                	jmp    0x40620f
406232:	2b f3                	sub    %ebx,%esi
406234:	d1 fe                	sar    $1,%esi
406236:	8b c6                	mov    %esi,%eax
406238:	eb 03                	jmp    0x40623d
40623a:	83 c8 ff             	or     $0xffffffff,%eax
40623d:	5e                   	pop    %esi
40623e:	5b                   	pop    %ebx
40623f:	5f                   	pop    %edi
406240:	5d                   	pop    %ebp
406241:	c3                   	ret
406242:	55                   	push   %ebp
406243:	8b ec                	mov    %esp,%ebp
406245:	8b 45 0c             	mov    0xc(%ebp),%eax
406248:	85 c0                	test   %eax,%eax
40624a:	74 27                	je     0x406273
40624c:	8b 4d 10             	mov    0x10(%ebp),%ecx
40624f:	48                   	dec    %eax
406250:	8b 55 08             	mov    0x8(%ebp),%edx
406253:	3b c1                	cmp    %ecx,%eax
406255:	0f 42 c8             	cmovb  %eax,%ecx
406258:	8d 04 4a             	lea    (%edx,%ecx,2),%eax
40625b:	66 8b 4d 14          	mov    0x14(%ebp),%cx
40625f:	eb 07                	jmp    0x406268
406261:	3b c2                	cmp    %edx,%eax
406263:	74 0e                	je     0x406273
406265:	83 e8 02             	sub    $0x2,%eax
406268:	66 39 08             	cmp    %cx,(%eax)
40626b:	75 f4                	jne    0x406261
40626d:	2b c2                	sub    %edx,%eax
40626f:	d1 f8                	sar    $1,%eax
406271:	5d                   	pop    %ebp
406272:	c3                   	ret
406273:	83 c8 ff             	or     $0xffffffff,%eax
406276:	5d                   	pop    %ebp
406277:	c3                   	ret
406278:	55                   	push   %ebp
406279:	8b ec                	mov    %esp,%ebp
40627b:	8b 45 0c             	mov    0xc(%ebp),%eax
40627e:	56                   	push   %esi
40627f:	8b 75 08             	mov    0x8(%ebp),%esi
406282:	6a 0a                	push   $0xa
406284:	33 d2                	xor    %edx,%edx
406286:	83 ee 02             	sub    $0x2,%esi
406289:	59                   	pop    %ecx
40628a:	f7 f1                	div    %ecx
40628c:	8d 4a 30             	lea    0x30(%edx),%ecx
40628f:	66 89 0e             	mov    %cx,(%esi)
406292:	85 c0                	test   %eax,%eax
406294:	75 ec                	jne    0x406282
406296:	8b c6                	mov    %esi,%eax
406298:	5e                   	pop    %esi
406299:	5d                   	pop    %ebp
40629a:	c3                   	ret
40629b:	55                   	push   %ebp
40629c:	8b ec                	mov    %esp,%ebp
40629e:	51                   	push   %ecx
40629f:	51                   	push   %ecx
4062a0:	ff 75 10             	push   0x10(%ebp)
4062a3:	51                   	push   %ecx
4062a4:	ff 75 10             	push   0x10(%ebp)
4062a7:	ff 75 0c             	push   0xc(%ebp)
4062aa:	ff 75 08             	push   0x8(%ebp)
4062ad:	e8 cd 02 00 00       	call   0x40657f
4062b2:	83 c4 18             	add    $0x18,%esp
4062b5:	c9                   	leave
4062b6:	c2 0c 00             	ret    $0xc
4062b9:	55                   	push   %ebp
4062ba:	8b ec                	mov    %esp,%ebp
4062bc:	51                   	push   %ecx
4062bd:	51                   	push   %ecx
4062be:	ff 75 10             	push   0x10(%ebp)
4062c1:	51                   	push   %ecx
4062c2:	ff 75 10             	push   0x10(%ebp)
4062c5:	ff 75 0c             	push   0xc(%ebp)
4062c8:	ff 75 08             	push   0x8(%ebp)
4062cb:	e8 d5 02 00 00       	call   0x4065a5
4062d0:	83 c4 18             	add    $0x18,%esp
4062d3:	c9                   	leave
4062d4:	c2 0c 00             	ret    $0xc
4062d7:	6a 04                	push   $0x4
4062d9:	b8 01 a5 48 00       	mov    $0x48a501,%eax
4062de:	e8 67 97 03 00       	call   0x43fa4a
4062e3:	c7 45 fc 01 00 00 00 	movl   $0x1,-0x4(%ebp)
4062ea:	8d 45 70             	lea    0x70(%ebp),%eax
4062ed:	51                   	push   %ecx
4062ee:	ff b5 d8 00 00 00    	push   0xd8(%ebp)
4062f4:	83 ec 68             	sub    $0x68,%esp
4062f7:	8b cc                	mov    %esp,%ecx