// // GJMessagePopup::onNewThread from 0x5e10e8 to 0x5e12a8 (448 bytes) // // 0 xrefs: // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:54:16 +0000 // int __fastcall GJMessagePopup::onNewThread(int this, cocos2d::CCObject *a2) { int v2; // r1 int v3; // r6 int v4; // r3 char *v5; // r0 bool v6; // cc char *v7; // r3 char *i; // r5 char *v9; // r1 char *v10; // r12 char *v11; // r7 char *v12; // r11 int v13; // r9 int v14; // t1 int v15; // t1 size_t v16; // r8 char *v17; // r9 char *v18; // r1 int v19; // r0 int v20; // r1 char *v21; // r2 int v22; // r3 int v23; // r6 int v24; // r0 int v25; // [sp+8h] [bp-2Ch] BYREF size_t v26; // [sp+Ch] [bp-28h] char *v27; // [sp+10h] [bp-24h] unsigned int v28; // [sp+14h] [bp-20h] BYREF int v29; // [sp+18h] [bp-1Ch] char *v30; // [sp+1Ch] [bp-18h] int v31[3]; // [sp+20h] [bp-14h] BYREF v2 = *(_DWORD *)(this + 544); v3 = this; if ( v2 && *(int *)(v2 + 268) > 0 ) { std::string::basic_string(&v25, v2 + 276); if ( (v25 & 1) != 0 ) { v4 = v26; if ( v26 ) { v5 = v27; LABEL_8: v6 = v4 <= 3; if ( (unsigned int)v4 <= 3 ) goto LABEL_21; v7 = &v5[v4]; if ( !v6 ) { for ( i = v5; ; i = v10 ) { v9 = i; if ( i == v7 - 3 ) break; v10 = i + 1; if ( *i == 82 ) { v11 = "e: "; v12 = i + 3; while ( i != v12 ) { v14 = (unsigned __int8)*v11++; v13 = v14; v15 = (unsigned __int8)*++i; if ( v15 != v13 ) goto LABEL_13; } goto LABEL_19; } LABEL_13: ; } } v9 = v7; LABEL_19: if ( v9 == v7 || v9 - v5 == -1 ) { LABEL_21: v28 = 0; v29 = 0; v30 = nullptr; if ( (v25 & 1) != 0 ) v16 = v26; else v16 = (int)(unsigned __int8)v25 >> 1; if ( v16 + 4 > 0xFFFFFFEF ) sub_388BD8(); if ( v16 + 4 > 0xA ) { v17 = (char *)operator new((v16 + 20) & 0xFFFFFFF0); v30 = v17; v28 = (v16 + 20) & 0xFFFFFFF0 | 1; v29 = 4; } else { v17 = (char *)&v28 + 1; LOBYTE(v28) = 8; } std::char_traits::copy(v17, "Re: ", 4u); v17[4] = 0; if ( (v25 & 1) != 0 ) v18 = v27; else v18 = (char *)&v25 + 1; std::string::append(&v28, v18, v16); if ( (v25 & 1) != 0 ) { *v27 = 0; v26 = 0; } else { LOWORD(v25) = 0; } std::string::reserve(&v25, 0); v19 = v28; v20 = v29; v21 = v30; v28 = 0; v29 = 0; v30 = nullptr; v25 = v19; v26 = v20; v27 = v21; std::string::~string((int)&v28); } } } else { v4 = (int)(unsigned __int8)v25 >> 1; if ( v4 ) { v5 = (char *)&v25 + 1; goto LABEL_8; } } v22 = *(_DWORD *)(v3 + 544); memset(v31, 0, sizeof(v31)); v23 = *(_DWORD *)(v22 + 268); std::string::__init(v31, &unk_B6B226, 0); v24 = NewThreadPopup::create(v23, &v25, v31); (*(void (__fastcall **)(int))(*(_DWORD *)v24 + 656))(v24); std::string::~string((int)v31); return std::string::~string((int)&v25); } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source