// // sub_1403791A0 from 0x1403791a0 to 0x1403792be (286 bytes) // // 3 xrefs: // > sub_140376050 @ 0x14037611d // > sub_140376050 @ 0x14037616f // > @ 0x1409226b8 // // 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 11:31:02 +0000 // // Hidden C++ exception states: #wind=2 unsigned __int64 __fastcall sub_1403791A0(__int64 a1, __int64 a2, __int64 a3) { __int64 *v4; // rsi __int64 v5; // rcx unsigned __int64 result; // rax unsigned __int64 v7; // rdx __int64 v8; // rbx _QWORD *v9; // rax __int64 v10; // rbx __int64 v11; // rbp __int64 i; // rdi *(_DWORD *)a2 = *(_DWORD *)a3; v4 = (__int64 *)(a2 + 8); *(_QWORD *)(a2 + 8) = 0; *(_QWORD *)(a2 + 16) = 0; *(_QWORD *)(a2 + 24) = 0; v5 = *(_QWORD *)(a3 + 16) - *(_QWORD *)(a3 + 8); result = (unsigned __int64)((unsigned __int128)(v5 * (__int128)0x4924924924924925LL) >> 64) >> 63; v7 = v5 / 56; if ( v5 / 56 ) { if ( v7 > 0x492492492492492LL ) sub_14005A170(); v8 = 7 * v7; v9 = sub_14003D460(56 * v7); *v4 = (__int64)v9; v4[1] = (__int64)v9; result = (unsigned __int64)&v9[v8]; v4[2] = result; v10 = *v4; v11 = *(_QWORD *)(a3 + 16); for ( i = *(_QWORD *)(a3 + 8); i != v11; i += 56 ) { *(_BYTE *)v10 = *(_BYTE *)i; *(_DWORD *)(v10 + 4) = *(_DWORD *)(i + 4); *(_DWORD *)(v10 + 8) = *(_DWORD *)(i + 8); *(_DWORD *)(v10 + 12) = *(_DWORD *)(i + 12); *(_DWORD *)(v10 + 16) = *(_DWORD *)(i + 16); *(_DWORD *)(v10 + 20) = *(_DWORD *)(i + 20); *(_DWORD *)(v10 + 24) = *(_DWORD *)(i + 24); *(_BYTE *)(v10 + 28) = *(_BYTE *)(i + 28); result = (unsigned __int64)sub_14018CFB0((_QWORD *)(v10 + 32), i + 32); v10 += 56; } v4[1] = v10; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source