// // LevelBrowserLayer::setIDPopupClosed from 0x1403e66b0 to 0x1403e6a1f (879 bytes) // // 3 xrefs: // > LevelListLayer::setIDPopupClosed @ 0x14042eecf // > @ 0x14078a000 // > @ 0x140924f5c // // 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:31:43 +0000 // // Hidden C++ exception states: #wind=7 void __fastcall LevelBrowserLayer::setIDPopupClosed(__int64 a1, __int64 a2, int a3) { __int64 v5; // rax __int64 v6; // rax __int64 v7; // rbx __int64 v8; // rbx struct cocos2d::CCString *v9; // rax void *v10; // rcx __int64 v11; // rbx __int64 v12; // rbx struct cocos2d::CCString *v13; // rax int v14; // edi int v15; // eax __int64 v16; // rax __int64 v17; // rax int *PageObject; // rax void *v19; // [rsp+30h] [rbp-30h] void *v20; // [rsp+30h] [rbp-30h] void *v21; // [rsp+30h] [rbp-30h] void *v22; // [rsp+30h] [rbp-30h] void *Block[2]; // [rsp+38h] [rbp-28h] BYREF __int64 v24; // [rsp+48h] [rbp-18h] unsigned __int64 v25; // [rsp+50h] [rbp-10h] if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2) == 4 ) { if ( a3 >= 0 ) { if ( a3 > 999 ) a3 = 999; } else { a3 = 0; } if ( *(_QWORD *)(a1 + 104) ) { v5 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v19 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v19); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v5 = qword_14090BFD0; } *(_QWORD *)(v5 + 996) = 0; *(_DWORD *)(*(_QWORD *)(a1 + 104) + 452LL) = a3; *(_DWORD *)(*(_QWORD *)(a1 + 104) + 424LL) = 0; LevelBrowserLayer::loadPage(a1 - 560, *(int **)(a1 + 104)); v6 = *(_QWORD *)(a1 + 104); if ( v6 && *(_DWORD *)(v6 + 320) == 99 ) { v7 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v20 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v20); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v7 = qword_14090BFD0; } *(_OWORD *)Block = 0; v24 = 3; v25 = 15; LODWORD(Block[0]) = 6256231; sub_140044D80(Block, "0092", 4u); v8 = *(_QWORD *)(v7 + 432); v9 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, (unsigned int)a3); cocos2d::CCDictionary::setObject(v8, v9, Block); if ( v25 > 0xF ) { v10 = Block[0]; if ( v25 + 1 >= 0x1000 ) { v10 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v10 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } LABEL_23: j_j_free(v10); } } else { v11 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v21 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v21); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v11 = qword_14090BFD0; } *(_OWORD *)Block = 0; v24 = 3; v25 = 15; LODWORD(Block[0]) = 6256231; sub_140044D80(Block, "0091", 4u); v12 = *(_QWORD *)(v11 + 432); v13 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, (unsigned int)a3); cocos2d::CCDictionary::setObject(v12, v13, Block); if ( v25 > 0xF ) { v10 = Block[0]; if ( v25 + 1 >= 0x1000 ) { v10 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v10 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } goto LABEL_23; } } } } else { v14 = a3 - 1; v15 = *(_DWORD *)(a1 + 184); if ( v15 > 0 && v15 < v14 ) v14 = *(_DWORD *)(a1 + 184); v16 = *(_QWORD *)(a1 + 104); if ( v16 && *(_DWORD *)(v16 + 424) != v14 ) { v17 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v22 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v22); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v17 = qword_14090BFD0; } *(_QWORD *)(v17 + 996) = 0; PageObject = (int *)GJSearchObject::getPageObject(*(_QWORD *)(a1 + 104), v14); LevelBrowserLayer::loadPage(a1 - 560, PageObject); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source