// // EndLevelLayer::getCoinString from 0x1002f6f8c to 0x1002f7134 (424 bytes) // // 1 xrefs: // > EndLevelLayer::customSetup @ 0x1002f6338 // // 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 __usercall EndLevelLayer::getCoinString(__int64 a1@, _QWORD *a2@) { _DWORD *v4; // x8 int v5; // w24 int v6; // w23 int v7; // w22 int v8; // w8 _BOOL4 v11; // w9 char v13; // w8 std::string *v14; // x8 cocos2d::CCString *v15; // x0 char *CString; // x0 std::string v17; // [xsp+8h] [xbp-48h] BYREF if ( !*(_QWORD *)(a1 + 608) ) { sub_100009900(a2, ""); return; } sub_100009900(&v17, "all coins"); v4 = *(_DWORD **)(*(_QWORD *)(a1 + 608) + 1936LL); v5 = v4[223] - v4[224]; v6 = v4[226] - v4[227]; v7 = v4[229] - v4[230]; v8 = v4[212]; v11 = v5 == 1 || v6 == 1 || v7 == 1; if ( v8 >= 2 && v11 ) { std::string::assign(&v17, "coin "); if ( v5 == 1 ) { if ( v6 == 1 ) { v13 = 1; LABEL_23: if ( v7 != 1 && *(int *)(*(_QWORD *)(*(_QWORD *)(a1 + 608) + 1936LL) + 848LL) >= 3 ) { if ( (v13 & 1) == 0 ) std::string::append(&v17, ", "); std::string::append(&v17, "3"); } goto LABEL_28; } } else { std::string::append(&v17, "1"); if ( v6 == 1 ) { LABEL_22: v13 = 0; goto LABEL_23; } std::string::append(&v17, ", "); } std::string::append(&v17, "2"); goto LABEL_22; } LABEL_28: if ( (v17.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v14 = &v17; else v14 = (std::string *)v17.__r_.__value_.__r.__words[0]; v15 = (cocos2d::CCString *)sub_100268F4C("You need to collect %s to verify the level!", (const char *)v14); CString = (char *)cocos2d::CCString::getCString(v15); sub_100009900(a2, CString); if ( SHIBYTE(v17.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v17.__r_.__value_.__l.__data_); }
GD Web Decomp Icon

GD Web Decomp

Raw Source