{"type": "func", "start": 6442460560, "end": 6442460663, "name": "cocos2d::extension::AssetsManager::setStoragePath", "pseudocode": "// \n// cocos2d::extension::AssetsManager::setStoragePath from 0x180002590 to 0x1800025f7 (103 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x180032408\n// > <???> @ 0x18004b120\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:15:34 +0000\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_1800035E0((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_1800033A0((char *)this + 8, &word_180025890, 1u);\n  }\n}", "assembly": "; \n; cocos2d::extension::AssetsManager::setStoragePath from 0x180002590 to 0x1800025f7 (103 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x180032408\n; > <???> @ 0x18004b120\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:15:34 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180002590\npush    rdi                                                            ; +0x5, 0x180002595\nsub     rsp, 20h                                                       ; +0x6, 0x180002596\nmov     rdi, rcx                                                       ; +0xa, 0x18000259a\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0xd, 0x18000259d\ninc     r8; Size                                                       ; +0x14, 0x1800025a4\ncmp     byte ptr [rdx+r8], 0                                           ; +0x17, 0x1800025a7\njnz     short loc_1800025A4                                            ; +0x1c, 0x1800025ac\nadd     rcx, 8; void *                                                 ; +0x1e, 0x1800025ae\ncall    sub_1800035E0                                                  ; +0x22, 0x1800025b2\nmov     rcx, [rdi+18h]                                                 ; +0x27, 0x1800025b7\ntest    rcx, rcx                                                       ; +0x2b, 0x1800025bb\njz      short loc_1800025EC                                            ; +0x2e, 0x1800025be\ncmp     qword ptr [rdi+20h], 0Fh                                       ; +0x30, 0x1800025c0\nlea     rax, [rdi+8]                                                   ; +0x35, 0x1800025c5\njbe     short loc_1800025CF                                            ; +0x39, 0x1800025c9\nmov     rax, [rdi+8]                                                   ; +0x3b, 0x1800025cb\ncmp     byte ptr [rcx+rax-1], 2Fh ; '/'                                ; +0x3f, 0x1800025cf\njz      short loc_1800025EC                                            ; +0x44, 0x1800025d4\nmov     r8d, 1; Size                                                   ; +0x46, 0x1800025d6\nlea     rdx, word_180025890; void *                                    ; +0x4c, 0x1800025dc\nlea     rcx, [rdi+8]; Src                                              ; +0x53, 0x1800025e3\ncall    sub_1800033A0                                                  ; +0x57, 0x1800025e7\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x5c, 0x1800025ec\nadd     rsp, 20h                                                       ; +0x61, 0x1800025f1\npop     rdi                                                            ; +0x65, 0x1800025f5\nretn                                                                   ; +0x66, 0x1800025f6", "xrefs": ["<???> @ 0x180032408", "<???> @ 0x18004b120"], "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"}