// // EditorUI::setIDPopupClosed from 0x1401b10b0 to 0x1401b148d (989 bytes) // // 2 xrefs: // > @ 0x140751240 // > @ 0x140919f28 // // 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:27:56 +0000 // // Hidden C++ exception states: #wind=4 void __fastcall EditorUI::setIDPopupClosed(__int64 a1, __int64 a2, unsigned int a3) { __int64 v6; // rbx __int64 v7; // rbx struct cocos2d::CCString *v8; // rax void *v9; // rcx __int64 *v10; // rbx cocos2d::CCString *v11; // rax char *CString; // rax __int64 v13; // rbx __int64 v14; // rbx struct cocos2d::CCString *v15; // rax void *v16; // rcx _BYTE *v17; // rax size_t v18; // r8 void **v19; // rdi void *v20; // rcx void **v21; // rdx void *v22; // rcx void *v23; // [rsp+30h] [rbp-50h] void *v24; // [rsp+30h] [rbp-50h] void *Block[2]; // [rsp+38h] [rbp-48h] BYREF __int64 v26; // [rsp+48h] [rbp-38h] unsigned __int64 v27; // [rsp+50h] [rbp-30h] void *v28[2]; // [rsp+58h] [rbp-28h] BYREF __int128 v29; // [rsp+68h] [rbp-18h] if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2) == 1 ) { v6 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v23 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v23); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v6 = qword_14090BFD0; } *(_OWORD *)Block = 0; v26 = 3; v27 = 15; LODWORD(Block[0]) = 6256231; sub_140044D80(Block, "0133", 4u); v7 = *(_QWORD *)(v6 + 432); v8 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, a3); cocos2d::CCDictionary::setObject(v7, v8, Block); if ( v27 > 0xF ) { v9 = Block[0]; if ( v27 + 1 >= 0x1000 ) { v9 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v9 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v9); } v10 = *(__int64 **)(a1 + 904); v11 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, a3); CString = (char *)cocos2d::CCString::getCString(v11); ButtonSprite::setString(v10, CString); } else if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2) == 2 ) { v13 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v24 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v24); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v13 = qword_14090BFD0; } *(_OWORD *)Block = 0; v26 = 3; v27 = 15; LODWORD(Block[0]) = 6256231; sub_140044D80(Block, "0139", 4u); v14 = *(_QWORD *)(v13 + 432); v15 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, a3); cocos2d::CCDictionary::setObject(v14, v15, Block); if ( v27 > 0xF ) { v16 = Block[0]; if ( v27 + 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); } *(_OWORD *)v28 = 0; *(_QWORD *)&v29 = 0; *((_QWORD *)&v29 + 1) = 15; LOBYTE(v28[0]) = 0; if ( (int)a3 < 1000 ) { v19 = (void **)GameToolbox::intToString(Block, a3); if ( v28 != v19 ) { if ( *((_QWORD *)&v29 + 1) > 0xFu ) { v20 = v28[0]; if ( (unsigned __int64)(*((_QWORD *)&v29 + 1) + 1LL) >= 0x1000 ) { v20 = *((void **)v28[0] - 1); if ( (unsigned __int64)((char *)v28[0] - (char *)v20 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v20); } *(_QWORD *)&v29 = 0; *((_QWORD *)&v29 + 1) = 15; LOBYTE(v28[0]) = 0; *(_OWORD *)v28 = *(_OWORD *)v19; v29 = *((_OWORD *)v19 + 1); v19[2] = nullptr; v19[3] = (void *)15; *(_BYTE *)v19 = 0; } sub_14003D310((__int64)Block); } else { v17 = (_BYTE *)GJSpecialColorSelect::textForColorIdx(a3); v18 = -1; do ++v18; while ( v17[v18] ); sub_1400405A0(v28, v17, v18); } v21 = v28; if ( *((_QWORD *)&v29 + 1) > 0xFu ) v21 = (void **)v28[0]; ButtonSprite::setString(*(__int64 **)(a1 + 912), v21); if ( *((_QWORD *)&v29 + 1) > 0xFu ) { v22 = v28[0]; if ( (unsigned __int64)(*((_QWORD *)&v29 + 1) + 1LL) >= 0x1000 ) { v22 = *((void **)v28[0] - 1); if ( (unsigned __int64)((char *)v28[0] - (char *)v22 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v22); } } }