// // GJPathSprite::init from 0x1002eda50 to 0x1002edb54 (260 bytes) // // 5 xrefs: // > GJPathsLayer::init @ 0x1002e93d6 // > GJPathSprite::create @ 0x1002e94db // > GJPathPage::init @ 0x1002ea4c6 // > GJPathPage::playUnlockAnimation @ 0x1002ebcba // > GJPathPage::unlockAnimationStep3 @ 0x1002ecdf7 // // 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:28:24 +0000 // __int64 __fastcall GJPathSprite::init(__int64 a1, int a2, double a3) { int v3; // ebx __int64 v4; // r14 __int64 v5; // rax const char *CString; // r12 size_t v7; // rax size_t v8; // r15 char *v9; // r13 char *v10; // rsi size_t v11; // rbx __int64 result; // rax unsigned int v13; // ebx char v14; // [rsp+0h] [rbp-50h] _QWORD __dst[2]; // [rsp+10h] [rbp-40h] BYREF void *__p; // [rsp+20h] [rbp-30h] v3 = a2; v4 = a1; v5 = sub_10088E820("pathIcon_%02d_001.png", v14); CString = (const char *)cocos2d::CCString::getCString(v5); v7 = strlen(CString); if ( v7 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v8 = v7; if ( v7 >= 0x17 ) { v11 = 26; if ( (v7 | 7) != 0x17 ) v11 = (v7 | 7) + 1; v9 = (char *)operator new(v11); __p = v9; __dst[0] = v11 + 1; v3 = a2; v4 = a1; __dst[1] = v8; LABEL_9: memmove(v9, CString, v8); v9[v8] = 0; if ( (__dst[0] & 1) != 0 ) goto LABEL_5; goto LABEL_10; } LOBYTE(__dst[0]) = 2 * v7; v9 = (char *)__dst + 1; if ( v7 ) goto LABEL_9; BYTE1(__dst[0]) = 0; if ( (__dst[0] & 1) != 0 ) { LABEL_5: v10 = (char *)__p; goto LABEL_11; } LABEL_10: v10 = (char *)__dst + 1; LABEL_11: result = cocos2d::CCSprite::initWithSpriteFrameName(v4, (__int64)v10, a3); if ( (_BYTE)result ) *(_DWORD *)(v4 + 596) = v3; if ( (__dst[0] & 1) != 0 ) { v13 = result; operator delete(__p); return v13; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source