// // LevelEditorLayer::updateObjectLabel from 0x1000bc880 to 0x1000bcc47 (967 bytes) // // 4 xrefs: // > EditorUI::dynamicGroupUpdate @ 0x100016029 // > LevelEditorLayer::addSpecial @ 0x1000af53d // > SetupTriggerPopup::updateEditorLabel @ 0x10021b66e // > SetupTriggerPopup::onClose @ 0x10021dc6e // // 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 12:20:32 +0000 // void __fastcall LevelEditorLayer::updateObjectLabel(unsigned int *a1) { int v2; // ecx unsigned __int64 v3; // rax __int64 v4; // rdx unsigned __int64 v5; // rax __int64 v6; // rdx int v7; // edx unsigned int v8; // eax __int64 v9; // rsi const std::string::value_type *v10; // rax char *v11; // rdi __int64 v12; // rax const std::string::value_type *CString; // rsi __int64 v14; // rax __int64 v15; // rax const std::string::value_type *v16; // rsi __int64 v17; // rax __int64 v18; // r14 std::string::pointer data; // rsi __int64 v20; // rax std::string v21; // [rsp+0h] [rbp-50h] BYREF float v22; // [rsp+1Ch] [rbp-34h] std::string v23; // [rsp+20h] [rbp-30h] BYREF float v24; // [rsp+3Ch] [rbp-14h] v2 = a1[257]; if ( v2 <= 1810 ) { if ( v2 > 1267 ) { if ( (unsigned int)(v2 - 1585) <= 0x1F ) { v7 = -2080373759; if ( _bittest(&v7, v2 - 1585) ) goto LABEL_26; } if ( (unsigned int)(v2 - 1346) < 2 || v2 == 1268 ) goto LABEL_26; } else { v3 = (unsigned int)(v2 - 1006); if ( (unsigned int)v3 <= 0x2B ) { v4 = 0x80000000003LL; if ( _bittest64(&v4, v3) ) goto LABEL_26; } if ( v2 == 899 || v2 == 901 ) goto LABEL_26; } } else { if ( v2 <= 2061 ) { if ( ((unsigned int)(v2 - 1811) > 6 || v2 == 1813) && v2 != 1912 ) return; LABEL_26: v8 = a1[366]; if ( v2 > 1815 ) { if ( v2 == 1816 ) { memset(&v23, 0, sizeof(v23)); v24 = 0.0; v11 = "%i"; if ( *((_BYTE *)a1 + 1677) ) v11 = "%i."; v12 = sub_10088E820(v11, *(_BYTE *)&v21.__r_.__value_.__l.0); CString = (const std::string::value_type *)cocos2d::CCString::getCString(v12); std::string::assign(&v23, CString); LABEL_51: v17 = (*(__int64 (__fastcall **)(unsigned int *))(*(_QWORD *)a1 + 1704LL))(a1); v18 = v17; if ( (*(_BYTE *)&v23.__r_.__value_.__s.0 & 1) != 0 ) { data = v23.__r_.__value_.__l.__data_; if ( v17 ) { LABEL_53: (*(void (__fastcall **)(__int64, std::string::pointer))(*(_QWORD *)v17 + 928LL))(v17, data); goto LABEL_56; } } else { data = v23.__r_.__value_.__s.__data_; if ( v17 ) goto LABEL_53; } v18 = cocos2d::CCLabelBMFont::create_3(data, "bigFont.fnt"); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v18 + 160LL))(v18, 0.5); (*(void (__fastcall **)(unsigned int *, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v18, 1); (*(void (__fastcall **)(unsigned int *, __int64))(*(_QWORD *)a1 + 1712LL))(a1, v18); LABEL_56: v22 = *(float *)(*(__int64 (__fastcall **)(unsigned int *))(*(_QWORD *)a1 + 328LL))(a1); v20 = (*(__int64 (__fastcall **)(unsigned int *))(*(_QWORD *)a1 + 328LL))(a1); sub_100278250(&v21, v22 * 0.5, v24 + (float)(0.5 * *(float *)(v20 + 4))); (*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v18 + 184LL))(v18, &v21); cocos2d::CCLabelBMFont::limitLabelWidth(v18, 30.0, 0.5, 0.0); if ( (*(_BYTE *)&v23.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v23.__r_.__value_.__l.__data_); return; } v9 = v8; if ( v2 != 1817 ) goto LABEL_33; } else { if ( v2 == 899 ) { v9 = a1[256]; memset(&v23, 0, sizeof(v23)); if ( (int)v9 <= 999 ) { LABEL_47: GameToolbox::intToString(&v21, v9); if ( (*(_BYTE *)&v23.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v23.__r_.__value_.__l.__data_); v23 = v21; goto LABEL_50; } goto LABEL_37; } v9 = v8; if ( v2 != 1811 ) { LABEL_33: memset(&v23, 0, sizeof(v23)); if ( v2 == 3640 ) { v15 = sub_10088E820("%i\n%i", *(_BYTE *)&v21.__r_.__value_.__l.0); v24 = 0.0; v16 = (const std::string::value_type *)cocos2d::CCString::getCString(v15); std::string::assign(&v23, v16); goto LABEL_51; } if ( v2 == 1912 ) { v14 = sub_10088E820("%i/%i", *(_BYTE *)&v21.__r_.__value_.__l.0); v10 = (const std::string::value_type *)cocos2d::CCString::getCString(v14); goto LABEL_42; } if ( (int)v9 <= 999 || v2 != 1006 || a1[402] ) goto LABEL_47; LABEL_37: v10 = (const std::string::value_type *)GJSpecialColorSelect::textForColorIdx((unsigned int)v9); LABEL_42: std::string::assign(&v23, v10); LABEL_50: v24 = -5.0; goto LABEL_51; } } v9 = a1[420]; goto LABEL_33; } if ( v2 <= 3032 ) { if ( v2 != 2062 && v2 != 2067 && v2 != 3016 ) return; goto LABEL_26; } v5 = (unsigned int)(v2 - 3609); if ( (unsigned int)v5 <= 0x33 ) { v6 = 0x8000080000001LL; if ( _bittest64(&v6, v5) ) goto LABEL_26; } if ( v2 == 3033 ) goto LABEL_26; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source