1
1
mirror of synced 2025-02-03 04:47:08 +01:00

Force push true in sub_1401AC550

This commit is contained in:
esuo1198 2023-09-27 07:09:32 +09:00
parent bde65eec20
commit 9fe8f9d2d8

View File

@ -20,6 +20,17 @@ HOOK (i32, HaspRead, PROC_ADDRESS ("hasp_windows_x64.dll", "hasp_read"), i32, i3
return 0;
}
void (__fastcall* lua_touserdata) (i64 L, i64 index);
void (__fastcall* lua_settop) (i64 L, i64 index);
void (__fastcall* lua_pushboolean) (i64 L, i64 b);
HOOK (i64, sub_1401AC550, ASLR (0x1401AC550), i64 a1) {
lua_touserdata (a1, 4294957292);
lua_settop (a1, 0);
lua_pushboolean (a1, 1);
return 1;
}
void
Init () {
i32 xRes = 1920;
@ -84,6 +95,12 @@ Init () {
// Disable SSLVerify
WRITE_MEMORY (ASLR (0x14034C182), u8, 0x00);
lua_touserdata = reinterpret_cast<void ((__fastcall*)(i64, i64))> (PROC_ADDRESS ("lua51.dll", "lua_touserdata"));
lua_settop = reinterpret_cast<void ((__fastcall*)(i64, i64))> (PROC_ADDRESS ("lua51.dll", "lua_settop"));
lua_pushboolean = reinterpret_cast<void ((__fastcall*)(i64, i64))> (PROC_ADDRESS ("lua51.dll", "lua_pushboolean"));
INSTALL_HOOK (sub_1401AC550);
patches::Qr::Init ();
}
} // namespace patches::CN_JUN_2023