// // sub_100572948 from 0x100572948 to 0x100572b14 (460 bytes) // // 2 xrefs: // > sub_1005734B8 @ 0x1005734e0 // > sub_10057394C @ 0x1005739c0 // // This function is hookable on this platform (idp: arm, 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:08:19 +0000 // __int64 __fastcall sub_100572948(__int64 *a1, int a2, __int64 a3) { __int64 v6; // x0 int v7; // w9 int v8; // w8 unsigned int v9; // w8 unsigned int v10; // w8 __int64 v11; // x1 __int64 v12; // x0 __int64 v13; // x24 int v14; // w26 __int64 v15; // x0 unsigned int v16; // w0 __int64 v17; // x23 int v19; // w10 int v20; // w9 int v21; // w10 bool v22; // cc int v23; // w11 __int64 v24; // x10 __int64 v25; // x9 while ( 1 ) { if ( *((_BYTE *)a1 + 24) ) return 0; v6 = sub_1005DBDD8(a1[4]); if ( (_DWORD)v6 ) return v6; v7 = *((_DWORD *)a1 + 4); v8 = *((_DWORD *)a1 + 3) - v7; if ( v8 ) { v17 = 0; v19 = *((_DWORD *)a1 + 2); v20 = (v19 - 1) & v7; v21 = v19 - v20; v23 = v8 - v21; v22 = v8 <= v21; if ( v8 >= v21 ) v8 = v21; v24 = *a1; v25 = *a1 + v20; if ( v22 ) v24 = 0; if ( v22 ) v23 = 0; *(_QWORD *)(a3 + 8) = v25; *(_QWORD *)(a3 + 16) = v24; *(_DWORD *)(a3 + 24) = v8; *(_DWORD *)(a3 + 28) = v23; *(_QWORD *)a3 = a1[4]; return v17; } if ( *((_DWORD *)a1 + 5) ) break; LABEL_12: if ( a2 ) ++*((_DWORD *)a1 + 14); v16 = sub_1005DBE08(a1[4]); if ( v16 || !a2 ) { if ( v16 ) return v16; else return 45; } v6 = sub_1005DBF10(a1[5]); if ( (_DWORD)v6 ) return v6; } sub_1005D7AD8( *((_QWORD *)off_1009DA5E8 + 54), *a1, "/opt/teamcity-agent/work/570ad728b1678096/core_api/src/fmod_profile_client.cpp", 243, 1); v9 = (*((_DWORD *)a1 + 5) - 1) | ((unsigned int)(*((_DWORD *)a1 + 5) - 1) >> 1); v10 = v9 | (v9 >> 2) | ((v9 | (v9 >> 2)) >> 4); v11 = (v10 | (v10 >> 8) | ((v10 | (v10 >> 8)) >> 16)) + 1; *((_DWORD *)a1 + 2) = v11; v12 = sub_1005D7364( *((_QWORD *)off_1009DA5E8 + 54), v11, "/opt/teamcity-agent/work/570ad728b1678096/core_api/src/fmod_profile_client.cpp", 247, 0, 0, 1); *a1 = v12; if ( !v12 ) return 38; a1[2] = 0; *((_DWORD *)a1 + 3) = 0; v13 = a1[4]; sub_1005DBDD8(v13); if ( *((int *)a1 + 15) < 1 ) { LABEL_11: sub_1005DBE08(v13); goto LABEL_12; } v14 = 0; while ( 1 ) { v15 = sub_1005DBF3C(a1[6]); if ( (_DWORD)v15 ) break; if ( ++v14 >= *((_DWORD *)a1 + 15) ) { *((_DWORD *)a1 + 15) = 0; goto LABEL_11; } } v17 = v15; sub_1005DBE08(v13); return v17; }
GD Web Decomp Icon

GD Web Decomp

Raw Source