{"type": "func", "start": 4300440528, "end": 4300440797, "name": "GameLevelManager::makeTimeStamp", "pseudocode": "// \n// GameLevelManager::makeTimeStamp from 0x1005383d0 to 0x1005384dd (269 bytes)\n// \n// 18 xrefs:\n// > GJAccountManager::onBackupAccountCompleted @ 0x1000d0689\n// > GJAccountManager::onSyncAccountCompleted @ 0x1000d09a4\n// > MessagesProfilePage::onUpdate @ 0x10022e8c2\n// > TopArtistsLayer::init @ 0x100310e12\n// > TopArtistsLayer::loadPage @ 0x100311b1c\n// > LevelLeaderboard::onUpdate @ 0x1003db485\n// > LevelLeaderboard::loadScores @ 0x1003db6be\n// > GameLevelManager::storeSearchResult @ 0x100538159\n// > GameLevelManager::processOnDownloadLevelCompleted @ 0x100545598\n// > GameLevelManager::processOnDownloadLevelCompleted @ 0x100545637\n// > GameLevelManager::storeCommentsResult @ 0x10054e2b0\n// > GameLevelManager::uploadUserMessage @ 0x10054ea6f\n// > GameLevelManager::uploadComment @ 0x100551adf\n// > GameLevelManager::uploadFriendRequest @ 0x100554199\n// > FriendsProfilePage::onUpdate @ 0x100658462\n// > FRequestProfilePage::onUpdate @ 0x100790d72\n// > InfoLayer::onRefreshComments @ 0x1007b1e12\n// > ProfilePage::onUpdate @ 0x1007b9798\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\nvoid __fastcall GameLevelManager::makeTimeStamp(GameLevelManager *a1, const char *a2)\n{\n  cocos2d::CCDictionary *m_timerDict; // rbx\n  double v3; // xmm0_8\n  cocos2d::CCObject *v4; // r15\n  size_t v5; // rax\n  size_t v6; // r12\n  char *v7; // r13\n  cocos2d::CCDictionary *v8; // r15\n  size_t v9; // rbx\n  char v10; // [rsp+0h] [rbp-50h]\n  cocos2d::CCObject *v11; // [rsp+8h] [rbp-48h]\n  timeb __dst; // [rsp+10h] [rbp-40h] BYREF\n  void *__p; // [rsp+20h] [rbp-30h]\n\n  m_timerDict = a1->m_timerDict;\n  ftime(&__dst);\n  v3 = (double)(__dst.millitm + 1000 * (__dst.time & 0xFFFFF)) / 1000.0;\n  v4 = (cocos2d::CCObject *)sub_1007AB580(\"%f\", v10);\n  v5 = strlen(a2);\n  if ( v5 >= 0xFFFFFFFFFFFFFFF8LL )\n    sub_100006BF0(v3);\n  v6 = v5;\n  if ( v5 >= 0x17 )\n  {\n    v11 = v4;\n    v8 = m_timerDict;\n    v9 = 26;\n    if ( (v5 | 7) != 0x17 )\n      v9 = (v5 | 7) + 1;\n    v7 = (char *)operator new(v9);\n    __p = v7;\n    __dst.time = v9 + 1;\n    m_timerDict = v8;\n    v4 = v11;\n    *(_QWORD *)&__dst.millitm = v6;\n    goto LABEL_8;\n  }\n  LOBYTE(__dst.time) = 2 * v5;\n  v7 = (char *)&__dst.time + 1;\n  if ( v5 )\nLABEL_8:\n    memcpy(v7, a2, v6);\n  v7[v6] = 0;\n  cocos2d::CCDictionary::setObject_1((__int64)m_timerDict, v4, (char *)&__dst);\n  if ( (__dst.time & 1) != 0 )\n    operator delete(__p);\n}", "assembly": "; \n; GameLevelManager::makeTimeStamp from 0x1005383d0 to 0x1005384dd (269 bytes)\n; \n; 18 xrefs:\n; > GJAccountManager::onBackupAccountCompleted @ 0x1000d0689\n; > GJAccountManager::onSyncAccountCompleted @ 0x1000d09a4\n; > MessagesProfilePage::onUpdate @ 0x10022e8c2\n; > TopArtistsLayer::init @ 0x100310e12\n; > TopArtistsLayer::loadPage @ 0x100311b1c\n; > LevelLeaderboard::onUpdate @ 0x1003db485\n; > LevelLeaderboard::loadScores @ 0x1003db6be\n; > GameLevelManager::storeSearchResult @ 0x100538159\n; > GameLevelManager::processOnDownloadLevelCompleted @ 0x100545598\n; > GameLevelManager::processOnDownloadLevelCompleted @ 0x100545637\n; > GameLevelManager::storeCommentsResult @ 0x10054e2b0\n; > GameLevelManager::uploadUserMessage @ 0x10054ea6f\n; > GameLevelManager::uploadComment @ 0x100551adf\n; > GameLevelManager::uploadFriendRequest @ 0x100554199\n; > FriendsProfilePage::onUpdate @ 0x100658462\n; > FRequestProfilePage::onUpdate @ 0x100790d72\n; > InfoLayer::onRefreshComments @ 0x1007b1e12\n; > ProfilePage::onUpdate @ 0x1007b9798\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    rbp                                                            ; +0x0, 0x1005383d0\nmov     rbp, rsp                                                       ; +0x1, 0x1005383d1\npush    r15                                                            ; +0x4, 0x1005383d4\npush    r14                                                            ; +0x6, 0x1005383d6\npush    r13                                                            ; +0x8, 0x1005383d8\npush    r12                                                            ; +0xa, 0x1005383da\npush    rbx                                                            ; +0xc, 0x1005383dc\nsub     rsp, 28h                                                       ; +0xd, 0x1005383dd\nmov     r14, rsi                                                       ; +0x11, 0x1005383e1\nmov     rbx, [rdi+210h]                                                ; +0x14, 0x1005383e4\nlea     rdi, [rbp+__dst]; timeb *                                      ; +0x1b, 0x1005383eb\ncall    _ftime                                                         ; +0x1f, 0x1005383ef\nmovzx   eax, [rbp+__dst.millitm]                                       ; +0x24, 0x1005383f4\nmov     rcx, [rbp+__dst.time]                                          ; +0x28, 0x1005383f8\nand     ecx, 0FFFFFh                                                   ; +0x2c, 0x1005383fc\nimul    rcx, 3E8h                                                      ; +0x32, 0x100538402\nadd     rcx, rax                                                       ; +0x39, 0x100538409\ncvtsi2sd xmm0, rcx                                                     ; +0x3c, 0x10053840c\ndivsd   xmm0, cs:qword_100815208                                       ; +0x41, 0x100538411\nlea     rdi, asc_100827744; \"%f\"                                       ; +0x49, 0x100538419\nmov     al, 1                                                          ; +0x50, 0x100538420\ncall    sub_1007AB580                                                  ; +0x52, 0x100538422\nmov     r15, rax                                                       ; +0x57, 0x100538427\nmov     rdi, r14; __s                                                  ; +0x5a, 0x10053842a\ncall    _strlen                                                        ; +0x5d, 0x10053842d\ncmp     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x62, 0x100538432\njnb     loc_1005384D8                                                  ; +0x66, 0x100538436\nmov     r12, rax                                                       ; +0x6c, 0x10053843c\ncmp     rax, 17h                                                       ; +0x6f, 0x10053843f\njnb     short loc_100538457                                            ; +0x73, 0x100538443\nlea     eax, [r12+r12]                                                 ; +0x75, 0x100538445\nmov     byte ptr [rbp+__dst.time], al                                  ; +0x79, 0x100538449\nlea     r13, [rbp+__dst.time+1]                                        ; +0x7c, 0x10053844c\ntest    r12, r12                                                       ; +0x80, 0x100538450\njnz     short loc_100538497                                            ; +0x83, 0x100538453\njmp     short loc_1005384A5                                            ; +0x85, 0x100538455\nmov     rax, r12                                                       ; +0x87, 0x100538457\nor      rax, 7                                                         ; +0x8a, 0x10053845a\nlea     rcx, [rax+1]                                                   ; +0x8e, 0x10053845e\ncmp     rax, 17h                                                       ; +0x92, 0x100538462\nmov     [rbp+var_48], r15                                              ; +0x96, 0x100538466\nmov     r15, rbx                                                       ; +0x9a, 0x10053846a\nmov     ebx, 1Ah                                                       ; +0x9d, 0x10053846d\ncmovnz  rbx, rcx                                                       ; +0xa2, 0x100538472\nmov     rdi, rbx; __sz                                                 ; +0xa6, 0x100538476\ncall    __Znwm; operator new(ulong)                                    ; +0xa9, 0x100538479\nmov     r13, rax                                                       ; +0xae, 0x10053847e\nmov     [rbp+__p], rax                                                 ; +0xb1, 0x100538481\ninc     rbx                                                            ; +0xb5, 0x100538485\nmov     [rbp+__dst.time], rbx                                          ; +0xb8, 0x100538488\nmov     rbx, r15                                                       ; +0xbc, 0x10053848c\nmov     r15, [rbp+var_48]                                              ; +0xbf, 0x10053848f\nmov     qword ptr [rbp+__dst.millitm], r12                             ; +0xc3, 0x100538493\nmov     rdi, r13; __dst                                                ; +0xc7, 0x100538497\nmov     rsi, r14; __src                                                ; +0xca, 0x10053849a\nmov     rdx, r12; __n                                                  ; +0xcd, 0x10053849d\ncall    _memcpy                                                        ; +0xd0, 0x1005384a0\nmov     byte ptr [r13+r12+0], 0                                        ; +0xd5, 0x1005384a5\nlea     rdx, [rbp+__dst]                                               ; +0xdb, 0x1005384ab\nmov     rdi, rbx                                                       ; +0xdf, 0x1005384af\nmov     rsi, r15                                                       ; +0xe2, 0x1005384b2\ncall    cocos2d__CCDictionary__setObject_1                             ; +0xe5, 0x1005384b5\ntest    byte ptr [rbp+__dst.time], 1                                   ; +0xea, 0x1005384ba\njz      short loc_1005384C9                                            ; +0xee, 0x1005384be\nmov     rdi, [rbp+__p]; __p                                            ; +0xf0, 0x1005384c0\ncall    __ZdlPv; operator delete(void *)                               ; +0xf4, 0x1005384c4\nadd     rsp, 28h                                                       ; +0xf9, 0x1005384c9\npop     rbx                                                            ; +0xfd, 0x1005384cd\npop     r12                                                            ; +0xfe, 0x1005384ce\npop     r13                                                            ; +0x100, 0x1005384d0\npop     r14                                                            ; +0x102, 0x1005384d2\npop     r15                                                            ; +0x104, 0x1005384d4\npop     rbp                                                            ; +0x106, 0x1005384d6\nretn                                                                   ; +0x107, 0x1005384d7\ncall    sub_100006BF0                                                  ; +0x108, 0x1005384d8", "xrefs": ["GJAccountManager::onBackupAccountCompleted @ 0x1000d0689", "GJAccountManager::onSyncAccountCompleted @ 0x1000d09a4", "MessagesProfilePage::onUpdate @ 0x10022e8c2", "TopArtistsLayer::init @ 0x100310e12", "TopArtistsLayer::loadPage @ 0x100311b1c", "LevelLeaderboard::onUpdate @ 0x1003db485", "LevelLeaderboard::loadScores @ 0x1003db6be", "GameLevelManager::storeSearchResult @ 0x100538159", "GameLevelManager::processOnDownloadLevelCompleted @ 0x100545598", "GameLevelManager::processOnDownloadLevelCompleted @ 0x100545637", "GameLevelManager::storeCommentsResult @ 0x10054e2b0", "GameLevelManager::uploadUserMessage @ 0x10054ea6f", "GameLevelManager::uploadComment @ 0x100551adf", "GameLevelManager::uploadFriendRequest @ 0x100554199", "FriendsProfilePage::onUpdate @ 0x100658462", "FRequestProfilePage::onUpdate @ 0x100790d72", "InfoLayer::onRefreshComments @ 0x1007b1e12", "ProfilePage::onUpdate @ 0x1007b9798"], "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"}