{"type": "func", "start": 5370059920, "end": 5370060164, "name": "GameLevelManager::makeTimeStamp", "pseudocode": "// \n// GameLevelManager::makeTimeStamp from 0x140149c90 to 0x140149d84 (244 bytes)\n// \n// 19 xrefs:\n// > FRequestProfilePage::onUpdate @ 0x14013e6f6\n// > FriendsProfilePage::onUpdate @ 0x140140b1a\n// > GameLevelManager::storeSearchResult @ 0x1401496a7\n// > GameLevelManager::processOnDownloadLevelCompleted @ 0x1401533bc\n// > GameLevelManager::processOnDownloadLevelCompleted @ 0x1401534c0\n// > GameLevelManager::uploadUserMessage @ 0x14015afab\n// > GameLevelManager::storeCommentsResult @ 0x14015d7de\n// > GameLevelManager::uploadComment @ 0x14015dca5\n// > GameLevelManager::uploadFriendRequest @ 0x1401607b6\n// > GJAccountManager::onBackupAccountCompleted @ 0x140202210\n// > GJAccountManager::onSyncAccountCompleted @ 0x140202eae\n// > InfoLayer::onRefreshComments @ 0x1402bcd9a\n// > LevelLeaderboard::loadScores @ 0x1403024d8\n// > LevelLeaderboard::onUpdate @ 0x1403028d3\n// > MessagesProfilePage::onUpdate @ 0x1403372b6\n// > ProfilePage::onUpdate @ 0x1403bf8c1\n// > TopArtistsLayer::init @ 0x1404cb2ef\n// > TopArtistsLayer::loadPage @ 0x1404cba7b\n// > <???> @ 0x1406ca6ec\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n// Hidden C++ exception states: #wind=1\nvoid GameLevelManager::makeTimeStamp(GameLevelManager *a1, const char *a2)\n{\n  size_t v3; // r8\n  struct cocos2d::CCString *v4; // rax\n  void *v5; // rcx\n  struct __timeb64 Time; // [rsp+20h] [rbp-48h] BYREF\n  void *Block[2]; // [rsp+30h] [rbp-38h] BYREF\n  __int128 v8; // [rsp+40h] [rbp-28h]\n\n  *(_OWORD *)Block = 0;\n  v8 = 0;\n  v3 = -1;\n  do\n    ++v3;\n  while ( a2[v3] );\n  sub_14003A930(Block, a2, v3);\n  ftime64(&Time);\n  v4 = cocos2d::CCString::createWithFormat(\"%f\", (double)(Time.millitm + 1000 * (Time.time & 0xFFFFF)) / 1000.0);\n  cocos2d::CCDictionary::setObject(a1->m_timerDict, v4, Block);\n  if ( *((_QWORD *)&v8 + 1) > 0xFu )\n  {\n    v5 = Block[0];\n    if ( (unsigned __int64)(*((_QWORD *)&v8 + 1) + 1LL) >= 0x1000 )\n    {\n      v5 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v5 - 8) > 0x1F )\n        invalid_parameter_noinfo_noreturn();\n    }\n    j_j_free(v5);\n  }\n}", "assembly": "; \n; GameLevelManager::makeTimeStamp from 0x140149c90 to 0x140149d84 (244 bytes)\n; \n; 19 xrefs:\n; > FRequestProfilePage::onUpdate @ 0x14013e6f6\n; > FriendsProfilePage::onUpdate @ 0x140140b1a\n; > GameLevelManager::storeSearchResult @ 0x1401496a7\n; > GameLevelManager::processOnDownloadLevelCompleted @ 0x1401533bc\n; > GameLevelManager::processOnDownloadLevelCompleted @ 0x1401534c0\n; > GameLevelManager::uploadUserMessage @ 0x14015afab\n; > GameLevelManager::storeCommentsResult @ 0x14015d7de\n; > GameLevelManager::uploadComment @ 0x14015dca5\n; > GameLevelManager::uploadFriendRequest @ 0x1401607b6\n; > GJAccountManager::onBackupAccountCompleted @ 0x140202210\n; > GJAccountManager::onSyncAccountCompleted @ 0x140202eae\n; > InfoLayer::onRefreshComments @ 0x1402bcd9a\n; > LevelLeaderboard::loadScores @ 0x1403024d8\n; > LevelLeaderboard::onUpdate @ 0x1403028d3\n; > MessagesProfilePage::onUpdate @ 0x1403372b6\n; > ProfilePage::onUpdate @ 0x1403bf8c1\n; > TopArtistsLayer::init @ 0x1404cb2ef\n; > TopArtistsLayer::loadPage @ 0x1404cba7b\n; > <???> @ 0x1406ca6ec\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbx                                                            ; +0x0, 0x140149c90\nsub     rsp, 60h                                                       ; +0x2, 0x140149c92\nmov     rax, cs:__security_cookie                                      ; +0x6, 0x140149c96\nxor     rax, rsp                                                       ; +0xd, 0x140149c9d\nmov     [rsp+68h+var_18], rax                                          ; +0x10, 0x140149ca0\nmov     rbx, rcx                                                       ; +0x15, 0x140149ca5\nxorps   xmm0, xmm0                                                     ; +0x18, 0x140149ca8\nmovups  xmmword ptr [rsp+68h+Block], xmm0                              ; +0x1b, 0x140149cab\nxorps   xmm1, xmm1                                                     ; +0x20, 0x140149cb0\nmovdqu  [rsp+68h+var_28], xmm1                                         ; +0x23, 0x140149cb3\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x29, 0x140149cb9\ninc     r8                                                             ; +0x30, 0x140149cc0\ncmp     byte ptr [rdx+r8], 0                                           ; +0x33, 0x140149cc3\njnz     short loc_140149CC0                                            ; +0x38, 0x140149cc8\nlea     rcx, [rsp+68h+Block]                                           ; +0x3a, 0x140149cca\ncall    sub_14003A930                                                  ; +0x3f, 0x140149ccf\nnop                                                                    ; +0x44, 0x140149cd4\nlea     rcx, [rsp+68h+Time]; Time                                      ; +0x45, 0x140149cd5\ncall    cs:_ftime64                                                    ; +0x4a, 0x140149cda\nmov     rax, [rsp+68h+Time.time]                                       ; +0x50, 0x140149ce0\nand     eax, 0FFFFFh                                                   ; +0x55, 0x140149ce5\nimul    rdx, rax, 3E8h                                                 ; +0x5a, 0x140149cea\nmovzx   eax, [rsp+68h+Time.millitm]                                    ; +0x61, 0x140149cf1\nadd     rdx, rax                                                       ; +0x66, 0x140149cf6\nxorps   xmm1, xmm1                                                     ; +0x69, 0x140149cf9\ncvtsi2sd xmm1, rdx                                                     ; +0x6c, 0x140149cfc\ndivsd   xmm1, cs:qword_140623000                                       ; +0x71, 0x140149d01\nmovq    rdx, xmm1                                                      ; +0x79, 0x140149d09\nlea     rcx, asc_1405371F8; \"%f\"                                       ; +0x7e, 0x140149d0e\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x85, 0x140149d15\nmov     rdx, rax                                                       ; +0x8b, 0x140149d1b\nlea     r8, [rsp+68h+Block]                                            ; +0x8e, 0x140149d1e\nmov     rcx, [rbx+200h]                                                ; +0x93, 0x140149d23\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 &) ; +0x9a, 0x140149d2a\nnop                                                                    ; +0xa0, 0x140149d30\nmov     rdx, qword ptr [rsp+68h+var_28+8]                              ; +0xa1, 0x140149d31\ncmp     rdx, 0Fh                                                       ; +0xa6, 0x140149d36\njbe     short loc_140149D71                                            ; +0xaa, 0x140149d3a\ninc     rdx                                                            ; +0xac, 0x140149d3c\nmov     rcx, [rsp+68h+Block]; Block                                    ; +0xaf, 0x140149d3f\nmov     rax, rcx                                                       ; +0xb4, 0x140149d44\ncmp     rdx, 1000h                                                     ; +0xb7, 0x140149d47\njb      short loc_140149D6C                                            ; +0xbe, 0x140149d4e\nadd     rdx, 27h ; '''                                                 ; +0xc0, 0x140149d50\nmov     rcx, [rcx-8]                                                   ; +0xc4, 0x140149d54\nsub     rax, rcx                                                       ; +0xc8, 0x140149d58\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0xcb, 0x140149d5b\ncmp     rax, 1Fh                                                       ; +0xcf, 0x140149d5f\njbe     short loc_140149D6C                                            ; +0xd3, 0x140149d63\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0xd5, 0x140149d65\nalign 4                                                                ; +0xdb, 0x140149d6b\ncall    j_j_free                                                       ; +0xdc, 0x140149d6c\nmov     rcx, [rsp+68h+var_18]                                          ; +0xe1, 0x140149d71\nxor     rcx, rsp; StackCookie                                          ; +0xe6, 0x140149d76\ncall    __security_check_cookie                                        ; +0xe9, 0x140149d79\nadd     rsp, 60h                                                       ; +0xee, 0x140149d7e\npop     rbx                                                            ; +0xf2, 0x140149d82\nretn                                                                   ; +0xf3, 0x140149d83", "xrefs": ["FRequestProfilePage::onUpdate @ 0x14013e6f6", "FriendsProfilePage::onUpdate @ 0x140140b1a", "GameLevelManager::storeSearchResult @ 0x1401496a7", "GameLevelManager::processOnDownloadLevelCompleted @ 0x1401533bc", "GameLevelManager::processOnDownloadLevelCompleted @ 0x1401534c0", "GameLevelManager::uploadUserMessage @ 0x14015afab", "GameLevelManager::storeCommentsResult @ 0x14015d7de", "GameLevelManager::uploadComment @ 0x14015dca5", "GameLevelManager::uploadFriendRequest @ 0x1401607b6", "GJAccountManager::onBackupAccountCompleted @ 0x140202210", "GJAccountManager::onSyncAccountCompleted @ 0x140202eae", "InfoLayer::onRefreshComments @ 0x1402bcd9a", "LevelLeaderboard::loadScores @ 0x1403024d8", "LevelLeaderboard::onUpdate @ 0x1403028d3", "MessagesProfilePage::onUpdate @ 0x1403372b6", "ProfilePage::onUpdate @ 0x1403bf8c1", "TopArtistsLayer::init @ 0x1404cb2ef", "TopArtistsLayer::loadPage @ 0x1404cba7b", "<???> @ 0x1406ca6ec"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}