// // cocos2d::CCConfiguration::loadConfigFile from 0x1800bd750 to 0x1800bdae3 (915 bytes) // // 2 xrefs: // > @ 0x1801438a8 // > @ 0x1801b90e4 // // 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 // // Hidden C++ exception states: #wind=2 void __fastcall cocos2d::CCConfiguration::loadConfigFile(cocos2d::CCConfiguration *this, const char *a2) { struct cocos2d::CCDictionary *v3; // rdi __int64 v4; // rbx void *v5; // rcx cocos2d::CCString *v6; // rbx void *v7; // rcx __int64 v8; // rdi void *v9; // rcx __int64 v10; // rdi __int64 v11; // rbx __int64 v12; // rsi void *v13; // rcx void *v14; // rcx cocos2d::CCDirector *v15; // rax void *Block[2]; // [rsp+30h] [rbp-50h] BYREF __int64 v17; // [rsp+40h] [rbp-40h] unsigned __int64 v18; // [rsp+48h] [rbp-38h] void *v19[2]; // [rsp+50h] [rbp-30h] BYREF __int64 v20; // [rsp+60h] [rbp-20h] unsigned __int64 v21; // [rsp+68h] [rbp-18h] v3 = cocos2d::CCDictionary::createWithContentsOfFile(a2); Block[1] = nullptr; v17 = 8; v18 = 15; Block[0] = (void *)0x617461646174656DLL; v4 = cocos2d::CCDictionary::objectForKey((__int64)v3, (unsigned __int8 *)Block); if ( v18 > 0xF ) { v5 = Block[0]; if ( v18 + 1 >= 0x1000 ) { v5 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v5 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free_0(v5); } v17 = 0; v18 = 15; LOBYTE(Block[0]) = 0; if ( v4 && _RTDynamicCast( v4, 0, &cocos2d::CCObject `RTTI Type Descriptor', &cocos2d::CCDictionary `RTTI Type Descriptor', 0) ) { *(_OWORD *)v19 = 0; v20 = 6; v21 = 15; strcpy((char *)v19, "format"); v6 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(v4, (unsigned __int8 *)v19); if ( v21 > 0xF ) { v7 = v19[0]; if ( v21 + 1 >= 0x1000 ) { v7 = *((void **)v19[0] - 1); if ( (unsigned __int64)((char *)v19[0] - (char *)v7 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free_0(v7); } v20 = 0; v21 = 15; LOBYTE(v19[0]) = 0; if ( v6 && _RTDynamicCast(v6, 0, &cocos2d::CCObject `RTTI Type Descriptor', &cocos2d::CCString `RTTI Type Descriptor', 0) && cocos2d::CCString::uintValue(v6) == 1 ) { *(_OWORD *)Block = 0; v17 = 4; v18 = 15; strcpy((char *)Block, "data"); v8 = cocos2d::CCDictionary::objectForKey((__int64)v3, (unsigned __int8 *)Block); if ( v18 > 0xF ) { v9 = Block[0]; if ( v18 + 1 >= 0x1000 ) { v9 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v9 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free_0(v9); } v17 = 0; v18 = 15; LOBYTE(Block[0]) = 0; if ( v8 && _RTDynamicCast( v8, 0, &cocos2d::CCObject `RTTI Type Descriptor', &cocos2d::CCDictionary `RTTI Type Descriptor', 0) ) { v10 = *(_QWORD *)(v8 + 56); if ( v10 ) v11 = *(_QWORD *)(v10 + 288); else v11 = 0; while ( v10 ) { sub_180005910(Block, (_BYTE *)v10); v12 = cocos2d::CCDictionary::objectForKey(*((_QWORD *)this + 11), (unsigned __int8 *)Block); if ( v18 > 0xF ) { v13 = Block[0]; if ( v18 + 1 >= 0x1000 ) { v13 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v13 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free_0(v13); } if ( !v12 ) { sub_180005910(Block, (_BYTE *)v10); cocos2d::CCDictionary::setObject( *((_QWORD *)this + 11), *(cocos2d::CCObject **)(v10 + 264), (unsigned __int8 *)Block); if ( v18 > 0xF ) { v14 = Block[0]; if ( v18 + 1 >= 0x1000 ) { v14 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v14 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free_0(v14); } } v10 = v11; if ( v11 ) v11 = *(_QWORD *)(v11 + 288); else v11 = 0; } v15 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::setDefaultValues(v15); } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source