// // sub_1004E9A50 from 0x1004e9a50 to 0x1004e9b7f (303 bytes) // // 2 xrefs: // > AppDelegate::willSwitchToScene @ 0x10073bdbc // > sub_10073BDD0 @ 0x10073bdec // // 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:31:21 +0000 // void __fastcall sub_1004E9A50(__int64 a1) { __int64 v2; // r14 __int64 v3; // rdi char *v4; // r14 __int64 v5; // rsi unsigned int v6; // eax __int64 v7; // rdx v2 = qword_100BE50F8; if ( qword_100BE50F8 ) { *(_QWORD *)(qword_100BE50F8 + 392) = a1; v3 = *(_QWORD *)(v2 + 384); if ( !v3 ) return; } else { v4 = (char *)operator new(0x190u); cocos2d::CCNode::CCNode((__int64)v4); *(_QWORD *)v4 = off_100B631B8; *((_QWORD *)v4 + 40) = &off_100B63550; *(_OWORD *)(v4 + 328) = 0; *(_OWORD *)(v4 + 344) = 0; *(_OWORD *)(v4 + 360) = 0; v4[376] = 0; *((_OWORD *)v4 + 24) = 0; qword_100BE50F8 = (__int64)v4; cocos2d::CCNode::init(); cocos2d::CCObject::retain(qword_100BE50F8); v2 = qword_100BE50F8; *(_QWORD *)(qword_100BE50F8 + 392) = a1; v3 = *(_QWORD *)(v2 + 384); if ( !v3 ) return; } if ( (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 512LL))(v3) != a1 ) { cocos2d::CCObject::retain(*(_QWORD *)(v2 + 384)); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(v2 + 384) + 528LL))(*(_QWORD *)(v2 + 384), 0); v5 = *(_QWORD *)(v2 + 384); v6 = *(_DWORD *)(v5 + 592); v7 = 105; if ( v6 ) v7 = v6; (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v5, v7); cocos2d::CCObject::release(*(_DWORD **)(v2 + 384)); cocos2d::CCNode::resumeSchedulerAndActions(*(_QWORD *)(v2 + 384)); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source