// // BitmapFontCache::fontWithConfigFile from 0x14003de90 to 0x14003e126 (662 bytes) // // 3 xrefs: // > sub_140053E20 @ 0x140053fba // > MultilineBitmapFont::initWithFont @ 0x140078f7a // > @ 0x14090f17c // // 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:25:28 +0000 // // Hidden C++ exception states: #wind=4 _QWORD *__fastcall BitmapFontCache::fontWithConfigFile(__int64 a1, const char *a2, float a3) { cocos2d::CCString *v5; // rax const char *CString; // rax const char *v7; // rdi size_t v8; // rbx size_t v9; // r8 __int64 v10; // rsi void *v11; // r8 __int64 v12; // rbx void *v13; // r8 _QWORD *v15; // rsi void *v16; // rcx void *Block[2]; // [rsp+38h] [rbp-50h] BYREF __int64 v18; // [rsp+48h] [rbp-40h] unsigned __int64 v19; // [rsp+50h] [rbp-38h] v5 = cocos2d::CCString::createWithFormat("%s%f", a2, a3); CString = cocos2d::CCString::getCString(v5); v7 = CString; *(_OWORD *)Block = 0; v18 = 0; v19 = 0; v8 = -1; v9 = -1; do ++v9; while ( CString[v9] ); sub_14003D230(Block, CString, v9); v10 = cocos2d::CCDictionary::objectForKey(*(_QWORD *)(a1 + 56), Block); if ( v19 > 0xF ) { v11 = Block[0]; if ( v19 + 1 >= 0x1000 ) { v11 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v11 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v11); } if ( v10 ) { *(_OWORD *)Block = 0; v18 = 0; v19 = 0; do ++v8; while ( v7[v8] ); sub_14003D230(Block, v7, v8); v12 = cocos2d::CCDictionary::objectForKey(*(_QWORD *)(a1 + 56), Block); if ( v19 > 0xF ) { v13 = Block[0]; if ( v19 + 1 >= 0x1000 ) { v13 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v13 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v13); } return (_QWORD *)v12; } else { v15 = operator new(0xB8u); memset(v15, 0, 0xB8u); cocos2d::CCObject::CCObject((cocos2d::CCObject *)v15); *v15 = &FontObject::`vftable'; sub_14003EC10(v15 + 7); sub_14003EC10(v15 + 15); FontObject::parseConfigFile(v15, a2); cocos2d::CCObject::autorelease((cocos2d::CCObject *)v15); *(_OWORD *)Block = 0; v18 = 0; v19 = 0; do ++v8; while ( v7[v8] ); sub_14003D230(Block, v7, v8); cocos2d::CCDictionary::setObject(*(_QWORD *)(a1 + 56), v15, Block); if ( v19 > 0xF ) { v16 = Block[0]; if ( v19 + 1 >= 0x1000 ) { v16 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v16 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v16); } return v15; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source