// // sub_C030C from 0xc030c to 0xc03ce (194 bytes) // // 0 xrefs: // // 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_C030C(int a1, int a2, int a3, int a4) { void (__fastcall *v5)(int); // r8 int v6; // r9 int v7; // r4 __int64 v8; // r0 unsigned int v9; // r3 int v11; // [sp+8h] [bp-30h] BYREF int v12; // [sp+Ch] [bp-2Ch] BYREF _DWORD v13[3]; // [sp+10h] [bp-28h] BYREF v11 = a4; v5 = *(void (__fastcall **)(int))a1; v6 = *(_DWORD *)(a1 + 8); v13[1] = a1 + 12; v13[0] = 65542; v13[2] = 0; v12 = 0; if ( !(*(int (__fastcall **)(_DWORD, int *, _DWORD *, _DWORD, int, int, int))(**(_DWORD **)((char *)&dword_158 + (_DWORD)off_E8000) + 16))( *(int *)((char *)&dword_158 + (_DWORD)off_E8000), &v12, v13, *(_DWORD *)(**(_DWORD **)((char *)&dword_158 + (_DWORD)off_E8000) + 16), a2, a3, a4) ) { v7 = 0; setpriority(0, 0, *(_DWORD *)(a1 + 4)); v8 = *(_QWORD *)(a1 + 272); if ( v8 ) { v9 = 0; v11 = 0; while ( v9 != 63 ) { if ( v9 <= 0x1F ) { if ( HIDWORD(v8) & (1 << v9 >> 31) | (1 << v9) & (unsigned int)v8 ) { v7 |= 1 << (v9 & 0x1F); v11 = v7; } } ++v9; } syscall(241, 0, 4, &v11); } sub_BD7AC(*(int *)((char *)&dword_14C + (_DWORD)off_E8000), (_DWORD *)a1); v5(v6); (*(void (__fastcall **)(_DWORD))(**(_DWORD **)((char *)&dword_158 + (_DWORD)off_E8000) + 20))(*(int *)((char *)&dword_158 + (_DWORD)off_E8000)); } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source