// // cocos2d::CCDictionary::randomObject from 0x18000a9d0 to 0x18000aad5 (261 bytes) // // 2 xrefs: // > @ 0x18014cf68 // > @ 0x1801b7d38 // // 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:21:19 +0000 // struct cocos2d::CCObject *__fastcall cocos2d::CCDictionary::randomObject(cocos2d::CCDictionary *this) { cocos2d::CCArray *v2; // rax int *v3; // rax int v4; // ecx char *CString; // rax __int64 v7; // rbx void *v8; // r8 void *Block[3]; // [rsp+30h] [rbp-38h] BYREF unsigned __int64 v10; // [rsp+48h] [rbp-20h] if ( !*((_DWORD *)this + 16) ) return nullptr; v2 = cocos2d::CCDictionary::allKeys(this); v3 = (int *)cocos2d::CCArray::randomObject(v2); v4 = *((_DWORD *)this + 16); if ( v4 == 2 ) return cocos2d::CCDictionary::objectForKey(this, v3[14]); if ( v4 != 1 ) return nullptr; CString = (char *)cocos2d::CCString::getCString((cocos2d::CCString *)v3); sub_180005A10(Block, CString); v7 = cocos2d::CCDictionary::objectForKey((__int64)this, (__int64)Block); if ( v10 > 0xF ) { v8 = Block[0]; if ( v10 + 1 >= 0x1000 ) { v8 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v8 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free_0(v8); } return (struct cocos2d::CCObject *)v7; }
GD Web Decomp Icon

GD Web Decomp

Raw Source