SHARE
TWEET

Untitled

MaKiPL Mar 17th, 2017 105 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. alloc(newmem,2048)
  2. alloc(AKAO, 65535)
  3. label(returnhere)
  4. label(exit)
  5.  
  6. newmem:
  7. PUSH 00000002 //1
  8. CALL FF8.exe+685E0
  9. ADD esp, 04
  10. test eax, eax
  11. JNE debugout //outputTestString
  12. PUSH 00000003 //2
  13. CALL FF8.exe+685E0
  14. ADD esp, 04
  15. test eax, eax
  16. JNE playMusicTest //PlayMusic at AKAO+4
  17. PUSH 00000004 //3
  18. CALL FF8.exe+685E0
  19. ADD esp, 04
  20. test eax, eax
  21. JNE AddSong //INC low byte reg at [AKAO+4]
  22. PUSH 00000005
  23. CALL FF8.exe+685E0
  24. ADD esp, 04
  25. test eax, eax
  26. JNE DelSong //DEC low byte reg at [AKAO+4]
  27. JMP exit
  28.  
  29.  
  30. playMusicTest:
  31. PUSH EAX
  32. MOV [AKAO], 4F414B41
  33. XOR EAX, EAX
  34. //MOV AL, 01
  35. PUSH EBX
  36. XOR EBX, EBX
  37. MOV EBX, AKAO
  38. ADD EBX, 4
  39. //MOV [EBX], AL
  40. PUSH AKAO
  41. CALL 46B500
  42. ADD ESP, 0C
  43. MOV EBX, 0
  44. JMP exit
  45.  
  46. AddSong:
  47. XOR EAX, EAX
  48. MOV AL, [AKAO+4]
  49. INC AL
  50. MOV [AKAO+4], AL
  51. JMP exit
  52.  
  53. DelSong:
  54. XOR EAX, EAX
  55. MOV AL, [AKAO+4]
  56. DEC AL
  57. MOV [AKAO+4], AL
  58. JMP exit
  59.  
  60. debugout:
  61. PUSH EAX
  62. LEA EAX, [00B811FC] //CHOCOBO
  63. PUSH EAX
  64. CALL 403D99 //OutputDebugString_1
  65. POP EAX
  66. ADD ESP, 04
  67. JMP exit
  68. exit:
  69. push 0000009D
  70. jmp returnhere
  71.  
  72. "FF8.exe"+A2CA0:
  73. jmp newmem
  74. returnhere:
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top