Skip to content

Instantly share code, notes, and snippets.

@ProdigySim
Last active January 13, 2021 20:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ProdigySim/07d8c51126ba71fd10767f20df67f900 to your computer and use it in GitHub Desktop.
Save ProdigySim/07d8c51126ba71fd10767f20df67f900 to your computer and use it in GitHub Desktop.
Previous iteration of sgspread patch
0: 8d 8d 54 ff ff ff lea ecx,[ebp-0xac]
6: f3 0f 11 01 movss DWORD PTR [ecx],xmm0
a: 8b 55 20 mov edx,DWORD PTR [ebp+0x20]
d: 8b c4 mov eax,esp
f: 83 fa 04 cmp edx,0x4 ; "Bullet offset 0"
12: 7f 02 jg 0x16
14: eb 16 jmp 0x2c
16: 89 10 mov DWORD PTR [eax],edx
18: 01 38 add DWORD PTR [eax],edi
1a: 83 28 05 sub DWORD PTR [eax],0x5 ; "Bullet offset 1"
1d: db 00 fild DWORD PTR [eax]
1f: c7 00 00 00 34 43 mov DWORD PTR [eax],0x43340000
25: d8 38 fdivr DWORD PTR [eax]
27: 83 ea 05 sub edx,0x5 ; "Bullet offset 2"
2a: eb 17 jmp 0x43
2c: c7 00 02 00 00 00 mov DWORD PTR [eax],0x2 ; "Factor offset"
32: db 00 fild DWORD PTR [eax]
34: d8 39 fdivr DWORD PTR [ecx]
36: d9 19 fstp DWORD PTR [ecx]
38: 83 ea 02 sub edx,0x2
3b: c7 00 00 00 70 42 mov DWORD PTR [eax],0x42700000 ; "Bullet offset 3" ???
41: d9 00 fld DWORD PTR [eax]
43: 89 10 mov DWORD PTR [eax],edx
45: da 08 fimul DWORD PTR [eax]
47: 6a 2d push 0x2d
49: 8f 00 pop DWORD PTR [eax]
4b: da 00 fiadd DWORD PTR [eax]
4d: d9 95 3c ff ff ff fst DWORD PTR [ebp-0xc4]
53: 90 nop
54: 90 nop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment