// // GJMapObject::createMonster from 0x100250c60 to 0x100250ee1 (641 bytes) // // 2 xrefs: // > MapSelectLayer::init @ 0x1002522d5 // > MapSelectLayer::init @ 0x1002523ba // // 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:27:24 +0000 // _OWORD *__fastcall GJMapObject::createMonster(unsigned int a1) { float v1; // xmm0_4 __int64 v2; // rbx __int64 v3; // rax __int64 v4; // r15 __int128 *v5; // rax int v6; // eax _OWORD *v7; // rbx int v8; // eax int v9; // r14d int v10; // eax int v11; // ecx int v12; // r8d int v13; // r9d __int64 v14; // rax __int128 v16; // [rsp+0h] [rbp-50h] BYREF void *__p; // [rsp+10h] [rbp-40h] float v18; // [rsp+24h] [rbp-2Ch] float v19; // [rsp+28h] [rbp-28h] __int16 v20; // [rsp+2Ch] [rbp-24h] BYREF char v21; // [rsp+2Eh] [rbp-22h] float v22; // [rsp+34h] [rbp-1Ch] if ( a1 == 918 ) v1 = (float)((float)((float)rand() * 4.6566129e-10) * 0.40000001) + 0.69999999; else v1 = 1.0; v22 = v1; v2 = GameObject::createWithKey(a1); v21 = 0; v20 = 0; (*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v2 + 1584LL))(v2, &v20); v21 = -1; v20 = -1; (*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v2 + 1592LL))(v2, &v20); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v2 + 1472) + 1080LL))(*(_QWORD *)(v2 + 1472), 0x100000302LL); v3 = *(_QWORD *)(v2 + 1464); v4 = *(_QWORD *)(v3 + 648); if ( (*(_BYTE *)(v3 + 688) & 1) != 0 ) { sub_10001AD30(&v16, *(const void **)(v3 + 704), *(_QWORD *)(v3 + 696)); } else { v5 = (__int128 *)(v3 + 688); __p = *((void **)v5 + 2); v16 = *v5; } SpriteAnimationManager::runAnimation(v4, &v16); if ( (v16 & 1) != 0 ) operator delete(__p); if ( a1 == 918 ) { SpriteAnimationManager::updateAnimationSpeed(*(_QWORD *)(*(_QWORD *)(v2 + 1464) + 648LL), 0.89999998); v6 = rand(); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v2 + 360LL))( v2, (float)((float)((float)v6 * 4.6566129e-10) * 10.0) + 10.0); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v2 + 160LL))(v2, 0.34999999 * v22); v7 = GJMapObject::create(v2); v19 = 0.18000001 * v22; v18 = 0.5 * v22; sub_100278250(&v20, 0.0, v22 * -11.0); (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)v7 + 42) + 128LL))(*((_QWORD *)v7 + 42), v19); (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)v7 + 42) + 144LL))(*((_QWORD *)v7 + 42), v18); (*(void (__fastcall **)(_QWORD, __int16 *))(**((_QWORD **)v7 + 42) + 184LL))(*((_QWORD *)v7 + 42), &v20); v8 = rand(); v9 = cocos2d::CCDelayTime::create((float)((float)v8 * 4.6566129e-10) * 0.40000001); v10 = cocos2d::CCCallFunc::create(v7, GJMapObject::startMonsterJumpLoop, 0); v14 = sub_10039EB60(v9, v10, 0, v11, v12, v13); cocos2d::CCNode::runAction(v7, v14); return v7; } else { if ( a1 == 1327 ) (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v2 + 160LL))(v2, v22 * 0.60000002); return GJMapObject::create(v2); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source