-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCashgrabStuff.h
69 lines (61 loc) · 1.24 KB
/
CashgrabStuff.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#include "stdio.h"
#include "InGameFunctions.h"
void __declspec(naked) CashgrabLeaderboardCodeCave()
{
_asm
{
originalcode:
call GRaceParameters_GetRaceType
cmp eax, 07
jz doCashGrabLeaderboard
push 0x58C32A
retn
doCashGrabLeaderboard :
fld dword ptr ds : [edi + 0x5C] // get points
mov edx, [ebx]
sub esp, 8
fstp qword ptr ds : [esp] // points
push 0x0089D89C //"%$0.0f"
push edx // leaderboard string
call FEPrintf_FEString
add esp, 0x10
jump_58C46E :
push 0x58C46E
retn
}
}
void __declspec(naked) CashgrabTrackSelectCodeCave()
{
_asm
{
call GRaceParameters_GetRaceType
cmp eax, 07
je cashgrab
mov ecx, [esi + 0x108]
call GRaceParameters_GetRaceType
push 0x7AB211
retn
cashgrab :
fld dword ptr ds : [edi + 8]
//fmul ds : 0x8A0294
fstp dword ptr ds : [esp + 0x0C]
mov ecx, [esi + 0x10]
push 0xCF2BDD31 // HIGHEST_CASH_HEADER
push 0x28462C64 // Text object
push ecx
call FEngSetLanguageHash
fld dword ptr ds : [esp + 0x18]
mov edx, [esi + 0x10]
add esp, 0x0C
push ebx
sub esp, 0x8
fstp qword ptr ds : [esp]
push 0x89D89C // "%$0.0f"
push 0xB515499C // Text object
push edx
call FEPrintf
add esp, 0x18
push 0x7AB2E0
retn
}
}