// // sub_8A7F28 from 0x8a7f28 to 0x8a8134 (524 bytes) // // 3 xrefs: // > timerItemFromString @ 0x8a81c4 // > timerItemFromString @ 0x8a8380 // > GJEffectManager::loadPersistentStateString @ 0x8b6874 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // __int64 __fastcall sub_8A7F28(_QWORD *a1, char *a2, __int64 a3) { unsigned __int64 v6; // x19 size_t v7; // x0 __int64 v8; // x20 __int64 v9; // x3 __int64 v10; // x26 __int64 v11; // x0 size_t v12; // x0 void *v13; // x0 unsigned int *v14; // x1 int v15; // w2 __int64 v17; // [xsp+80h] [xbp+80h] BYREF v6 = 0; v7 = strlen(a2); v8 = sub_D168E0((int)a1, a2, 0, v7); v9 = v8; v10 = *(_QWORD *)(*a1 - 24LL); while ( 1 ) { sub_D14F84(&v17, a1, v6, v9); if ( v10 == v6 && !*(_QWORD *)(v17 - 24) ) goto LABEL_9; v11 = *(_QWORD *)(a3 + 8); if ( v11 == *(_QWORD *)(a3 + 16) ) break; if ( v11 ) { sub_D18D28(v11); v11 = *(_QWORD *)(a3 + 8); } *(_QWORD *)(a3 + 8) = v11 + 8; LABEL_9: if ( v8 == -1 ) goto LABEL_17; LABEL_10: v6 = v8 + 1; v12 = strlen(a2); v8 = sub_D168E0((int)a1, a2, (int)v8 + 1, v12); v13 = (void *)(v17 - 24); if ( (__int64 *)(v17 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v14 = (unsigned int *)(v17 - 8); do v15 = __ldaxr(v14); while ( __stlxr(v15 - 1, v14) ); } else { v15 = *(_DWORD *)(v17 - 8); *(_DWORD *)(v17 - 8) = v15 - 1; } if ( v15 <= 0 ) operator delete(v13); } v9 = v8 - v6; if ( *(_QWORD *)(*a1 - 24LL) < v6 ) sub_D13C5C( "%s: __pos (which is %zu) > this->size() (which is %zu)", "basic_string::substr", v6, *(_QWORD *)(*a1 - 24LL)); } std::vector::_M_emplace_back_aux(a3, (__int64)&v17); if ( v8 != -1 ) goto LABEL_10; LABEL_17: if ( (__int64 *)(v17 - 24) != &qword_124B6B0 ) sub_8A26E8((void *)(v17 - 24)); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source