// // sub_D2E78 from 0xd2e78 to 0xd2f8a (274 bytes) // // 1 xrefs: // > sub_D1B98 @ 0xd1c90 // // 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 // bool __fastcall sub_D2E78(unsigned int *a1, int a2, __int64 *a3) { int v3; // r8 unsigned int v6; // r0 unsigned __int8 v7; // r0 unsigned int v8; // r4 unsigned int v9; // r0 char v10; // r6 int v11; // r11 unsigned int i; // r6 unsigned int j; // r4 unsigned __int8 v14; // r0 v3 = *(_DWORD *)(a2 + 28); memset(a1, 0, 0x1Cu); v6 = sub_CFB1E(a3, 16); *a1 = v6; if ( v6 > 2 ) return 1; a1[3] = sub_CFB1E(a3, 24); a1[4] = sub_CFB1E(a3, 24); a1[5] = sub_CFB1E(a3, 24) + 1; *((_BYTE *)a1 + 24) = sub_CFB1E(a3, 6) + 1; v7 = sub_CFB1E(a3, 8); *((_BYTE *)a1 + 25) = v7; if ( v7 >= *(int *)(v3 + 24) ) return 1; a1[1] = sub_72048(*((unsigned __int8 *)a1 + 24)); v8 = 0; a1[2] = sub_72048(8 * *((unsigned __int8 *)a1 + 24)); while ( 1 ) { v9 = *((unsigned __int8 *)a1 + 24); if ( v8 >= v9 ) break; v10 = sub_CFB1E(a3, 3); if ( sub_CFB1E(a3, 1) ) v10 |= 8 * (unsigned __int8)sub_CFB1E(a3, 5); *(_BYTE *)(a1[1] + v8++) = v10; } v11 = 0; for ( i = 0; i < (unsigned __int8)v9; ++i ) { for ( j = 0; j != 8; ++j ) { if ( ((1 << j) & *(unsigned __int8 *)(a1[1] + i)) != 0 ) { v14 = sub_CFB1E(a3, 8); if ( v14 >= *(int *)(v3 + 24) ) return 1; *(_BYTE *)(a1[2] + v11 + j) = v14; if ( j >= *((unsigned __int8 *)a1 + 26) ) *((_BYTE *)a1 + 26) = j + 1; } else { *(_BYTE *)(a1[2] + v11 + j) = -1; } } LOBYTE(v9) = *((_BYTE *)a1 + 24); v11 += 8; } return sub_CFB0E(a3) != 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source