Created
July 20, 2011 18:19
-
-
Save ProdigySim/1095550 to your computer and use it in GitHub Desktop.
objdump of CVomit::UpdateAbility() + proposed patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/opt/srcds/left4dead2/left4dead2/bin/server.so: file format elf32-i386 | |
Disassembly of section .text: | |
002af3f2 <_ZN6CVomit13UpdateAbilityEv>: | |
- snip - | |
2af6dd: 8d 50 08 lea edx,[eax+0x8] | |
2af6e0: 89 95 64 fe ff ff mov DWORD PTR [ebp-0x19c],edx | |
2af6e6: 8b 45 b8 mov eax,DWORD PTR [ebp-0x48] | |
2af6e9: 89 45 94 mov DWORD PTR [ebp-0x6c],eax | |
2af6ec: 8b 45 bc mov eax,DWORD PTR [ebp-0x44] | |
2af6ef: 89 45 98 mov DWORD PTR [ebp-0x68],eax | |
2af6f2: 8b 45 c0 mov eax,DWORD PTR [ebp-0x40] | |
2af6f5: 89 45 9c mov DWORD PTR [ebp-0x64],eax | |
2af6f8: 8b 8b fc f4 ff ff mov ecx,DWORD PTR [ebx-0xb04] ; replace with mov eax, 3D088889h (0.0333335); NOP : b8 89 88 08 3d 90 | |
2af6fe: 8b 01 mov eax,DWORD PTR [ecx] ; replace with NOP; NOP; 90 90 | |
2af700: d9 40 10 fld DWORD PTR [eax+0x10] ; replace with fld eax; NOP; : d9 c0 90 | |
2af703: d9 85 7c fe ff ff fld DWORD PTR [ebp-0x184] | |
2af709: d8 c9 fmul st,st(1) | |
2af70b: d8 45 bc fadd DWORD PTR [ebp-0x44] | |
2af70e: d9 85 78 fe ff ff fld DWORD PTR [ebp-0x188] | |
2af714: d8 ca fmul st,st(2) | |
2af716: d8 45 c0 fadd DWORD PTR [ebp-0x40] | |
2af719: d9 ca fxch st(2) | |
2af71b: d8 8d 80 fe ff ff fmul DWORD PTR [ebp-0x180] | |
2af721: d8 45 b8 fadd DWORD PTR [ebp-0x48] | |
2af724: d9 5d b8 fstp DWORD PTR [ebp-0x48] | |
2af727: d9 5d bc fstp DWORD PTR [ebp-0x44] | |
2af72a: d9 5d c0 fstp DWORD PTR [ebp-0x40] | |
2af72d: d9 85 70 fe ff ff fld DWORD PTR [ebp-0x190] | |
2af733: d8 40 10 fadd DWORD PTR [eax+0x10] ; replace with fadd eax; NOP : d8 c0 90 | |
2af736: d9 95 70 fe ff ff fst DWORD PTR [ebp-0x190] | |
2af73c: d9 85 60 fe ff ff fld DWORD PTR [ebp-0x1a0] | |
2af742: d9 c9 fxch st(1) | |
2af744: df e9 fucomip st,st(1) | |
2af746: dd d8 fstp st(0) | |
2af748: 0f 87 5e 06 00 00 ja 2afdac <_ZN6CVomit13UpdateAbilityEv+0x9ba> | |
2af74e: 8b 83 a8 c6 08 00 mov eax,DWORD PTR [ebx+0x8c6a8] | |
2af754: 8b 48 30 mov ecx,DWORD PTR [eax+0x30] | |
2af757: 85 c9 test ecx,ecx | |
2af759: 0f 85 f7 04 00 00 jne 2afc56 | |
-snip- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment