// // sub_1800CF6E0 from 0x1800cf6e0 to 0x1800cf842 (354 bytes) // // 4 xrefs: // > @ 0x18016c998 // > @ 0x18018ba48 // > @ 0x18018ba58 // > @ 0x1801fe958 // // 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:54:08 +0000 // __int64 __fastcall sub_1800CF6E0(__int64 *a1, int a2) { _DWORD *v4; // rcx int v5; // esi __int64 result; // rax __int64 v7; // rdx __int64 v8; // r8 __int64 v9; // r9 int v10; // eax float v11; // xmm0_4 __int64 v12; // rax int v13; // edi __int64 v14; // [rsp+30h] [rbp-28h] BYREF int v15; // [rsp+38h] [rbp-20h] v4 = (_DWORD *)a1[59]; if ( !v4 || !a1[4] ) return 30; v5 = v4[14]; result = (*(__int64 (**)(void))(*(_QWORD *)v4 + 192LL))(); if ( !(_DWORD)result ) { if ( (v5 & 8) == 0 && (a2 & 8) != 0 ) { result = (*(__int64 (__fastcall **)(__int64 *, __int64, _QWORD))(*a1 + 32))(a1, v7, 0); if ( (_DWORD)result ) return result; (*(void (__fastcall **)(__int64 *, __int64, _QWORD, _QWORD, _DWORD, _BYTE))(*a1 + 200))( a1, a1[8], (unsigned int)*((__int16 *)a1 + 29), (unsigned int)*((__int16 *)a1 + 28), 0, 0); goto LABEL_12; } if ( ((v5 & 0x10) != 0 || (a2 & 0x10) == 0) && ((v5 ^ a2) & 0x4F00000) == 0 || (v10 = *((_DWORD *)a1 + 34), v14 = a1[16], v11 = *((float *)a1 + 32) + 1.0, v15 = v10, v12 = *a1, *((float *)a1 + 32) = v11, result = (*(__int64 (__fastcall **)(__int64 *, __int64 *, __int64))(v12 + 320))(a1, &v14, (__int64)a1 + 140), !(_DWORD)result) ) { LABEL_12: v13 = a2 & 0x40000000; if ( v13 != (v5 & 0x40000000) ) { if ( v13 ) { LOBYTE(v9) = 1; (*(void (__fastcall **)(__int64 *, __int64, __int64, __int64))(*a1 + 408))(a1, v7, v8, v9); } else { *((_DWORD *)a1 + 18) |= 4u; } } return 0; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source