{"type": "func", "start": 6443017904, "end": 6443018087, "name": "cocos2d::CCAnimationCache::addAnimationsWithFile", "pseudocode": "// \n// cocos2d::CCAnimationCache::addAnimationsWithFile from 0x18008a6b0 to 0x18008a767 (183 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b5a78\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 __fastcall cocos2d::CCAnimationCache::addAnimationsWithFile(cocos2d::CCAnimationCache *this, const char *a2)\n{\n  struct cocos2d::CCFileUtils *v4; // rax\n  void **v5; // rcx\n  struct cocos2d::CCDictionary *v6; // rax\n  void *v7; // rcx\n  void *Block[3]; // [rsp+20h] [rbp-38h] BYREF\n  unsigned __int64 v9; // [rsp+38h] [rbp-20h]\n\n  v4 = cocos2d::CCFileUtils::sharedFileUtils();\n  ((void (__fastcall *)(struct cocos2d::CCFileUtils *, void **, const char *, _QWORD))v4->createCCArrayWithContentsOfFile)(\n    v4,\n    Block,\n    a2,\n    0);\n  v5 = Block;\n  if ( v9 > 0xF )\n    v5 = (void **)Block[0];\n  v6 = cocos2d::CCDictionary::createWithContentsOfFile((const char *)v5);\n  cocos2d::CCAnimationCache::addAnimationsWithDictionary(this, v6, a2);\n  if ( v9 > 0xF )\n  {\n    v7 = Block[0];\n    if ( v9 + 1 >= 0x1000 )\n    {\n      v7 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v7 - 8) > 0x1F )\n        invalid_parameter_noinfo_noreturn();\n    }\n    j_j_free_0(v7);\n  }\n}", "assembly": "; \n; cocos2d::CCAnimationCache::addAnimationsWithFile from 0x18008a6b0 to 0x18008a767 (183 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b5a78\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x18008a6b0\npush    rdi                                                            ; +0x5, 0x18008a6b5\nsub     rsp, 50h                                                       ; +0x6, 0x18008a6b6\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x18008a6ba\nxor     rax, rsp                                                       ; +0x11, 0x18008a6c1\nmov     [rsp+58h+var_18], rax                                          ; +0x14, 0x18008a6c4\nmov     rbx, rdx                                                       ; +0x19, 0x18008a6c9\nmov     rdi, rcx                                                       ; +0x1c, 0x18008a6cc\ncall    ?sharedFileUtils@CCFileUtils@cocos2d@@SAPEAV12@XZ; cocos2d::CCFileUtils::sharedFileUtils(void) ; +0x1f, 0x18008a6cf\nmov     r10, [rax]                                                     ; +0x24, 0x18008a6d4\nxor     r9d, r9d                                                       ; +0x27, 0x18008a6d7\nmov     r8, rbx                                                        ; +0x2a, 0x18008a6da\nlea     rdx, [rsp+58h+Block]                                           ; +0x2d, 0x18008a6dd\nmov     rcx, rax                                                       ; +0x32, 0x18008a6e2\ncall    qword ptr [r10+28h]                                            ; +0x35, 0x18008a6e5\nnop                                                                    ; +0x39, 0x18008a6e9\nlea     rcx, [rsp+58h+Block]                                           ; +0x3a, 0x18008a6ea\ncmp     [rsp+58h+var_20], 0Fh                                          ; +0x3f, 0x18008a6ef\ncmova   rcx, [rsp+58h+Block]; char *                                   ; +0x45, 0x18008a6f5\ncall    ?createWithContentsOfFile@CCDictionary@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCDictionary::createWithContentsOfFile(char const *) ; +0x4b, 0x18008a6fb\nmov     r8, rbx; char *                                                ; +0x50, 0x18008a700\nmov     rdx, rax; struct cocos2d::CCDictionary *                       ; +0x53, 0x18008a703\nmov     rcx, rdi; this                                                 ; +0x56, 0x18008a706\ncall    ?addAnimationsWithDictionary@CCAnimationCache@cocos2d@@QEAAXPEAVCCDictionary@2@PEBD@Z; cocos2d::CCAnimationCache::addAnimationsWithDictionary(cocos2d::CCDictionary *,char const *) ; +0x59, 0x18008a709\nnop                                                                    ; +0x5e, 0x18008a70e\nmov     rdx, [rsp+58h+var_20]                                          ; +0x5f, 0x18008a70f\ncmp     rdx, 0Fh                                                       ; +0x64, 0x18008a714\njbe     short loc_18008A74F                                            ; +0x68, 0x18008a718\ninc     rdx                                                            ; +0x6a, 0x18008a71a\nmov     rcx, [rsp+58h+Block]; Block                                    ; +0x6d, 0x18008a71d\nmov     rax, rcx                                                       ; +0x72, 0x18008a722\ncmp     rdx, 1000h                                                     ; +0x75, 0x18008a725\njb      short loc_18008A74A                                            ; +0x7c, 0x18008a72c\nadd     rdx, 27h ; '''                                                 ; +0x7e, 0x18008a72e\nmov     rcx, [rcx-8]                                                   ; +0x82, 0x18008a732\nsub     rax, rcx                                                       ; +0x86, 0x18008a736\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x89, 0x18008a739\ncmp     rax, 1Fh                                                       ; +0x8d, 0x18008a73d\njbe     short loc_18008A74A                                            ; +0x91, 0x18008a741\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0x93, 0x18008a743\nalign 2                                                                ; +0x99, 0x18008a749\ncall    j_j_free_0                                                     ; +0x9a, 0x18008a74a\nmov     rcx, [rsp+58h+var_18]                                          ; +0x9f, 0x18008a74f\nxor     rcx, rsp; StackCookie                                          ; +0xa4, 0x18008a754\ncall    __security_check_cookie                                        ; +0xa7, 0x18008a757\nmov     rbx, [rsp+58h+arg_0]                                           ; +0xac, 0x18008a75c\nadd     rsp, 50h                                                       ; +0xb1, 0x18008a761\npop     rdi                                                            ; +0xb5, 0x18008a765\nretn                                                                   ; +0xb6, 0x18008a766", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b5a78"], "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"}