-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhead.S
116 lines (96 loc) · 2.39 KB
/
head.S
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
#define VER10
#define FUNC(name) \
.global name; \
.type name, %function; \
name:
.section .text
.arm
_text_start:
FUNC(jmp_HookOpenDataContent)
ldr pc, =HookOpenDataContent
FUNC(jmp_HookGetAddOnContentRequiredMemorySize)
ldr pc, =HookGetAddOnContentRequiredMemorySize
FUNC(jmp_HookGetNumContentInfos)
ldr pc, =HookGetNumContentInfos
FUNC(jmp_HookApplicationControl$$ListContentInfos)
ldr pc, =HookApplicationControl$$ListContentInfos
FUNC(OpenDataContent)
stmfd sp!, {r0-r11,lr}
ldr pc, OpenDataContentAddress
FUNC(GetAddOnContentRequiredMemorySize)
stmfd sp!, {r4,lr}
ldr pc, GetAddOnContentRequiredMemorySizeAddress
FUNC(GetNumContentInfos)
stmfd sp!, {r0-r6,lr}
ldr pc, GetNumContentInfosAddress
FUNC(ApplicationControl$$ListContentInfos)
stmfd sp!, {r4,r5,lr}
ldr pc, ApplicationControl$$ListContentInfosAddress
FUNC(Read)
ldr pc, ReadAddress
FUNC(Close)
ldr pc, CloseAddress
FUNC(ContentRomFsArchive$$AllocateBuffer)
ldr pc, ContentRomFsArchive$$AllocateBufferAddress
FUNC(ContentRomFsArchive$$ContentRomFsArchive)
ldr pc, ContentRomFsArchive$$ContentRomFsArchiveAddress
FUNC(RomFsArchive$$Initialize)
ldr pc, RomFsArchive$$InitializeAddress
FUNC(OpenFileDirectly)
ldr pc, OpenFileDirectlyAddress
FUNC(sprintf_s)
ldr pc, sprintf_sAddress
#ifdef VER10
OpenDataContentAddress:
.word 0x12A6D4
GetAddOnContentRequiredMemorySizeAddress:
.word 0x22FC0C
GetNumContentInfosAddress:
.word 0x22AB50
ApplicationControl$$ListContentInfosAddress:
.word 0x22A90C
ReadAddress:
.word 0x2315E8
CloseAddress:
.word 0x231640
ContentRomFsArchive$$AllocateBufferAddress:
.word 0x12A91C
ContentRomFsArchive$$ContentRomFsArchiveAddress:
.word 0x12AA04
RomFsArchive$$InitializeAddress:
.word 0x12A2C4
OpenFileDirectlyAddress:
.word 0x120188
sprintf_sAddress:
.word 0x3A7EB8
.global FsuHandleRef;
FsuHandleRef:
.word 0x6DC298
#endif
#ifdef VER11
OpenDataContentAddress:
.word 0x0012AD14
GetAddOnContentRequiredMemorySizeAddress:
.word 0x0023010C
GetNumContentInfosAddress:
.word 0x0022B050
ApplicationControl$$ListContentInfosAddress:
.word 0x0022AE0C
ReadAddress:
.word 0x00231AE8
CloseAddress:
.word 0x00231B40
ContentRomFsArchive$$AllocateBufferAddress:
.word 0x001209DC
ContentRomFsArchive$$ContentRomFsArchiveAddress:
.word 0x00120AC4
RomFsArchive$$InitializeAddress:
.word 0x00120454
OpenFileDirectlyAddress:
.word 0x00120BA8
sprintf_sAddress:
.word 0x003A83B0
.global FsuHandleRef;
FsuHandleRef:
.word 0x006DD2C0
#endif