// // GameToolbox::timestampToDateString from 0x1400744c0 to 0x1400745ad (237 bytes) // // 7 xrefs: // > CommentOptionsPopup::init @ 0x1400c2235 // > ThreadMessageOptionsPopup::init @ 0x1400e555a // > ThreadOptionsPopup::init @ 0x1400f4704 // > ThreadRequestPopup::init @ 0x1400ff213 // > LevelStatsInfoPopup::buildInfoText @ 0x1404275da // > LevelStatsInfoPopup::buildInfoText @ 0x140427799 // > @ 0x1409118ac // // 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:25:50 +0000 // char *__fastcall GameToolbox::timestampToDateString(char *a1, __time64_t a2) { struct tm *v3; // rax size_t v4; // r8 __time64_t Time[2]; // [rsp+20h] [rbp-48h] BYREF char Buffer[32]; // [rsp+30h] [rbp-38h] BYREF Time[0] = a2; if ( a2 > 0 ) { v3 = localtime64(Time); if ( v3 ) { strftime(Buffer, 0x20u, "%Y-%m-%d %H:%M:%S", v3); *(_OWORD *)a1 = 0; *((_QWORD *)a1 + 2) = 0; v4 = -1; *((_QWORD *)a1 + 3) = 0; do ++v4; while ( Buffer[v4] ); sub_14003D230(a1, Buffer, v4); } else { *(_OWORD *)a1 = 0; *((_QWORD *)a1 + 2) = 2; *((_QWORD *)a1 + 3) = 15; strcpy(a1, "NA"); } } else { *(_OWORD *)a1 = 0; *((_QWORD *)a1 + 2) = 2; *((_QWORD *)a1 + 3) = 15; strcpy(a1, "NA"); } return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source