// // sub_674AB4 from 0x674ab4 to 0x674d8e (730 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 // _DWORD *__fastcall sub_674AB4(_DWORD *result) { _DWORD *v1; // r4 _DWORD *v2; // r8 int v3; // r5 int v4; // r3 _DWORD *v5; // r11 int v6; // r10 int v7; // t1 int v8; // r2 int v9; // r7 int v10; // r6 int *v11; // r6 int v12; // r3 int v13; // r6 _DWORD *v14; // r7 _DWORD *v15; // r5 int v16; // r11 int v17; // t1 unsigned int v18; // r10 _DWORD *v19; // r10 void *v20; // r0 unsigned int v21; // r10 _DWORD *v22; // r10 void *v23; // r0 int v24; // r3 int v25; // r2 int v26; // r3 v1 = result; v2 = (_DWORD *)result[117]; if ( !result[56] ) { if ( result[103] || result[105] || result[106] || (v26 = result[104], v26 <= 63) && v26 != result[109] ) { *(_DWORD *)(*result + 20) = 125; result = (_DWORD *)(*(int (__fastcall **)(_DWORD *, int))(*result + 4))(result, -1); } v2[1] = sub_674FB4; LABEL_25: v12 = v1[85]; if ( v12 <= 0 ) goto LABEL_20; goto LABEL_26; } v3 = result[103]; v4 = result[104]; if ( v3 ) { if ( v3 > v4 || v4 > result[109] || result[85] != 1 ) goto LABEL_4; } else if ( v4 ) { LABEL_4: *(_DWORD *)(*result + 20) = 17; *(_DWORD *)(*result + 24) = result[103]; *(_DWORD *)(*result + 28) = result[104]; *(_DWORD *)(*result + 32) = result[105]; *(_DWORD *)(*result + 36) = result[106]; result = (_DWORD *)(*(int (__fastcall **)(_DWORD *))*result)(result); v3 = v1[103]; goto LABEL_5; } v24 = result[105]; v25 = result[106]; if ( v24 && v24 - 1 != v25 || v25 > 13 ) goto LABEL_4; LABEL_5: if ( (int)v1[85] > 0 ) { v5 = v1 + 85; v6 = 0; do { v7 = v5[1]; ++v5; v8 = v1[40]; v9 = *(_DWORD *)(v7 + 4); v10 = v8 + (v9 << 8); if ( v3 && *(int *)(v8 + (v9 << 8)) < 0 ) { *(_DWORD *)(*v1 + 20) = 118; *(_DWORD *)(*v1 + 24) = v9; *(_DWORD *)(*v1 + 28) = 0; result = (_DWORD *)(*(int (__fastcall **)(_DWORD *, int))(*v1 + 4))(v1, -1); v3 = v1[103]; } if ( v1[104] >= v3 ) { v11 = (int *)(v10 + 4 * v3); do { result = v1; if ( v1[105] != (*v11 & ~(*v11 >> 31)) ) { *(_DWORD *)(*v1 + 20) = 118; *(_DWORD *)(*v1 + 24) = v9; *(_DWORD *)(*v1 + 28) = v3; result = (_DWORD *)(*(int (__fastcall **)(_DWORD *, int))(*v1 + 4))(v1, -1); } ++v3; *v11++ = v1[106]; } while ( v1[104] >= v3 ); v3 = v1[103]; } ++v6; } while ( v1[85] > v6 ); } if ( v1[105] ) { if ( v3 ) v2[1] = sub_67523C; else v2[1] = sub_67538C; goto LABEL_25; } if ( v3 ) { v2[1] = sub_6753EC; goto LABEL_25; } v2[1] = sub_675534; v12 = v1[85]; if ( v12 > 0 ) { LABEL_26: v13 = 0; v14 = v1 + 85; v15 = v2 + 6; while ( 1 ) { v17 = v14[1]; ++v14; v16 = v17; if ( !v1[56] ) break; if ( v1[103] ) goto LABEL_34; if ( !v1[105] ) break; LABEL_38: ++v13; ++v15; if ( v12 <= v13 ) goto LABEL_20; } v18 = *(_DWORD *)(v16 + 20); if ( v18 > 0xF ) { *(_DWORD *)(*v1 + 20) = 50; *(_DWORD *)(*v1 + 24) = v18; v19 = &v2[v18]; (*(void (__fastcall **)(_DWORD *))*v1)(v1); v20 = (void *)v19[15]; if ( v20 ) goto LABEL_32; } else { v19 = &v2[v18]; v20 = (void *)v19[15]; if ( v20 ) goto LABEL_32; } v20 = (void *)(*(int (__fastcall **)(_DWORD *, int, int))v1[1])(v1, 1, 64); v19[15] = v20; LABEL_32: result = memset(v20, 0, 0x40u); *v15 = 0; v15[4] = 0; if ( v1[56] ) { if ( !v1[103] ) goto LABEL_37; } else if ( !v1[109] ) { LABEL_37: v12 = v1[85]; goto LABEL_38; } LABEL_34: v21 = *(_DWORD *)(v16 + 24); if ( v21 > 0xF ) { *(_DWORD *)(*v1 + 20) = 50; *(_DWORD *)(*v1 + 24) = v21; v22 = &v2[v21]; (*(void (__fastcall **)(_DWORD *))*v1)(v1); v23 = (void *)v22[31]; if ( v23 ) goto LABEL_36; } else { v22 = &v2[v21]; v23 = (void *)v22[31]; if ( v23 ) { LABEL_36: result = memset(v23, 0, 0x100u); goto LABEL_37; } } v23 = (void *)(*(int (__fastcall **)(_DWORD *, int, int))v1[1])(v1, 1, 256); v22[31] = v23; goto LABEL_36; } LABEL_20: v2[3] = 0; v2[4] = 0; v2[5] = -16; v2[14] = v1[70]; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source