405e75:	56                   	push   %esi
405e76:	ff 15 20 f2 40 00    	call   *0x40f220
405e7c:	ff 55 fc             	call   *-0x4(%ebp)
405e7f:	85 c0                	test   %eax,%eax
405e81:	74 23                	je     0x405ea6
405e83:	83 7d f8 00          	cmpl   $0x0,-0x8(%ebp)
405e87:	74 04                	je     0x405e8d
405e89:	85 c0                	test   %eax,%eax
405e8b:	78 19                	js     0x405ea6
405e8d:	83 c7 0c             	add    $0xc,%edi
405e90:	83 3f 00             	cmpl   $0x0,(%edi)
405e93:	75 b5                	jne    0x405e4a
405e95:	b8 02 40 00 80       	mov    $0x80004002,%eax
405e9a:	eb 0a                	jmp    0x405ea6
405e9c:	8b 7f fc             	mov    -0x4(%edi),%edi
405e9f:	eb 8c                	jmp    0x405e2d
405ea1:	b8 57 00 07 80       	mov    $0x80070057,%eax
405ea6:	5f                   	pop    %edi
405ea7:	5e                   	pop    %esi
405ea8:	5b                   	pop    %ebx
405ea9:	c9                   	leave
405eaa:	c2 08 00             	ret    $0x8
405ead:	cc                   	int3
405eae:	cc                   	int3
405eaf:	cc                   	int3
405eb0:	8b ff                	mov    %edi,%edi
405eb2:	55                   	push   %ebp
405eb3:	8b ec                	mov    %esp,%ebp
405eb5:	8b 45 10             	mov    0x10(%ebp),%eax
405eb8:	85 c0                	test   %eax,%eax
405eba:	74 03                	je     0x405ebf
405ebc:	83 20 00             	andl   $0x0,(%eax)
405ebf:	b8 01 40 00 80       	mov    $0x80004001,%eax
405ec4:	5d                   	pop    %ebp
405ec5:	c2 0c 00             	ret    $0xc
405ec8:	cc                   	int3
405ec9:	cc                   	int3
405eca:	cc                   	int3
405ecb:	cc                   	int3
405ecc:	cc                   	int3
405ecd:	cc                   	int3
405ece:	cc                   	int3
405ecf:	cc                   	int3
405ed0:	33 c0                	xor    %eax,%eax
405ed2:	40                   	inc    %eax
405ed3:	c2 04 00             	ret    $0x4
405ed6:	cc                   	int3
405ed7:	cc                   	int3
405ed8:	cc                   	int3
405ed9:	cc                   	int3
405eda:	cc                   	int3
405edb:	cc                   	int3
405edc:	cc                   	int3
405edd:	cc                   	int3
405ede:	cc                   	int3
405edf:	cc                   	int3
405ee0:	33 c0                	xor    %eax,%eax
405ee2:	c2 04 00             	ret    $0x4
405ee5:	cc                   	int3
405ee6:	cc                   	int3
405ee7:	cc                   	int3
405ee8:	cc                   	int3
405ee9:	cc                   	int3
405eea:	cc                   	int3
405eeb:	cc                   	int3
405eec:	cc                   	int3
405eed:	cc                   	int3
405eee:	cc                   	int3
405eef:	cc                   	int3
405ef0:	8b ff                	mov    %edi,%edi
405ef2:	55                   	push   %ebp
405ef3:	8b ec                	mov    %esp,%ebp
405ef5:	56                   	push   %esi
405ef6:	8b f1                	mov    %ecx,%esi
405ef8:	e8 b7 00 00 00       	call   0x405fb4
405efd:	f6 45 08 01          	testb  $0x1,0x8(%ebp)
405f01:	74 08                	je     0x405f0b
405f03:	56                   	push   %esi
405f04:	ff 15 04 f2 40 00    	call   *0x40f204
405f0a:	59                   	pop    %ecx
405f0b:	8b c6                	mov    %esi,%eax
405f0d:	5e                   	pop    %esi
405f0e:	5d                   	pop    %ebp
405f0f:	c2 04 00             	ret    $0x4
405f12:	8b ff                	mov    %edi,%edi
405f14:	56                   	push   %esi
405f15:	8b f1                	mov    %ecx,%esi
405f17:	83 3e 00             	cmpl   $0x0,(%esi)
405f1a:	74 0c                	je     0x405f28
405f1c:	ff 36                	push   (%esi)
405f1e:	ff 15 f0 f1 40 00    	call   *0x40f1f0
405f24:	83 26 00             	andl   $0x0,(%esi)
405f27:	59                   	pop    %ecx
405f28:	83 7e 04 00          	cmpl   $0x0,0x4(%esi)
405f2c:	74 0e                	je     0x405f3c
405f2e:	ff 76 04             	push   0x4(%esi)
405f31:	ff 15 f0 f1 40 00    	call   *0x40f1f0
405f37:	83 66 04 00          	andl   $0x0,0x4(%esi)
405f3b:	59                   	pop    %ecx
405f3c:	83 66 08 00          	andl   $0x0,0x8(%esi)
405f40:	5e                   	pop    %esi
405f41:	c3                   	ret
405f42:	8b ff                	mov    %edi,%edi
405f44:	56                   	push   %esi
405f45:	57                   	push   %edi
405f46:	8b f9                	mov    %ecx,%edi
405f48:	33 f6                	xor    %esi,%esi
405f4a:	8b 47 08             	mov    0x8(%edi),%eax
405f4d:	85 c0                	test   %eax,%eax
405f4f:	7e 2e                	jle    0x405f7f
405f51:	85 f6                	test   %esi,%esi
405f53:	78 36                	js     0x405f8b
405f55:	3b f0                	cmp    %eax,%esi
405f57:	7d 32                	jge    0x405f8b
405f59:	8b 07                	mov    (%edi),%eax
405f5b:	ff 34 b0             	push   (%eax,%esi,4)
405f5e:	ff 15 fc f1 40 00    	call   *0x40f1fc
405f64:	59                   	pop    %ecx
405f65:	3b 77 08             	cmp    0x8(%edi),%esi
405f68:	7d 21                	jge    0x405f8b
405f6a:	8b 47 04             	mov    0x4(%edi),%eax
405f6d:	ff 34 b0             	push   (%eax,%esi,4)
405f70:	ff 15 fc f1 40 00    	call   *0x40f1fc
405f76:	8b 47 08             	mov    0x8(%edi),%eax
405f79:	46                   	inc    %esi
405f7a:	59                   	pop    %ecx
405f7b:	3b f0                	cmp    %eax,%esi
405f7d:	7c d2                	jl     0x405f51
405f7f:	8b cf                	mov    %edi,%ecx
405f81:	e8 8c ff ff ff       	call   0x405f12
405f86:	5f                   	pop    %edi
405f87:	33 c0                	xor    %eax,%eax
405f89:	5e                   	pop    %esi
405f8a:	c3                   	ret
405f8b:	b9 8c 00 00 c0       	mov    $0xc000008c,%ecx
405f90:	e8 7e 03 00 00       	call   0x406313
405f95:	cc                   	int3
405f96:	cc                   	int3
405f97:	cc                   	int3
405f98:	cc                   	int3
405f99:	cc                   	int3
405f9a:	cc                   	int3
405f9b:	cc                   	int3
405f9c:	cc                   	int3
405f9d:	cc                   	int3
405f9e:	cc                   	int3
405f9f:	cc                   	int3
405fa0:	8b ff                	mov    %edi,%edi
405fa2:	55                   	push   %ebp
405fa3:	8b ec                	mov    %esp,%ebp
405fa5:	8b 4d 08             	mov    0x8(%ebp),%ecx
405fa8:	8d 49 04             	lea    0x4(%ecx),%ecx
405fab:	e8 92 ff ff ff       	call   0x405f42
405fb0:	5d                   	pop    %ebp
405fb1:	c2 04 00             	ret    $0x4
405fb4:	8b ff                	mov    %edi,%edi
405fb6:	56                   	push   %esi
405fb7:	8d 71 04             	lea    0x4(%ecx),%esi
405fba:	c7 01 50 16 40 00    	movl   $0x401650,(%ecx)
405fc0:	8b ce                	mov    %esi,%ecx
405fc2:	e8 7b ff ff ff       	call   0x405f42
405fc7:	8b ce                	mov    %esi,%ecx
405fc9:	e8 74 ff ff ff       	call   0x405f42
405fce:	8b ce                	mov    %esi,%ecx
405fd0:	5e                   	pop    %esi
405fd1:	e9 3c ff ff ff       	jmp    0x405f12
405fd6:	8b ff                	mov    %edi,%edi
405fd8:	55                   	push   %ebp
405fd9:	8b ec                	mov    %esp,%ebp
405fdb:	53                   	push   %ebx
405fdc:	8b da                	mov    %edx,%ebx
405fde:	56                   	push   %esi
405fdf:	33 f6                	xor    %esi,%esi
405fe1:	8d 53 ff             	lea    -0x1(%ebx),%edx
405fe4:	85 d2                	test   %edx,%edx
405fe6:	74 30                	je     0x406018
405fe8:	57                   	push   %edi
405fe9:	8b 7d 08             	mov    0x8(%ebp),%edi
405fec:	0f b7 07             	movzwl (%edi),%eax
405fef:	66 85 c0             	test   %ax,%ax
405ff2:	74 23                	je     0x406017
405ff4:	66 89 04 71          	mov    %ax,(%ecx,%esi,2)
405ff8:	6a 27                	push   $0x27
405ffa:	58                   	pop    %eax
405ffb:	66 39 07             	cmp    %ax,(%edi)
405ffe:	75 0f                	jne    0x40600f
406000:	8d 43 fe             	lea    -0x2(%ebx),%eax
406003:	3b f0                	cmp    %eax,%esi
406005:	73 08                	jae    0x40600f
406007:	46                   	inc    %esi
406008:	6a 27                	push   $0x27
40600a:	58                   	pop    %eax
40600b:	66 89 04 71          	mov    %ax,(%ecx,%esi,2)
40600f:	83 c7 02             	add    $0x2,%edi
406012:	46                   	inc    %esi
406013:	3b f2                	cmp    %edx,%esi
406015:	72 d5                	jb     0x405fec
406017:	5f                   	pop    %edi
406018:	33 c0                	xor    %eax,%eax
40601a:	66 89 04 71          	mov    %ax,(%ecx,%esi,2)
40601e:	5e                   	pop    %esi
40601f:	5b                   	pop    %ebx
406020:	5d                   	pop    %ebp
406021:	c2 04 00             	ret    $0x4
406024:	8b ff                	mov    %edi,%edi
406026:	55                   	push   %ebp
406027:	8b ec                	mov    %esp,%ebp
406029:	56                   	push   %esi
40602a:	8b f1                	mov    %ecx,%esi
40602c:	8b 4d 08             	mov    0x8(%ebp),%ecx
40602f:	e8 25 00 00 00       	call   0x406059
406034:	8d 04 45 02 00 00 00 	lea    0x2(,%eax,2),%eax
40603b:	50                   	push   %eax
40603c:	ff 75 08             	push   0x8(%ebp)
40603f:	68 14 04 00 00       	push   $0x414
406044:	56                   	push   %esi
406045:	ff 15 ec f1 40 00    	call   *0x40f1ec
40604b:	83 c4 10             	add    $0x10,%esp
40604e:	f7 d8                	neg    %eax
406050:	1a c0                	sbb    %al,%al
406052:	fe c0                	inc    %al
406054:	5e                   	pop    %esi
406055:	5d                   	pop    %ebp
406056:	c2 04 00             	ret    $0x4
406059:	85 c9                	test   %ecx,%ecx
40605b:	75 03                	jne    0x406060
40605d:	33 c0                	xor    %eax,%eax
40605f:	c3                   	ret
406060:	8d 51 02             	lea    0x2(%ecx),%edx
406063:	66 8b 01             	mov    (%ecx),%ax
406066:	83 c1 02             	add    $0x2,%ecx
406069:	66 85 c0             	test   %ax,%ax
40606c:	75 f5                	jne    0x406063
40606e:	2b ca                	sub    %edx,%ecx
406070:	d1 f9                	sar    $1,%ecx
406072:	8b c1                	mov    %ecx,%eax
406074:	c3                   	ret
406075:	8b ff                	mov    %edi,%edi
406077:	56                   	push   %esi
406078:	8b f1                	mov    %ecx,%esi
40607a:	ff 36                	push   (%esi)
40607c:	ff 15 fc f1 40 00    	call   *0x40f1fc
406082:	83 26 00             	andl   $0x0,(%esi)
406085:	59                   	pop    %ecx
406086:	5e                   	pop    %esi
406087:	c3                   	ret
406088:	8b ff                	mov    %edi,%edi
40608a:	55                   	push   %ebp
40608b:	8b ec                	mov    %esp,%ebp
40608d:	56                   	push   %esi
40608e:	8b f1                	mov    %ecx,%esi
406090:	6a 04                	push   $0x4
406092:	8b 46 08             	mov    0x8(%esi),%eax
406095:	40                   	inc    %eax
406096:	50                   	push   %eax
406097:	ff 36                	push   (%esi)
406099:	ff 15 44 15 40 00    	call   *0x401544
40609f:	83 c4 0c             	add    $0xc,%esp
4060a2:	85 c0                	test   %eax,%eax
4060a4:	74 48                	je     0x4060ee
4060a6:	89 06                	mov    %eax,(%esi)
4060a8:	8b 46 08             	mov    0x8(%esi),%eax
4060ab:	6a 04                	push   $0x4
4060ad:	40                   	inc    %eax
4060ae:	50                   	push   %eax
4060af:	ff 76 04             	push   0x4(%esi)
4060b2:	ff 15 44 15 40 00    	call   *0x401544
4060b8:	83 c4 0c             	add    $0xc,%esp
4060bb:	85 c0                	test   %eax,%eax
4060bd:	74 2f                	je     0x4060ee
4060bf:	8b 56 08             	mov    0x8(%esi),%edx
4060c2:	8b 0e                	mov    (%esi),%ecx
4060c4:	c1 e2 02             	shl    $0x2,%edx
4060c7:	89 46 04             	mov    %eax,0x4(%esi)
4060ca:	03 ca                	add    %edx,%ecx
4060cc:	74 0a                	je     0x4060d8
4060ce:	8b 45 08             	mov    0x8(%ebp),%eax
4060d1:	8b 00                	mov    (%eax),%eax
4060d3:	89 01                	mov    %eax,(%ecx)
4060d5:	8b 46 04             	mov    0x4(%esi),%eax
4060d8:	8d 0c 02             	lea    (%edx,%eax,1),%ecx
4060db:	85 c9                	test   %ecx,%ecx
4060dd:	74 07                	je     0x4060e6
4060df:	8b 45 0c             	mov    0xc(%ebp),%eax
4060e2:	8b 00                	mov    (%eax),%eax
4060e4:	89 01                	mov    %eax,(%ecx)
4060e6:	ff 46 08             	incl   0x8(%esi)
4060e9:	33 c0                	xor    %eax,%eax
4060eb:	40                   	inc    %eax
4060ec:	eb 02                	jmp    0x4060f0
4060ee:	33 c0                	xor    %eax,%eax
4060f0:	5e                   	pop    %esi
4060f1:	5d                   	pop    %ebp
4060f2:	c2 08 00             	ret    $0x8
4060f5:	6a 24                	push   $0x24
4060f7:	b8 67 a5 40 00       	mov    $0x40a567,%eax
4060fc:	e8 36 3d 00 00       	call   0x409e37
406101:	89 4d d0             	mov    %ecx,-0x30(%ebp)
406104:	8b 45 08             	mov    0x8(%ebp),%eax
406107:	85 c0                	test   %eax,%eax
406109:	0f 84 42 01 00 00    	je     0x406251
40610f:	83 7d 0c 00          	cmpl   $0x0,0xc(%ebp)
406113:	0f 84 38 01 00 00    	je     0x406251
406119:	8b c8                	mov    %eax,%ecx
40611b:	33 f6                	xor    %esi,%esi
40611d:	8b de                	mov    %esi,%ebx
40611f:	6a 02                	push   $0x2
406121:	89 5d e0             	mov    %ebx,-0x20(%ebp)
406124:	8d 51 02             	lea    0x2(%ecx),%edx
406127:	5f                   	pop    %edi
406128:	66 8b 01             	mov    (%ecx),%ax
40612b:	03 cf                	add    %edi,%ecx
40612d:	66 3b c6             	cmp    %si,%ax
406130:	75 f6                	jne    0x406128
406132:	2b ca                	sub    %edx,%ecx
406134:	89 75 ec             	mov    %esi,-0x14(%ebp)
406137:	d1 f9                	sar    $1,%ecx
406139:	89 75 fc             	mov    %esi,-0x4(%ebp)
40613c:	8d 04 4d 02 00 00 00 	lea    0x2(,%ecx,2),%eax
406143:	33 c9                	xor    %ecx,%ecx
406145:	89 45 d8             	mov    %eax,-0x28(%ebp)
406148:	f7 e7                	mul    %edi
40614a:	0f 90 c1             	seto   %cl
40614d:	f7 d9                	neg    %ecx
40614f:	0b c8                	or     %eax,%ecx
406151:	51                   	push   %ecx
406152:	e8 f2 2b 00 00       	call   0x408d49
406157:	59                   	pop    %ecx
406158:	89 45 ec             	mov    %eax,-0x14(%ebp)
40615b:	eb 10                	jmp    0x40616d
40615d:	b8 63 61 40 00       	mov    $0x406163,%eax
406162:	c3                   	ret
406163:	8b 45 ec             	mov    -0x14(%ebp),%eax
406166:	33 f6                	xor    %esi,%esi
406168:	6a 02                	push   $0x2
40616a:	5f                   	pop    %edi
40616b:	8b de                	mov    %esi,%ebx
40616d:	89 45 e4             	mov    %eax,-0x1c(%ebp)
406170:	8b 4d 0c             	mov    0xc(%ebp),%ecx
406173:	89 7d fc             	mov    %edi,-0x4(%ebp)
406176:	8b f8                	mov    %eax,%edi
406178:	89 7d dc             	mov    %edi,-0x24(%ebp)
40617b:	e8 d9 fe ff ff       	call   0x406059
406180:	33 c9                	xor    %ecx,%ecx
406182:	89 75 e8             	mov    %esi,-0x18(%ebp)
406185:	6a 02                	push   $0x2
406187:	5a                   	pop    %edx
406188:	8d 04 45 02 00 00 00 	lea    0x2(,%eax,2),%eax
40618f:	c6 45 fc 03          	movb   $0x3,-0x4(%ebp)
406193:	89 45 d4             	mov    %eax,-0x2c(%ebp)