// // SetupOpacityPopup::textChanged from 0x1405c0b50 to 0x1405c0e50 (768 bytes) // // 4 xrefs: // > @ 0x1407f7c70 // > @ 0x1408e0508 // > @ 0x1408e0518 // > @ 0x14092e124 // // 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:34:47 +0000 // void __fastcall SetupOpacityPopup::textChanged(__int64 a1, _QWORD *a2) { _BYTE *v4; // rax size_t v5; // r8 const char *v6; // rcx int v7; // eax unsigned __int64 v8; // rdx char *v9; // rcx int v10; // ecx __int64 v11; // rax cocos2d::CCArray *v12; // rcx unsigned int v13; // edi struct cocos2d::CCObject *v14; // rax int v15; // ecx _BYTE *v16; // rax size_t v17; // r8 const char *v18; // rcx float v19; // xmm6_4 char *v20; // rcx cocos2d::CCString *v21; // rax float v22; // xmm1_4 float v23; // xmm2_4 char *String[2]; // [rsp+38h] [rbp-50h] BYREF __int128 v25; // [rsp+48h] [rbp-40h] if ( !*(_BYTE *)(a1 + 200) ) { if ( (*(unsigned int (__fastcall **)(_QWORD *))(*a2 + 56LL))(a2) == 3 ) { v4 = (_BYTE *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)(a2[74] + 600LL) + 8LL))(a2[74] + 600LL); *(_OWORD *)String = 0; v5 = -1; v25 = 0; do ++v5; while ( v4[v5] ); sub_14003D230(String, v4, v5); v6 = (const char *)String; if ( *((_QWORD *)&v25 + 1) > 0xFu ) v6 = String[0]; v7 = atoi(v6); v8 = *((_QWORD *)&v25 + 1); *(_DWORD *)(a1 + 504) = v7; if ( v8 > 0xF ) { v9 = String[0]; if ( v8 + 1 >= 0x1000 ) { v9 = *((char **)String[0] - 1); if ( (unsigned __int64)(String[0] - v9 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v9); } v10 = 0; if ( *(int *)(a1 + 504) >= 0 ) v10 = *(_DWORD *)(a1 + 504); v11 = *(_QWORD *)(a1 + 136); if ( v10 > 9999 ) v10 = 9999; *(_DWORD *)(a1 + 504) = v10; if ( v11 ) { *(_DWORD *)(v11 + 1480) = v10; } else { v12 = *(cocos2d::CCArray **)(a1 + 144); if ( v12 ) { v13 = 0; if ( cocos2d::CCArray::count(v12) ) { do { v14 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 144), v13); v15 = *(_DWORD *)(a1 + 504); if ( v15 < 0 ) v15 = 0; if ( v15 > 9999 ) v15 = 9999; ++v13; *((_DWORD *)v14 + 370) = v15; } while ( v13 < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 144)) ); } } } SetupTriggerPopup::updateEditorLabel(a1 - 544); } else if ( (*(unsigned int (__fastcall **)(_QWORD *))(*a2 + 56LL))(a2) == 4 ) { v16 = (_BYTE *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)(a2[74] + 600LL) + 8LL))(a2[74] + 600LL); *(_OWORD *)String = 0; v17 = -1; v25 = 0; do ++v17; while ( v16[v17] ); sub_14003D230(String, v16, v17); v18 = (const char *)String; if ( *((_QWORD *)&v25 + 1) > 0xFu ) v18 = String[0]; v19 = atof(v18); if ( *((_QWORD *)&v25 + 1) > 0xFu ) { v20 = String[0]; if ( (unsigned __int64)(*((_QWORD *)&v25 + 1) + 1LL) >= 0x1000 ) { v20 = *((char **)String[0] - 1); if ( (unsigned __int64)(String[0] - v20 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v20); } v21 = cocos2d::CCString::createWithFormat("%.02f", v19); *(float *)(a1 + 500) = cocos2d::CCString::floatValue(v21); SetupOpacityPopup::updateDuration(a1 - 544); v22 = 0.0; v23 = fminf(1.0, *(float *)(a1 + 500) / 10.0); if ( v23 >= 0.0 ) v22 = v23; Slider::setValue(*(_QWORD *)(a1 + 480), v22); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source