// // LevelBadgePopup::init from 0x1400e5ed0 to 0x1400e6113 (579 bytes) // // 2 xrefs: // > LevelBadgePopup::create @ 0x1400e5e80 // > @ 0x140914ca8 // // 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:26:32 +0000 // // Hidden C++ exception states: #wind=3 char __fastcall LevelBadgePopup::init(__int64 a1, int a2, char a3) { __int64 v6; // rdx __int64 v7; // rdx __int64 v8; // rax __int64 v9; // rax size_t v10; // rbx cocos2d::CCLayerColor *v11; // rax cocos2d::CCString *v12; // rax const char *CString; // rax size_t v14; // r8 __int64 v15; // rax __int64 v16; // rsi _BYTE *Key; // rax __int64 v18; // rcx __int128 v20; // [rsp+20h] [rbp-28h] BYREF __int64 v21; // [rsp+30h] [rbp-18h] __int64 v22; // [rsp+38h] [rbp-10h] int v23; // [rsp+58h] [rbp+10h] BYREF void *v24; // [rsp+68h] [rbp+20h] if ( a2 <= 0 ) return 0; v23 = 0; if ( !cocos2d::CCLayerColor::initWithColor((cocos2d::CCLayerColor *)a1, (const struct cocos2d::_ccColor4B *)&v23) ) return 0; *(_DWORD *)(a1 + 672) = a2; *(_BYTE *)(a1 + 676) = a3; FLAlertLayer::incrementForcePrio((struct cocos2d::CCObject *)a1); *(_BYTE *)(a1 + 596) = 1; LOBYTE(v6) = 1; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 920LL))(a1, v6); LOBYTE(v7) = 1; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 992LL))(a1, v7); v8 = cocos2d::CCLayer::create(); *(_QWORD *)(a1 + 584) = v8; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v8); v9 = cocos2d::CCMenu::create(); *(_QWORD *)(a1 + 552) = v9; (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v9, 10); (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 552) + 184LL))(*(_QWORD *)(a1 + 552), &unk_14090A188); v10 = -1; *(_DWORD *)(a1 + 640) = -1; v11 = LoadingCircle::create(); *(_QWORD *)(a1 + 728) = v11; *((_QWORD *)v11 + 69) = *(_QWORD *)(a1 + 584); *(_BYTE *)(*(_QWORD *)(a1 + 728) + 560LL) = 0; LoadingCircle::show(*(_QWORD *)(a1 + 728)); v12 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, *(unsigned int *)(a1 + 672)); CString = cocos2d::CCString::getCString(v12); v20 = 0; v21 = 0; v22 = 0; v14 = -1; do ++v14; while ( CString[v14] ); sub_14003D230(&v20, CString, v14); v15 = GJSearchObject::create_1(0, &v20); v16 = v15; if ( *(_BYTE *)(a1 + 676) ) *(_DWORD *)(v15 + 464) = 1; Key = (_BYTE *)GJSearchObject::getKey(v15); do ++v10; while ( Key[v10] ); sub_1400405A0((void **)(a1 + 696), Key, v10); v18 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v24 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v24); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v18 = *(_QWORD *)&qword_14090BFB0; } *(_QWORD *)(v18 + 1352) = a1 + 664; if ( *(_BYTE *)(a1 + 676) ) GameLevelManager::getLevelLists(v18, v16); else GameLevelManager::getOnlineLevels(v18, v16); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source