{"type": "func", "start": 5370944560, "end": 5370944820, "name": "GameLevelManager::makeTimeStamp", "pseudocode": "// \n// GameLevelManager::makeTimeStamp from 0x140221c30 to 0x140221d34 (260 bytes)\n// \n// 23 xrefs:\n// > MessageThreadsPage::onRefresh @ 0x1400d82f2\n// > ThreadViewPopup::onRefresh @ 0x1400db721\n// > ThreadViewPopup::onLoadEarlier @ 0x1400db899\n// > ThreadSearchPopup::onSearch @ 0x1400fc4a9\n// > FRequestProfilePage::onUpdate @ 0x140210f78\n// > FriendsProfilePage::onUpdate @ 0x140216f2d\n// > GameLevelManager::storeSearchResult @ 0x1402215ba\n// > GameLevelManager::processOnDownloadLevelCompleted @ 0x1402333d1\n// > GameLevelManager::processOnDownloadLevelCompleted @ 0x14023362a\n// > GameLevelManager::storeCommentsResult @ 0x14023e041\n// > GameLevelManager::uploadComment @ 0x14023e57e\n// > GameLevelManager::uploadFriendRequest @ 0x140254d29\n// > GJAccountManager::onBackupAccountCompleted @ 0x140307e4a\n// > GJAccountManager::onSyncAccountCompleted @ 0x140308a96\n// > InfoLayer::onRefreshComments @ 0x1403d03e5\n// > LevelLeaderboard::loadScores @ 0x140429ed8\n// > LevelLeaderboard::onUpdate @ 0x14042a4c9\n// > MessagesProfilePage::onUpdate @ 0x140476619\n// > NotificationsPage::onUpdate @ 0x1404786c8\n// > ProfilePage::onUpdate @ 0x140551d37\n// > TopArtistsLayer::init @ 0x14066e6cf\n// > TopArtistsLayer::loadPage @ 0x14066eea0\n// > <???> @ 0x14091bbfc\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:28:25 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nvoid __fastcall GameLevelManager::makeTimeStamp(__int64 a1, _BYTE *a2)\n{\n  size_t v3; // r8\n  __int64 v4; // rbx\n  struct cocos2d::CCString *v5; // rax\n  void *v6; // rcx\n  struct __timeb64 Time; // [rsp+30h] [rbp-48h] BYREF\n  void *Block[2]; // [rsp+40h] [rbp-38h] BYREF\n  __int128 v9; // [rsp+50h] [rbp-28h]\n\n  *(_OWORD *)Block = 0;\n  v9 = 0;\n  v3 = -1;\n  do\n    ++v3;\n  while ( a2[v3] );\n  sub_14003D230(Block, a2, v3);\n  ftime64(&Time);\n  v4 = *(_QWORD *)(a1 + 1056);\n  v5 = cocos2d::CCString::createWithFormat(\"%f\", (double)Time.millitm / 1000.0 + (double)SLODWORD(Time.time));\n  cocos2d::CCDictionary::setObject(v4, v5, Block);\n  if ( *((_QWORD *)&v9 + 1) > 0xFu )\n  {\n    v6 = Block[0];\n    if ( (unsigned __int64)(*((_QWORD *)&v9 + 1) + 1LL) >= 0x1000 )\n    {\n      v6 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v6 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free(v6);\n  }\n}", "assembly": "; \n; GameLevelManager::makeTimeStamp from 0x140221c30 to 0x140221d34 (260 bytes)\n; \n; 23 xrefs:\n; > MessageThreadsPage::onRefresh @ 0x1400d82f2\n; > ThreadViewPopup::onRefresh @ 0x1400db721\n; > ThreadViewPopup::onLoadEarlier @ 0x1400db899\n; > ThreadSearchPopup::onSearch @ 0x1400fc4a9\n; > FRequestProfilePage::onUpdate @ 0x140210f78\n; > FriendsProfilePage::onUpdate @ 0x140216f2d\n; > GameLevelManager::storeSearchResult @ 0x1402215ba\n; > GameLevelManager::processOnDownloadLevelCompleted @ 0x1402333d1\n; > GameLevelManager::processOnDownloadLevelCompleted @ 0x14023362a\n; > GameLevelManager::storeCommentsResult @ 0x14023e041\n; > GameLevelManager::uploadComment @ 0x14023e57e\n; > GameLevelManager::uploadFriendRequest @ 0x140254d29\n; > GJAccountManager::onBackupAccountCompleted @ 0x140307e4a\n; > GJAccountManager::onSyncAccountCompleted @ 0x140308a96\n; > InfoLayer::onRefreshComments @ 0x1403d03e5\n; > LevelLeaderboard::loadScores @ 0x140429ed8\n; > LevelLeaderboard::onUpdate @ 0x14042a4c9\n; > MessagesProfilePage::onUpdate @ 0x140476619\n; > NotificationsPage::onUpdate @ 0x1404786c8\n; > ProfilePage::onUpdate @ 0x140551d37\n; > TopArtistsLayer::init @ 0x14066e6cf\n; > TopArtistsLayer::loadPage @ 0x14066eea0\n; > <???> @ 0x14091bbfc\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:28:25 +0000\n; \npush    rbx                                                            ; +0x0, 0x140221c30\nsub     rsp, 70h                                                       ; +0x2, 0x140221c32\nmov     rax, cs:__security_cookie                                      ; +0x6, 0x140221c36\nxor     rax, rsp                                                       ; +0xd, 0x140221c3d\nmov     [rsp+78h+var_18], rax                                          ; +0x10, 0x140221c40\nmov     rbx, rcx                                                       ; +0x15, 0x140221c45\nxorps   xmm0, xmm0                                                     ; +0x18, 0x140221c48\nmovups  xmmword ptr [rsp+78h+Block], xmm0                              ; +0x1b, 0x140221c4b\nxorps   xmm1, xmm1                                                     ; +0x20, 0x140221c50\nmovdqu  [rsp+78h+var_28], xmm1                                         ; +0x23, 0x140221c53\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x29, 0x140221c59\ninc     r8                                                             ; +0x30, 0x140221c60\ncmp     byte ptr [rdx+r8], 0                                           ; +0x33, 0x140221c63\njnz     short loc_140221C60                                            ; +0x38, 0x140221c68\nlea     rcx, [rsp+78h+Block]                                           ; +0x3a, 0x140221c6a\ncall    sub_14003D230                                                  ; +0x3f, 0x140221c6f\nnop                                                                    ; +0x44, 0x140221c74\nlea     rcx, [rsp+78h+Time]; Time                                      ; +0x45, 0x140221c75\ncall    cs:_ftime64                                                    ; +0x4a, 0x140221c7a\nmov     rbx, [rbx+420h]                                                ; +0x50, 0x140221c80\nmovzx   eax, [rsp+78h+Time.millitm]                                    ; +0x57, 0x140221c87\nmovd    xmm1, eax                                                      ; +0x5c, 0x140221c8c\ncvtdq2pd xmm1, xmm1                                                    ; +0x60, 0x140221c90\ndivsd   xmm1, cs:qword_140835460                                       ; +0x64, 0x140221c94\nxorps   xmm0, xmm0                                                     ; +0x6c, 0x140221c9c\ncvtsi2sd xmm0, [rsp+78h+Time.time]                                     ; +0x6f, 0x140221c9f\naddsd   xmm1, xmm0                                                     ; +0x76, 0x140221ca6\nmovq    rdx, xmm1                                                      ; +0x7a, 0x140221caa\nlea     rcx, asc_140714110; \"%f\"                                       ; +0x7f, 0x140221caf\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x86, 0x140221cb6\nmov     rdx, rax                                                       ; +0x8c, 0x140221cbc\nlea     r8, [rsp+78h+Block]                                            ; +0x8f, 0x140221cbf\nmov     rcx, rbx                                                       ; +0x94, 0x140221cc4\ncall    cs:?setObject@CCDictionary@cocos2d@@QEAAXPEAVCCObject@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,std::string const &) ; +0x97, 0x140221cc7\nnop                                                                    ; +0x9d, 0x140221ccd\nmov     rdx, qword ptr [rsp+78h+var_28+8]                              ; +0x9e, 0x140221cce\ncmp     rdx, 0Fh                                                       ; +0xa3, 0x140221cd3\njbe     short loc_140221D21                                            ; +0xa7, 0x140221cd7\ninc     rdx                                                            ; +0xa9, 0x140221cd9\nmov     rcx, [rsp+78h+Block]; Block                                    ; +0xac, 0x140221cdc\nmov     rax, rcx                                                       ; +0xb1, 0x140221ce1\ncmp     rdx, 1000h                                                     ; +0xb4, 0x140221ce4\njb      short loc_140221D1C                                            ; +0xbb, 0x140221ceb\nadd     rdx, 27h ; '''                                                 ; +0xbd, 0x140221ced\nmov     rcx, [rcx-8]                                                   ; +0xc1, 0x140221cf1\nsub     rax, rcx                                                       ; +0xc5, 0x140221cf5\nsub     rax, 8                                                         ; +0xc8, 0x140221cf8\ncmp     rax, 1Fh                                                       ; +0xcc, 0x140221cfc\njbe     short loc_140221D1C                                            ; +0xd0, 0x140221d00\nmov     [rsp+78h+Reserved], 0; Reserved                                ; +0xd2, 0x140221d02\nxor     r9d, r9d; LineNo                                               ; +0xdb, 0x140221d0b\nxor     r8d, r8d; FileName                                             ; +0xde, 0x140221d0e\nxor     edx, edx; FunctionName                                         ; +0xe1, 0x140221d11\nxor     ecx, ecx; Expression                                           ; +0xe3, 0x140221d13\ncall    cs:_invoke_watson                                              ; +0xe5, 0x140221d15\nalign 4                                                                ; +0xeb, 0x140221d1b\ncall    j_j_free                                                       ; +0xec, 0x140221d1c\nmov     rcx, [rsp+78h+var_18]                                          ; +0xf1, 0x140221d21\nxor     rcx, rsp; StackCookie                                          ; +0xf6, 0x140221d26\ncall    __security_check_cookie                                        ; +0xf9, 0x140221d29\nadd     rsp, 70h                                                       ; +0xfe, 0x140221d2e\npop     rbx                                                            ; +0x102, 0x140221d32\nretn                                                                   ; +0x103, 0x140221d33", "xrefs": ["MessageThreadsPage::onRefresh @ 0x1400d82f2", "ThreadViewPopup::onRefresh @ 0x1400db721", "ThreadViewPopup::onLoadEarlier @ 0x1400db899", "ThreadSearchPopup::onSearch @ 0x1400fc4a9", "FRequestProfilePage::onUpdate @ 0x140210f78", "FriendsProfilePage::onUpdate @ 0x140216f2d", "GameLevelManager::storeSearchResult @ 0x1402215ba", "GameLevelManager::processOnDownloadLevelCompleted @ 0x1402333d1", "GameLevelManager::processOnDownloadLevelCompleted @ 0x14023362a", "GameLevelManager::storeCommentsResult @ 0x14023e041", "GameLevelManager::uploadComment @ 0x14023e57e", "GameLevelManager::uploadFriendRequest @ 0x140254d29", "GJAccountManager::onBackupAccountCompleted @ 0x140307e4a", "GJAccountManager::onSyncAccountCompleted @ 0x140308a96", "InfoLayer::onRefreshComments @ 0x1403d03e5", "LevelLeaderboard::loadScores @ 0x140429ed8", "LevelLeaderboard::onUpdate @ 0x14042a4c9", "MessagesProfilePage::onUpdate @ 0x140476619", "NotificationsPage::onUpdate @ 0x1404786c8", "ProfilePage::onUpdate @ 0x140551d37", "TopArtistsLayer::init @ 0x14066e6cf", "TopArtistsLayer::loadPage @ 0x14066eea0", "<???> @ 0x14091bbfc"], "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"}