// // sub_10056BF80 from 0x10056bf80 to 0x10056c0cc (332 bytes) // // 3 xrefs: // > sub_100549850 @ 0x10054990c // > sub_10056CEC4 @ 0x10056d010 // > sub_1005811A4 @ 0x1005812cc // // 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_10056BF80(__int64 a1, const void *a2, size_t a3, __int64 a4) { __int64 *v8; // x23 _QWORD *v9; // x24 void *v10; // x24 void *v11; // x0 void *v12; // x25 v8 = *(__int64 **)(*(_QWORD *)a1 + 8 * (*(__int64 (__fastcall **)(const void *, size_t, _QWORD))(a1 + 8))(a2, a3, *(int *)(a1 + 32))); v9 = (_QWORD *)*v8; if ( *v8 ) { while ( !(*(__int64 (__fastcall **)(_QWORD, _QWORD, const void *, size_t))(a1 + 16))( *(_QWORD *)(*v9 + 8LL), *(_QWORD *)(*v9 + 16LL), a2, a3) ) { v9 = (_QWORD *)v9[2]; if ( !v9 ) goto LABEL_6; } sub_10056BBA0((__int64)v8, v9, a1); --*(_QWORD *)(a1 + 40); } LABEL_6: v10 = off_10085DEB0(0x18u); if ( !v10 ) return 0; v11 = off_10085DEB0(a3); v12 = v11; if ( !v11 ) { ((void (__fastcall *)(void *))off_10085DEB8)(v10); return 0; } memcpy(v11, a2, a3); *((_QWORD *)v10 + 1) = v12; *((_QWORD *)v10 + 2) = a3; *(_QWORD *)v10 = a4; if ( !(unsigned int)sub_10056BAE8(v8, v8[1], (__int64)v10) ) { off_10085DEB8(*((void **)v10 + 1)); ((void (__fastcall *)(void *))off_10085DEB8)(v10); return 0; } ++*(_QWORD *)(a1 + 40); return a4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source