// // GJPathSprite::create from 0x140396e70 to 0x140397013 (419 bytes) // // 6 xrefs: // > GJItemIcon::init @ 0x140383ad3 // > GJPathsLayer::init @ 0x140392d27 // > GJPathPage::init @ 0x140393b19 // > GJPathPage::playUnlockAnimation @ 0x140395c78 // > GJPathPage::unlockAnimationStep3 @ 0x140396461 // > @ 0x140923120 // // 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 11:31:13 +0000 // // Hidden C++ exception states: #wind=2 void *__fastcall GJPathSprite::create(int a1) { void *v2; // rbx cocos2d::CCString *v3; // rax const char *CString; // rax size_t v5; // r8 void **v6; // rdx void *v7; // rcx void *v8; // rcx void *Block[2]; // [rsp+38h] [rbp-30h] BYREF __int64 v11; // [rsp+48h] [rbp-20h] unsigned __int64 v12; // [rsp+50h] [rbp-18h] v2 = operator new(0x260u); memset(v2, 0, 0x260u); cocos2d::CCSprite::CCSprite((cocos2d::CCSprite *)v2); *(_QWORD *)v2 = &GJPathSprite::`vftable'; *((_QWORD *)v2 + 40) = &GJPathSprite::`vftable'; *((_QWORD *)v2 + 43) = &GJPathSprite::`vftable'; v3 = cocos2d::CCString::createWithFormat("pathIcon_%02d_001.png", a1); CString = cocos2d::CCString::getCString(v3); *(_OWORD *)Block = 0; v11 = 0; v12 = 0; v5 = -1; do ++v5; while ( CString[v5] ); sub_14003D230(Block, CString, v5); v6 = Block; if ( v12 > 0xF ) v6 = (void **)Block[0]; if ( cocos2d::CCSprite::initWithSpriteFrameName((cocos2d::CCSprite *)v2, (const char *)v6) ) { *((_DWORD *)v2 + 150) = a1; if ( v12 > 0xF ) { v8 = Block[0]; if ( v12 + 1 >= 0x1000 ) { v8 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v8 - 8) > 0x1F ) goto LABEL_14; } j_j_free(v8); } cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2); return v2; } if ( v12 > 0xF ) { v7 = Block[0]; if ( v12 + 1 < 0x1000 || (v7 = *((void **)Block[0] - 1), (unsigned __int64)((char *)Block[0] - (char *)v7 - 8) <= 0x1F) ) { j_j_free(v7); goto LABEL_10; } LABEL_14: invoke_watson(nullptr, nullptr, nullptr, 0, 0); } LABEL_10: (*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v2 + 8LL))(v2, 1); return nullptr; }
GD Web Decomp Icon

GD Web Decomp

Raw Source