{"type": "func", "start": 6442461312, "end": 6442461415, "name": "cocos2d::extension::AssetsManager::setStoragePath", "pseudocode": "// \n// cocos2d::extension::AssetsManager::setStoragePath from 0x180002880 to 0x1800028e7 (103 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18002fdf8\n// > <???> @ 0x180049150\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\nvoid __fastcall cocos2d::extension::AssetsManager::setStoragePath(cocos2d::extension::AssetsManager *this, char *a2)\n{\n  size_t v3; // r8\n  __int64 v4; // rcx\n  char *v5; // rax\n\n  v3 = -1;\n  do\n    ++v3;\n  while ( a2[v3] );\n  sub_180003BC0((char *)this + 8, a2, v3);\n  v4 = *((_QWORD *)this + 3);\n  if ( v4 )\n  {\n    v5 = (char *)this + 8;\n    if ( *((_QWORD *)this + 4) > 0xFu )\n      v5 = *((char **)this + 1);\n    if ( v5[v4 - 1] != 47 )\n      sub_1800039A0((char *)this + 8);\n  }\n}", "assembly": "; \n; cocos2d::extension::AssetsManager::setStoragePath from 0x180002880 to 0x1800028e7 (103 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18002fdf8\n; > <???> @ 0x180049150\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, 0x180002880\npush    rdi                                                            ; +0x5, 0x180002885\nsub     rsp, 20h                                                       ; +0x6, 0x180002886\nmov     rdi, rcx                                                       ; +0xa, 0x18000288a\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0xd, 0x18000288d\ninc     r8; Size                                                       ; +0x14, 0x180002894\ncmp     byte ptr [rdx+r8], 0                                           ; +0x17, 0x180002897\njnz     short loc_180002894                                            ; +0x1c, 0x18000289c\nadd     rcx, 8; void *                                                 ; +0x1e, 0x18000289e\ncall    sub_180003BC0                                                  ; +0x22, 0x1800028a2\nmov     rcx, [rdi+18h]                                                 ; +0x27, 0x1800028a7\ntest    rcx, rcx                                                       ; +0x2b, 0x1800028ab\njz      short loc_1800028DC                                            ; +0x2e, 0x1800028ae\ncmp     qword ptr [rdi+20h], 0Fh                                       ; +0x30, 0x1800028b0\nlea     rax, [rdi+8]                                                   ; +0x35, 0x1800028b5\njbe     short loc_1800028BF                                            ; +0x39, 0x1800028b9\nmov     rax, [rdi+8]                                                   ; +0x3b, 0x1800028bb\ncmp     byte ptr [rcx+rax-1], 2Fh ; '/'                                ; +0x3f, 0x1800028bf\njz      short loc_1800028DC                                            ; +0x44, 0x1800028c4\nmov     r8d, 1                                                         ; +0x46, 0x1800028c6\nlea     rdx, word_180023388                                            ; +0x4c, 0x1800028cc\nlea     rcx, [rdi+8]; Src                                              ; +0x53, 0x1800028d3\ncall    sub_1800039A0                                                  ; +0x57, 0x1800028d7\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x5c, 0x1800028dc\nadd     rsp, 20h                                                       ; +0x61, 0x1800028e1\npop     rdi                                                            ; +0x65, 0x1800028e5\nretn                                                                   ; +0x66, 0x1800028e6", "xrefs": ["<???> @ 0x18002fdf8", "<???> @ 0x180049150"], "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"}