// // sub_90F110 from 0x90f110 to 0x90f322 (530 bytes) // // 2 xrefs: // > sub_90817C @ 0x9083fe // > sub_90F434 @ 0x90f7ba // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:04:25 +0000 // _DWORD *__fastcall sub_90F110(_DWORD *result) { _DWORD *v1; // r5 int *v2; // r4 _DWORD *v3; // r6 int v4; // r1 _DWORD *v5; // r7 int v6; // r3 int v7; // r6 _DWORD *v8; // r4 void *v9; // r0 unsigned int v10; // r7 int v11; // r11 int v12; // r10 __int64 v13; // d16 int v14; // r0 int v15; // r0 int v16; // r2 unsigned int v17; // r3 int v18; // r0 int v19; // r7 __int64 v20; // r8 __int64 v21; // r0 int v22; // r0 int v23; // [sp+24h] [bp-2Ch] if ( !result ) return result; v1 = result; v2 = (int *)result[2]; v3 = (_DWORD *)v2[10]; if ( !result[1] ) goto LABEL_18; v4 = result[2]; result[3] = *v3; if ( sub_910880(v3[5], v4, 3) ) { v19 = *v2; v20 = (int)v1[26] * (__int64)(int)v1[25]; v21 = 16LL * *v2 + (unsigned __int16)*v2 + v20; v22 = WebPSafeMalloc(v21, HIDWORD(v21), 4); v1[4] = v22; if ( !v22 ) { v1[5] = 0; *v1 = 1; v5 = v1 + 34; goto LABEL_5; } v15 = v22 + 4 * (v20 + (unsigned __int16)v19); v1[5] = v15; if ( v2[23] ) { v10 = v2[24]; v11 = v2[3]; v12 = v2[4]; v23 = v2[25]; v13 = vshrd_n_s64(vdup_n_s32(v10).n64_i64[0], 0x20u); v14 = WebPSafeMalloc(4 * (8 * v13 + v13 + 21), (unsigned __int64)(8 * v13 + v13 + 21) >> 30, 1); if ( !v14 ) { *v1 = 1; v5 = v1 + 34; goto LABEL_5; } v1[66] = v14; v1[67] = v14; v15 = sub_9467D8(v14, v11, v12, v14 + 84 + 32 * v13, v10, v23, 0, 4, v14 + 84); if ( v2[23] ) goto LABEL_12; } v17 = *(_DWORD *)v1[3]; v16 = v17 - 7; if ( v17 - 7 <= 3 ) { LABEL_12: v15 = sub_911268(v15); v17 = *(_DWORD *)v1[3]; } if ( v17 > 0xA ) { v18 = sub_92C638(v15); if ( *(_DWORD *)(v1[3] + 28) ) sub_911268(v18); } if ( v1[14] ) { if ( (int)v1[30] > 0 && !v1[34] ) { v5 = v1 + 34; if ( !sub_944248((int)(v1 + 34), v1[33], v16, 0) ) { *v1 = 1; goto LABEL_5; } } } v1[1] = 0; LABEL_18: v5 = v1 + 34; if ( sub_90C840(v1, v1[4], v1[25], v1[26], v1[26], (void (__fastcall *)(_DWORD *, int))sub_90C408) ) { v3[4] = v1[29]; return &dword_0 + 1; } goto LABEL_5; } *v1 = 2; v5 = v1 + 34; LABEL_5: WebPSafeFree((void *)v1[40]); WebPSafeFree((void *)v1[43]); sub_94470C(v1[42]); sub_944270(v1 + 31); sub_944270(v5); memset(v1 + 30, 0, 0x38u); WebPSafeFree((void *)v1[4]); v6 = v1[44]; v7 = 0; v1[4] = 0; if ( v6 > 0 ) { v8 = v1; do { ++v7; WebPSafeFree((void *)v8[49]); v8[49] = 0; v8 += 5; } while ( v7 < v1[44] ); } v9 = (void *)v1[66]; v1[44] = 0; v1[65] = 0; WebPSafeFree(v9); v1[66] = 0; v1[3] = 0; return nullptr; }
GD Web Decomp Icon

GD Web Decomp

Raw Source