{"type": "func", "start": 5368956256, "end": 5368956454, "name": "AchievementManager::getAchievementsWithID", "pseudocode": "// \n// AchievementManager::getAchievementsWithID from 0x14003c560 to 0x14003c626 (198 bytes)\n// \n// 16 xrefs:\n// > CustomSFXWidget::onCancelDownload @ 0x140161e05\n// > CustomSFXWidget::updateDownloadProgress @ 0x1401624f1\n// > CustomSongWidget::onCancelDownload @ 0x14016b6c5\n// > CustomSongWidget::updateDownloadProgress @ 0x14016c2f4\n// > GameManager::getUnlockForAchievement @ 0x1402778da\n// > GJGarageLayer::descriptionForUnlock @ 0x140380c85\n// > ItemInfoPopup::init @ 0x140384709\n// > ItemInfoPopup::init @ 0x1403854b5\n// > MusicDownloadManager::isRunningActionForSongID @ 0x14048289b\n// > MusicDownloadManager::isRunningActionForSongID @ 0x1404828c3\n// > MusicDownloadManager::getSongInfo @ 0x140482a14\n// > MusicDownloadManager::downloadSong @ 0x140483d3d\n// > MusicDownloadManager::downloadCustomSong @ 0x14048c48c\n// > MusicDownloadManager::downloadSFX @ 0x14048f08c\n// > MusicDownloadManager::downloadNewsImage @ 0x1404936e8\n// > <???> @ 0x14090f008\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:25:27 +0000\n// \n\n// Merged with: AchievementManager::getAchievementsWithID, MusicDownloadManager::getDLObject\n// Hidden C++ exception states: #wind=1\n__int64 __fastcall AchievementManager::getAchievementsWithID(__int64 a1, __int64 a2)\n{\n  __int64 v3; // r8\n  __int64 v4; // rbx\n  void *v5; // r8\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 ( *(_BYTE *)(a2 + v3) );\n  sub_14003D230(Block);\n  v4 = cocos2d::CCDictionary::objectForKey(*(_QWORD *)(a1 + 328), 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        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free(v5);\n  }\n  return v4;\n}", "assembly": "; \n; AchievementManager::getAchievementsWithID from 0x14003c560 to 0x14003c626 (198 bytes)\n; \n; 16 xrefs:\n; > CustomSFXWidget::onCancelDownload @ 0x140161e05\n; > CustomSFXWidget::updateDownloadProgress @ 0x1401624f1\n; > CustomSongWidget::onCancelDownload @ 0x14016b6c5\n; > CustomSongWidget::updateDownloadProgress @ 0x14016c2f4\n; > GameManager::getUnlockForAchievement @ 0x1402778da\n; > GJGarageLayer::descriptionForUnlock @ 0x140380c85\n; > ItemInfoPopup::init @ 0x140384709\n; > ItemInfoPopup::init @ 0x1403854b5\n; > MusicDownloadManager::isRunningActionForSongID @ 0x14048289b\n; > MusicDownloadManager::isRunningActionForSongID @ 0x1404828c3\n; > MusicDownloadManager::getSongInfo @ 0x140482a14\n; > MusicDownloadManager::downloadSong @ 0x140483d3d\n; > MusicDownloadManager::downloadCustomSong @ 0x14048c48c\n; > MusicDownloadManager::downloadSFX @ 0x14048f08c\n; > MusicDownloadManager::downloadNewsImage @ 0x1404936e8\n; > <???> @ 0x14090f008\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:25:27 +0000\n; \npush    rbx                                                            ; +0x0, 0x14003c560\nsub     rsp, 60h                                                       ; +0x2, 0x14003c562\nmov     rax, cs:__security_cookie                                      ; +0x6, 0x14003c566\nxor     rax, rsp                                                       ; +0xd, 0x14003c56d\nmov     [rsp+68h+var_18], rax                                          ; +0x10, 0x14003c570\nmov     rbx, rcx                                                       ; +0x15, 0x14003c575\nxorps   xmm0, xmm0                                                     ; +0x18, 0x14003c578\nmovups  xmmword ptr [rsp+68h+Block], xmm0                              ; +0x1b, 0x14003c57b\nxorps   xmm1, xmm1                                                     ; +0x20, 0x14003c580\nmovdqu  [rsp+68h+var_28], xmm1                                         ; +0x23, 0x14003c583\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x29, 0x14003c589\ninc     r8                                                             ; +0x30, 0x14003c590\ncmp     byte ptr [rdx+r8], 0                                           ; +0x33, 0x14003c593\njnz     short loc_14003C590                                            ; +0x38, 0x14003c598\nlea     rcx, [rsp+68h+Block]                                           ; +0x3a, 0x14003c59a\ncall    sub_14003D230                                                  ; +0x3f, 0x14003c59f\nnop                                                                    ; +0x44, 0x14003c5a4\nlea     rdx, [rsp+68h+Block]                                           ; +0x45, 0x14003c5a5\nmov     rcx, [rbx+148h]                                                ; +0x4a, 0x14003c5aa\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::objectForKey(std::string const &) ; +0x51, 0x14003c5b1\nmov     rbx, rax                                                       ; +0x57, 0x14003c5b7\nmov     rdx, qword ptr [rsp+68h+var_28+8]                              ; +0x5a, 0x14003c5ba\ncmp     rdx, 0Fh                                                       ; +0x5f, 0x14003c5bf\njbe     short loc_14003C610                                            ; +0x63, 0x14003c5c3\ninc     rdx                                                            ; +0x65, 0x14003c5c5\nmov     r8, [rsp+68h+Block]                                            ; +0x68, 0x14003c5c8\nmov     rcx, r8                                                        ; +0x6d, 0x14003c5cd\ncmp     rdx, 1000h                                                     ; +0x70, 0x14003c5d0\njb      short loc_14003C608                                            ; +0x77, 0x14003c5d7\nadd     rdx, 27h ; '''                                                 ; +0x79, 0x14003c5d9\nmov     r8, [r8-8]                                                     ; +0x7d, 0x14003c5dd\nsub     rcx, r8                                                        ; +0x81, 0x14003c5e1\nsub     rcx, 8                                                         ; +0x84, 0x14003c5e4\ncmp     rcx, 1Fh                                                       ; +0x88, 0x14003c5e8\njbe     short loc_14003C608                                            ; +0x8c, 0x14003c5ec\nmov     [rsp+68h+Reserved], 0; Reserved                                ; +0x8e, 0x14003c5ee\nxor     r9d, r9d; LineNo                                               ; +0x97, 0x14003c5f7\nxor     r8d, r8d; FileName                                             ; +0x9a, 0x14003c5fa\nxor     edx, edx; FunctionName                                         ; +0x9d, 0x14003c5fd\nxor     ecx, ecx; Expression                                           ; +0x9f, 0x14003c5ff\ncall    cs:_invoke_watson                                              ; +0xa1, 0x14003c601\nalign 8                                                                ; +0xa7, 0x14003c607\nmov     rcx, r8; Block                                                 ; +0xa8, 0x14003c608\ncall    j_j_free                                                       ; +0xab, 0x14003c60b\nmov     rax, rbx                                                       ; +0xb0, 0x14003c610\nmov     rcx, [rsp+68h+var_18]                                          ; +0xb3, 0x14003c613\nxor     rcx, rsp; StackCookie                                          ; +0xb8, 0x14003c618\ncall    __security_check_cookie                                        ; +0xbb, 0x14003c61b\nadd     rsp, 60h                                                       ; +0xc0, 0x14003c620\npop     rbx                                                            ; +0xc4, 0x14003c624\nretn                                                                   ; +0xc5, 0x14003c625", "xrefs": ["CustomSFXWidget::onCancelDownload @ 0x140161e05", "CustomSFXWidget::updateDownloadProgress @ 0x1401624f1", "CustomSongWidget::onCancelDownload @ 0x14016b6c5", "CustomSongWidget::updateDownloadProgress @ 0x14016c2f4", "GameManager::getUnlockForAchievement @ 0x1402778da", "GJGarageLayer::descriptionForUnlock @ 0x140380c85", "ItemInfoPopup::init @ 0x140384709", "ItemInfoPopup::init @ 0x1403854b5", "MusicDownloadManager::isRunningActionForSongID @ 0x14048289b", "MusicDownloadManager::isRunningActionForSongID @ 0x1404828c3", "MusicDownloadManager::getSongInfo @ 0x140482a14", "MusicDownloadManager::downloadSong @ 0x140483d3d", "MusicDownloadManager::downloadCustomSong @ 0x14048c48c", "MusicDownloadManager::downloadSFX @ 0x14048f08c", "MusicDownloadManager::downloadNewsImage @ 0x1404936e8", "<???> @ 0x14090f008"], "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"}