{"type": "func", "start": 5369414240, "end": 5369414441, "name": "GameToolbox::timestampToDayString", "pseudocode": "// \n// GameToolbox::timestampToDayString from 0x1400ac260 to 0x1400ac329 (201 bytes)\n// \n// 4 xrefs:\n// > AccountReviewPopup::buildReportedRows @ 0x1400b478c\n// > AccountReviewPopup::buildReportedRows @ 0x1400b50b8\n// > AccountReviewPopup::buildHistoryRows @ 0x1400b777b\n// > <???> @ 0x140913418\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:26:10 +0000\n// \n\n_QWORD *__fastcall GameToolbox::timestampToDayString(_QWORD *a1, __time64_t a2)\n{\n  struct tm *v3; // rax\n  size_t v4; // r8\n  __time64_t Time[2]; // [rsp+20h] [rbp-48h] BYREF\n  char Buffer[16]; // [rsp+30h] [rbp-38h] BYREF\n  __int128 v8; // [rsp+40h] [rbp-28h]\n\n  Time[0] = (__time64_t)a1;\n  if ( a2 > 0 )\n  {\n    Time[0] = a2;\n    v3 = localtime64(Time);\n    *(_OWORD *)Buffer = 0;\n    v8 = 0;\n    if ( v3 )\n      strftime(Buffer, 0x20u, \"%Y-%m-%d\", v3);\n    *(_OWORD *)a1 = 0;\n    a1[2] = 0;\n    v4 = -1;\n    a1[3] = 0;\n    do\n      ++v4;\n    while ( Buffer[v4] );\n    sub_14003D230(a1, Buffer, v4);\n  }\n  else\n  {\n    *(_OWORD *)a1 = 0;\n    a1[2] = 0;\n    a1[3] = 15;\n    *(_BYTE *)a1 = 0;\n  }\n  return a1;\n}", "assembly": "; \n; GameToolbox::timestampToDayString from 0x1400ac260 to 0x1400ac329 (201 bytes)\n; \n; 4 xrefs:\n; > AccountReviewPopup::buildReportedRows @ 0x1400b478c\n; > AccountReviewPopup::buildReportedRows @ 0x1400b50b8\n; > AccountReviewPopup::buildHistoryRows @ 0x1400b777b\n; > <???> @ 0x140913418\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:26:10 +0000\n; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x1400ac260\npush    rdi                                                            ; +0x5, 0x1400ac265\nsub     rsp, 60h                                                       ; +0x6, 0x1400ac266\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x1400ac26a\nxor     rax, rsp                                                       ; +0x11, 0x1400ac271\nmov     [rsp+68h+var_18], rax                                          ; +0x14, 0x1400ac274\nxor     edi, edi                                                       ; +0x19, 0x1400ac279\nmov     [rsp+68h+Time], rcx                                            ; +0x1b, 0x1400ac27b\nmov     rbx, rcx                                                       ; +0x20, 0x1400ac280\ntest    rdx, rdx                                                       ; +0x23, 0x1400ac283\njg      short loc_1400AC29F                                            ; +0x26, 0x1400ac286\nxorps   xmm0, xmm0                                                     ; +0x28, 0x1400ac288\nmovups  xmmword ptr [rcx], xmm0                                        ; +0x2b, 0x1400ac28b\nmov     [rcx+10h], rdi                                                 ; +0x2e, 0x1400ac28e\nmov     qword ptr [rcx+18h], 0Fh                                       ; +0x32, 0x1400ac292\nmov     [rcx], dil                                                     ; +0x3a, 0x1400ac29a\njmp     short loc_1400AC30B                                            ; +0x3d, 0x1400ac29d\nlea     rcx, [rsp+68h+Time]; Time                                      ; +0x3f, 0x1400ac29f\nmov     [rsp+68h+Time], rdx                                            ; +0x44, 0x1400ac2a4\ncall    cs:_localtime64                                                ; +0x49, 0x1400ac2a9\nxorps   xmm0, xmm0                                                     ; +0x4f, 0x1400ac2af\nmovups  xmmword ptr [rsp+68h+Buffer], xmm0                             ; +0x52, 0x1400ac2b2\nmovups  [rsp+68h+var_28], xmm0                                         ; +0x57, 0x1400ac2b7\ntest    rax, rax                                                       ; +0x5c, 0x1400ac2bc\njz      short loc_1400AC2DB                                            ; +0x5f, 0x1400ac2bf\nmov     r9, rax; Tm                                                    ; +0x61, 0x1400ac2c1\nlea     r8, aYMD; \"%Y-%m-%d\"                                           ; +0x64, 0x1400ac2c4\nmov     edx, 20h ; ' '; SizeInBytes                                    ; +0x6b, 0x1400ac2cb\nlea     rcx, [rsp+68h+Buffer]; Buffer                                  ; +0x70, 0x1400ac2d0\ncall    cs:strftime                                                    ; +0x75, 0x1400ac2d5\nxorps   xmm0, xmm0                                                     ; +0x7b, 0x1400ac2db\nlea     rax, [rsp+68h+Buffer]                                          ; +0x7e, 0x1400ac2de\nmovups  xmmword ptr [rbx], xmm0                                        ; +0x83, 0x1400ac2e3\nmov     [rbx+10h], rdi                                                 ; +0x86, 0x1400ac2e6\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x8a, 0x1400ac2ea\nmov     [rbx+18h], rdi                                                 ; +0x91, 0x1400ac2f1\ninc     r8                                                             ; +0x95, 0x1400ac2f5\ncmp     [rax+r8], dil                                                  ; +0x98, 0x1400ac2f8\njnz     short loc_1400AC2F5                                            ; +0x9c, 0x1400ac2fc\nlea     rdx, [rsp+68h+Buffer]                                          ; +0x9e, 0x1400ac2fe\nmov     rcx, rbx                                                       ; +0xa3, 0x1400ac303\ncall    sub_14003D230                                                  ; +0xa6, 0x1400ac306\nmov     rax, rbx                                                       ; +0xab, 0x1400ac30b\nmov     rcx, [rsp+68h+var_18]                                          ; +0xae, 0x1400ac30e\nxor     rcx, rsp; StackCookie                                          ; +0xb3, 0x1400ac313\ncall    __security_check_cookie                                        ; +0xb6, 0x1400ac316\nmov     rbx, [rsp+68h+arg_10]                                          ; +0xbb, 0x1400ac31b\nadd     rsp, 60h                                                       ; +0xc3, 0x1400ac323\npop     rdi                                                            ; +0xc7, 0x1400ac327\nretn                                                                   ; +0xc8, 0x1400ac328", "xrefs": ["AccountReviewPopup::buildReportedRows @ 0x1400b478c", "AccountReviewPopup::buildReportedRows @ 0x1400b50b8", "AccountReviewPopup::buildHistoryRows @ 0x1400b777b", "<???> @ 0x140913418"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}