// // sub_1800D69D0 from 0x1800d69d0 to 0x1800d6c2d (605 bytes) // // 4 xrefs: // > cocos2d::CCEGLView::pollEvents @ 0x1800d4a85 // > @ 0x180142ed0 // > @ 0x180142ee0 // > @ 0x1801ba950 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void sub_1800D69D0() { _QWORD *v0; // rbx HWND ActiveWindow; // rax _BYTE *PropW; // rbx unsigned int v3; // edi unsigned int v4; // edi __int64 v5; // rcx unsigned int v6; // edi __int64 v7; // rcx unsigned int v8; // edi __int64 v9; // rcx __int64 v10; // rbx LONG bottom; // r8d HWND v12; // rcx struct tagMSG Msg; // [rsp+30h] [rbp-58h] BYREF struct tagRECT Rect; // [rsp+60h] [rbp-28h] BYREF while ( PeekMessageW(&Msg, nullptr, 0, 0, 1u) ) { if ( Msg.message == 18 ) { v0 = (_QWORD *)qword_1801A9F60; if ( qword_1801A9F60 ) { do { sub_1800D42E0((__int64)v0); v0 = (_QWORD *)*v0; } while ( v0 ); } } else { TranslateMessage(&Msg); DispatchMessageW(&Msg); } } ActiveWindow = GetActiveWindow(); if ( ActiveWindow ) { PropW = GetPropW(ActiveWindow, L"GLFW"); if ( PropW ) { v3 = word_1801AB8F0; if ( GetKeyState(160) >= 0 && PropW[476] == 1 ) { ((void (*)(void))sub_1800D80F0)(); sub_1800D54B0((__int64)PropW, 340, v3, 0); } v4 = word_1801AB8F8; if ( GetKeyState(161) >= 0 && PropW[480] == 1 ) { sub_1800D80F0(v5); sub_1800D54B0((__int64)PropW, 344, v4, 0); } v6 = word_1801AB8F6; if ( GetKeyState(91) >= 0 && PropW[479] == 1 ) { sub_1800D80F0(v7); sub_1800D54B0((__int64)PropW, 343, v6, 0); } v8 = word_1801AB8FE; if ( GetKeyState(92) >= 0 && PropW[483] == 1 ) { sub_1800D80F0(v9); sub_1800D54B0((__int64)PropW, 347, v8, 0); } } } v10 = qword_1801ABFE8; if ( qword_1801ABFE8 ) { GetClientRect(*(HWND *)(qword_1801ABFE8 + 880), &Rect); bottom = Rect.bottom; if ( *(_DWORD *)(v10 + 936) != Rect.right / 2 || *(_DWORD *)(v10 + 940) != Rect.bottom / 2 ) { v12 = *(HWND *)(v10 + 880); Rect.left = Rect.right / 2; *(_DWORD *)(v10 + 936) = Rect.right / 2; Rect.top = bottom / 2; *(_DWORD *)(v10 + 940) = bottom / 2; ClientToScreen(v12, (LPPOINT)&Rect); SetCursorPos(Rect.left, Rect.top); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source