Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void __fastcall Panorama::SetCursorOption(int x, int y, bool allow_cursor, bool freeze_cursor) {
- // create vectors for cursor position
- vec3_t currently_pos = Vector2D::Create(x, y);
- vec3_t precache_pos = Vector2D::Create(x / currently_pos.x, y / currently_pos.y);
- // anti-crash #1
- if (precache_pos.x == currently_pos.y && currently_pos.x > 15384 - currently_pos.x) {
- precache_pos = precache_pos->PrepatchDisplayRatioToInt32(15384 - precache_pos.x, precache_pos);
- precache_pos = precache_pos->PushDisplayDataFromInt32(precache_pos.x, precache_pos.y);
- }
- // get screen size
- static screen_size = Panorama::GetDisplayRatio();
- // if game was hidden
- if (!screen_size || screen_size.x <= 0)
- return;
- // get monitor ratio & long32_t -> int
- uint32_t char display_level_char32 = screen_size->GetDisplayDataByChar32_Argument(STR_DECP(XOR("epatch_MonitorRatio0"), nullptr), screen_size.x * screen_size.y);
- uint32_t display = Utils::MovModuleBySection(WINAPI_ME->GetFunctionHandleA(display_level_char32, { long }), { int, int }, { screen_size.x, screen_size.y });
- if (!display.OperationMismatch) {
- // like driver settings to csgo
- display = display[ 2 ][ 7 ]->OverlappedMemoryTarget(("client.dll", DWORD("csgo")), "00 ?? ?? 01 E8 ?? 00 00 00 AA BB C5 00 ?? ?? 01", { long, long }, { int, int });
- display = display[ 1 ][ 0 ][ /* 2 + 7 */ 5 ];
- if (display != nullptr) {
- // anti-crash #2
- long32_to_int = display[5]->LongToNum('{long32}
- ( long[0], uint32_t[1] ), int[2]', uint32_t, { long long, int });
- x = long32_to_int(currently_pos.x); y = long32_to_int(currently_pos.y);
- // finally func
- display = Panorama::EraseCallByHandler32("${//panoramaui}.Directory", L"${js_api->call(Class.CursorOption[1]" .. (x, y,
- allow_cursor, freeze_cursor) .. ")}");
- }
- }
- }
- // ______________________________________
- // / \
- // | CHERRY IDA VIEWER - VERSION 5.3.7 |
- // | CRACKED BY ZENIDA, T32 |
- // | |
- // | PLUGIN STATUS - OUTDATED |
- // | SIG_ID = 9847FF0 | HW_ID = **** |
- // \______________________________________/
- //
- // LIKE IDA
- /*
- v1 = Panorama
- v2 = SetCursorOption
- v4 = x
- v5 = y
- v6 = allow cursor
- v7 = freeze cursor
- v8 = vector
- v9 = cur pos
- v10 = cache pos
- v11 = vector2d
- */
- // string12 = /*{ " c T l A O 2 i C 0 6 e B B 1 n D 0 5 t R O I K . X X d X 0 l X 3 l X 7 7 " }*/// L"client.dll"
- // string78 = /*{ " C S G O " } */ //L"csgo"
- // string6 => [ string22 = L"0F 11 05 ?? ?? ?? ?? 83 C8 01 00 00 2B ??" ] -- old pattern
- // "00 ?? ?? 01 E8 ?? 00 00 00 AA BB C5 00 ?? ?? 01" -- new pattern
- /*
- -- Symbol table --
- [A] = stx["0001_BYTENV", 8]
- [B] = stx_meta["0008_BYTENV", 16]
- [D] = stx_meta["0016_BYTENV", 16]
- [C] = stx_meta["0032_BYTENV", 16]
- [G] = stx_nav["24_BYTENV", 128]
- [I] = stx_nav["8_BYTENV", 128]
- [1] = stx_bit["1", 1]
- [2] = stx_bit["2", 1]
- [3] = stx_bit["3", 1]
- [?] = stx_env_unsigned["BYTENV_META", "00512_BYTE", 1024]
- -- Paragmal logic --
- string22 = (string22 / [?] - [1]) * ((string22 / [A]) - (string22 + [C]) * ([?] + 1))
- 00 = [A] + [A] + [?] + [1]
- ?? = [C] - [D] + [2] + [?]
- 01 = [B] + [B] + [?] + [1] (- [A])
- E8 = [D] - [A] - [?] + [2] + [1] + [G]
- AA = [A] + [1]
- BB = [A] - [D] + [1]
- C5 = [A] - [B] + [?] + [2] + [1] + [B]
- write_me(stx[(a_stx,a_stx,) + (int __asm { *point_ff })]) -- Like google
- int __asm {
- mov + 1
- ecx, (
- esp[0], edx
- edx, edx + 5
- addr, (
- __write()[] { return point_ff; } {
- a_stx,b_stx,
- c_stx,d_stx,
- i_stx,g_stx, / /
- num_stx,un_stx,
- null_stx,stx /
- } { * };
- );
- );
- };
- /*
- -- Function after asm operation
- if (!unk24.unk171) {
- // like driver settings to csgo
- unk24 = unk24[ 9 ][ 15 ]->unk57((string12, DWORD['0\\x01'](string78)), string22, { long, long }, { int, int });
- unk24 = unk24[ 1 ][ 0 ][ 24 ]; -- [ 9 + 15 ]--
- /* if (unk24 != nullptr) {
- // anti-crash #2
- unk11 = unk24[5]->unk98(string37, uint32_t, { long long, int });
- // X, Y
- [[' [['
- HIDDEN_CODE_BY_UNK0
- LIKE WATCH?
- ']] ']]
- // finally func
- unk24 = ['?\\x07']::unk40(string15);
- }
- } */
- /**/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement