Tuesday, July 2, 2013

Desperados : Wanted Dead or Alive - WAVE Resource

Inside .res file there is 'WAVE' (0x45564157) entry resources.
Those resources can be managed like TEXT, the only difference is that string are not of type wchar_t.

WAVE specification

 +0x00 : Unknow_00 (Maybe index)  
 +0x04 : Nb entry Text  
 +0x06 : Size Entry  
 +0x08 : Buffer [Size Entry]   

Pseudo-Code

  magic_number = read(4)    
  unknow = read(4)    
  if (magic_number == 0x45564157):    
   unknow = read(4)    
   nb_TEXT_entry = read(2)    
   for i in xrange(0, nb_TEXT_entry ):    
   size_str = read(2)    
   str = read(size_str)  
Few extracted path :
 Dialogues\Phase1.wav  
 Dialogues\Phase2.wav  
 Dialogues\Phase3.wav  
 Dialogues\Phase4.wav  
 Dialogues\Phase5.wav  
 Dialogues\Phase6.wav  
 Dialogues\Phase7.wav  
 Dialogues\Phase8.wav  
 Dialogues\Phase9.wav  
 Dialogues\PhaseFake.wav  

No comments:

Post a Comment