Guest User

Untitled

a guest
Dec 12th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.65 KB | None | 0 0
  1. chosen_formula = dword ptr -4
  2. .text:005D173F
  3. .text:005D173F push ebp
  4. .text:005D1740 mov ebp, esp
  5. .text:005D1742 sub esp, 0Ch
  6. .text:005D1745 mov eax, BattleContextPtr
  7. .text:005D174A mov ecx, [eax+0A0h]
  8. .text:005D1750 mov edx, dword_C069C0[ecx*4]
  9. .text:005D1757 mov [ebp+var_8], edx
  10. .text:005D175A mov eax, BattleContextPtr
  11. .text:005D175F mov ecx, [eax+0A4h]
  12. .text:005D1765 mov edx, FormulaPtrTable[ecx*4]
  13. .text:005D176C mov [ebp+chosen_formula], edx
  14. .text:005D176F
  15. .text:005D176F loc_5D176F: ; CODE XREF: ChooseDamageFormula+59↓j
  16. .text:005D176F mov eax, [ebp+var_8]
  17. .text:005D1772 xor ecx, ecx
  18. .text:005D1774 mov cl, ds:byte_7B7700[eax]
  19. .text:005D177A mov [ebp+var_C], ecx
  20. .text:005D177D mov edx, [ebp+var_C]
  21. .text:005D1780 mov eax, [ebp+var_8]
  22. .text:005D1783 add eax, 1
  23. .text:005D1786 mov [ebp+var_8], eax
  24. .text:005D1789 cmp edx, 8
  25. .text:005D178C jz short loc_5D179A
  26. .text:005D178E mov ecx, [ebp+var_C]
  27. .text:005D1791 call ds:off_7B77A8[ecx*4]
  28. .text:005D1798 jmp short loc_5D176F
  29. .text:005D179A ; ---------------------------------------------------------------------------
  30. .text:005D179A
  31. .text:005D179A loc_5D179A: ; CODE XREF: ChooseDamageFormula+4D↑j
  32. .text:005D179A mov edx, BattleContextPtr
  33. .text:005D17A0 cmp dword ptr [edx+48h], 0
  34. .text:005D17A4 jz short loc_5D17C3
  35. .text:005D17A6 cmp [ebp+chosen_formula], 0
  36. .text:005D17AA jz short loc_5D17C3
  37. .text:005D17AC push 0
  38. .text:005D17AE call BigBattleContextSetup?
  39. .text:005D17B3 add esp, 4
  40. .text:005D17B6 call [ebp+chosen_formula]
  41. .text:005D17B9 push 1
  42. .text:005D17BB call BigBattleContextSetup?
  43. .text:005D17C0 add esp, 4
  44. .text:005D17C3
  45. .text:005D17C3 loc_5D17C3: ; CODE XREF: ChooseDamageFormula+65↑j
  46. .text:005D17C3 ; ChooseDamageFormula+6B↑j
  47. .text:005D17C3 mov esp, ebp
  48. .text:005D17C5 pop ebp
  49. .text:005D17C6 retn
  50. .text:005D17C6 ChooseDamageFormula endp
Add Comment
Please, Sign In to add comment