// // SecretGame01Layer::init from 0x1004744f0 to 0x1004746a2 (434 bytes) // // 3 xrefs: // > SecretLayer6::init @ 0x10047374b // > SecretGame01Layer::create @ 0x10047395d // > @ 0x100b45ad8 // // 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:30:34 +0000 // __int64 __fastcall SecretGame01Layer::init(_QWORD *a1, __int64 a2, double a3) { __int64 result; // rax unsigned int v5; // r12d __int64 v6; // rsi __int64 v7; // rax __int64 v8; // rdi __int64 v9; // rax __int64 v10; // rdi __int64 v11; // rax char *v12; // r14 __int64 v13; // r14 __int64 v14; // rdi __int64 v15; // r14 float *v16; // rax float v17; // [rsp+0h] [rbp-30h] BYREF float v18[10]; // [rsp+8h] [rbp-28h] BYREF result = cocos2d::CCLayer::init(a1); if ( (_BYTE)result ) { v5 = result; v6 = cocos2d::CCDirector::sharedDirector(a1, a2); cocos2d::CCDirector::getWinSize(&v17, v6); v7 = cocos2d::CCMenu::create(); a1[53] = v7; (*(void (__fastcall **)(_QWORD *, __int64))(*a1 + 456LL))(a1, v7); v8 = a1[53]; (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v8 + 1000LL))(v8, 0); v9 = sub_1007FE900(v8); a1[51] = v9; v10 = v9; cocos2d::CCObject::retain(v9); v11 = sub_1007FE900(v10); a1[52] = v11; cocos2d::CCObject::retain(v11); v12 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"whiteSquare20_001.png", a3); a1[57] = v12; sub_100278250(v18, (float)(v17 * 0.5) + -50.0, 40.0); (*(void (__fastcall **)(char *, float *))(*(_QWORD *)v12 + 184LL))(v12, v18); v13 = a1[57]; sub_100278250(v18, 0.0, 0.5); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v13 + 296LL))(v13, v18); (*(void (__fastcall **)(_QWORD, float))(*(_QWORD *)a1[57] + 144LL))(a1[57], 0.60000002); v14 = a1[57]; memset(v18, 100, 3); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v14 + 960LL))(v14, v18); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)a1[57] + 912LL))(a1[57], 100); v15 = a1[57]; v16 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v15 + 328LL))(v15); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v15 + 128LL))(v15, 100.0 / *v16); (*(void (__fastcall **)(_QWORD *, _QWORD))(*a1 + 456LL))(a1, a1[57]); (*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)a1[57] + 344LL))(a1[57], 0); cocos2d::CCNode::scheduleUpdate((__int64)a1); return v5; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source