// // SetupInstantCountPopup::textChanged from 0x1405b87e0 to 0x1405b8b8c (940 bytes) // // 2 xrefs: // > @ 0x1407f3b80 // > @ 0x14092dde8 // // 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:45 +0000 // void __fastcall SetupInstantCountPopup::textChanged(__int64 a1, _QWORD *a2) { unsigned int v2; // edi _BYTE *v5; // rax size_t v6; // r8 const char *v7; // rcx int v8; // eax unsigned __int64 v9; // rdx char *v10; // rcx int v11; // ecx __int64 v12; // rax cocos2d::CCArray *v13; // rcx struct cocos2d::CCObject *v14; // rax bool v15; // zf __int64 v16; // rax _BYTE *v17; // rax size_t v18; // r8 const char *v19; // rcx int v20; // eax unsigned __int64 v21; // rdx char *v22; // rcx _BYTE *v23; // rax size_t v24; // r8 const char *v25; // rcx int v26; // eax unsigned __int64 v27; // rdx char *v28; // rcx int v29; // ecx __int64 v30; // rax cocos2d::CCArray *v31; // rcx unsigned int v32; // r14d struct cocos2d::CCObject *v33; // rax int v34; // ecx char *String[2]; // [rsp+38h] [rbp-28h] BYREF __int128 v36; // [rsp+48h] [rbp-18h] v2 = 0; if ( !*(_BYTE *)(a1 + 200) ) { if ( (*(unsigned int (__fastcall **)(_QWORD *))(*a2 + 56LL))(a2) ) { v15 = (*(unsigned int (__fastcall **)(_QWORD *))(*a2 + 56LL))(a2) == 1; v16 = *(_QWORD *)(a2[74] + 600LL); if ( v15 ) { v17 = (_BYTE *)(*(__int64 (**)(void))(v16 + 8))(); *(_OWORD *)String = 0; v18 = -1; v36 = 0; do ++v18; while ( v17[v18] ); sub_14003D230(String, v17, v18); v19 = (const char *)String; if ( *((_QWORD *)&v36 + 1) > 0xFu ) v19 = String[0]; v20 = atoi(v19); v21 = *((_QWORD *)&v36 + 1); *(_DWORD *)(a1 + 488) = v20; if ( v21 > 0xF ) { v22 = String[0]; if ( v21 + 1 >= 0x1000 ) { v22 = *((char **)String[0] - 1); if ( (unsigned __int64)(String[0] - v22 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v22); } SetupInstantCountPopup::updateTargetCount(a1 - 544); } else { v23 = (_BYTE *)(*(__int64 (**)(void))(v16 + 8))(); *(_OWORD *)String = 0; v24 = -1; v36 = 0; do ++v24; while ( v23[v24] ); sub_14003D230(String, v23, v24); v25 = (const char *)String; if ( *((_QWORD *)&v36 + 1) > 0xFu ) v25 = String[0]; v26 = atoi(v25); v27 = *((_QWORD *)&v36 + 1); *(_DWORD *)(a1 + 484) = v26; if ( v27 > 0xF ) { v28 = String[0]; if ( v27 + 1 >= 0x1000 ) { v28 = *((char **)String[0] - 1); if ( (unsigned __int64)(String[0] - v28 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v28); } v29 = 0; if ( *(int *)(a1 + 484) >= 0 ) v29 = *(_DWORD *)(a1 + 484); v30 = *(_QWORD *)(a1 + 136); if ( v29 > 9999 ) v29 = 9999; *(_DWORD *)(a1 + 484) = v29; if ( v30 ) { *(_DWORD *)(v30 + 1480) = v29; } else { v31 = *(cocos2d::CCArray **)(a1 + 144); if ( v31 ) { v32 = 0; if ( cocos2d::CCArray::count(v31) ) { do { v33 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 144), v32); v34 = *(_DWORD *)(a1 + 484); if ( v34 < 0 ) v34 = 0; if ( v34 > 9999 ) v34 = 9999; ++v32; *((_DWORD *)v33 + 370) = v34; } while ( v32 < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 144)) ); } } } } } else { v5 = (_BYTE *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)(a2[74] + 600LL) + 8LL))(a2[74] + 600LL); *(_OWORD *)String = 0; v6 = -1; v36 = 0; do ++v6; while ( v5[v6] ); sub_14003D230(String, v5, v6); v7 = (const char *)String; if ( *((_QWORD *)&v36 + 1) > 0xFu ) v7 = String[0]; v8 = atoi(v7); v9 = *((_QWORD *)&v36 + 1); *(_DWORD *)(a1 + 480) = v8; if ( v9 > 0xF ) { v10 = String[0]; if ( v9 + 1 >= 0x1000 ) { v10 = *((char **)String[0] - 1); if ( (unsigned __int64)(String[0] - v10 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v10); } v11 = 0; if ( *(int *)(a1 + 480) >= 0 ) v11 = *(_DWORD *)(a1 + 480); v12 = *(_QWORD *)(a1 + 136); if ( v11 > 9999 ) v11 = 9999; *(_DWORD *)(a1 + 480) = v11; if ( v12 ) { *(_DWORD *)(v12 + 1696) = v11; SetupTriggerPopup::updateEditorLabel(a1 - 544); } else { v13 = *(cocos2d::CCArray **)(a1 + 144); if ( v13 && cocos2d::CCArray::count(v13) ) { do { v14 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 144), v2++); *((_DWORD *)v14 + 424) = *(_DWORD *)(a1 + 480); } while ( v2 < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 144)) ); } SetupTriggerPopup::updateEditorLabel(a1 - 544); } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source