// // sub_14040D460 from 0x14040d460 to 0x14040d5e5 (389 bytes) // // 2 xrefs: // > LevelSettingsObject::getSaveString @ 0x140410498 // > @ 0x140925d3c // // 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:32:01 +0000 // // Hidden C++ exception states: #wind=2 void **__fastcall sub_14040D460(void **Src, __int64 a2) { _QWORD *v4; // rax _QWORD *v5; // rbx size_t v6; // r8 void **v7; // rdx void *v8; // rcx void *Srca[2]; // [rsp+40h] [rbp-48h] BYREF size_t Size; // [rsp+50h] [rbp-38h] unsigned __int64 v12; // [rsp+58h] [rbp-30h] wchar_t Buffer[8]; // [rsp+60h] [rbp-28h] BYREF *(_OWORD *)Src = 0; Src[2] = nullptr; Src[3] = (void *)15; *(_BYTE *)Src = 0; v4 = *(_QWORD **)(a2 + 8); v5 = (_QWORD *)*v4; if ( (_QWORD *)*v4 != v4 ) { do { sub_14040C800(Srca, (__int64)(v5 + 3)); if ( Size ) { if ( Src[2] ) sub_14003DBD0(Src, 124); swprintf(Buffer, 0x10u, &word_14070D0CC, *((unsigned int *)v5 + 4)); v6 = -1; do ++v6; while ( *((_BYTE *)Buffer + v6) ); sub_140044D80(Src, Buffer, v6); sub_14003DBD0(Src, 58); v7 = Srca; if ( v12 > 0xF ) v7 = (void **)Srca[0]; sub_140044D80(Src, v7, Size); } if ( v12 > 0xF ) { v8 = Srca[0]; if ( v12 + 1 >= 0x1000 ) { v8 = *((void **)Srca[0] - 1); if ( (unsigned __int64)((char *)Srca[0] - (char *)v8 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v8); } v5 = (_QWORD *)*v5; } while ( v5 != *(_QWORD **)(a2 + 8) ); } return Src; }
GD Web Decomp Icon

GD Web Decomp

Raw Source