// // sub_1005F59B4 from 0x1005f59b4 to 0x1005f5a60 (172 bytes) // // 2 xrefs: // > sub_1005F5624 @ 0x1005f5734 // > sub_1005F5624 @ 0x1005f58e4 // // 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 // _DWORD *__fastcall sub_1005F59B4(_DWORD *result, __int64 a2) { __int64 v3; // x1 __int64 v4; // x8 __int64 (*v5)(void); // x2 __int64 v6; // x8 __int64 v7; // x8 while ( 2 ) { if ( (*(_WORD *)a2 & 0x306) == 0 ) { v3 = *(_QWORD *)(a2 + 32); switch ( *(_BYTE *)v3 ) { case 0: a2 = *(_QWORD *)(v3 + 16); if ( a2 ) continue; v4 = *(_QWORD *)(v3 + 32); if ( !v4 ) goto LABEL_14; v5 = *(__int64 (**)(void))(v4 + 32); if ( v5 ) return (_DWORD *)v5(); goto LABEL_17; case 1: case 2: case 3: case 6: goto LABEL_17; case 4: v6 = *(_QWORD *)(v3 + 32); if ( !v6 ) goto LABEL_17; v5 = *(__int64 (**)(void))(v6 + 24); if ( !v5 ) goto LABEL_17; return (_DWORD *)v5(); case 5: if ( !v3 ) goto LABEL_17; v7 = *(_QWORD *)(v3 + 32); if ( v7 ) { v5 = *(__int64 (**)(void))(v7 + 32); if ( !v5 ) goto LABEL_17; return (_DWORD *)v5(); } LABEL_14: if ( *(_BYTE *)v3 != 5 && *(_DWORD *)(v3 + 8) == 1 ) { *result = *(_QWORD *)(v3 + 40); return result; } break; default: return result; } } break; } LABEL_17: *(_QWORD *)result = 0; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source