// // sub_1401784E0 from 0x1401784e0 to 0x14017860c (300 bytes) // // 2 xrefs: // > @ 0x14055bc38 // > @ 0x1406cb0ac // // 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 // unsigned __int64 *__fastcall sub_1401784E0(__int64 a1, unsigned __int64 *a2, _QWORD *a3, char a4) { bool v5; // cl bool v6; // al unsigned __int64 v7; // r8 __int64 v8; // rsi unsigned __int64 v9; // rcx __int64 *v10; // r14 __int64 v11; // rbx __int64 v12; // rdi __int64 v13; // r10 int v14; // ecx v5 = (a4 & 1) != 0 && (*(_BYTE *)(a1 + 112) & 4) != 0; v6 = (a4 & 2) != 0 && (*(_BYTE *)(a1 + 112) & 2) != 0; if ( v5 || v6 ) goto LABEL_29; v7 = *a3 + a3[1]; v8 = **(_QWORD **)(a1 + 56); if ( (*(_BYTE *)(a1 + 112) & 2) != 0 ) { v9 = 0; } else { v9 = **(_QWORD **)(a1 + 64); if ( v9 && *(_QWORD *)(a1 + 104) < v9 ) *(_QWORD *)(a1 + 104) = v9; } v10 = *(__int64 **)(a1 + 24); v11 = *(_QWORD *)(a1 + 104); v12 = *v10; if ( v7 > v11 - *v10 || v7 && ((a4 & 1) != 0 && !v8 || (a4 & 2) != 0 && !v9) ) { LABEL_29: *a2 = -1; } else { v13 = v12 + v7; if ( (a4 & 1) != 0 && v8 ) { *v10 = v12; **(_QWORD **)(a1 + 56) = v13; **(_DWORD **)(a1 + 80) = v11 - v13; } if ( (a4 & 2) != 0 && v9 ) { v14 = **(_DWORD **)(a1 + 64) + **(_DWORD **)(a1 + 88) - v13; **(_QWORD **)(a1 + 32) = v12; **(_QWORD **)(a1 + 64) = v13; **(_DWORD **)(a1 + 88) = v14; } *a2 = v7; } a2[1] = 0; a2[2] = 0; return a2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source