// // cocos2d::CCNotificationCenter::registerScriptObserver from 0x100272f50 to 0x10027302d (221 bytes) // // 0 xrefs: // // 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 12:27:38 +0000 // int __fastcall cocos2d::CCNotificationCenter::registerScriptObserver( __int64 a1, __int64 a2, unsigned int a3, const char *a4) { __int64 v5; // rax unsigned int *v6; // rax _QWORD *v7; // r14 unsigned __int64 v8; // rbx __int64 v9; // r13 const char *v10; // rax int result; // eax void *v12; // r13 v5 = *(_QWORD *)(a1 + 56); if ( v5 ) { v6 = *(unsigned int **)(v5 + 56); if ( *v6 ) { v7 = *((_QWORD **)v6 + 2); v8 = (unsigned __int64)&v7[*v6 - 1]; do { v9 = *v7; if ( !*v7 ) break; if ( (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)v9 + 80LL))(*v7) == a2 ) { v10 = (const char *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v9 + 96LL))(v9); result = strcmp(v10, a4); if ( !result ) return result; } ++v7; } while ( (unsigned __int64)v7 <= v8 ); } } v12 = operator new(0x68u); cocos2d::CCNotificationObserver::CCNotificationObserver(v12, a2, 0, 0, a4, 0); (*(void (__fastcall **)(void *, _QWORD))(*(_QWORD *)v12 + 120LL))(v12, a3); cocos2d::CCObject::autorelease(v12); return sub_1007FEBF0(*(_QWORD *)(a1 + 56), v12); }
GD Web Decomp Icon

GD Web Decomp

Raw Source