{"type": "func", "start": 6442931440, "end": 6442931553, "name": "cocos2d::CCApplication::checkMonitorChanged", "pseudocode": "// \n// cocos2d::CCApplication::checkMonitorChanged from 0x1800754f0 to 0x180075561 (113 bytes)\n// \n// 4 xrefs:\n// > cocos2d::CCEGLView::onGLFWWindowPosCallback @ 0x18007a82d\n// > sub_18007A840 @ 0x18007a867\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801be740\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:21:58 +0000\n// \n\nvoid __fastcall cocos2d::CCApplication::checkMonitorChanged(cocos2d::CCApplication *this)\n{\n  __int64 v2; // rcx\n  HWND v3; // rax\n\n  if ( !*((_BYTE *)this + 213) )\n  {\n    if ( *((_BYTE *)this + 208) )\n    {\n      if ( *((_QWORD *)this + 25) )\n      {\n        v2 = *((_QWORD *)cocos2d::CCDirector::sharedDirector() + 24);\n        if ( v2 )\n        {\n          if ( *(_QWORD *)(v2 + 200) )\n          {\n            v3 = (HWND)sub_1800D9CB0();\n            if ( MonitorFromWindow(v3, 2u) != *((HMONITOR *)this + 25) )\n              cocos2d::CCApplication::updateVerticalSync(this);\n          }\n        }\n      }\n    }\n  }\n}", "assembly": "; \n; cocos2d::CCApplication::checkMonitorChanged from 0x1800754f0 to 0x180075561 (113 bytes)\n; \n; 4 xrefs:\n; > cocos2d::CCEGLView::onGLFWWindowPosCallback @ 0x18007a82d\n; > sub_18007A840 @ 0x18007a867\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801be740\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:21:58 +0000\n; \npush    rbx                                                            ; +0x0, 0x1800754f0\nsub     rsp, 20h                                                       ; +0x2, 0x1800754f2\ncmp     byte ptr [rcx+0D5h], 0                                         ; +0x6, 0x1800754f6\nmov     rbx, rcx                                                       ; +0xd, 0x1800754fd\njnz     short loc_18007555B                                            ; +0x10, 0x180075500\ncmp     byte ptr [rcx+0D0h], 0                                         ; +0x12, 0x180075502\njz      short loc_18007555B                                            ; +0x19, 0x180075509\ncmp     qword ptr [rcx+0C8h], 0                                        ; +0x1b, 0x18007550b\njz      short loc_18007555B                                            ; +0x23, 0x180075513\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x25, 0x180075515\nmov     rcx, [rax+0C0h]                                                ; +0x2a, 0x18007551a\ntest    rcx, rcx                                                       ; +0x31, 0x180075521\njz      short loc_18007555B                                            ; +0x34, 0x180075524\nmov     rcx, [rcx+0C8h]                                                ; +0x36, 0x180075526\ntest    rcx, rcx                                                       ; +0x3d, 0x18007552d\njz      short loc_18007555B                                            ; +0x40, 0x180075530\ncall    sub_1800D9CB0                                                  ; +0x42, 0x180075532\nmov     rcx, rax; hwnd                                                 ; +0x47, 0x180075537\nmov     edx, 2; dwFlags                                                ; +0x4a, 0x18007553a\ncall    cs:MonitorFromWindow                                           ; +0x4f, 0x18007553f\ncmp     rax, [rbx+0C8h]                                                ; +0x55, 0x180075545\njz      short loc_18007555B                                            ; +0x5c, 0x18007554c\nmov     rcx, rbx; this                                                 ; +0x5e, 0x18007554e\nadd     rsp, 20h                                                       ; +0x61, 0x180075551\npop     rbx                                                            ; +0x65, 0x180075555\njmp     ?updateVerticalSync@CCApplication@cocos2d@@QEAAXXZ; cocos2d::CCApplication::updateVerticalSync(void) ; +0x66, 0x180075556\nadd     rsp, 20h                                                       ; +0x6b, 0x18007555b\npop     rbx                                                            ; +0x6f, 0x18007555f\nretn                                                                   ; +0x70, 0x180075560", "xrefs": ["cocos2d::CCEGLView::onGLFWWindowPosCallback @ 0x18007a82d", "sub_18007A840 @ 0x18007a867", "<???> @ 0x18014cf68", "<???> @ 0x1801be740"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}