// This file was decompiled using SASCM.INI published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 27.05.2007

{$VERSION 3.1.0023}
{$E}

//-------------MAIN---------------
0000: NOP 

:Noname_2
0001: wait 100 ms 
00D6: if 
0AA2: 1@ = load_library "CLEO/MP3Player/MP3Dll.dll" // IF and SET 
004D: jump_if_false @Noname_96 
0AA4: 2@ = get_proc_address "PowerOFF" library 1@ // IF and SET 
0001: wait 100 ms 
0AA5: call 2@ 0 pop 0 
0001: wait 100 ms 
0AA3: free_library 1@ 
0002: jump @Noname_103 

:Noname_96
0002: jump @Noname_2 

:Noname_103
087B: set_player $PLAYER_CHAR clothes_texture "dogtag" model "neck" body_part 13 
070D: rebuild_player $PLAYER_CHAR 
0006: 0@ = 304500 

:Noname_139
0001: wait 100 ms 
09A9: get_shopping_item_with_texturename "dogtag" itemID_to 10@ // 16-byte strings 
08F7: get_player $PLAYER_CHAR bodypart 13 shopping_itemID_to 11@ model_to 12@ 
00D6: if and
0038:   &0(0@,1i) == 255 
003B:   10@ == 11@ // (int) 
004D: jump_if_false @Noname_139 
00D6: if 
0AA2: 1@ = load_library "CLEO/MP3Player/MP3Dll.dll" // IF and SET 
004D: jump_if_false @Noname_418 
0AA4: 2@ = get_proc_address "PowerON" library 1@ // IF and SET 
0001: wait 100 ms 
0AA5: call 2@ 0 pop 0 
0001: wait 100 ms 
0AA3: free_library 1@ 
0A9F: 33@ = current_thread_pointer 
000A: 33@ += 16 
0A8D: 33@ = read_memory 33@ size 4 virtual_protect 0 
000E: 33@ -= -635 
000A: 33@ += 4 
0A92: create_custom_thread "ShowTextBox.s" 33@  
0001: wait 2500 ms 
0A9F: 33@ = current_thread_pointer 
000A: 33@ += 16 
0A8D: 33@ = read_memory 33@ size 4 virtual_protect 0 
000E: 33@ -= -670 
000A: 33@ += 4 
0A92: create_custom_thread "ShowTextBox.s" 33@  
0002: jump @Noname_425 

:Noname_418
0002: jump @Noname_139 

:Noname_425
0001: wait 2000 ms 

:Noname_430
0001: wait 100 ms 
00D6: if or
0038:   &0(0@,1i) == 16711680 
0118:   actor $PLAYER_ACTOR dead 
8256:   not player $PLAYER_CHAR defined 
004D: jump_if_false @Noname_430 
00D6: if 
0AA2: 1@ = load_library "CLEO/MP3Player/MP3Dll.dll" // IF and SET 
004D: jump_if_false @Noname_621 
0AA4: 2@ = get_proc_address "PowerOFF" library 1@ // IF and SET 
0001: wait 100 ms 
0A9F: 33@ = current_thread_pointer 
000A: 33@ += 16 
0A8D: 33@ = read_memory 33@ size 4 virtual_protect 0 
000E: 33@ -= -684 
000A: 33@ += 4 
0A92: create_custom_thread "ShowTextBox.s" 33@  
0AA5: call 2@ 0 pop 0 
0001: wait 100 ms 
0AA3: free_library 1@ 
0002: jump @Noname_628 

:Noname_621
0002: jump @Noname_430 

:Noname_628
0002: jump @Noname_139 
0900: unknown_set_object "MP3 Player v 1.1 by Alexander" 
0000: NOP 
0900: unknown_set_object "Power on" 
0000: NOP 
0900: unknown_set_object "Power off" 
0000: NOP 
