{"type": "func", "start": 6443030272, "end": 6443030477, "name": "cocos2d::CCAnimationCache::addAnimationsWithFile", "pseudocode": "// \n// cocos2d::CCAnimationCache::addAnimationsWithFile from 0x18008d700 to 0x18008d7cd (205 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bfd48\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:22:06 +0000\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+30h] [rbp-38h] BYREF\n  unsigned __int64 v9; // [rsp+48h] [rbp-20h]\n\n  v4 = cocos2d::CCFileUtils::sharedFileUtils();\n  (*(void (__fastcall **)(struct cocos2d::CCFileUtils *, void **, const char *, _QWORD))(*(_QWORD *)v4 + 40LL))(\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        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free_0(v7);\n  }\n}", "assembly": "; \n; cocos2d::CCAnimationCache::addAnimationsWithFile from 0x18008d700 to 0x18008d7cd (205 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bfd48\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:22:06 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x18008d700\npush    rdi                                                            ; +0x5, 0x18008d705\nsub     rsp, 60h                                                       ; +0x6, 0x18008d706\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x18008d70a\nxor     rax, rsp                                                       ; +0x11, 0x18008d711\nmov     [rsp+68h+var_18], rax                                          ; +0x14, 0x18008d714\nmov     rbx, rdx                                                       ; +0x19, 0x18008d719\nmov     rdi, rcx                                                       ; +0x1c, 0x18008d71c\ncall    ?sharedFileUtils@CCFileUtils@cocos2d@@SAPEAV12@XZ; cocos2d::CCFileUtils::sharedFileUtils(void) ; +0x1f, 0x18008d71f\nmov     rdx, [rax]                                                     ; +0x24, 0x18008d724\nmov     r10, [rdx+28h]                                                 ; +0x27, 0x18008d727\nxor     r9d, r9d                                                       ; +0x2b, 0x18008d72b\nmov     r8, rbx                                                        ; +0x2e, 0x18008d72e\nlea     rdx, [rsp+68h+Block]                                           ; +0x31, 0x18008d731\nmov     rcx, rax                                                       ; +0x36, 0x18008d736\ncall    r10                                                            ; +0x39, 0x18008d739\nnop                                                                    ; +0x3c, 0x18008d73c\nlea     rcx, [rsp+68h+Block]                                           ; +0x3d, 0x18008d73d\ncmp     [rsp+68h+var_20], 0Fh                                          ; +0x42, 0x18008d742\ncmova   rcx, [rsp+68h+Block]; char *                                   ; +0x48, 0x18008d748\ncall    ?createWithContentsOfFile@CCDictionary@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCDictionary::createWithContentsOfFile(char const *) ; +0x4e, 0x18008d74e\nmov     r8, rbx; char *                                                ; +0x53, 0x18008d753\nmov     rdx, rax; struct cocos2d::CCDictionary *                       ; +0x56, 0x18008d756\nmov     rcx, rdi; this                                                 ; +0x59, 0x18008d759\ncall    ?addAnimationsWithDictionary@CCAnimationCache@cocos2d@@QEAAXPEAVCCDictionary@2@PEBD@Z; cocos2d::CCAnimationCache::addAnimationsWithDictionary(cocos2d::CCDictionary *,char const *) ; +0x5c, 0x18008d75c\nnop                                                                    ; +0x61, 0x18008d761\nmov     rdx, [rsp+68h+var_20]                                          ; +0x62, 0x18008d762\ncmp     rdx, 0Fh                                                       ; +0x67, 0x18008d767\njbe     short loc_18008D7B5                                            ; +0x6b, 0x18008d76b\ninc     rdx                                                            ; +0x6d, 0x18008d76d\nmov     rcx, [rsp+68h+Block]; Block                                    ; +0x70, 0x18008d770\nmov     rax, rcx                                                       ; +0x75, 0x18008d775\ncmp     rdx, 1000h                                                     ; +0x78, 0x18008d778\njb      short loc_18008D7B0                                            ; +0x7f, 0x18008d77f\nadd     rdx, 27h ; '''                                                 ; +0x81, 0x18008d781\nmov     rcx, [rcx-8]                                                   ; +0x85, 0x18008d785\nsub     rax, rcx                                                       ; +0x89, 0x18008d789\nsub     rax, 8                                                         ; +0x8c, 0x18008d78c\ncmp     rax, 1Fh                                                       ; +0x90, 0x18008d790\njbe     short loc_18008D7B0                                            ; +0x94, 0x18008d794\nmov     [rsp+68h+Reserved], 0; Reserved                                ; +0x96, 0x18008d796\nxor     r9d, r9d; LineNo                                               ; +0x9f, 0x18008d79f\nxor     r8d, r8d; FileName                                             ; +0xa2, 0x18008d7a2\nxor     edx, edx; FunctionName                                         ; +0xa5, 0x18008d7a5\nxor     ecx, ecx; Expression                                           ; +0xa7, 0x18008d7a7\ncall    cs:_invoke_watson                                              ; +0xa9, 0x18008d7a9\nalign 10h                                                              ; +0xaf, 0x18008d7af\ncall    j_j_free_0                                                     ; +0xb0, 0x18008d7b0\nmov     rcx, [rsp+68h+var_18]                                          ; +0xb5, 0x18008d7b5\nxor     rcx, rsp; StackCookie                                          ; +0xba, 0x18008d7ba\ncall    __security_check_cookie                                        ; +0xbd, 0x18008d7bd\nmov     rbx, [rsp+68h+arg_0]                                           ; +0xc2, 0x18008d7c2\nadd     rsp, 60h                                                       ; +0xc7, 0x18008d7c7\npop     rdi                                                            ; +0xcb, 0x18008d7cb\nretn                                                                   ; +0xcc, 0x18008d7cc", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801bfd48"], "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"}