// // sub_B3814 from 0xb3814 to 0xb3952 (318 bytes) // // 1 xrefs: // > sub_B3FF8 @ 0xb3ffe // // 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_B3814(int a1, float *a2, int a3) { int v4; // r0 int v7; // r1 int v8; // r5 int v9; // r9 unsigned int v10; // r0 float *v11; // r11 unsigned int v12; // r0 int v13; // r9 int i; // r10 int v15; // r0 int v16; // r0 int v17; // r6 int v18; // r0 float *v20; // [sp+18h] [bp-48h] int v21; // [sp+20h] [bp-40h] _DWORD v22[2]; // [sp+24h] [bp-3Ch] BYREF char v23; // [sp+2Ch] [bp-34h] unsigned int v24[3]; // [sp+30h] [bp-30h] BYREF int v25; // [sp+3Ch] [bp-24h] BYREF int v26; // [sp+40h] [bp-20h] BYREF v4 = *(_DWORD *)(a1 + 36); v7 = *(_DWORD *)(a1 + 40); v26 = *(_DWORD *)(*(_DWORD *)(v4 + 1112) + 48); if ( v7 == 5 ) v8 = (*(unsigned __int8 *)(v4 + 60) >> 3) & 1; else v8 = 1; v9 = *(_DWORD *)(v4 + 67172); sub_C073C(&v25); if ( !v9 ) sub_BE8B4(*(_DWORD *)(a1 + 36) + 1204); v10 = *(_DWORD *)(a1 + 36); v11 = a2; v24[2] = v10; v24[0] = 0; v24[1] = 0; if ( v8 ) { v12 = sub_B37AC(v24, v26 * a3); if ( !v12 ) { v17 = 38; goto LABEL_27; } v11 = (float *)v12; v10 = *(_DWORD *)(a1 + 36); } v20 = a2; if ( *(_DWORD *)(v10 + 67168) ) { v21 = v9; v22[0] = v10; v22[1] = 23; v23 = 0; sub_44998((int)v22); v13 = *(_DWORD *)(a1 + 36) + 1176; for ( i = v13; ; *(_BYTE *)(i + 64) = 0 ) { i = *(_DWORD *)i; if ( i == v13 ) break; if ( *(_BYTE *)(i + 64) ) { v15 = *(_DWORD *)(i + 12); if ( v15 ) sub_9E5DC(v15, *(_DWORD *)(*(_DWORD *)(a1 + 36) + 67168)); } } sub_448CC((int)v22); v16 = (*(int (__fastcall **)(_DWORD, float *, int *, int))(**(_DWORD **)(*(_DWORD *)(a1 + 36) + 67168) + 36))( *(_DWORD *)(*(_DWORD *)(a1 + 36) + 67168), v11, &v26, a3); v9 = v21; } else { v16 = sub_B3130(a1, (int)v11, a3); } v17 = v16; if ( !v16 ) { if ( v8 ) { v18 = sub_8E77C(v20, v11, *(_DWORD *)(a1 + 40), 5, v26 * a3, 1, 1, 1.0, 1); v17 = v18; if ( v9 || v18 ) goto LABEL_27; } else if ( v9 ) { LABEL_26: v17 = 0; goto LABEL_27; } sub_BE8C8(*(_DWORD *)(a1 + 36) + 1204, 95); goto LABEL_26; } LABEL_27: sub_B37E8(v24); sub_C0740(v25); return v17; }
GD Web Decomp Icon

GD Web Decomp

Raw Source