// // GJChallengeItem::create from 0x100056180 to 0x1000562b6 (310 bytes) // // 3 xrefs: // > GJChallengeItem::createFromString @ 0x1000560ea // > GJChallengeItem::create_1 @ 0x1000562fa // > GJChallengeItem::createWithCoder @ 0x1000563c0 // // 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:19:36 +0000 // 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_100AB6F38; *((_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_10001AD30(&__str, a5->__r_.__value_.__l.__data_, a5->__r_.__value_.__l.__size_); 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(v7); return v7; }
GD Web Decomp Icon

GD Web Decomp

Raw Source