-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdllmain.cpp
67 lines (49 loc) · 2.81 KB
/
dllmain.cpp
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
#include <VALORANT/VALORANT.h>
/*
this art only showing up properly on vs not on github lol im too lazy to fix fuck off
'."""""""""""""""""`.
`. ... `.
`. / `. `.
.'"":_ :"""""".'|
.'//)/) ` (/)/)).' |
.'/)_/"" __ ""\.' |
|"""(((""""((("""| |
|| | "" "" | |
|| | | '
_|| | BANANAESSZ | .' ME :D <-----------------------------> VALORANT E-GIRLS <3
/__3 | | .'
/ /|| YOU | |' _______________ |*\_/*|________
/ / // .--. """"""""""""""""" | ___________ | .-. .-. ||_/-\_|______ |
\ \// / (OO) | | C:\>_ | | .****. .****. | | | |
\// |( _ ) | | 0 0 | | .*****.*****. | | 0 0 | |
// \__/`-'\__ Hopefully some monkey finds this useful. | | - | | .*********. | | - | |
// \__ _ \ | | \___/ | | .*******. | | \___/ | |
_.-'/ | ._._.|\ \ I'm so sleepy. | |___ ___| | .*****. | |___________| |
(_.-' | \ \ \ |_____|\_/|_____| .***. |_______________|
.-._ / o ) / / I go to sleep now, goodnight. _|__|/ \|_|_.............*.............._|________|_
/_ \ \ / \__/ / / / ********** \ / ********** \
\ \_/ / / |_/ / ************ \ / ************ \
\ / / -------------------- --------------------
`-._/-'
*/
BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved)
{
if (ul_reason_for_call != DLL_PROCESS_ATTACH) return FALSE;
BaseAddress = reinterpret_cast<uintptr_t>(GetModuleHandleA(NULL));
if (!BaseAddress) return FALSE;
NamePoolData = reinterpret_cast<FNamePool*>(BaseAddress + NamePoolDataOffset);
FName NoneFName(0);
std::string None = NoneFName.GetName();
if (None != "None") return FALSE;
ImSorryForTheQualityOfThis LOG(FileName);
FNameEntryAllocator Entries = NamePoolData->Entries;
LOG.LogToFile("[ (*^-^*) Kinda Sorta Some Information ]\n");
LOG.LogToFile("Base Address ", BaseAddress);
LOG.LogToFile("FNamePool* NamePoolData ", NamePoolData);
LOG.LogToFile("Entries.CurrentBlock " + std::to_string(Entries.CurrentBlock));
LOG.LogToFile("Entries.CurrentByteCursor " + std::to_string(Entries.CurrentByteCursor));
LOG.LogToFile("Entries.Blocks ", Entries.Blocks);
LOG.LogToFile("\n[ End Of Kinda Sorta Some Information `(°.°)` ]\n");
NamePoolData->Entries.Log(LOG);
return TRUE;
}