// // sub_70F39C from 0x70f39c to 0x70f514 (376 bytes) // // 2 xrefs: // > sub_6FC848 @ 0x6fca1a // > sub_6FC848 @ 0x6fcc4e // // 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 // unsigned int *__fastcall sub_70F39C(unsigned int *result, int a2, int a3, char *a4) { _DWORD *v4; // r7 unsigned int *v5; // r4 int *v7; // r3 unsigned int v8; // r5 unsigned int v9; // t1 unsigned int v10; // r1 unsigned int v11; // t1 v4 = a4; v5 = result; switch ( a3 ) { case 0: v7 = &dword_AD50A4; goto LABEL_6; case 1: v7 = (int *)&off_AD50AC; goto LABEL_6; case 2: v7 = &dword_AD50A0; goto LABEL_6; case 3: return (unsigned int *)sub_8E41D0(a4, result, 4 * a2); case 4: v8 = (unsigned int)&result[a2]; if ( (unsigned int)result < v8 ) { do { v9 = *v5++; *v4++ = bswap32(v9); } while ( v8 > (unsigned int)v5 ); } return result; case 5: v7 = (int *)&off_AD50B0; goto LABEL_6; case 6: v7 = &dword_AD50A8; LABEL_6: result = (unsigned int *)((int (__fastcall *)(unsigned int *, int, _DWORD *))*v7)(result, a2, v4); break; case 7: off_AD50AC(result, a2, a4); result = (unsigned int *)off_AD513C(v4, 0, a2, 1, 0); break; case 8: memcpy(a4, result, 4 * a2); result = (unsigned int *)off_AD513C(v4, 0, a2, 1, 0); break; case 9: v10 = (unsigned int)&result[a2]; if ( (unsigned int)result < v10 ) { do { v11 = *v5++; *(_DWORD *)a4 = bswap32(v11); a4 += 4; } while ( v10 > (unsigned int)v5 ); } result = (unsigned int *)off_AD513C(v4, 1, a2, 1, 0); break; case 10: off_AD50B0(result, a2, a4); result = (unsigned int *)off_AD5140(v4); break; default: return result; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source