// // SearchSFXPopup::init from 0x140480d20 to 0x140480fd4 (692 bytes) // // 2 xrefs: // > SFXBrowser::onSearch @ 0x140480652 // > @ 0x1406dbac8 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // // Hidden C++ exception states: #wind=6 char __fastcall SearchSFXPopup::init(__int64 a1, __int64 a2) { void **v4; // rax __int64 v5; // r9 __int64 v6; // rcx cocos2d::CCDirector *v8; // rax GameManager *v9; // rsi double v10; // xmm0_8 float *v11; // rax float *v12; // rdi struct cocos2d::CCPoint v13; // rax struct cocos2d::CCPoint v14; // rbx bool GameVariable; // al __int128 v16; // [rsp+80h] [rbp-80h] BYREF __int64 v17; // [rsp+90h] [rbp-70h] __int64 v18; // [rsp+98h] [rbp-68h] float v19; // [rsp+A0h] [rbp-60h] __int128 *v20; // [rsp+A8h] [rbp-58h] __int128 *v21; // [rsp+B0h] [rbp-50h] __int128 *v22; // [rsp+B8h] [rbp-48h] __int128 v23; // [rsp+C0h] [rbp-40h] BYREF __int64 v24; // [rsp+D0h] [rbp-30h] __int64 v25; // [rsp+D8h] [rbp-28h] __int128 v26; // [rsp+E0h] [rbp-20h] BYREF __int64 v27; // [rsp+F0h] [rbp-10h] __int64 v28; // [rsp+F8h] [rbp-8h] _BYTE v29[32]; // [rsp+108h] [rbp+8h] BYREF __int64 v30; // [rsp+128h] [rbp+28h] v30 = a2; v20 = &v23; v21 = &v26; v22 = &v16; v23 = 0; v24 = 2; v25 = 15; strcpy((char *)&v23, "OK"); v27 = 8; v28 = 15; v26 = 0x58465320646E6946uLL; v16 = 0; v17 = 6; v18 = 15; strcpy((char *)&v16, "Search"); v4 = (void **)sub_14003BDB0((__int64)v29, a2); if ( SetTextPopup::init(a1, v4, (const char *)&v16, v5, &v26, &v23) ) { v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v6); cocos2d::CCDirector::getWinSize(v8); v22 = &v16; v17 = 11; v18 = 15; *(_QWORD *)&v16 = 0x4E0A7265646C6F46LL; *((_QWORD *)&v16 + 1) = 6647137; v9 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v21 = (__int128 *)operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v21); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v9 = (GameManager *)qword_1406C2ED8; } v10 = cocos2d::CCPoint::CCPoint(1.7445799e22, 8.0); v12 = v11; cocos2d::CCPoint::CCPoint(*(float *)&v10, (float)(v19 * 0.5) - 124.0); v14 = v13; GameVariable = GameManager::getGameVariable(v9, "0147"); GameToolbox::createToggleButton( (const char *)&v16, (cocos2d::SEL_MenuHandler *)SearchSFXPopup::onSearchFolders, GameVariable, *(cocos2d::CCNode **)(a1 + 544), v14, (cocos2d::CCObject *)a1, *(cocos2d::CCObject **)(a1 + 576), 0.80000001, 0.30000001, 0.0, v12, (const char *)&qword_14052A4D8, 0, 0, nullptr); sub_14003A830(a2); return 1; } else { sub_14003A830(a2); return 0; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source