// // sub_767FE4 from 0x767fe4 to 0x768166 (386 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_767FE4(_DWORD *a1, int a2, _DWORD *a3, int a4, _DWORD *a5, int a6, int a7, int *a8, int a9) { _DWORD *v11; // r4 _DWORD *v12; // r3 int v13; // r1 int v14; // r2 int v15; // r3 int v16; // r1 int v17; // r3 int v18; // r1 _DWORD *v19; // r4 int v20; // r5 int v21; // r7 int v22; // r0 _DWORD *v24; // r3 int v25; // r3 int *v26; // r3 int v27; // r0 _DWORD *v28; // [sp+20h] [bp-54h] BYREF int v29; // [sp+24h] [bp-50h] _DWORD *v30; // [sp+28h] [bp-4Ch] int v31; // [sp+2Ch] [bp-48h] int v32; // [sp+30h] [bp-44h] BYREF int v33; // [sp+34h] [bp-40h] BYREF _DWORD v34[15]; // [sp+38h] [bp-3Ch] BYREF v30 = a3; v31 = a4; v11 = sub_765568(a7 + 108); sub_764188(a7 + 108); v12 = (_DWORD *)v11[2]; v13 = v12[20]; v14 = v12[18]; v15 = v12[19]; v34[2] = v13; v16 = v11[2]; v34[1] = v15; v34[0] = v14; v34[3] = *(_DWORD *)(v16 + 84); v34[4] = *(_DWORD *)(v11[2] + 88); v34[5] = *(_DWORD *)(v11[2] + 92); v34[6] = *(_DWORD *)(v11[2] + 96); v34[7] = *(_DWORD *)(v11[2] + 44); v34[8] = *(_DWORD *)(v11[2] + 48); v34[9] = *(_DWORD *)(v11[2] + 52); v34[10] = *(_DWORD *)(v11[2] + 56); v34[11] = *(_DWORD *)(v11[2] + 60); v17 = v11[2]; v33 = 0; v34[12] = *(_DWORD *)(v17 + 64); v34[13] = *(_DWORD *)(v11[2] + 68); sub_767D58(&v28, a2, v30, v31, a5, a6, &v32, (int)v34, 7u, a7, &v33); v18 = v29; v30 = v28; v31 = v29; v19 = v28; v20 = v29; if ( v33 ) { *a8 |= 4u; if ( !v19 ) goto LABEL_9; } else { *(_DWORD *)(a9 + 24) = v32; if ( !v19 ) goto LABEL_9; } v18 = v20 + 1; if ( v20 != -1 ) { v21 = 0; if ( !a5 ) { LABEL_7: *a1 = v19; a1[1] = v20; return a1; } LABEL_5: v22 = a6; if ( a6 != -1 ) goto LABEL_6; goto LABEL_11; } v26 = (int *)v19[2]; if ( (unsigned int)v26 >= v19[3] ) v27 = (*(int (__fastcall **)(_DWORD *, int))(*v19 + 36))(v19, v18); else v27 = *v26; if ( v27 != -1 ) { v20 = v27; v21 = 0; if ( !a5 ) goto LABEL_7; goto LABEL_5; } LABEL_9: v19 = a5; if ( !a5 ) goto LABEL_13; v22 = a6; v19 = nullptr; v21 = 1; if ( a6 != -1 ) goto LABEL_6; LABEL_11: v24 = (_DWORD *)a5[2]; if ( (unsigned int)v24 < a5[3] ) { if ( (*v24 == -1) != v21 ) goto LABEL_7; goto LABEL_13; } v22 = (*(int (__fastcall **)(_DWORD *, int))(*a5 + 36))(a5, v18); LABEL_6: if ( (v22 == -1) != v21 ) goto LABEL_7; LABEL_13: v25 = *a8; *a1 = v19; a1[1] = v20; *a8 = v25 | 2; return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source