// // sub_670A6C from 0x670a6c to 0x670b82 (278 bytes) // // 3 xrefs: // > sub_670DB0 @ 0x670e26 // > sub_670DB0 @ 0x670e7c // > sub_670DB0 @ 0x670ef2 // // 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_670A6C(_DWORD *result) { _DWORD *v1; // r4 int v2; // r1 int v3; // r3 int v4; // r5 int v5; // r3 int v6; // r3 int v7; // r2 v1 = result; v2 = result[51]; if ( !v2 ) { v6 = result[19]; if ( v6 > 4 ) { *(_DWORD *)(*result + 20) = 27; *(_DWORD *)(*result + 24) = result[19]; *(_DWORD *)(*result + 28) = 4; result = (_DWORD *)(*(int (__fastcall **)(_DWORD *))*result)(result); v6 = v1[19]; } v1[73] = v6; if ( v6 > 0 ) { v7 = v1[21]; v1[74] = v7; if ( v6 != 1 ) { v1[75] = v7 + 88; if ( v6 != 2 ) { v1[76] = v7 + 176; if ( v6 != 3 ) v1[77] = v7 + 264; } } } goto LABEL_8; } v3 = 36 * *(_DWORD *)(result[98] + 32); result = (_DWORD *)(v2 + v3); v1[73] = *(_DWORD *)(v2 + v3); if ( *(int *)(v2 + v3) > 0 ) { v4 = v1[21]; v1[74] = v4 + 88 * result[1]; if ( *(int *)(v2 + v3) > 1 ) { v1[75] = v4 + 88 * result[2]; if ( *(int *)(v2 + v3) > 2 ) { v1[76] = v4 + 88 * result[3]; if ( *(int *)(v2 + v3) > 3 ) v1[77] = v4 + 88 * result[4]; } } } if ( !v1[67] ) { LABEL_8: v5 = v1[95]; v1[91] = 0; v1[93] = 0; v1[94] = 0; v1[92] = v5 * v5 - 1; return result; } v1[91] = result[5]; v1[92] = result[6]; v1[93] = result[7]; v1[94] = result[8]; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source