// // sub_69CF48 from 0x69cf48 to 0x69d28e (838 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_69CF48(int result) { int v1; // r4 _DWORD *v2; // r5 int v3; // r3 int v4; // r2 int v5; // r3 size_t v6; // r7 _DWORD *v7; // r5 int v8; // r6 void *v9; // t1 int (__fastcall *v10)(int, int *, int, int); // r1 int v11; // r3 _DWORD *v12; // r9 _DWORD *v13; // r11 int v14; // r8 int v15; // r5 int v16; // t1 int v17; // r2 unsigned __int8 *v18; // r7 int v19; // r5 int v20; // r10 int v21; // r6 int v22; // r0 int v23; // r7 int v24; // r6 v1 = result; v2 = *(_DWORD **)(result + 484); v3 = *(_DWORD *)(result + 88); *(_DWORD *)(result + 136) = v2[4]; *(_DWORD *)(result + 132) = v2[5]; if ( v3 == 1 ) { if ( *(_DWORD *)(result + 120) == 3 ) v10 = sub_69CE70; else v10 = (int (__fastcall *)(int, int *, int, int))sub_69D418; v11 = v2[7]; v2[1] = v10; v2[12] = 0; if ( !v11 ) result = sub_69C958((_DWORD *)result, (int)v10); if ( v2[13] ) return result; v12 = *(_DWORD **)(v1 + 484); if ( *(int *)(v1 + 120) <= 0 ) return result; v13 = v12 + 7; v14 = v2[13]; while ( 1 ) { v16 = v13[1]; ++v13; v15 = v16; if ( v14 <= 0 ) break; if ( v15 == v12[8] ) { v17 = 0; } else { if ( v14 == 1 ) break; if ( v15 == v12[9] ) { v17 = 1; } else { if ( v14 == 2 ) break; if ( v15 == v12[10] ) { v17 = 2; } else { if ( v14 == 3 || v15 != v12[11] ) break; v17 = 3; } } } v20 = v12[v17 + 13]; if ( !v20 ) break; LABEL_31: v13[5] = v20; if ( ++v14 >= *(_DWORD *)(v1 + 120) ) return result; } v18 = (unsigned __int8 *)&unk_9DFF80; v19 = (v15 - 1) << 9; v20 = (**(int (__fastcall ***)(int, int, int))(v1 + 4))(v1, 1, 1024); v21 = v20; do { v22 = *v18; v21 += 64; v18 += 16; *(_DWORD *)(v21 - 64) = (-510 * v22 + 65025) / v19; *(_DWORD *)(v21 - 60) = (-510 * *(v18 - 15) + 65025) / v19; *(_DWORD *)(v21 - 56) = (-510 * *(v18 - 14) + 65025) / v19; *(_DWORD *)(v21 - 52) = (-510 * *(v18 - 13) + 65025) / v19; *(_DWORD *)(v21 - 48) = (-510 * *(v18 - 12) + 65025) / v19; *(_DWORD *)(v21 - 44) = (-510 * *(v18 - 11) + 65025) / v19; *(_DWORD *)(v21 - 40) = (-510 * *(v18 - 10) + 65025) / v19; *(_DWORD *)(v21 - 36) = (-510 * *(v18 - 9) + 65025) / v19; *(_DWORD *)(v21 - 32) = (-510 * *(v18 - 8) + 65025) / v19; *(_DWORD *)(v21 - 28) = (-510 * *(v18 - 7) + 65025) / v19; *(_DWORD *)(v21 - 24) = (-510 * *(v18 - 6) + 65025) / v19; *(_DWORD *)(v21 - 20) = (-510 * *(v18 - 5) + 65025) / v19; *(_DWORD *)(v21 - 16) = (-510 * *(v18 - 4) + 65025) / v19; *(_DWORD *)(v21 - 12) = (-510 * *(v18 - 3) + 65025) / v19; *(_DWORD *)(v21 - 8) = (-510 * *(v18 - 2) + 65025) / v19; result = (-510 * *(v18 - 1) + 65025) / v19; *(_DWORD *)(v21 - 4) = result; } while ( v21 != v20 + 1024 ); goto LABEL_31; } if ( v3 ) { if ( v3 != 2 ) { *(_DWORD *)(*(_DWORD *)result + 20) = 49; return (**(int (__fastcall ***)(int))result)(result); } v4 = v2[17]; v2[21] = 0; v2[1] = sub_69D2A8; if ( v4 ) { v5 = *(_DWORD *)(result + 120); } else { if ( *(int *)(result + 120) <= 0 ) return result; v23 = *(_DWORD *)(result + 484) + 64; v24 = 0; do { ++v24; result = (*(int (__fastcall **)(int))(*(_DWORD *)(v1 + 4) + 4))(v1); *(_DWORD *)(v23 + 4) = result; v23 += 4; v5 = *(_DWORD *)(v1 + 120); } while ( v24 < v5 ); } v6 = 2 * (*(_DWORD *)(v1 + 112) + 2); if ( v5 > 0 ) { v7 = v2 + 16; v8 = 0; do { v9 = (void *)v7[1]; ++v7; ++v8; result = (int)memset(v9, 0, v6); } while ( *(_DWORD *)(v1 + 120) > v8 ); } } else if ( *(_DWORD *)(result + 120) == 3 ) { v2[1] = sub_69CE0C; } else { v2[1] = sub_69CDA8; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source