In Malaysia, the last batch of the E39 rolled out in 2003 and replaced by the E60 in 2004. Depends on your budget, you could get the M54 engine, 520i (2.2 litre) for about RM 105-115k (Year 2002-2003) or the 525i for RM 120-130k (Year 2002-2003)
Cheers