// // sub_10056C478 from 0x10056c478 to 0x10056c500 (136 bytes) // // 7 xrefs: // > sub_1005605B8 @ 0x1005605f0 // > sub_1005605B8 @ 0x100560644 // > sub_1005811A4 @ 0x10058135c // > sub_1005813F0 @ 0x10058146c // > sub_1005814B0 @ 0x1005814dc // > sub_1005814B0 @ 0x1005814f0 // > sub_100581530 @ 0x100581548 // // 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_10056C478(__int64 **a1) { __int64 *v1; // x9 __int64 *v2; // x8 __int64 *v3; // x8 __int64 v4; // x10 __int64 v5; // x11 __int64 v6; // x9 __int64 *v7; // x12 v1 = *a1; v2 = a1[2]; if ( v2 ) { v3 = (__int64 *)v2[2]; a1[2] = v3; if ( v3 ) goto LABEL_9; } else { v3 = nullptr; } v4 = *((int *)a1 + 2); v5 = *((int *)v1 + 8); if ( (int)v4 >= (int)v5 ) { LABEL_9: if ( v3 ) return *v3; a1[2] = nullptr; return 0; } v6 = *v1; while ( 1 ) { v7 = **(__int64 ***)(v6 + 8 * v4); if ( v7 ) break; if ( ++v4 >= v5 ) goto LABEL_9; } a1[2] = v7; *((_DWORD *)a1 + 2) = v4 + 1; return *v7; }
GD Web Decomp Icon

GD Web Decomp

Raw Source