// // GameCell::loadFromString from 0x10030cf40 to 0x10030d25e (798 bytes) // // 1 xrefs: // > BoomListView::loadCell @ 0x10030cef8 // // 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 // void __fastcall GameCell::loadFromString(__int64 a1, unsigned __int8 *a2, double a3) { __int64 v3; // rbx unsigned int v4; // r12d const void *v5; // r13 unsigned __int64 v6; // r12 size_t v7; // rdx std::string *v8; // rdi const char *CString; // rsi size_t v10; // r14 cocos2d::CCString *v11; // rax cocos2d::CCString *v12; // rax const char *v13; // r15 size_t v14; // rax size_t v15; // r14 char *v16; // r12 const char *v17; // rdi cocos2d::CCSprite *v18; // rax CCMenuItemSpriteExtra *v19; // rax int v20; // edx int v21; // ecx int v22; // r8d int v23; // r9d __int64 v24; // r14 size_t v25; // r13 char v26; // [rsp+0h] [rbp-60h] float v27; // [rsp+8h] [rbp-58h] BYREF unsigned __int8 *v28; // [rsp+10h] [rbp-50h] __int64 v29; // [rsp+18h] [rbp-48h] _QWORD __s2[2]; // [rsp+20h] [rbp-40h] BYREF void *__p; // [rsp+30h] [rbp-30h] v3 = a1; (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 536) + 568LL))(*(_QWORD *)(a1 + 536), 1); *(_WORD *)((char *)__s2 + 1) = 27239; BYTE3(__s2[0]) = 0; v4 = *a2; v5 = a2 + 1; v28 = a2 + 1; if ( (v4 & 1) != 0 ) { v6 = *((_QWORD *)a2 + 1); v5 = *((const void **)a2 + 2); } else { v6 = v4 >> 1; } v7 = 2; if ( v6 < 2 ) v7 = v6; if ( (v6 != 2) | (memcmp(v5, (char *)__s2 + 1, v7) != 0) ) { v29 = a1; *(_DWORD *)((char *)__s2 + 1) = 7105127; v10 = 3; if ( v6 < 3 ) v10 = v6; if ( (v6 != 3) | (memcmp(v5, (char *)__s2 + 1, v10) != 0) ) { *(_DWORD *)((char *)__s2 + 1) = 7170663; if ( (v6 != 3) | (memcmp(v5, (char *)__s2 + 1, v10) != 0) ) { *(_DWORD *)((char *)__s2 + 1) = 7826023; if ( (v6 != 3) | (memcmp(v5, (char *)__s2 + 1, v10) != 0) ) { *(_DWORD *)((char *)__s2 + 1) = 8022631; if ( (v6 != 3) | (memcmp(v5, (char *)__s2 + 1, v10) != 0) ) { v11 = (cocos2d::CCString *)sub_1007AB580("https://www.robtopgames.com/download/%s%i", v26); v3 = v29; v8 = (std::string *)(v29 + 560); CString = cocos2d::CCString::getCString(v11); } else { v3 = v29; v8 = (std::string *)(v29 + 560); CString = "https://play.google.com/store/apps/details?id=com.robtopx.geometrydashsubzero"; } } else { v3 = v29; v8 = (std::string *)(v29 + 560); CString = "https://play.google.com/store/apps/details?id=com.robtopx.geometrydashworld"; } } else { v3 = v29; v8 = (std::string *)(v29 + 560); CString = "https://play.google.com/store/apps/details?id=com.robtopx.geometrydashmeltdown"; } } else { v3 = v29; v8 = (std::string *)(v29 + 560); CString = "https://play.google.com/store/apps/details?id=com.robtopx.geometryjumplite"; } } else { v8 = (std::string *)(a1 + 560); CString = "https://play.google.com/store/apps/details?id=com.robtopx.geometryjump"; } std::string::assign(v8, CString); v12 = (cocos2d::CCString *)sub_1007AB580("promo_%s.png", v26); v13 = cocos2d::CCString::getCString(v12); v14 = strlen(v13); if ( v14 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100006BF0(a3); v15 = v14; if ( v14 >= 0x17 ) { v25 = 26; if ( (v14 | 7) != 0x17 ) v25 = (v14 | 7) + 1; v16 = (char *)operator new(v25); __p = v16; __s2[0] = v25 + 1; __s2[1] = v15; } else { LOBYTE(__s2[0]) = 2 * v14; v16 = (char *)__s2 + 1; if ( !v14 ) { BYTE1(__s2[0]) = 0; v17 = (char *)__s2 + 1; if ( (__s2[0] & 1) == 0 ) goto LABEL_24; goto LABEL_23; } } memmove(v16, v13, v15); v16[v15] = 0; v17 = (char *)__s2 + 1; if ( (__s2[0] & 1) != 0 ) LABEL_23: v17 = (const char *)__p; LABEL_24: v18 = cocos2d::CCSprite::create_1(v17); v19 = CCMenuItemSpriteExtra::create( v18, nullptr, (cocos2d::CCObject *)v3, (cocos2d::SEL_MenuHandler)(unsigned __int64)GameCell::onTouch); *(_WORD *)&v19->m_animationEnabled = 256; v24 = sub_100792C50((_DWORD)v19, 0, v20, v21, v22, v23); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v3 + 536) + 440LL))(*(_QWORD *)(v3 + 536), v24); sub_10028CBE0(&v27, *(float *)(v3 + 520) * 0.5, 0.5 * *(float *)(v3 + 524)); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v24 + 184LL))(v24, &v27); if ( (__s2[0] & 1) != 0 ) operator delete(__p); }
GD Web Decomp Icon

GD Web Decomp

Raw Source