// // sub_748E9C from 0x748e9c to 0x748fda (318 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_748E9C(int *a1, int *a2) { char *v4; // r3 int v5; // r6 int v6; // r10 _DWORD *v7; // r5 int *v8; // r3 int v9; // r4 int v10; // r8 int v11; // r6 bool v12; // cc int v13; // r0 int v14; // r2 int *v16; // r3 unsigned int v17; // r2 int v18; // r0 int *v19; // r3 char v20[4]; // [sp+0h] [bp-8h] BYREF char v21[4]; // [sp+4h] [bp-4h] BYREF sub_747D3C(v20, a1, 0); if ( !v20[0] ) { v13 = *a1; v14 = 4; goto LABEL_15; } v4 = (char *)a1 + *(_DWORD *)(*a1 - 12); v5 = *((_DWORD *)v4 + 2); if ( v5 <= 0 ) v5 = 0x7FFFFFFF; sub_75629C(v21, v4 + 108); v6 = sub_764188(v21); sub_756898(v21); v7 = *(_DWORD **)((char *)a1 + *(_DWORD *)(*a1 - 12) + 124); v8 = (int *)v7[2]; if ( (unsigned int)v8 >= v7[3] ) v9 = (*(int (__fastcall **)(_DWORD))(*v7 + 36))(*(int *)((char *)a1 + *(_DWORD *)(*a1 - 12) + 124)); else v9 = *v8; v10 = v5 - 1; v11 = 0; while ( 1 ) { v12 = v9 < -1; if ( v9 != -1 ) v12 = v11 < v10; if ( !v12 ) break; if ( (*(int (__fastcall **)(int, int, int))(*(_DWORD *)v6 + 8))(v6, 8, v9) ) goto LABEL_12; v16 = (int *)v7[2]; ++v11; v17 = v7[3]; *a2++ = v9; if ( (unsigned int)v16 >= v17 ) { v18 = (*(int (__fastcall **)(_DWORD *))(*v7 + 40))(v7); } else { v18 = *v16; v7[2] = v16 + 1; } if ( v18 == -1 ) { LABEL_29: v9 = v18; } else { v19 = (int *)v7[2]; if ( (unsigned int)v19 >= v7[3] ) { v18 = (*(int (__fastcall **)(_DWORD *, int))(*v7 + 36))(v7, v18 + 1); goto LABEL_29; } v9 = *v19; } } if ( v9 == -1 ) { v13 = *a1; *a2 = 0; if ( v11 ) v14 = 2; else v14 = 6; *(int *)((char *)a1 + *(_DWORD *)(v13 - 12) + 8) = 0; goto LABEL_15; } LABEL_12: v13 = *a1; *a2 = 0; *(int *)((char *)a1 + *(_DWORD *)(v13 - 12) + 8) = 0; if ( v11 ) return a1; v14 = 4; LABEL_15: sub_744C5C((int *)((char *)a1 + *(_DWORD *)(v13 - 12)), *(int *)((char *)a1 + *(_DWORD *)(v13 - 12) + 20) | v14); return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source