// // UploadPopup::init from 0x10026e650 to 0x10026eb4f (1279 bytes) // // 1 xrefs: // > sub_10026E270 @ 0x10026e41a // // 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:27:36 +0000 // __int64 __fastcall UploadPopup::init(_QWORD *a1, __int64 a2) { __int64 result; // rax unsigned int v4; // r13d __int64 v5; // rsi __int64 v6; // rax __int64 v7; // r14 __int64 v8; // rax __int128 *v9; // rax char *v10; // rdi __int64 v11; // r14 __int64 v12; // rax __int64 v13; // rax __int64 v14; // r14 __int64 v15; // rax __int64 v16; // r14 double v17; // xmm0_8 __int64 v18; // rdi __int64 v19; // rax __int64 v20; // rax void *v21; // rax __int64 v22; // rdi void *v23; // rsi __int64 v24; // r14 __int64 v25; // rbx __int64 v26; // rdi __int64 v27; // rax double v28; // xmm0_8 unsigned int v29; // [rsp+0h] [rbp-90h] BYREF _QWORD v30[2]; // [rsp+8h] [rbp-88h] BYREF void *v31; // [rsp+18h] [rbp-78h] void *v32[3]; // [rsp+20h] [rbp-70h] BYREF float v33; // [rsp+3Ch] [rbp-54h] __int128 v34; // [rsp+40h] [rbp-50h] BYREF void *__p; // [rsp+50h] [rbp-40h] float v36; // [rsp+60h] [rbp-30h] BYREF float v37; // [rsp+64h] [rbp-2Ch] LODWORD(v34) = -1778384896; result = cocos2d::CCLayerColor::initWithColor(a1, &v34); if ( !(_BYTE)result ) return result; v4 = result; FLAlertLayer::incrementForcePrio(a1); a1[84] = a2; cocos2d::CCObject::retain(a2); (*(void (__fastcall **)(_QWORD *, __int64))(*a1 + 1000LL))(a1, 1); (*(void (__fastcall **)(_QWORD *, __int64))(*a1 + 1072LL))(a1, 1); v5 = cocos2d::CCDirector::sharedDirector(a1, 1); cocos2d::CCDirector::getWinSize(&v36, v5); v6 = cocos2d::CCLayer::create(); a1[73] = v6; (*(void (__fastcall **)(_QWORD *, __int64))(*a1 + 456LL))(a1, v6); sub_100278270(&v34, 0.0, 0.0, COERCE_DOUBLE(1117782016), COERCE_DOUBLE(1117782016)); v7 = cocos2d::extension::CCScale9Sprite::create_2("square04_001.png", &v34); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v7 + 912LL))(v7, 255); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v7 + 960LL))(v7, &unk_100A06EC4); sub_100278260(&v34, COERCE_DOUBLE(1137836032), COERCE_DOUBLE(1133903872)); (*(void (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v7 + 320LL))(v7, &v34); (*(void (__fastcall **)(_QWORD, __int64, __int64))(*(_QWORD *)a1[73] + 464LL))(a1[73], v7, 0xFFFFFFFFLL); sub_100278250(&v34, v36 * 0.5, v37 * 0.5); (*(void (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v7 + 184LL))(v7, &v34); v8 = a1[84]; if ( (*(_BYTE *)(v8 + 344) & 1) != 0 ) { sub_10001AD30(&v34, *(const void **)(v8 + 360), *(_QWORD *)(v8 + 352)); if ( (v34 & 1) == 0 ) goto LABEL_4; LABEL_6: v10 = (char *)__p; goto LABEL_7; } v9 = (__int128 *)(v8 + 344); __p = *((void **)v9 + 2); v34 = *v9; if ( (v34 & 1) != 0 ) goto LABEL_6; LABEL_4: v10 = (char *)&v34 + 1; LABEL_7: v11 = cocos2d::CCLabelBMFont::create_3(v10, "goldFont.fnt"); if ( (v34 & 1) != 0 ) operator delete(__p); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)a1[73] + 456LL))(a1[73], v11); sub_100278250(&v34, v36 * 0.5, (float)((float)(v37 * 0.5) + 150.0) + -25.0); (*(void (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v11 + 184LL))(v11, &v34); v12 = cocos2d::CCMenu::create(); a1[69] = v12; (*(void (__fastcall **)(_QWORD, __int64, __int64))(*(_QWORD *)a1[73] + 464LL))(a1[73], v12, 10); v31 = operator new(0x20u); v30[0] = 33; v30[1] = 31; strcpy((char *)v31, "Please wait, uploading level..."); sub_100278250(&v34, 0.5, 1.0); v13 = TextArea::create(v30, "chatFont.fnt", &v34, 0, 0, 1.0, 400.0, 20.0); a1[85] = v13; if ( (v30[0] & 1) != 0 ) { operator delete(v31); v13 = a1[85]; } (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)a1[73] + 456LL))(a1[73], v13); v14 = a1[85]; sub_100278250(&v34, v36 * 0.5, (float)(v37 * 0.5) + -30.0); (*(void (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v14 + 184LL))(v14, &v34); *((_DWORD *)a1 + 160) = -1; v15 = LoadingCircle::create(); a1[86] = v15; *(_QWORD *)(v15 + 552) = a1[73]; *(_BYTE *)(v15 + 560) = 0; LoadingCircle::show(v15); v16 = *(_QWORD *)(a1[86] + 544LL); *(_QWORD *)&v17 = LODWORD(v36); *(float *)&v17 = v36 * 0.5; sub_100278250(&v34, v36 * 0.5, (float)(0.5 * v37) + 20.0); (*(void (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v16 + 184LL))(v16, &v34); if ( *(_BYTE *)(a1[84] + 785LL) == 1 ) { (*(void (__fastcall **)(_QWORD *))(*a1 + 1344LL))(a1); v18 = a1[85]; strcpy((char *)v32, ",Level already uploaded"); TextArea::setString(v18, v32); if ( ((__int64)v32[0] & 1) != 0 ) operator delete(v32[2]); } else { *(_QWORD *)(GameLevelManager::sharedState(v17) + 1272) = a1 + 83; v19 = GameLevelManager::sharedState(v17); GameLevelManager::uploadLevel(v19, a1[84]); } v20 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png"); v21 = CCMenuItemSpriteExtra::create(v20, 0, (__int64)a1, (__int64)sub_10026EB90, 0); a1[87] = v21; v22 = a1[69]; v23 = v21; (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v22 + 456LL))(v22, v21); v24 = a1[87]; v25 = a1[69]; v26 = cocos2d::CCDirector::sharedDirector(v22, v23); v33 = sub_100479760(v26) + 40.0; v27 = cocos2d::CCDirector::sharedDirector(v26, v23); v28 = sub_100479740(v27); sub_100278250(&v29, v33, *(float *)&v28 + -40.0); cocos2d::CCNode::convertToNodeSpace((double *)&v34, v25, &v29); (*(void (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v24 + 184LL))(v24, &v34); return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source