// // sub_100574980 from 0x100574980 to 0x100574b1c (412 bytes) // // 1 xrefs: // > sub_1005742CC @ 0x1005743b0 // // 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:20 +0000 // __int64 __fastcall sub_100574980(__int64 a1, __int64 a2) { __int64 v4; // x19 int v5; // w9 int v6; // w8 int v7; // w10 __int64 v8; // x9 __int64 v9; // x21 void (__fastcall *v10)(__int64, __int64, _QWORD); // x8 int v11; // w8 int v12; // w10 int *v13; // x8 int v14; // w12 __int64 v15; // x11 __int64 v16; // x9 __int64 v17; // x8 int v18; // t1 __int64 v19; // x9 int v20; // w10 __int64 v21; // x0 __int64 v22; // x20 v4 = *(_QWORD *)(a1 + 56); sub_1005DBDD8(v4); if ( !*(_DWORD *)(a1 + 156) ) goto LABEL_21; v5 = *(_DWORD *)(a1 + 128); if ( !v5 ) goto LABEL_21; v6 = *(_DWORD *)(a2 + 12); v7 = *(_DWORD *)(*(_QWORD *)(a1 + 120) + 4LL * (v6 & (v5 - 1))); if ( v7 == -1 ) goto LABEL_21; v8 = *(_QWORD *)(a1 + 136); while ( *(_DWORD *)(v8 + 16LL * v7) != v6 ) { v7 = *(_DWORD *)(v8 + 16LL * v7 + 4); if ( v7 == -1 ) goto LABEL_21; } v9 = *(_QWORD *)(v8 + 16LL * v7 + 8); if ( !v9 ) goto LABEL_21; sub_1005DB80C(*(_QWORD *)(v9 + 16)); *(_QWORD *)(v9 + 16) = 0; v10 = *(void (__fastcall **)(__int64, __int64, _QWORD))(a1 + 160); if ( v10 ) v10(v9 + 28, 1, *(_QWORD *)(a1 + 168)); if ( *(_DWORD *)(a1 + 156) ) { v11 = *(_DWORD *)(a1 + 128); if ( !v11 ) { v22 = 28; goto LABEL_22; } v12 = *(_DWORD *)(a2 + 12); v13 = (int *)(*(_QWORD *)(a1 + 120) + 4LL * (v12 & (v11 - 1))); v14 = *v13; if ( *v13 != -1 ) { v15 = v14; v16 = *(_QWORD *)(a1 + 136); if ( *(_DWORD *)(v16 + 16LL * v14) == v12 ) { LABEL_17: v19 = v16 + 16 * v15; *(_QWORD *)(v19 + 8) = 0; *v13 = *(_DWORD *)(v19 + 4); v20 = *(_DWORD *)(a1 + 156); *(_DWORD *)(v19 + 4) = *(_DWORD *)(a1 + 152); *(_DWORD *)(a1 + 152) = v14; *(_DWORD *)(a1 + 156) = v20 - 1; } else { while ( 1 ) { v17 = v16 + 16 * v15; v18 = *(_DWORD *)(v17 + 4); v13 = (int *)(v17 + 4); v14 = v18; if ( v18 == -1 ) break; v15 = v14; if ( *(_DWORD *)(v16 + 16LL * v14) == v12 ) goto LABEL_17; } } } } v21 = *(_QWORD *)(v9 + 16); if ( !v21 || (v22 = sub_1005DB80C(v21), !(_DWORD)v22) ) { sub_1005D7AD8( *((_QWORD *)off_1009DA5E8 + 54), v9, "/opt/teamcity-agent/work/570ad728b1678096/core_api/src/fmod_profile_remotefile.cpp", 106, 1); LABEL_21: v22 = 0; } LABEL_22: sub_1005DBE08(v4); return v22; }
GD Web Decomp Icon

GD Web Decomp

Raw Source