// // sub_1800882F0 from 0x1800882f0 to 0x180088470 (384 bytes) // // 5 xrefs: // > sub_180088470 @ 0x18008849b // > @ 0x1801848c8 // > @ 0x180184900 // > @ 0x180184914 // > @ 0x1801fa2e4 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // 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 10:53:41 +0000 // __int64 __fastcall sub_1800882F0(__int64 a1, _DWORD *a2, _QWORD *a3) { int v5; // edx __int64 result; // rax unsigned int v8; // ebp __int64 v9; // rdx int v10; // eax int *v11; // rdi int v12; // eax __int64 v13; // rcx __int64 v14; // rax __int64 v15; // r14 int v16; // r8d signed int v17; // eax __m128i v18; // xmm0 int v19; // eax int v20; // ecx __int64 v21; // rcx __int128 v22; // [rsp+20h] [rbp-28h] v5 = *(_DWORD *)(a1 + 36); if ( v5 == -1 ) return 28; v8 = 4; if ( v5 != *(_DWORD *)(a1 + 8) ) goto LABEL_7; v9 = (unsigned int)(2 * v5); if ( (int)v9 < 4 ) v9 = 4; result = sub_1800886A0(a1, v9); if ( !(_DWORD)result ) { LABEL_7: v10 = *(_DWORD *)(a1 + 8); if ( !v10 ) return 28; v11 = (int *)(*(_QWORD *)a1 + 4LL * (*a2 & (v10 - 1))); v12 = *v11; if ( *v11 != -1 ) { v13 = *(_QWORD *)(a1 + 16); do { v14 = 2LL * v12; if ( *(_DWORD *)(v13 + 8 * v14) == *a2 ) return 28; v11 = (int *)(v13 + 4 + 8 * v14); v12 = *v11; } while ( *v11 != -1 ); } v15 = *(int *)(a1 + 32); if ( (_DWORD)v15 != -1 ) { v21 = *(_QWORD *)(a1 + 16) + 16 * v15; *(_DWORD *)(a1 + 32) = *(_DWORD *)(v21 + 4); *(_DWORD *)(v21 + 4) = -1; *(_DWORD *)v21 = *a2; *(_QWORD *)(v21 + 8) = *a3; goto LABEL_22; } LODWORD(v15) = *(_DWORD *)(a1 + 24); *((_QWORD *)&v22 + 1) = *a3; v16 = v15 + 1; LODWORD(v22) = *a2; DWORD1(v22) = -1; v17 = abs32(*(_DWORD *)(a1 + 28)); if ( (int)v15 + 1 <= v17 ) goto LABEL_20; v18 = _mm_cvtsi32_si128(v17); v19 = *(_DWORD *)(a1 + 24) + 1; v20 = (int)(float)(_mm_cvtepi32_ps(v18).m128_f32[0] * 1.5); if ( v16 <= v20 ) v19 = v20; if ( v19 >= 4 ) { v8 = v20; if ( v16 > v20 ) v8 = *(_DWORD *)(a1 + 24) + 1; } result = sub_1800885B0(a1 + 16, v8); if ( !(_DWORD)result ) { LABEL_20: *(_OWORD *)(*(_QWORD *)(a1 + 16) + 16LL * (int)(*(_DWORD *)(a1 + 24))++) = v22; LABEL_22: *v11 = v15; ++*(_DWORD *)(a1 + 36); return 0; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source