// // sub_77A1D0 from 0x77a1d0 to 0x77a248 (120 bytes) // // 2 xrefs: // > sub_76DC08 @ 0x76dc34 // > sub_76DC5C @ 0x76dc8a // // 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 // int __fastcall sub_77A1D0(int *a1) { int v1; // r3 int result; // r0 int v4; // r3 int v5; // r3 int v6; // r4 int v7; // [sp+4h] [bp-78h] BYREF struct pollfd fds; // [sp+8h] [bp-74h] BYREF _BYTE v9[16]; // [sp+10h] [bp-6Ch] BYREF int v10; // [sp+20h] [bp-5Ch] int v11; // [sp+40h] [bp-3Ch] v1 = *a1; v7 = 0; if ( ioctl(*(__int16 *)(v1 + 14), 0x541Bu, &v7) || (result = v7, v7 < 0) ) { v4 = *a1; fds.events = 1; fds.fd = *(__int16 *)(v4 + 14); if ( poll(&fds, 1u, 0) > 0 && !fstat(*(__int16 *)(*a1 + 14), (struct stat *)v9) && (v10 & 0xF000) == 0x8000 ) { v5 = *a1; v6 = v11; return v6 - lseek(*(__int16 *)(v5 + 14), 0, 1); } else { return 0; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source