// // GJPathRewardPopup::init from 0x140397d90 to 0x14039825a (1226 bytes) // // 2 xrefs: // > GJPathsLayer::onPath @ 0x1403930aa // > @ 0x140923150 // // 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:31:14 +0000 // bool __fastcall GJPathRewardPopup::init(__int64 *a1, int a2) { bool result; // al __int64 v4; // rdx __int64 v5; // rax __int64 v6; // rdx __int64 v7; // rcx __int64 v8; // rax __int64 v9; // rax __int64 v10; // rcx __int64 v11; // rdx __int64 v12; // rcx __int64 v13; // rsi __int64 v14; // rbx __int64 v15; // rax cocos2d::CCObject *v16; // rax struct cocos2d::CCMenu *v17; // rax float v18; // xmm1_4 struct cocos2d::CCMenu *v19; // rdi float v20; // xmm2_4 __int64 v21; // rbx __int64 v22; // rax __int64 v23; // rdx __int64 v24; // rcx cocos2d::CCNode *v25; // r14 __int64 v26; // rbx __int64 v27; // rax struct cocos2d::CCLabelBMFont *v28; // rsi __int64 v29; // rax struct cocos2d::CCLabelBMFont *v30; // rdi __int64 v31; // rbx __int64 v32; // rax __int64 v33; // rdx __int64 v34; // rdx __int64 v35; // r8 __int64 v36; // rsi __int64 v37; // rax __int64 v38; // rdx __int64 v39; // r8 __int64 v40; // rdi __int64 v41; // rbx __int64 v42; // rax cocos2d::CCArray *v43; // rax struct cocos2d::CCObject *v44; // rax cocos2d::CCArray *v45; // rax struct cocos2d::CCObject *v46; // rax __int64 v47; // rdx const struct cocos2d::CCPoint *v48; // rax struct cocos2d::CCActionInterval *v49; // rax struct cocos2d::CCFiniteTimeAction *v50; // rbx const struct cocos2d::CCPoint *v51; // rax struct cocos2d::CCActionInterval *v52; // rax struct cocos2d::CCEaseInOut *v53; // rax struct cocos2d::CCActionInterval *v54; // rax struct cocos2d::CCAction *v55; // rax _BYTE v56[8]; // [rsp+20h] [rbp-28h] BYREF _BYTE v57[8]; // [rsp+28h] [rbp-20h] BYREF float v58; // [rsp+60h] [rbp+18h] BYREF float v59; // [rsp+64h] [rbp+1Ch] int v60; // [rsp+68h] [rbp+20h] BYREF char v61; // [rsp+70h] [rbp+28h] BYREF char v62; // [rsp+78h] [rbp+30h] BYREF *((_DWORD *)a1 + 166) = a2; FLAlertLayer::incrementForcePrio((struct cocos2d::CCObject *)a1); v60 = 2097152000; result = cocos2d::CCLayerColor::initWithColor((cocos2d::CCLayerColor *)a1, (const struct cocos2d::_ccColor4B *)&v60); if ( result ) { v5 = *a1; LOBYTE(v4) = 1; *((_BYTE *)a1 + 596) = 1; (*(void (__fastcall **)(__int64 *, __int64))(v5 + 920))(a1, v4); LOBYTE(v6) = 1; (*(void (__fastcall **)(__int64 *, __int64))(*a1 + 992))(a1, v6); v8 = cocos2d::CCDirector::sharedDirector(v7); cocos2d::CCDirector::getWinSize(v8, &v58); v9 = cocos2d::CCLayer::create(); v10 = *a1; a1[73] = v9; (*(void (__fastcall **)(__int64 *, __int64))(v10 + 464))(a1, v9); v13 = cocos2d::CCNode::create(v12, v11); v14 = *(_QWORD *)v13; cocos2d::CCSize::CCSize((cocos2d::CCSize *)v56, 100.0, 100.0); (*(void (__fastcall **)(__int64, __int64))(v14 + 312))(v13, v15); v16 = CCMenuItemSpriteExtra::create(v13, 0, (int)a1, (__int64)GJPathRewardPopup::onClaim); v17 = cocos2d::CCMenu::create(v16, 0); v18 = v58; v19 = v17; v20 = v59 * 0.5; a1[69] = (__int64)v17; v21 = *(_QWORD *)v17; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v56, v18 * 0.5, v20); (*(void (__fastcall **)(struct cocos2d::CCMenu *, __int64))(v21 + 184))(v19, v22); (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1[73] + 456LL))(a1[73], a1[69], 10); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v61, 0.0, 10.0); v25 = (cocos2d::CCNode *)cocos2d::CCNode::create(v24, v23); (*(void (__fastcall **)(cocos2d::CCNode *, void *))(*(_QWORD *)v25 + 312LL))(v25, &unk_14090AC68); (*(void (__fastcall **)(__int64, cocos2d::CCNode *))(*(_QWORD *)v13 + 464LL))(v13, v25); v26 = *(_QWORD *)v25; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v56, 50.0, 50.0); (*(void (__fastcall **)(cocos2d::CCNode *, __int64))(v26 + 184))(v25, v27); v28 = cocos2d::CCLabelBMFont::create("Reward!", "goldFont.fnt"); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v28 + 160LL))(v28); (*(void (__fastcall **)(cocos2d::CCNode *, struct cocos2d::CCLabelBMFont *, __int64))(*(_QWORD *)v25 + 456LL))( v25, v28, 22); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v57, 0.0, 40.0); cocos2d::CCPoint::operator+(&v61, v56, v29); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, _BYTE *))(*(_QWORD *)v28 + 184LL))(v28, v56); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v62, 0.0, -5.0); v30 = cocos2d::CCLabelBMFont::create("Reward!", "goldFont.fnt"); v31 = *(_QWORD *)v30; (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v28 + 168LL))(v28); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(v31 + 160))(v30); (*(void (__fastcall **)(cocos2d::CCNode *, struct cocos2d::CCLabelBMFont *, __int64))(*(_QWORD *)v25 + 456LL))( v25, v30, 21); v32 = (*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v28 + 200LL))(v28); cocos2d::CCPoint::operator+(v32, v56, &v62); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, _BYTE *))(*(_QWORD *)v30 + 184LL))(v30, v56); (**((void (__fastcall ***)(__int64, void *))v30 + 46))((__int64)v30 + 368, &unk_140703498); LOBYTE(v33) = 50; (*(void (__fastcall **)(__int64, __int64))(*((_QWORD *)v30 + 46) + 40LL))((__int64)v30 + 368, v33); v36 = GJChestSprite::create(6, v34, v35); (*(void (__fastcall **)(cocos2d::CCNode *, __int64, __int64))(*(_QWORD *)v25 + 456LL))(v25, v36, 22); (*(void (__fastcall **)(__int64))(*(_QWORD *)v36 + 160LL))(v36); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v57, 0.0, -6.0); cocos2d::CCPoint::operator+(&v61, v56, v37); (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v36 + 184LL))(v36, v56); v40 = GJChestSprite::create(6, v38, v39); (*(void (__fastcall **)(cocos2d::CCNode *, __int64, __int64))(*(_QWORD *)v25 + 456LL))(v25, v40, 21); v41 = *(_QWORD *)v40; (*(void (__fastcall **)(__int64))(*(_QWORD *)v36 + 168LL))(v36); (*(void (__fastcall **)(__int64))(v41 + 160))(v40); v42 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v36 + 200LL))(v36); cocos2d::CCPoint::operator+(v42, v56, &v62); (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v40 + 184LL))(v40, v56); v43 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v40 + 480LL))(v40); v44 = cocos2d::CCArray::objectAtIndex(v43, 0); (**((void (__fastcall ***)(__int64, void *))v44 + 40))((__int64)v44 + 320, &unk_140703498); v45 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v40 + 480LL))(v40); v46 = cocos2d::CCArray::objectAtIndex(v45, 0); LOBYTE(v47) = 50; (*(void (__fastcall **)(__int64, __int64))(*((_QWORD *)v46 + 40) + 40LL))((__int64)v46 + 320, v47); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v57, 0.0, 5.0); v49 = cocos2d::CCMoveBy::create(1.0, v48); v50 = cocos2d::CCEaseInOut::create(v49, 2.0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v57, 0.0, -5.0); v52 = cocos2d::CCMoveBy::create(1.0, v51); v53 = cocos2d::CCEaseInOut::create(v52, 2.0); v54 = cocos2d::CCSequence::create(v50, v53, 0); v55 = cocos2d::CCRepeatForever::create(v54); cocos2d::CCNode::runAction(v25, v55); return 1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source