{"type": "func", "start": 4303766544, "end": 4303766645, "name": "AchievementManager::isAchievementAvailable", "pseudocode": "// \n// AchievementManager::isAchievementAvailable from 0x100864410 to 0x100864475 (101 bytes)\n// \n// 2 xrefs:\n// > GameStatsManager::getItemUnlockStateLite @ 0x10003d679\n// > GJGarageLayer::achievementForUnlock @ 0x100358de5\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:36:42 +0000\n// \n\n__int64 __fastcall AchievementManager::isAchievementAvailable(__int64 a1, __int64 a2)\n{\n  unsigned int v2; // ebx\n  __int64 AchievementsWithID; // rax\n  char v5; // [rsp+0h] [rbp-20h] BYREF\n  char v6[15]; // [rsp+1h] [rbp-1Fh] BYREF\n  void *__p; // [rsp+10h] [rbp-10h]\n\n  if ( (*(_BYTE *)a2 & 1) == 0 )\n  {\n    AchievementsWithID = AchievementManager::getAchievementsWithID(a1, (const char *)(a2 + 1));\n    if ( AchievementsWithID )\n      goto LABEL_3;\n    return 0;\n  }\n  AchievementsWithID = AchievementManager::getAchievementsWithID(a1, *(const char **)(a2 + 16));\n  if ( !AchievementsWithID )\n    return 0;\nLABEL_3:\n  v5 = 4;\n  strcpy(v6, \"un\");\n  LOBYTE(v2) = cocos2d::CCDictionary::objectForKey(AchievementsWithID, &v5) == 0;\n  if ( (v5 & 1) != 0 )\n    operator delete(__p);\n  return v2;\n}", "assembly": "; \n; AchievementManager::isAchievementAvailable from 0x100864410 to 0x100864475 (101 bytes)\n; \n; 2 xrefs:\n; > GameStatsManager::getItemUnlockStateLite @ 0x10003d679\n; > GJGarageLayer::achievementForUnlock @ 0x100358de5\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:36:42 +0000\n; \npush    rbp                                                            ; +0x0, 0x100864410\nmov     rbp, rsp                                                       ; +0x1, 0x100864411\npush    rbx                                                            ; +0x4, 0x100864414\nsub     rsp, 18h                                                       ; +0x5, 0x100864415\ntest    byte ptr [rsi], 1                                              ; +0x9, 0x100864419\njnz     short loc_10086445C                                            ; +0xc, 0x10086441c\ninc     rsi                                                            ; +0xe, 0x10086441e\ncall    AchievementManager__getAchievementsWithID                      ; +0x11, 0x100864421\ntest    rax, rax                                                       ; +0x16, 0x100864426\njz      short loc_10086446A                                            ; +0x19, 0x100864429\nmov     [rbp+var_20], 4                                                ; +0x1b, 0x10086442b\nmov     word ptr [rbp+var_1F], 6E75h                                   ; +0x1f, 0x10086442f\nmov     [rbp+var_1F+2], 0                                              ; +0x25, 0x100864435\nlea     rsi, [rbp+var_20]                                              ; +0x29, 0x100864439\nmov     rdi, rax                                                       ; +0x2d, 0x10086443d\ncall    cocos2d__CCDictionary__objectForKey                            ; +0x30, 0x100864440\ntest    rax, rax                                                       ; +0x35, 0x100864445\nsetz    bl                                                             ; +0x38, 0x100864448\ntest    [rbp+var_20], 1                                                ; +0x3b, 0x10086444b\njz      short loc_10086446C                                            ; +0x3f, 0x10086444f\nmov     rdi, [rbp+__p]; __p                                            ; +0x41, 0x100864451\ncall    __ZdlPv; operator delete(void *)                               ; +0x45, 0x100864455\njmp     short loc_10086446C                                            ; +0x4a, 0x10086445a\nmov     rsi, [rsi+10h]                                                 ; +0x4c, 0x10086445c\ncall    AchievementManager__getAchievementsWithID                      ; +0x50, 0x100864460\ntest    rax, rax                                                       ; +0x55, 0x100864465\njnz     short loc_10086442B                                            ; +0x58, 0x100864468\nxor     ebx, ebx                                                       ; +0x5a, 0x10086446a\nmov     eax, ebx                                                       ; +0x5c, 0x10086446c\nadd     rsp, 18h                                                       ; +0x5e, 0x10086446e\npop     rbx                                                            ; +0x62, 0x100864472\npop     rbp                                                            ; +0x63, 0x100864473\nretn                                                                   ; +0x64, 0x100864474", "xrefs": ["GameStatsManager::getItemUnlockStateLite @ 0x10003d679", "GJGarageLayer::achievementForUnlock @ 0x100358de5"], "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"}