forked from xsoma/saphire
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
403 lines (331 loc) · 17.1 KB
/
main.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
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
#include <ShlObj.h>
#include <ShlObj_core.h>
#include "includes.hpp"
#include "utils\ctx.hpp"
#include "utils\recv.h"
#include "utils\imports.h"
#include "nSkinz\SkinChanger.h"
#include "cheats/render.hpp"
#include "steam/steam_api.h"
enum error_type
{
ERROR_NONE,
ERROR_DEBUG,
ERROR_OPEN_KEY,
ERROR_QUERY_DATA,
ERROR_CONNECT,
ERROR_1,
ERROR_2,
ERROR_3,
ERROR_4,
ERROR_5,
ERROR_6,
ERROR_7,
ERROR_8,
ERROR_9,
ERROR_CHECK_HASH
};
PVOID base_address = nullptr;
//Anti_debugger anti_debugger;
volatile error_type error = ERROR_NONE;
LONG CALLBACK ExceptionHandler(EXCEPTION_POINTERS* ExceptionInfo);
__forceinline void crash(bool debug = false);
__forceinline void setup_render();
__forceinline void setup_netvars();
__forceinline void setup_skins();
__forceinline void setup_hooks();
__forceinline void setup_steam();
__forceinline void setup_steam()
{
typedef uint32_t SteamPipeHandle;
typedef uint32_t SteamUserHandle;
SteamUserHandle hSteamUser = ((SteamUserHandle(__cdecl*)(void))GetProcAddress(GetModuleHandle("steam_api.dll"), "SteamAPI_GetHSteamUser"))();
SteamPipeHandle hSteamPipe = ((SteamPipeHandle(__cdecl*)(void))GetProcAddress(GetModuleHandle("steam_api.dll"), "SteamAPI_GetHSteamPipe"))();
SteamClient = ((ISteamClient * (__cdecl*)(void))GetProcAddress(GetModuleHandle("steam_api.dll"), "SteamClient"))();
SteamGameCoordinator = (ISteamGameCoordinator*)SteamClient->GetISteamGenericInterface(hSteamUser, hSteamPipe, "SteamGameCoordinator001");
SteamUser = (ISteamUser*)SteamClient->GetISteamUser(hSteamUser, hSteamPipe, "SteamUser019");
SteamFriends = SteamClient->GetISteamFriends(hSteamUser, hSteamPipe, "SteamFriends015");
SteamUtils = SteamClient->GetISteamUtils(hSteamPipe, "SteamUtils009");
}
DWORD WINAPI main(PVOID base)
{
csgo.signatures =
{
crypt_str("A1 ? ? ? ? 50 8B 08 FF 51 0C"),
crypt_str("B9 ?? ?? ?? ?? A1 ?? ?? ?? ?? FF 10 A1 ?? ?? ?? ?? B9"),
crypt_str("0F 11 05 ?? ?? ?? ?? 83 C8 01"),
crypt_str("8B 0D ?? ?? ?? ?? 8B 46 08 68"),
crypt_str("B9 ? ? ? ? F3 0F 11 04 24 FF 50 10"),
crypt_str("8B 3D ? ? ? ? 85 FF 0F 84 ? ? ? ? 81 C7"),
crypt_str("A1 ? ? ? ? 8B 0D ? ? ? ? 6A 00 68 ? ? ? ? C6"),
crypt_str("80 3D ? ? ? ? ? 53 56 57 0F 85"),
crypt_str("55 8B EC 83 E4 F8 83 EC 18 56 57 8B F9 89 7C 24 0C"),
crypt_str("80 3D ? ? ? ? ? 74 06 B8"),
crypt_str("55 8B EC 83 E4 F0 B8 D8"),
crypt_str("55 8B EC 83 E4 F8 81 EC ? ? ? ? 53 56 8B F1 57 89 74 24 1C"),
crypt_str("55 8B EC 83 E4 F0 B8 ? ? ? ? E8 ? ? ? ? 56 8B 75 08 57 8B F9 85 F6"),
crypt_str("55 8B EC 51 56 8B F1 80 BE ? ? ? ? ? 74 36"),
crypt_str("56 8B F1 8B 8E ? ? ? ? 83 F9 FF 74 23"),
crypt_str("55 8B EC 83 E4 F8 83 EC 5C 53 8B D9 56 57 83"),
crypt_str("55 8B EC A1 ? ? ? ? 83 EC 10 56 8B F1 B9"),
crypt_str("57 8B F9 8B 07 8B 80 ? ? ? ? FF D0 84 C0 75 02"),
crypt_str("55 8B EC 81 EC ? ? ? ? 53 8B D9 89 5D F8 80"),
crypt_str("53 0F B7 1D ? ? ? ? 56"),
crypt_str("8B 0D ? ? ? ? 8D 95 ? ? ? ? 6A 00 C6"),
crypt_str("E8 ? ? ? ? 8B 0E 83 C1 10")
};
csgo.indexes =
{
5,
33,
339,
218,
219,
34,
157,
75,
460,
482,
452,
483,
284,
223,
246,
27,
17,
123
};
while (!IFH(GetModuleHandle)(crypt_str("serverbrowser.dll")))
std::this_thread::sleep_for(std::chrono::milliseconds(100));
base_address = base;
AllocConsole();
SetConsoleTitleA("saphire - bootstrapper");
if (!freopen(crypt_str("CONOUT$"), crypt_str("w"), stdout))
{
FreeConsole();
return EXIT_SUCCESS;
}
static TCHAR path[MAX_PATH];
std::string folder;
SHGetFolderPath(NULL, CSIDL_PERSONAL, NULL, NULL, path);
folder = std::string(path) + crypt_str("\\saphire\\");
CreateDirectory(folder.c_str(), 0);
std::cout << crypt_str("1. Setupping sounds\n");
Sleep(150);
setup_sounds();
std::cout << crypt_str("2. Setupping skins\n");
Sleep(150);
setup_skins();
std::cout << crypt_str("3. Setupping netvars\n");
Sleep(150);
setup_netvars();
std::cout << crypt_str("4. Setupping render\n");
Sleep(150);
setup_render();
std::cout << crypt_str("5. Setupping cfg system\n");
Sleep(150);
cfg_manager->setup();
std::cout << crypt_str("6. Setupping keybind system\n");
Sleep(150);
key_binds::get().initialize_key_binds();
std::cout << crypt_str("7. Setupping vmt hooks\n");
Sleep(150);
setup_hooks();
std::cout << crypt_str("8. Loading netvars\n");
Sleep(150);
Netvars::Netvars();
std::cout << crypt_str("9. Setupping steam api\n");
Sleep(150);
setup_steam();
//Render::get().Initialize();
SetConsoleTitleA("saphire - free hvh cheat");
std::cout << crypt_str("Done!");
std::this_thread::sleep_for(std::chrono::milliseconds(500));
FreeConsole();
return EXIT_SUCCESS;
}
BOOL WINAPI DllMain(HMODULE hModule, DWORD dwReason, LPVOID lpReserved)
{
if (dwReason == DLL_PROCESS_ATTACH)
{
IFH(DisableThreadLibraryCalls)(hModule);
auto current_process = IFH(GetCurrentProcess)();
auto priority_class = IFH(GetPriorityClass)(current_process);
if (priority_class != HIGH_PRIORITY_CLASS && priority_class != REALTIME_PRIORITY_CLASS)
IFH(SetPriorityClass)(current_process, HIGH_PRIORITY_CLASS);
CreateThread(nullptr, 0, main, hModule, 0, nullptr); //-V718 //-V513
}
return TRUE;
}
extern "C" NTSTATUS NTAPI RtlAdjustPrivilege(ULONG Privilege, BOOLEAN Enable, BOOLEAN CurrentThread, PBOOLEAN OldValue);
extern "C" NTSTATUS NTAPI NtRaiseHardError(LONG ErrorStatus, ULONG NumberOfParameters, ULONG UnicodeStringParameterMask, PULONG_PTR Parameters, ULONG ValidResponseOptions, PULONG Response);
__forceinline void crash(bool debug)
{
csgo.signatures.clear();
csgo.indexes.clear();
csgo.username.clear();
if (debug)
{
BOOLEAN OldValue;
RtlAdjustPrivilege(19, TRUE, FALSE, &OldValue);
ULONG Response;
NtRaiseHardError(STATUS_ASSERTION_FAILURE, 0, 0, nullptr, 6, &Response);
}
MODULEINFO module_info;
IFH(GetModuleInformation)(IFH(GetCurrentProcess)(), IFH(GetModuleHandle)(crypt_str("client.dll")), &module_info, sizeof(MODULEINFO));
auto address = (DWORD)module_info.lpBaseOfDll;
while (true) //-V776
{
*(DWORD*)(address) = 0;
++address;
}
}
__forceinline void setup_render()
{
static auto create_font = [](const char* name, int size, int weight, DWORD flags) -> vgui::HFont
{
csgo.last_font_name = name;
auto font = m_surface()->FontCreate();
m_surface()->SetFontGlyphSet(font, name, size, weight, 0, 0, flags);
return font;
};
fonts[LOGS] = create_font(crypt_str("Lucida Console"), 10, FW_MEDIUM, FONTFLAG_DROPSHADOW);
fonts[ESP] = create_font(crypt_str("Smallest Pixel-7"), 11, FW_MEDIUM, FONTFLAG_OUTLINE);
fonts[NAME] = create_font(crypt_str("Verdana"), 12, FW_MEDIUM, FONTFLAG_ANTIALIAS | FONTFLAG_DROPSHADOW);
fonts[SUBTABWEAPONS] = create_font(crypt_str("undefeated"), 13, FW_MEDIUM, FONTFLAG_ANTIALIAS | FONTFLAG_DROPSHADOW);
fonts[KNIFES] = create_font(crypt_str("icomoon"), 13, FW_MEDIUM, FONTFLAG_ANTIALIAS | FONTFLAG_DROPSHADOW);
fonts[GRENADES] = create_font(crypt_str("undefeated"), 20, FW_MEDIUM, FONTFLAG_ANTIALIAS | FONTFLAG_DROPSHADOW);
fonts[INDICATORFONT] = create_font(crypt_str("Verdana"), 25, FW_HEAVY, FONTFLAG_ANTIALIAS | FONTFLAG_DROPSHADOW);
fonts[DAMAGE_MARKER] = create_font(crypt_str("CrashNumberingGothic"), 15, FW_HEAVY, FONTFLAG_ANTIALIAS | FONTFLAG_OUTLINE);
csgo.last_font_name.clear();
}
__forceinline void setup_netvars()
{
netvars::get().tables.clear();
auto client = m_client()->GetAllClasses();
if (!client)
return;
while (client)
{
auto recvTable = client->m_pRecvTable;
if (recvTable)
netvars::get().tables.emplace(std::string(client->m_pNetworkName), recvTable);
client = client->m_pNext;
}
}
__forceinline void setup_skins()
{
auto items = std::ifstream(crypt_str("csgo/scripts/items/items_game_cdn.txt"));
auto gameItems = std::string(std::istreambuf_iterator <char> { items }, std::istreambuf_iterator <char> { });
if (!items.is_open())
return;
items.close();
memory.initialize();
for (auto i = 0; i <= memory.itemSchema()->paintKits.lastElement; i++)
{
auto paintKit = memory.itemSchema()->paintKits.memory[i].value;
if (paintKit->id == 9001)
continue;
auto itemName = m_localize()->FindSafe(paintKit->itemName.buffer + 1);
auto itemNameLength = WideCharToMultiByte(CP_UTF8, 0, itemName, -1, nullptr, 0, nullptr, nullptr);
if (std::string name(itemNameLength, 0); WideCharToMultiByte(CP_UTF8, 0, itemName, -1, &name[0], itemNameLength, nullptr, nullptr))
{
if (paintKit->id < 10000)
{
if (auto pos = gameItems.find('_' + std::string{ paintKit->name.buffer } + '='); pos != std::string::npos && gameItems.substr(pos + paintKit->name.length).find('_' + std::string{ paintKit->name.buffer } + '=') == std::string::npos)
{
if (auto weaponName = gameItems.rfind(crypt_str("weapon_"), pos); weaponName != std::string::npos)
{
name.back() = ' ';
name += '(' + gameItems.substr(weaponName + 7, pos - weaponName - 7) + ')';
}
}
SkinChanger::skinKits.emplace_back(paintKit->id, std::move(name), paintKit->name.buffer);
}
else
{
std::string_view gloveName{ paintKit->name.buffer };
name.back() = ' ';
name += '(' + std::string{ gloveName.substr(0, gloveName.find('_')) } + ')';
SkinChanger::gloveKits.emplace_back(paintKit->id, std::move(name), paintKit->name.buffer);
}
}
}
std::sort(SkinChanger::skinKits.begin(), SkinChanger::skinKits.end());
std::sort(SkinChanger::gloveKits.begin(), SkinChanger::gloveKits.end());
}
__forceinline void setup_hooks()
{
static auto getforeignfallbackfontname = (DWORD)(util::FindSignature(crypt_str("vguimatsurface.dll"), csgo.signatures.at(9).c_str()));
hooks::original_getforeignfallbackfontname = (DWORD)DetourFunction((PBYTE)getforeignfallbackfontname, (PBYTE)hooks::hooked_getforeignfallbackfontname); //-V206
static auto setupbones = (DWORD)(util::FindSignature(crypt_str("client.dll"), csgo.signatures.at(10).c_str()));
hooks::original_setupbones = (DWORD)DetourFunction((PBYTE)setupbones, (PBYTE)hooks::hooked_setupbones); //-V206
static auto doextrabonesprocessing = (DWORD)(util::FindSignature(crypt_str("client.dll"), csgo.signatures.at(11).c_str()));
hooks::original_doextrabonesprocessing = (DWORD)DetourFunction((PBYTE)doextrabonesprocessing, (PBYTE)hooks::hooked_doextrabonesprocessing); //-V206
static auto standardblendingrules = (DWORD)(util::FindSignature(crypt_str("client.dll"), csgo.signatures.at(12).c_str()));
hooks::original_standardblendingrules = (DWORD)DetourFunction((PBYTE)standardblendingrules, (PBYTE)hooks::hooked_standardblendingrules); //-V206
static auto updateclientsideanimation = (DWORD)(util::FindSignature(crypt_str("client.dll"), "55 8B EC 51 56 8B F1 80 BE ? ? ? ? ? 74 36"));
hooks::original_updateclientsideanimation = (DWORD)DetourFunction((PBYTE)updateclientsideanimation, (PBYTE)hooks::hooked_updateclientsideanimation); //-V206
static auto physicssimulate = (DWORD)(util::FindSignature(crypt_str("client.dll"), csgo.signatures.at(14).c_str()));
hooks::original_physicssimulate = (DWORD)DetourFunction((PBYTE)physicssimulate, (PBYTE)hooks::hooked_physicssimulate);
static auto modifyeyeposition = (DWORD)(util::FindSignature(crypt_str("client.dll"), csgo.signatures.at(15).c_str()));
hooks::original_modifyeyeposition = (DWORD)DetourFunction((PBYTE)modifyeyeposition, (PBYTE)hooks::hooked_modifyeyeposition);
static auto calcviewmodelbob = (DWORD)(util::FindSignature(crypt_str("client.dll"), csgo.signatures.at(16).c_str()));
hooks::original_calcviewmodelbob = (DWORD)DetourFunction((PBYTE)calcviewmodelbob, (PBYTE)hooks::hooked_calcviewmodelbob);
static auto shouldskipanimframe = (DWORD)(util::FindSignature(crypt_str("client.dll"), csgo.signatures.at(17).c_str()));
DetourFunction((PBYTE)shouldskipanimframe, (PBYTE)hooks::hooked_shouldskipanimframe);
static auto checkfilecrcswithserver = (DWORD)(util::FindSignature(crypt_str("engine.dll"), csgo.signatures.at(18).c_str()));
DetourFunction((PBYTE)checkfilecrcswithserver, (PBYTE)hooks::hooked_checkfilecrcswithserver);
static auto processinterpolatedlist = (DWORD)(util::FindSignature(crypt_str("client.dll"), csgo.signatures.at(19).c_str()));
hooks::original_processinterpolatedlist = (DWORD)DetourFunction((byte*)processinterpolatedlist, (byte*)hooks::processinterpolatedlist); //-V206
static auto cl_move = (DWORD)(util::FindSignature(crypt_str("engine.dll"), crypt_str("55 8B EC 81 EC ? ? ? ? 53 56 57 8B 3D ? ? ? ? 8A")));
hooks::original_clmove = (DWORD)DetourFunction((PBYTE)cl_move, (PBYTE)hooks::hooked_clmove);
hooks::client_hook = new vmthook(reinterpret_cast<DWORD**>(m_client()));
hooks::client_hook->hook_function(reinterpret_cast<uintptr_t>(hooks::hooked_fsn), 37); //-V107 //-V221
hooks::client_hook->hook_function(reinterpret_cast<uintptr_t>(hooks::hooked_writeusercmddeltatobuffer), 24); //-V107 //-V221
hooks::clientstate_hook = new vmthook(reinterpret_cast<DWORD**>((CClientState*)(uint32_t(m_clientstate()) + 0x8)));
hooks::clientstate_hook->hook_function(reinterpret_cast<uintptr_t>(hooks::hooked_packetstart), 5); //-V107 //-V221
hooks::clientstate_hook->hook_function(reinterpret_cast<uintptr_t>(hooks::hooked_packetend), 6); //-V107 //-V221
hooks::panel_hook = new vmthook(reinterpret_cast<DWORD**>(m_panel())); //-V1032
hooks::panel_hook->hook_function(reinterpret_cast<uintptr_t>(hooks::hooked_painttraverse), 41); //-V107 //-V221
hooks::clientmode_hook = new vmthook(reinterpret_cast<DWORD**>(m_clientmode()));
hooks::clientmode_hook->hook_function(reinterpret_cast<uintptr_t>(hooks::hooked_createmove), 24); //-V107 //-V221
hooks::clientmode_hook->hook_function(reinterpret_cast<uintptr_t>(hooks::hooked_postscreeneffects), 44); //-V107 //-V221
hooks::clientmode_hook->hook_function(reinterpret_cast<uintptr_t>(hooks::hooked_overrideview), 18); //-V107 //-V221
hooks::clientmode_hook->hook_function(reinterpret_cast<uintptr_t>(hooks::hooked_drawfog), 17); //-V107 //-V221
hooks::inputinternal_hook = new vmthook(reinterpret_cast<DWORD**>(m_inputinternal())); //-V114
hooks::inputinternal_hook->hook_function(reinterpret_cast<uintptr_t>(hooks::hooked_setkeycodestate), 91); //-V107 //-V221
hooks::inputinternal_hook->hook_function(reinterpret_cast<uintptr_t>(hooks::hooked_setmousecodestate), 92); //-V107 //-V221
hooks::engine_hook = new vmthook(reinterpret_cast<DWORD**>(m_engine()));
hooks::engine_hook->hook_function(reinterpret_cast<uintptr_t>(hooks::hooked_is_paused), 90); //-V107 //-V221
hooks::engine_hook->hook_function(reinterpret_cast<uintptr_t>(hooks::hooked_isconnected), 27); //-V107 //-V221
hooks::engine_hook->hook_function(reinterpret_cast<uintptr_t>(hooks::hooked_getscreenaspectratio), 101); //-V107 //-V221
hooks::engine_hook->hook_function(reinterpret_cast<uintptr_t>(hooks::hooked_ishltv), 93); //-V107 //-V221
hooks::renderview_hook = new vmthook(reinterpret_cast<DWORD**>(m_renderview()));
hooks::renderview_hook->hook_function(reinterpret_cast<uintptr_t>(hooks::hooked_sceneend), 9); //-V107 //-V221
hooks::materialsys_hook = new vmthook(reinterpret_cast<DWORD**>(m_materialsystem())); //-V1032
hooks::materialsys_hook->hook_function(reinterpret_cast<uintptr_t>(hooks::hooked_beginframe), 42); //-V107 //-V221
hooks::materialsys_hook->hook_function(reinterpret_cast<uintptr_t>(hooks::hooked_getmaterial), 84); //-V107 //-V221
hooks::modelrender_hook = new vmthook(reinterpret_cast<DWORD**>(m_modelrender()));
hooks::modelrender_hook->hook_function(reinterpret_cast<uintptr_t>(hooks::hooked_dme), 21); //-V107 //-V221
hooks::surface_hook = new vmthook(reinterpret_cast<DWORD**>(m_surface()));
hooks::surface_hook->hook_function(reinterpret_cast<uintptr_t>(hooks::hooked_lockcursor), 67); //-V107 //-V221
hooks::bspquery_hook = new vmthook(reinterpret_cast<DWORD**>(m_engine()->GetBSPTreeQuery()));
hooks::bspquery_hook->hook_function(reinterpret_cast<uintptr_t>(hooks::hooked_listleavesinbox), 6); //-V107 //-V221
hooks::prediction_hook = new vmthook(reinterpret_cast<DWORD**>(m_prediction())); //-V1032
hooks::prediction_hook->hook_function(reinterpret_cast<uintptr_t>(hooks::hooked_runcommand), 19); //-V107 //-V221
hooks::prediction_hook->hook_function(reinterpret_cast<uintptr_t>(hooks::hooked_inprediction), 14); //-V107 //-V221
hooks::trace_hook = new vmthook(reinterpret_cast<DWORD**>(m_trace()));
hooks::trace_hook->hook_function(reinterpret_cast<uintptr_t>(hooks::hooked_clip_ray_collideable), 4); //-V107 //-V221
hooks::trace_hook->hook_function(reinterpret_cast<uintptr_t>(hooks::hooked_trace_ray), 5); //-V107 //-V221
hooks::filesystem_hook = new vmthook(reinterpret_cast<DWORD**>(util::FindSignature(crypt_str("engine.dll"), csgo.signatures.at(20).c_str()) + 0x2));
hooks::filesystem_hook->hook_function(reinterpret_cast<uintptr_t>(hooks::hooked_loosefileallowed), 128); //-V107 //-V221
while (!(INIT::Window = IFH(FindWindow)(crypt_str("Valve001"), nullptr)))
std::this_thread::sleep_for(std::chrono::milliseconds(100));
INIT::OldWindow = (WNDPROC)IFH(SetWindowLongPtr)(INIT::Window, GWL_WNDPROC, (LONG_PTR)hooks::Hooked_WndProc);
hooks::directx_hook = new vmthook(reinterpret_cast<DWORD**>(m_device()));
hooks::directx_hook->hook_function(reinterpret_cast<uintptr_t>(hooks::Hooked_EndScene_Reset), 16); //-V107 //-V221
hooks::directx_hook->hook_function(reinterpret_cast<uintptr_t>(hooks::hooked_present), 17); //-V107 //-V221
hooks::directx_hook->hook_function(reinterpret_cast<uintptr_t>(hooks::Hooked_EndScene), 42); //-V107 //-V221
hooks::hooked_events.RegisterSelf();
}