// // sub_10057536C from 0x10057536c to 0x10057552c (448 bytes) // // 1 xrefs: // > sub_100573CD4 @ 0x100573d0c // // 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_10057536C(__int64 a1, __int64 a2) { __int64 v4; // x19 int v5; // w8 int v6; // w23 int v7; // w8 int v8; // w10 __int64 v9; // x9 __int64 v10; // x22 int *v12; // x8 int v13; // w11 __int64 v14; // x10 __int64 v15; // x9 __int64 v16; // x8 int v17; // t1 __int64 v18; // x9 int v19; // w8 int v20; // [xsp+0h] [xbp-40h] BYREF __int64 v21; // [xsp+4h] [xbp-3Ch] int v22; // [xsp+Ch] [xbp-34h] if ( !a2 ) return 28; v4 = *(_QWORD *)(a1 + 56); sub_1005DBDD8(v4); if ( !*(_DWORD *)(a1 + 116) ) goto LABEL_8; v5 = *(_DWORD *)(a1 + 88); if ( !v5 ) goto LABEL_8; v6 = *(_DWORD *)(a2 + 16); v7 = (v5 - 1) & v6; v8 = *(_DWORD *)(*(_QWORD *)(a1 + 80) + 4LL * v7); if ( v8 == -1 ) goto LABEL_8; v9 = *(_QWORD *)(a1 + 96); while ( *(_DWORD *)(v9 + 16LL * v8) != v6 ) { v8 = *(_DWORD *)(v9 + 16LL * v8 + 4); if ( v8 == -1 ) goto LABEL_8; } if ( *(_QWORD *)(v9 + 16LL * v8 + 8) == a2 ) { v12 = (int *)(*(_QWORD *)(a1 + 80) + 4LL * v7); v13 = *v12; if ( *v12 != -1 ) { v14 = v13; v15 = *(_QWORD *)(a1 + 96); if ( *(_DWORD *)(v15 + 16LL * v13) == v6 ) { LABEL_17: v18 = v15 + 16 * v14; *(_QWORD *)(v18 + 8) = 0; *v12 = *(_DWORD *)(v18 + 4); *(_DWORD *)(v18 + 4) = *(_DWORD *)(a1 + 112); v19 = *(_DWORD *)(a1 + 116) - 1; *(_DWORD *)(a1 + 112) = v13; *(_DWORD *)(a1 + 116) = v19; } else { while ( 1 ) { v16 = v15 + 16 * v14; v17 = *(_DWORD *)(v16 + 4); v12 = (int *)(v16 + 4); v13 = v17; if ( v17 == -1 ) break; v14 = v13; if ( *(_DWORD *)(v15 + 16LL * v13) == v6 ) goto LABEL_17; } } } v10 = sub_1005DBED4(*(_QWORD *)(a2 + 8)); if ( !(_DWORD)v10 ) { sub_1005D7AD8( *((_QWORD *)off_1009DA5E8 + 54), a2, "/opt/teamcity-agent/work/570ad728b1678096/core_api/src/fmod_profile_remotefile.cpp", 64, 1); sub_1005DBE08(v4); v21 = 0x40A00000000LL; v20 = 16; v22 = v6; return (***(__int64 (__fastcall ****)(_QWORD, int *, _QWORD))(a1 + 32))(*(_QWORD *)(a1 + 32), &v20, 0); } } else { LABEL_8: v10 = 28; } sub_1005DBE08(v4); return v10; }
GD Web Decomp Icon

GD Web Decomp

Raw Source