{"type": "func", "start": 5371361392, "end": 5371361741, "name": "GameManager::reloadAllStep2", "pseudocode": "// \n// GameManager::reloadAllStep2 from 0x140287870 to 0x1402879cd (349 bytes)\n// \n// 2 xrefs:\n// > GameManager::reloadAll @ 0x140287819\n// > <???> @ 0x14091d174\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:29:02 +0000\n// \n\nvoid __fastcall GameManager::reloadAllStep2(__int64 a1)\n{\n  cocos2d::CCDirector *v2; // rax\n  CCContentManager *v3; // rax\n  cocos2d::CCDictionary **v4; // rbx\n  __int64 v5; // rcx\n  __int64 v6; // rax\n  cocos2d *v7; // rcx\n  cocos2d *v8; // rcx\n  cocos2d::CCActionManager *v9; // rdi\n  __int64 v10; // rbx\n  struct cocos2d::CCFiniteTimeAction *v11; // rax\n  struct cocos2d::CCAction *v12; // rax\n\n  if ( *(_BYTE *)(a1 + 428) )\n  {\n    v2 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(a1);\n    cocos2d::CCDirector::removeStatsLabel(v2);\n    v3 = (CCContentManager *)CCContentManager::sharedManager();\n    CCContentManager::clearCache(v3);\n    cocos2d::CCTextureCache::purgeSharedTextureCache();\n    cocos2d::CCSpriteFrameCache::purgeSharedSpriteFrameCache();\n    cocos2d::CCLabelBMFont::purgeCachedData();\n    if ( qword_14090BF50 )\n    {\n      cocos2d::CCObject::release((cocos2d::CCObject *)qword_14090BF50);\n      qword_14090BF50 = 0;\n    }\n    v4 = (cocos2d::CCDictionary **)CCAnimateFrameCache::sharedSpriteFrameCache();\n    cocos2d::CCDictionary::removeAllObjects(v4[7]);\n    cocos2d::CCDictionary::removeAllObjects(v4[8]);\n    cocos2d::CCDictionary::removeAllObjects(v4[9]);\n    cocos2d::CCFileUtils::purgeFileUtils();\n    v6 = cocos2d::CCFileUtils::sharedFileUtils(v5);\n    (*(void (__fastcall **)(__int64, const char *))(*(_QWORD *)v6 + 112LL))(v6, \"Resources\");\n    if ( qword_14090BF78 )\n    {\n      cocos2d::CCObject::release((cocos2d::CCObject *)qword_14090BF78);\n      qword_14090BF78 = 0;\n    }\n    *(_QWORD *)(a1 + 1012) = 0;\n    *(_DWORD *)(a1 + 1020) = 0;\n    sub_14016EDD0((_QWORD *)(a1 + 1184));\n    *(_DWORD *)(a1 + 1028) = 0;\n    if ( *(_BYTE *)(a1 + 424) )\n    {\n      cocos2d::ccDrawFree(v7);\n      cocos2d::CCShaderCache::purgeSharedShaderCache();\n      cocos2d::CCAnimationCache::purgeSharedAnimationCache();\n      cocos2d::ccGLInvalidateStateCache(v8);\n    }\n  }\n  v9 = *(cocos2d::CCActionManager **)(a1 + 264);\n  v10 = cocos2d::CCCallFunc::create(a1, GameManager::reloadAllStep3);\n  v11 = cocos2d::CCDelayTime::create(0.0);\n  v12 = cocos2d::CCSequence::create(v11, v10, 0);\n  cocos2d::CCActionManager::addAction(v9, v12, (struct cocos2d::CCNode *)a1, 0);\n}", "assembly": "; \n; GameManager::reloadAllStep2 from 0x140287870 to 0x1402879cd (349 bytes)\n; \n; 2 xrefs:\n; > GameManager::reloadAll @ 0x140287819\n; > <???> @ 0x14091d174\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:29:02 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140287870\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x140287875\npush    rdi                                                            ; +0xa, 0x14028787a\nsub     rsp, 20h                                                       ; +0xb, 0x14028787b\ncmp     byte ptr [rcx+1ACh], 0                                         ; +0xf, 0x14028787f\nmov     rsi, rcx                                                       ; +0x16, 0x140287886\njz      loc_140287979                                                  ; +0x19, 0x140287889\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x1f, 0x14028788f\nmov     rcx, rax                                                       ; +0x25, 0x140287895\ncall    cs:?removeStatsLabel@CCDirector@cocos2d@@QEAAXXZ; cocos2d::CCDirector::removeStatsLabel(void) ; +0x28, 0x140287898\ncall    cs:?sharedManager@CCContentManager@@SAPEAV1@XZ; CCContentManager::sharedManager(void) ; +0x2e, 0x14028789e\nmov     rcx, rax                                                       ; +0x34, 0x1402878a4\ncall    cs:?clearCache@CCContentManager@@QEAAXXZ; CCContentManager::clearCache(void) ; +0x37, 0x1402878a7\ncall    cs:?purgeSharedTextureCache@CCTextureCache@cocos2d@@SAXXZ; cocos2d::CCTextureCache::purgeSharedTextureCache(void) ; +0x3d, 0x1402878ad\ncall    cs:?purgeSharedSpriteFrameCache@CCSpriteFrameCache@cocos2d@@SAXXZ; cocos2d::CCSpriteFrameCache::purgeSharedSpriteFrameCache(void) ; +0x43, 0x1402878b3\ncall    cs:?purgeCachedData@CCLabelBMFont@cocos2d@@SAXXZ; cocos2d::CCLabelBMFont::purgeCachedData(void) ; +0x49, 0x1402878b9\nmov     rcx, cs:qword_14090BF50                                        ; +0x4f, 0x1402878bf\nxor     edi, edi                                                       ; +0x56, 0x1402878c6\ntest    rcx, rcx                                                       ; +0x58, 0x1402878c8\njz      short loc_1402878DA                                            ; +0x5b, 0x1402878cb\ncall    cs:?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x5d, 0x1402878cd\nmov     cs:qword_14090BF50, rdi                                        ; +0x63, 0x1402878d3\ncall    CCAnimateFrameCache__sharedSpriteFrameCache                    ; +0x6a, 0x1402878da\nmov     rbx, rax                                                       ; +0x6f, 0x1402878df\nmov     rcx, [rax+38h]                                                 ; +0x72, 0x1402878e2\ncall    cs:?removeAllObjects@CCDictionary@cocos2d@@QEAAXXZ; cocos2d::CCDictionary::removeAllObjects(void) ; +0x76, 0x1402878e6\nmov     rcx, [rbx+40h]                                                 ; +0x7c, 0x1402878ec\ncall    cs:?removeAllObjects@CCDictionary@cocos2d@@QEAAXXZ; cocos2d::CCDictionary::removeAllObjects(void) ; +0x80, 0x1402878f0\nmov     rcx, [rbx+48h]                                                 ; +0x86, 0x1402878f6\ncall    cs:?removeAllObjects@CCDictionary@cocos2d@@QEAAXXZ; cocos2d::CCDictionary::removeAllObjects(void) ; +0x8a, 0x1402878fa\ncall    cs:?purgeFileUtils@CCFileUtils@cocos2d@@SAXXZ; cocos2d::CCFileUtils::purgeFileUtils(void) ; +0x90, 0x140287900\ncall    cs:?sharedFileUtils@CCFileUtils@cocos2d@@SAPEAV12@XZ; cocos2d::CCFileUtils::sharedFileUtils(void) ; +0x96, 0x140287906\nlea     rdx, aResources; \"Resources\"                                   ; +0x9c, 0x14028790c\nmov     rcx, [rax]                                                     ; +0xa3, 0x140287913\nmov     r8, [rcx+70h]                                                  ; +0xa6, 0x140287916\nmov     rcx, rax                                                       ; +0xaa, 0x14028791a\ncall    r8                                                             ; +0xad, 0x14028791d\nmov     rcx, cs:qword_14090BF78                                        ; +0xb0, 0x140287920\ntest    rcx, rcx                                                       ; +0xb7, 0x140287927\njz      short loc_140287939                                            ; +0xba, 0x14028792a\ncall    cs:?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0xbc, 0x14028792c\nmov     cs:qword_14090BF78, rdi                                        ; +0xc2, 0x140287932\nlea     rcx, [rsi+4A0h]                                                ; +0xc9, 0x140287939\nmov     [rsi+3F4h], rdi                                                ; +0xd0, 0x140287940\nmov     [rsi+3FCh], edi                                                ; +0xd7, 0x140287947\ncall    sub_14016EDD0                                                  ; +0xdd, 0x14028794d\nmov     [rsi+404h], edi                                                ; +0xe2, 0x140287952\ncmp     [rsi+1A8h], dil                                                ; +0xe8, 0x140287958\njz      short loc_140287979                                            ; +0xef, 0x14028795f\ncall    cs:?ccDrawFree@cocos2d@@YAXXZ; cocos2d::ccDrawFree(void)       ; +0xf1, 0x140287961\ncall    cs:?purgeSharedShaderCache@CCShaderCache@cocos2d@@SAXXZ; cocos2d::CCShaderCache::purgeSharedShaderCache(void) ; +0xf7, 0x140287967\ncall    cs:?purgeSharedAnimationCache@CCAnimationCache@cocos2d@@SAXXZ; cocos2d::CCAnimationCache::purgeSharedAnimationCache(void) ; +0xfd, 0x14028796d\ncall    cs:?ccGLInvalidateStateCache@cocos2d@@YAXXZ; cocos2d::ccGLInvalidateStateCache(void) ; +0x103, 0x140287973\nmov     rdi, [rsi+108h]                                                ; +0x109, 0x140287979\nlea     rdx, GameManager__reloadAllStep3                               ; +0x110, 0x140287980\nmov     rcx, rsi                                                       ; +0x117, 0x140287987\ncall    cs:?create@CCCallFunc@cocos2d@@SAPEAV12@PEAVCCObject@2@P832@EAAXXZ@Z; cocos2d::CCCallFunc::create(cocos2d::CCObject *,void (cocos2d::CCObject::*)(void)) ; +0x11a, 0x14028798a\nxorps   xmm0, xmm0                                                     ; +0x120, 0x140287990\nmov     rbx, rax                                                       ; +0x123, 0x140287993\ncall    cs:?create@CCDelayTime@cocos2d@@SAPEAV12@M@Z; cocos2d::CCDelayTime::create(float) ; +0x126, 0x140287996\nxor     r8d, r8d                                                       ; +0x12c, 0x14028799c\nmov     rdx, rbx                                                       ; +0x12f, 0x14028799f\nmov     rcx, rax                                                       ; +0x132, 0x1402879a2\ncall    cs:?create@CCSequence@cocos2d@@SAPEAV12@PEAVCCFiniteTimeAction@2@ZZ; cocos2d::CCSequence::create(cocos2d::CCFiniteTimeAction *,...) ; +0x135, 0x1402879a5\nxor     r9d, r9d                                                       ; +0x13b, 0x1402879ab\nmov     r8, rsi                                                        ; +0x13e, 0x1402879ae\nmov     rdx, rax                                                       ; +0x141, 0x1402879b1\nmov     rcx, rdi                                                       ; +0x144, 0x1402879b4\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x147, 0x1402879b7\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x14c, 0x1402879bc\nadd     rsp, 20h                                                       ; +0x151, 0x1402879c1\npop     rdi                                                            ; +0x155, 0x1402879c5\njmp     cs:?addAction@CCActionManager@cocos2d@@QEAAXPEAVCCAction@2@PEAVCCNode@2@_N@Z; cocos2d::CCActionManager::addAction(cocos2d::CCAction *,cocos2d::CCNode *,bool) ; +0x156, 0x1402879c6", "xrefs": ["GameManager::reloadAll @ 0x140287819", "<???> @ 0x14091d174"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}