// // sub_76DDF4 from 0x76ddf4 to 0x76dee8 (244 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_76DDF4(int a1, int a2) { int v2; // r3 int v4; // r5 unsigned int v5; // r3 int v6; // r7 unsigned int v7; // r6 int v8; // r0 _DWORD *v10; // r3 int v11; // r2 bool v12; // zf int v13; // r0 int v14; // r6 int v15; // [sp+8h] [bp-14h] BYREF int v16; // [sp+Ch] [bp-10h] v2 = *(_DWORD *)(a1 + 44); if ( (v2 & 8) == 0 ) return -1; v4 = a2; if ( *(_BYTE *)(a1 + 70) ) { if ( (*(int (__fastcall **)(int, int, int))(*(_DWORD *)a1 + 52))(a1, -1, v2 << 28) != -1 ) { v11 = *(_DWORD *)(a1 + 60); v6 = *(unsigned __int8 *)(a1 + 84); *(_DWORD *)(a1 + 20) = 0; v7 = v4 == -1; *(_DWORD *)(a1 + 4) = v11; *(_DWORD *)(a1 + 8) = v11; *(_DWORD *)(a1 + 12) = v11; *(_DWORD *)(a1 + 16) = 0; *(_DWORD *)(a1 + 24) = 0; *(_BYTE *)(a1 + 70) = 0; goto LABEL_16; } return -1; } v5 = *(_DWORD *)(a1 + 8); v6 = *(unsigned __int8 *)(a1 + 84); v7 = a2 == -1; if ( *(_DWORD *)(a1 + 4) < v5 ) { v8 = *(_DWORD *)(v5 - 4); *(_DWORD *)(a1 + 8) = v5 - 4; goto LABEL_5; } LABEL_16: (*(void (__fastcall **)(int *, int, int, int, int, int))(*(_DWORD *)a1 + 16))(&v15, a1, -1, -1, 1, 24); v12 = v16 == -1; if ( v16 == -1 ) v12 = v15 == -1; if ( v12 ) return -1; v8 = (*(int (__fastcall **)(int))(*(_DWORD *)a1 + 36))(a1); if ( v8 == -1 ) return -1; LABEL_5: if ( (v4 == v8) <= v7 ) { if ( v7 ) return 0; if ( !v6 ) { if ( *(_BYTE *)(a1 + 84) ) { v10 = *(_DWORD **)(a1 + 8); } else { v13 = *(_DWORD *)(a1 + 8); v14 = *(_DWORD *)(a1 + 12); v10 = (_DWORD *)(a1 + 72); *(_DWORD *)(a1 + 4) = a1 + 72; *(_DWORD *)(a1 + 76) = v13; *(_DWORD *)(a1 + 80) = v14; *(_DWORD *)(a1 + 8) = a1 + 72; *(_DWORD *)(a1 + 12) = a1 + 76; *(_BYTE *)(a1 + 84) = 1; } *(_BYTE *)(a1 + 69) = 1; *v10 = v4; return v4; } return -1; } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source