// // SpriteDescription::initDescription_1 from 0x100599c70 to 0x100599ea7 (567 bytes) // // 2 xrefs: // > CCAnimateFrameCache::addDict_1 @ 0x100599649 // > SpriteDescription::createDescription_1 @ 0x100599b15 // // 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:32:30 +0000 // char __fastcall SpriteDescription::initDescription_1(__int64 a1, __int64 a2, double a3) { double v4; // xmm0_8 char *v5; // r15 char *v6; // r15 char *v7; // r15 char v8; // r13 char *v9; // r12 char *v10; // r15 char *v11; // rdi int v12; // eax __int64 v13; // rax __int64 v14; // rax __int64 v15; // rbx std::string __str; // [rsp+0h] [rbp-60h] BYREF char v18[16]; // [rsp+20h] [rbp-40h] BYREF char *v19; // [rsp+30h] [rbp-30h] DS_Dictionary::getVec2ForKey((__int64)v18, a2, "position", a3); sub_100278300((_QWORD *)(a1 + 56), v18); DS_Dictionary::getVec2ForKey((__int64)v18, a2, "flipped", a3); sub_100278300((_QWORD *)(a1 + 72), v18); DS_Dictionary::getVec2ForKey((__int64)v18, a2, "scale", a3); sub_100278300((_QWORD *)(a1 + 64), v18); DS_Dictionary::getStringForKey(v18, a2, "rotation", a3); if ( (v18[0] & 1) != 0 ) { v5 = v19; v4 = atof(v19); *(float *)&v4 = v4; *(_DWORD *)(a1 + 80) = LODWORD(v4); operator delete(v5); } else { v4 = atof(&v18[1]); *(float *)&v4 = v4; *(_DWORD *)(a1 + 80) = LODWORD(v4); } DS_Dictionary::getStringForKey(v18, a2, "zValue", v4); if ( (v18[0] & 1) != 0 ) { v6 = v19; *(_DWORD *)(a1 + 84) = atoi(v19); operator delete(v6); } else { *(_DWORD *)(a1 + 84) = atoi(&v18[1]); } DS_Dictionary::getStringForKey(v18, a2, "tag", v4); if ( (v18[0] & 1) != 0 ) { v7 = v19; *(_DWORD *)(a1 + 88) = atoi(v19); operator delete(v7); } else { *(_DWORD *)(a1 + 88) = atoi(&v18[1]); } DS_Dictionary::getStringForKey(v18, a2, "usesCustomTag", v4); v8 = v18[0]; v9 = v19; v10 = &v18[1]; v11 = v19; if ( (v18[0] & 1) == 0 ) v11 = &v18[1]; v12 = atoi(v11); *(_BYTE *)(a1 + 92) = v12 != 0; if ( (v8 & 1) != 0 ) { operator delete(v9); if ( (*(_BYTE *)(a1 + 92) & 1) == 0 ) return 1; } else if ( !v12 ) { return 1; } DS_Dictionary::getStringForKey(v18, a2, "texture", v4); v13 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); if ( (v18[0] & 1) != 0 ) v10 = v19; v14 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v13, v10); *(_QWORD *)(a1 + 96) = v14; cocos2d::CCObject::retain(v14); v15 = *(_QWORD *)(a1 + 96); if ( (v18[0] & 1) != 0 ) { sub_10001AD30(&__str, v19, *(unsigned __int64 *)&v18[8]); } else { __str.__r_.__value_.__r.__words[2] = (std::string::size_type)v19; *(_OWORD *)&__str.__r_.__value_.__l.0 = *(_OWORD *)v18; } std::string::operator=((std::string *)(v15 + 160), &__str); if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 ) operator delete(__str.__r_.__value_.__l.__data_); if ( (v18[0] & 1) != 0 ) operator delete(v19); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source