// // GJLevelList::frameForListDifficulty from 0x100563a80 to 0x100563be9 (361 bytes) // // 5 xrefs: // > LevelListCell::loadFromList @ 0x1002455b5 // > LevelListLayer::init @ 0x10035c2b0 // > LevelListLayer::updateStatsArt @ 0x10035e213 // > SelectListIconLayer::init @ 0x100361649 // > ShareListLayer::init @ 0x100362c8c // // 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 // _QWORD *__fastcall GJLevelList::frameForListDifficulty(_QWORD *a1, unsigned int a2, int a3, double a4) { char v4; // al unsigned int v8; // esi unsigned int v9; // eax char *v10; // rdi char *v11; // rax char *v12; // r14 cocos2d::CCString *v13; // rax const char *CString; // r12 size_t v15; // rax size_t v16; // r15 char *v17; // r14 size_t v18; // r13 char v20; // [rsp-8h] [rbp-30h] v20 = v4; if ( a2 ) { v8 = 0; if ( a2 < 0xB ) v8 = a2; v9 = a2 - 6; if ( v9 <= 2 ) v8 = dword_10081E794[v9]; if ( a3 == 2 ) { v10 = "diffIcon_%02d_btn_001.png"; } else if ( a3 == 1 && v8 >= 6 ) { v10 = "difficulty_%02d_btn2_001.png"; } else { v10 = "difficulty_%02d_btn_001.png"; } v13 = (cocos2d::CCString *)sub_1007AB580(v10, v20); CString = cocos2d::CCString::getCString(v13); v15 = strlen(CString); if ( v15 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100006BF0(a4); v16 = v15; if ( v15 >= 0x17 ) { v18 = 26; if ( (v15 | 7) != 0x17 ) v18 = (v15 | 7) + 1; v17 = (char *)operator new(v18); a1[2] = v17; *a1 = v18 + 1; a1[1] = v16; } else { *(_BYTE *)a1 = 2 * v15; v17 = (char *)a1 + 1; if ( !v15 ) goto LABEL_23; } memmove(v17, CString, v16); LABEL_23: v12 = &v17[v16]; goto LABEL_24; } v11 = (char *)operator new(0x20u); a1[2] = v11; *a1 = 33; if ( a3 == 2 ) { a1[1] = 25; qmemcpy(v11, "diffIcon_auto_btn_001.png", 25); v12 = v11 + 25; } else { a1[1] = 27; qmemcpy(v11, "difficulty_auto_btn_001.png", 27); v12 = v11 + 27; } LABEL_24: *v12 = 0; return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source