... but I am not sure how to set the keyspace, could anyone tell me how to do a btc address analysis to get the right keyspace?
I think you fell to XY problem. As @HCP mentioned, what kind of file/information do you have? Perhaps wallet file, part of seed/mnemonic/private key or credential for online wallet?