Update and rename miscapi.asm to mainapi.asm