// // sub_10056D378 from 0x10056d378 to 0x10056d48c (276 bytes) // // 3 xrefs: // > sub_10056CEC4 @ 0x10056cf14 // > sub_10056D4B8 @ 0x10056d5cc // > sub_10056D4B8 @ 0x10056d698 // // 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_10056D378(__int64 a1, _DWORD *a2) { __int64 result; // x0 __int64 v4; // x0 int v5; // w9 __int64 v6; // x8 int v7; // w8 unsigned int v8; // w9 __int64 (*v9)(void); // x3 int v10; // w10 if ( *(_BYTE *)(a1 + 35561) ) return 0; v4 = *(_QWORD *)(a1 + 16); if ( !v4 ) return 0; v5 = *(_DWORD *)(a1 + 24); if ( (unsigned int)(v5 - 3) <= 0xD ) *(_QWORD *)v4 = a1; v6 = 0; switch ( v5 ) { case 4: v7 = *(_DWORD *)(v4 + 472); if ( v7 == -1 ) { v8 = 0; v6 = 0; } else { *a2 = v7; v6 = 0x10000; v8 = 1; } v10 = *(_DWORD *)(v4 + 476); if ( v10 == -1 ) goto LABEL_21; a2[v8] = v10; result = (1 << (v8 | 0x10)) | (unsigned int)v6; break; case 5: *a2 = *(_DWORD *)(v4 + 464); if ( *(_DWORD *)(v4 + 1592) == 1 ) v6 = 1; else v6 = 0x10000; goto LABEL_21; case 6: case 7: result = sub_10055C9F8(v4); break; case 9: case 10: result = sub_10055CA10(v4); break; case 11: v9 = *(__int64 (**)(void))(*(_QWORD *)(v4 + 800) + 80LL); if ( v9 ) result = v9(); else result = 0; break; case 12: case 13: case 14: result = sub_100566D18((__int64 *)v4, a2, 5); break; default: LABEL_21: result = v6; break; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source