; ; cocos2d::CCEGLView::~CCEGLView from 0x1800785b0 to 0x1800786da (298 bytes) ; ; 4 xrefs: ; > sub_180078700 @ 0x18007875e ; > sub_180078700 @ 0x18007871c ; > @ 0x18014cf68 ; > @ 0x1801bea1c ; ; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! ; ; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA ; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings ; Generated at Fri, 27 Nov 2026 11:21:59 +0000 ; mov [rsp+arg_0], rbx ; +0x0, 0x1800785b0 push rdi ; +0x5, 0x1800785b5 sub rsp, 30h ; +0x6, 0x1800785b6 mov rbx, rcx ; +0xa, 0x1800785ba lea rax, ??_7CCEGLView@cocos2d@@6BCCEGLViewProtocol@1@@; const cocos2d::CCEGLView::`vftable'{for `cocos2d::CCEGLViewProtocol'} ; +0xd, 0x1800785bd mov [rcx], rax ; +0x14, 0x1800785c4 lea rax, ??_7CCEGLView@cocos2d@@6BCCObject@1@@; const cocos2d::CCEGLView::`vftable'{for `cocos2d::CCObject'} ; +0x17, 0x1800785c7 mov [rcx+78h], rax ; +0x1e, 0x1800785ce xor eax, eax ; +0x22, 0x1800785d2 xchg al, cs:byte_1801B2558 ; +0x24, 0x1800785d4 mov ecx, cs:idThread; idThread ; +0x2a, 0x1800785da test ecx, ecx ; +0x30, 0x1800785e0 jz short loc_1800785F5 ; +0x32, 0x1800785e2 xor r9d, r9d; lParam ; +0x34, 0x1800785e4 xor r8d, r8d; wParam ; +0x37, 0x1800785e7 mov edx, 12h; Msg ; +0x3a, 0x1800785ea call cs:PostThreadMessageA ; +0x3f, 0x1800785ef cmp cs:dword_1801B2568, 0 ; +0x45, 0x1800785f5 jz short loc_180078639 ; +0x4c, 0x1800785fc call _Thrd_id ; +0x4e, 0x1800785fe cmp cs:dword_1801B2568, eax ; +0x53, 0x180078603 jz loc_1800786CF ; +0x59, 0x180078609 movaps xmm0, xmmword ptr cs:unk_1801B2560 ; +0x5f, 0x18007860f movaps xmmword ptr [rsp+38h+var_18._Hnd], xmm0 ; +0x66, 0x180078616 xor edx, edx; int * ; +0x6b, 0x18007861b lea rcx, [rsp+38h+var_18]; _Thrd_t ; +0x6d, 0x18007861d call _Thrd_join ; +0x72, 0x180078622 test eax, eax ; +0x77, 0x180078627 jnz loc_1800786C4 ; +0x79, 0x180078629 xorps xmm0, xmm0 ; +0x7f, 0x18007862f movaps xmmword ptr cs:unk_1801B2560, xmm0 ; +0x82, 0x180078632 mov cs:hWnd, 0 ; +0x89, 0x180078639 lea rcx, unk_1801B2588; _Mtx_t ; +0x94, 0x180078644 call _Mtx_lock ; +0x9b, 0x18007864b test eax, eax ; +0xa0, 0x180078650 jnz short loc_1800786CF ; +0xa2, 0x180078652 cmp cs:dword_1801B25D4, 7FFFFFFFh ; +0xa4, 0x180078654 jz short loc_1800786AF ; +0xae, 0x18007865e lea rcx, qword_1801B25D8 ; +0xb0, 0x180078660 call sub_180078BA0 ; +0xb7, 0x180078667 lea rcx, unk_1801B2588; _Mtx_t ; +0xbc, 0x18007866c call _Mtx_unlock ; +0xc3, 0x180078673 lea rcx, unk_1801B2600 ; +0xc8, 0x180078678 call sub_1800790C0 ; +0xcf, 0x18007867f mov cs:qword_1801B2540, 0 ; +0xd4, 0x180078684 call sub_1800DB6D0 ; +0xdf, 0x18007868f lea rcx, [rbx+78h]; this ; +0xe4, 0x180078694 call ??1CCObject@cocos2d@@UEAA@XZ; cocos2d::CCObject::~CCObject(void) ; +0xe8, 0x180078698 mov rcx, rbx; this ; +0xed, 0x18007869d mov rbx, [rsp+38h+arg_0] ; +0xf0, 0x1800786a0 add rsp, 30h ; +0xf5, 0x1800786a5 pop rdi ; +0xf9, 0x1800786a9 jmp ??1CCEGLViewProtocol@cocos2d@@UEAA@XZ; cocos2d::CCEGLViewProtocol::~CCEGLViewProtocol(void) ; +0xfa, 0x1800786aa mov cs:dword_1801B25D4, 7FFFFFFEh ; +0xff, 0x1800786af mov ecx, 6; int ; +0x109, 0x1800786b9 call ?_Throw_Cpp_error@std@@YAXH@Z; std::_Throw_Cpp_error(int) ; +0x10e, 0x1800786be int 3; Trap to Debugger ; +0x113, 0x1800786c3 mov ecx, 2; int ; +0x114, 0x1800786c4 call ?_Throw_Cpp_error@std@@YAXH@Z; std::_Throw_Cpp_error(int) ; +0x119, 0x1800786c9 int 3; Trap to Debugger ; +0x11e, 0x1800786ce mov ecx, 5; int ; +0x11f, 0x1800786cf call ?_Throw_Cpp_error@std@@YAXH@Z; std::_Throw_Cpp_error(int) ; +0x124, 0x1800786d4 db 0CCh ; +0x129, 0x1800786d9