// // GJChallengeItem::create from 0x10008f660 to 0x10008f796 (310 bytes) // // 3 xrefs: // > GJChallengeItem::createFromString @ 0x10008f5ca // > GJChallengeItem::create_1 @ 0x10008f7da // > GJChallengeItem::createWithCoder @ 0x10008f8a0 // // 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 // char *__fastcall GJChallengeItem::create(int a1, int a2, int a3, int a4, std::string *a5) { char *v7; // rbx int v8; // eax float v9; // xmm0_4 std::string __str; // [rsp+0h] [rbp-50h] BYREF int v12; // [rsp+20h] [rbp-30h] int v13; // [rsp+24h] [rbp-2Ch] v12 = a4; v13 = a1; v7 = (char *)operator new(0x88u); cocos2d::CCObject::CCObject(v7); *(_QWORD *)v7 = off_1008B3938; *((_DWORD *)v7 + 26) = 0; *((_OWORD *)v7 + 7) = 0; *((_QWORD *)v7 + 16) = 0; *(_OWORD *)(v7 + 56) = 0; *(_OWORD *)(v7 + 72) = 0; *(_OWORD *)(v7 + 85) = 0; if ( (*(_BYTE *)&a5->__r_.__value_.__s.0 & 1) != 0 ) sub_100006B70(&__str, a5->__r_.__value_.__l.__data_, a5->__r_.__value_.__l.__size_, 0.0); else __str = *a5; *((_DWORD *)v7 + 14) = v13; *((_DWORD *)v7 + 24) = v12; std::string::operator=((std::string *)(v7 + 112), &__str); *((_DWORD *)v7 + 23) = a2; v8 = (int)(float)((float)((float)rand() * 4.6566129e-10) * 1000.0); *((_DWORD *)v7 + 22) = v8; *((_DWORD *)v7 + 21) = v8 + a2; *((_DWORD *)v7 + 20) = a3; v9 = (float)((float)rand() * 4.6566129e-10) * 1000.0; *((_DWORD *)v7 + 19) = (int)v9; *((_DWORD *)v7 + 18) = (int)v9 + a3; if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 ) operator delete(__str.__r_.__value_.__l.__data_); cocos2d::CCObject::autorelease((cocos2d::CCObject *)v7); return v7; }
GD Web Decomp Icon

GD Web Decomp

Raw Source