// // GJSmartTemplate::getNoCornerKey from 0x1402b19c0 to 0x1402b1b3e (382 bytes) // // 9 xrefs: // > GJSmartTemplate::saveRemap @ 0x1402b0bd1 // > GJSmartTemplate::saveRemap @ 0x1402b0c14 // > GJSmartTemplate::saveRemap @ 0x1402b0d53 // > GJSmartTemplate::saveRemap @ 0x1402b0e7a // > GJSmartTemplate::scanForPrefab @ 0x1402b1da9 // > GJSmartTemplate::getPrefab @ 0x1402b2f11 // > GJSmartTemplate::getPrefab @ 0x1402b2f8c // > GJSmartTemplate::getPrefab @ 0x1402b3013 // > @ 0x1406d2360 // // 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 // // Hidden C++ exception states: #wind=2 __int64 __fastcall GJSmartTemplate::getNoCornerKey(__int64 a1, __int64 a2, const void **a3) { unsigned __int64 v5; // rax size_t v6; // r8 const void *v7; // rdx const void *v8; // rdx void **v9; // rcx char *v10; // rsi unsigned __int64 v11; // r15 unsigned __int64 v12; // r14 unsigned __int64 v13; // rbp size_t v14; // r8 char *v15; // rax void *Buf1[2]; // [rsp+30h] [rbp-58h] BYREF __int128 v18; // [rsp+40h] [rbp-48h] v5 = (unsigned __int64)a3[2]; if ( v5 ) { *(_OWORD *)Buf1 = 0; v18 = 0u; v6 = 5; if ( v5 < 5 ) v6 = v5; v7 = a3; if ( (unsigned __int64)a3[3] > 0xF ) v7 = *a3; sub_14003A930(Buf1, v7, v6); sub_140041270(Buf1, "0000", 4u); v8 = a3; if ( (unsigned __int64)a3[3] > 0xF ) v8 = *a3; v9 = Buf1; v10 = (char *)Buf1[0]; v11 = *((_QWORD *)&v18 + 1); if ( *((_QWORD *)&v18 + 1) > 0xFu ) v9 = (void **)Buf1[0]; v12 = (unsigned __int64)a3[2]; v13 = v18; v14 = v18; if ( v12 < (unsigned __int64)v18 ) v14 = (size_t)a3[2]; if ( !memcmp(v9, v8, v14) && v13 >= v12 && v13 <= v12 ) { *(_OWORD *)a2 = 0; *(_QWORD *)(a2 + 16) = 0; *(_QWORD *)(a2 + 24) = 15; *(_BYTE *)a2 = 0; if ( v11 > 0xF ) { v15 = v10; if ( v11 + 1 >= 0x1000 ) { v10 = *((char **)v10 - 1); if ( (unsigned __int64)(v15 - v10 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v10); } } else { *(_OWORD *)a2 = *(_OWORD *)Buf1; *(_OWORD *)(a2 + 16) = v18; } } else { *(_OWORD *)a2 = 0; *(_QWORD *)(a2 + 16) = 0; *(_QWORD *)(a2 + 24) = 15; *(_BYTE *)a2 = 0; } sub_14003A830((__int64)a3); return a2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source