{"type": "func", "start": 4300513696, "end": 4300513954, "name": "GameLevelManager::makeTimeStamp", "pseudocode": "// \n// GameLevelManager::makeTimeStamp from 0x10054a1a0 to 0x10054a2a2 (258 bytes)\n// \n// 23 xrefs:\n// > GJAccountManager::onBackupAccountCompleted @ 0x10009ec59\n// > GJAccountManager::onSyncAccountCompleted @ 0x10009ef74\n// > sub_100212D50 @ 0x100212d92\n// > TopArtistsLayer::init @ 0x1002fb932\n// > TopArtistsLayer::loadPage @ 0x1002fc63c\n// > LevelLeaderboard::onUpdate @ 0x1003c8465\n// > LevelLeaderboard::loadScores @ 0x1003c869e\n// > GameLevelManager::storeSearchResult @ 0x100549f29\n// > sub_10055F180 @ 0x10056028a\n// > sub_10055F180 @ 0x100560438\n// > GameLevelManager::storeCommentsResult @ 0x100568ac0\n// > GameLevelManager::uploadUserMessage @ 0x10056927f\n// > GameLevelManager::uploadComment @ 0x10056c534\n// > GameLevelManager::uploadFriendRequest @ 0x10057a299\n// > FriendsProfilePage::onUpdate @ 0x100735ff2\n// > sub_100870B70 @ 0x100870bf0\n// > InfoLayer::onRefreshComments @ 0x1008954c2\n// > ProfilePage::onUpdate @ 0x10089ee18\n// > MessageThreadsPage::onRefresh @ 0x100929cd2\n// > sub_10092F070 @ 0x10092f14c\n// > sub_100930DF0 @ 0x100930e99\n// > sub_1009314B0 @ 0x10093153e\n// > NotificationsPage::onUpdate @ 0x10098bcca\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 12:32:00 +0000\n// \n\nvoid __fastcall GameLevelManager::makeTimeStamp(__int64 a1, const char *a2)\n{\n  __int64 v2; // rbx\n  __int64 v3; // r15\n  size_t v4; // rax\n  size_t v5; // r12\n  char *v6; // r13\n  __int64 v7; // r15\n  size_t v8; // rbx\n  char v9; // [rsp+0h] [rbp-50h]\n  __int64 v10; // [rsp+8h] [rbp-48h]\n  timeb __dst; // [rsp+10h] [rbp-40h] BYREF\n  void *__p; // [rsp+20h] [rbp-30h]\n\n  v2 = *(_QWORD *)(a1 + 968);\n  ftime(&__dst);\n  v3 = sub_10088E820(\"%f\", v9);\n  v4 = strlen(a2);\n  if ( v4 >= 0xFFFFFFFFFFFFFFF8LL )\n    sub_100003630();\n  v5 = v4;\n  if ( v4 >= 0x17 )\n  {\n    v10 = v3;\n    v7 = v2;\n    v8 = 26;\n    if ( (v4 | 7) != 0x17 )\n      v8 = (v4 | 7) + 1;\n    v6 = (char *)operator new(v8);\n    __p = v6;\n    __dst.time = v8 + 1;\n    v2 = v7;\n    v3 = v10;\n    *(_QWORD *)&__dst.millitm = v5;\n    goto LABEL_8;\n  }\n  LOBYTE(__dst.time) = 2 * v4;\n  v6 = (char *)&__dst.time + 1;\n  if ( v4 )\nLABEL_8:\n    memcpy(v6, a2, v5);\n  v6[v5] = 0;\n  cocos2d::CCDictionary::setObject(v2, v3, (char *)&__dst);\n  if ( (__dst.time & 1) != 0 )\n    operator delete(__p);\n}", "assembly": "; \n; GameLevelManager::makeTimeStamp from 0x10054a1a0 to 0x10054a2a2 (258 bytes)\n; \n; 23 xrefs:\n; > GJAccountManager::onBackupAccountCompleted @ 0x10009ec59\n; > GJAccountManager::onSyncAccountCompleted @ 0x10009ef74\n; > sub_100212D50 @ 0x100212d92\n; > TopArtistsLayer::init @ 0x1002fb932\n; > TopArtistsLayer::loadPage @ 0x1002fc63c\n; > LevelLeaderboard::onUpdate @ 0x1003c8465\n; > LevelLeaderboard::loadScores @ 0x1003c869e\n; > GameLevelManager::storeSearchResult @ 0x100549f29\n; > sub_10055F180 @ 0x10056028a\n; > sub_10055F180 @ 0x100560438\n; > GameLevelManager::storeCommentsResult @ 0x100568ac0\n; > GameLevelManager::uploadUserMessage @ 0x10056927f\n; > GameLevelManager::uploadComment @ 0x10056c534\n; > GameLevelManager::uploadFriendRequest @ 0x10057a299\n; > FriendsProfilePage::onUpdate @ 0x100735ff2\n; > sub_100870B70 @ 0x100870bf0\n; > InfoLayer::onRefreshComments @ 0x1008954c2\n; > ProfilePage::onUpdate @ 0x10089ee18\n; > MessageThreadsPage::onRefresh @ 0x100929cd2\n; > sub_10092F070 @ 0x10092f14c\n; > sub_100930DF0 @ 0x100930e99\n; > sub_1009314B0 @ 0x10093153e\n; > NotificationsPage::onUpdate @ 0x10098bcca\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 12:32:00 +0000\n; \npush    rbp                                                            ; +0x0, 0x10054a1a0\nmov     rbp, rsp                                                       ; +0x1, 0x10054a1a1\npush    r15                                                            ; +0x4, 0x10054a1a4\npush    r14                                                            ; +0x6, 0x10054a1a6\npush    r13                                                            ; +0x8, 0x10054a1a8\npush    r12                                                            ; +0xa, 0x10054a1aa\npush    rbx                                                            ; +0xc, 0x10054a1ac\nsub     rsp, 28h                                                       ; +0xd, 0x10054a1ad\nmov     r14, rsi                                                       ; +0x11, 0x10054a1b1\nmov     rbx, [rdi+3C8h]                                                ; +0x14, 0x10054a1b4\nlea     rdi, [rbp+__dst]; timeb *                                      ; +0x1b, 0x10054a1bb\ncall    _ftime                                                         ; +0x1f, 0x10054a1bf\ncvtsi2sd xmm1, [rbp+__dst.time]                                        ; +0x24, 0x10054a1c4\nmovzx   eax, [rbp+__dst.millitm]                                       ; +0x2a, 0x10054a1ca\ncvtsi2sd xmm0, eax                                                     ; +0x2e, 0x10054a1ce\ndivsd   xmm0, cs:qword_100A03B70                                       ; +0x32, 0x10054a1d2\naddsd   xmm0, xmm1                                                     ; +0x3a, 0x10054a1da\nlea     rdi, asc_100A17D8A; \"%f\"                                       ; +0x3e, 0x10054a1de\nmov     al, 1                                                          ; +0x45, 0x10054a1e5\ncall    sub_10088E820                                                  ; +0x47, 0x10054a1e7\nmov     r15, rax                                                       ; +0x4c, 0x10054a1ec\nmov     rdi, r14; __s                                                  ; +0x4f, 0x10054a1ef\ncall    _strlen                                                        ; +0x52, 0x10054a1f2\ncmp     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x57, 0x10054a1f7\njnb     loc_10054A29D                                                  ; +0x5b, 0x10054a1fb\nmov     r12, rax                                                       ; +0x61, 0x10054a201\ncmp     rax, 17h                                                       ; +0x64, 0x10054a204\njnb     short loc_10054A21C                                            ; +0x68, 0x10054a208\nlea     eax, [r12+r12]                                                 ; +0x6a, 0x10054a20a\nmov     byte ptr [rbp+__dst.time], al                                  ; +0x6e, 0x10054a20e\nlea     r13, [rbp+__dst.time+1]                                        ; +0x71, 0x10054a211\ntest    r12, r12                                                       ; +0x75, 0x10054a215\njnz     short loc_10054A25C                                            ; +0x78, 0x10054a218\njmp     short loc_10054A26A                                            ; +0x7a, 0x10054a21a\nmov     rax, r12                                                       ; +0x7c, 0x10054a21c\nor      rax, 7                                                         ; +0x7f, 0x10054a21f\nlea     rcx, [rax+1]                                                   ; +0x83, 0x10054a223\ncmp     rax, 17h                                                       ; +0x87, 0x10054a227\nmov     [rbp+var_48], r15                                              ; +0x8b, 0x10054a22b\nmov     r15, rbx                                                       ; +0x8f, 0x10054a22f\nmov     ebx, 1Ah                                                       ; +0x92, 0x10054a232\ncmovnz  rbx, rcx                                                       ; +0x97, 0x10054a237\nmov     rdi, rbx; __sz                                                 ; +0x9b, 0x10054a23b\ncall    __Znwm; operator new(ulong)                                    ; +0x9e, 0x10054a23e\nmov     r13, rax                                                       ; +0xa3, 0x10054a243\nmov     [rbp+__p], rax                                                 ; +0xa6, 0x10054a246\ninc     rbx                                                            ; +0xaa, 0x10054a24a\nmov     [rbp+__dst.time], rbx                                          ; +0xad, 0x10054a24d\nmov     rbx, r15                                                       ; +0xb1, 0x10054a251\nmov     r15, [rbp+var_48]                                              ; +0xb4, 0x10054a254\nmov     qword ptr [rbp+__dst.millitm], r12                             ; +0xb8, 0x10054a258\nmov     rdi, r13; __dst                                                ; +0xbc, 0x10054a25c\nmov     rsi, r14; __src                                                ; +0xbf, 0x10054a25f\nmov     rdx, r12; __n                                                  ; +0xc2, 0x10054a262\ncall    _memcpy                                                        ; +0xc5, 0x10054a265\nmov     byte ptr [r13+r12+0], 0                                        ; +0xca, 0x10054a26a\nlea     rdx, [rbp+__dst]                                               ; +0xd0, 0x10054a270\nmov     rdi, rbx                                                       ; +0xd4, 0x10054a274\nmov     rsi, r15                                                       ; +0xd7, 0x10054a277\ncall    cocos2d__CCDictionary__setObject                               ; +0xda, 0x10054a27a\ntest    byte ptr [rbp+__dst.time], 1                                   ; +0xdf, 0x10054a27f\njz      short loc_10054A28E                                            ; +0xe3, 0x10054a283\nmov     rdi, [rbp+__p]; __p                                            ; +0xe5, 0x10054a285\ncall    __ZdlPv; operator delete(void *)                               ; +0xe9, 0x10054a289\nadd     rsp, 28h                                                       ; +0xee, 0x10054a28e\npop     rbx                                                            ; +0xf2, 0x10054a292\npop     r12                                                            ; +0xf3, 0x10054a293\npop     r13                                                            ; +0xf5, 0x10054a295\npop     r14                                                            ; +0xf7, 0x10054a297\npop     r15                                                            ; +0xf9, 0x10054a299\npop     rbp                                                            ; +0xfb, 0x10054a29b\nretn                                                                   ; +0xfc, 0x10054a29c\ncall    sub_100003630                                                  ; +0xfd, 0x10054a29d", "xrefs": ["GJAccountManager::onBackupAccountCompleted @ 0x10009ec59", "GJAccountManager::onSyncAccountCompleted @ 0x10009ef74", "sub_100212D50 @ 0x100212d92", "TopArtistsLayer::init @ 0x1002fb932", "TopArtistsLayer::loadPage @ 0x1002fc63c", "LevelLeaderboard::onUpdate @ 0x1003c8465", "LevelLeaderboard::loadScores @ 0x1003c869e", "GameLevelManager::storeSearchResult @ 0x100549f29", "sub_10055F180 @ 0x10056028a", "sub_10055F180 @ 0x100560438", "GameLevelManager::storeCommentsResult @ 0x100568ac0", "GameLevelManager::uploadUserMessage @ 0x10056927f", "GameLevelManager::uploadComment @ 0x10056c534", "GameLevelManager::uploadFriendRequest @ 0x10057a299", "FriendsProfilePage::onUpdate @ 0x100735ff2", "sub_100870B70 @ 0x100870bf0", "InfoLayer::onRefreshComments @ 0x1008954c2", "ProfilePage::onUpdate @ 0x10089ee18", "MessageThreadsPage::onRefresh @ 0x100929cd2", "sub_10092F070 @ 0x10092f14c", "sub_100930DF0 @ 0x100930e99", "sub_1009314B0 @ 0x10093153e", "NotificationsPage::onUpdate @ 0x10098bcca"], "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"}