{"type": "func", "start": 6442912560, "end": 6442912980, "name": "cocos2d::CCFileUtils::removeFullPath", "pseudocode": "// \n// cocos2d::CCFileUtils::removeFullPath from 0x180070b30 to 0x180070cd4 (420 bytes)\n// \n// 6 xrefs:\n// > <???> @ 0x180100368\n// > <???> @ 0x180101090\n// > <???> @ 0x18013a5fc\n// > <???> @ 0x18013a644\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b4290\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::CCFileUtils::removeFullPath(cocos2d::CCFileUtils *this, const char *a2)\n{\n  size_t v3; // r8\n  __int64 *v4; // r13\n  cocos2d::CCFileUtils *v5; // r12\n  unsigned __int64 v6; // r15\n  __int64 *v7; // rbp\n  size_t v8; // rsi\n  void **v9; // r14\n  __int64 *v10; // rbx\n  void **v11; // rdx\n  const void *v12; // rcx\n  size_t v13; // rdi\n  size_t v14; // r8\n  int v15; // eax\n  const void *v16; // rdx\n  size_t v17; // rbx\n  void **v18; // rcx\n  size_t v19; // r8\n  int v20; // eax\n  void **v21; // rax\n  __int64 *v22; // rbx\n  void *Buf2[2]; // [rsp+20h] [rbp-68h] BYREF\n  size_t Size; // [rsp+30h] [rbp-58h]\n  unsigned __int64 v25; // [rsp+38h] [rbp-50h]\n\n  *(_OWORD *)Buf2 = 0;\n  Size = 0;\n  v25 = 0;\n  v3 = -1;\n  do\n    ++v3;\n  while ( a2[v3] );\n  sub_18000CE60(Buf2, a2, v3);\n  v4 = *((__int64 **)this + 12);\n  v5 = this + 12;\n  v6 = v25;\n  v7 = v4;\n  v8 = Size;\n  v9 = (void **)Buf2[0];\n  v10 = (__int64 *)v4[1];\n  while ( !*((_BYTE *)v10 + 25) )\n  {\n    v11 = Buf2;\n    v12 = v10 + 4;\n    if ( v6 > 0xF )\n      v11 = v9;\n    if ( (unsigned __int64)v10[7] > 0xF )\n      v12 = (const void *)v10[4];\n    v13 = v10[6];\n    v14 = v13;\n    if ( v8 < v13 )\n      v14 = v8;\n    v15 = memcmp(v12, v11, v14);\n    if ( v15 )\n    {\n      if ( v15 < 0 )\n        goto LABEL_25;\n    }\n    else if ( v13 < v8 )\n    {\nLABEL_25:\n      v10 = (__int64 *)v10[2];\n      continue;\n    }\n    v7 = v10;\n    v10 = (__int64 *)*v10;\n  }\n  if ( *((_BYTE *)v7 + 25) )\n    goto LABEL_27;\n  v16 = v7 + 4;\n  if ( (unsigned __int64)v7[7] > 0xF )\n    v16 = (const void *)v7[4];\n  v17 = v7[6];\n  v18 = Buf2;\n  v19 = v8;\n  if ( v6 > 0xF )\n    v18 = v9;\n  if ( v17 < v8 )\n    v19 = v7[6];\n  v20 = memcmp(v18, v16, v19);\n  if ( !v20 )\n  {\n    if ( v8 >= v17 )\n      goto LABEL_28;\n    goto LABEL_27;\n  }\n  if ( v20 < 0 )\nLABEL_27:\n    v7 = v4;\nLABEL_28:\n  if ( v6 > 0xF )\n  {\n    v21 = v9;\n    if ( v6 + 1 >= 0x1000 )\n    {\n      v9 = (void **)*(v9 - 1);\n      if ( (unsigned __int64)((char *)v21 - (char *)v9 - 8) > 0x1F )\n        invalid_parameter_noinfo_noreturn();\n    }\n    j_j_free_0(v9);\n  }\n  if ( v7 != (__int64 *)v5->__vftable )\n  {\n    v22 = sub_18000F1F0(v5, v7);\n    sub_18006C9C0((__int64)v5, (__int64)(v22 + 4));\n    j_j_free_0(v22);\n  }\n}", "assembly": "; \n; cocos2d::CCFileUtils::removeFullPath from 0x180070b30 to 0x180070cd4 (420 bytes)\n; \n; 6 xrefs:\n; > <???> @ 0x180100368\n; > <???> @ 0x180101090\n; > <???> @ 0x18013a5fc\n; > <???> @ 0x18013a644\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b4290\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     r11, rsp                                                       ; +0x0, 0x180070b30\npush    rbx                                                            ; +0x3, 0x180070b33\npush    rbp                                                            ; +0x4, 0x180070b34\npush    r12                                                            ; +0x5, 0x180070b35\npush    r14                                                            ; +0x7, 0x180070b37\npush    r15                                                            ; +0x9, 0x180070b39\nsub     rsp, 60h                                                       ; +0xb, 0x180070b3b\nmov     rax, cs:__security_cookie                                      ; +0xf, 0x180070b3f\nxor     rax, rsp                                                       ; +0x16, 0x180070b46\nmov     [rsp+88h+var_48], rax                                          ; +0x19, 0x180070b49\nxor     eax, eax                                                       ; +0x1e, 0x180070b4e\nmov     [r11+18h], rsi                                                 ; +0x20, 0x180070b50\nxorps   xmm0, xmm0                                                     ; +0x24, 0x180070b54\nmov     [r11-38h], r13                                                 ; +0x27, 0x180070b57\nmovups  xmmword ptr [rsp+88h+Buf2], xmm0                               ; +0x2b, 0x180070b5b\nmov     [r11-58h], rax                                                 ; +0x30, 0x180070b60\nmov     rbx, rcx                                                       ; +0x34, 0x180070b64\nmov     [r11-50h], rax                                                 ; +0x37, 0x180070b67\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x3b, 0x180070b6b\ninc     r8                                                             ; +0x42, 0x180070b72\ncmp     [rdx+r8], al                                                   ; +0x45, 0x180070b75\njnz     short loc_180070B72                                            ; +0x49, 0x180070b79\nlea     rcx, [rsp+88h+Buf2]                                            ; +0x4b, 0x180070b7b\ncall    sub_18000CE60                                                  ; +0x50, 0x180070b80\nmov     r13, [rbx+60h]                                                 ; +0x55, 0x180070b85\nlea     r12, [rbx+60h]                                                 ; +0x59, 0x180070b89\nmov     r15, [rsp+88h+var_50]                                          ; +0x5d, 0x180070b8d\nmov     rbp, r13                                                       ; +0x62, 0x180070b92\nmov     rsi, [rsp+88h+Size]                                            ; +0x65, 0x180070b95\nmov     r14, [rsp+88h+Buf2]                                            ; +0x6a, 0x180070b9a\nmov     rbx, [r13+8]                                                   ; +0x6f, 0x180070b9f\ncmp     byte ptr [rbx+19h], 0                                          ; +0x73, 0x180070ba3\njnz     short loc_180070BF6                                            ; +0x77, 0x180070ba7\nmov     [rsp+88h+var_30], rdi                                          ; +0x79, 0x180070ba9\nxchg    ax, ax                                                         ; +0x7e, 0x180070bae\ncmp     r15, 0Fh                                                       ; +0x80, 0x180070bb0\nlea     rdx, [rsp+88h+Buf2]                                            ; +0x84, 0x180070bb4\nlea     rcx, [rbx+20h]                                                 ; +0x89, 0x180070bb9\ncmova   rdx, r14; Buf2                                                 ; +0x8d, 0x180070bbd\ncmp     qword ptr [rbx+38h], 0Fh                                       ; +0x91, 0x180070bc1\njbe     short loc_180070BCC                                            ; +0x96, 0x180070bc6\nmov     rcx, [rbx+20h]; Buf1                                           ; +0x98, 0x180070bc8\nmov     rdi, [rbx+30h]                                                 ; +0x9c, 0x180070bcc\ncmp     rsi, rdi                                                       ; +0xa0, 0x180070bd0\nmov     r8, rdi                                                        ; +0xa3, 0x180070bd3\ncmovb   r8, rsi; Size                                                  ; +0xa6, 0x180070bd6\ncall    memcmp                                                         ; +0xaa, 0x180070bda\ntest    eax, eax                                                       ; +0xaf, 0x180070bdf\njz      short loc_180070C33                                            ; +0xb1, 0x180070be1\njs      short loc_180070C38                                            ; +0xb3, 0x180070be3\nmov     rbp, rbx                                                       ; +0xb5, 0x180070be5\nmov     rbx, [rbx]                                                     ; +0xb8, 0x180070be8\ncmp     byte ptr [rbx+19h], 0                                          ; +0xbb, 0x180070beb\njz      short loc_180070BB0                                            ; +0xbf, 0x180070bef\nmov     rdi, [rsp+88h+var_30]                                          ; +0xc1, 0x180070bf1\ncmp     byte ptr [rbp+19h], 0                                          ; +0xc6, 0x180070bf6\njnz     short loc_180070C43                                            ; +0xca, 0x180070bfa\ncmp     qword ptr [rbp+38h], 0Fh                                       ; +0xcc, 0x180070bfc\nlea     rdx, [rbp+20h]                                                 ; +0xd1, 0x180070c01\njbe     short loc_180070C0B                                            ; +0xd5, 0x180070c05\nmov     rdx, [rbp+20h]; Buf2                                           ; +0xd7, 0x180070c07\nmov     rbx, [rbp+30h]                                                 ; +0xdb, 0x180070c0b\nlea     rcx, [rsp+88h+Buf2]                                            ; +0xdf, 0x180070c0f\ncmp     r15, 0Fh                                                       ; +0xe4, 0x180070c14\nmov     r8, rsi                                                        ; +0xe8, 0x180070c18\ncmova   rcx, r14; Buf1                                                 ; +0xeb, 0x180070c1b\ncmp     rbx, rsi                                                       ; +0xef, 0x180070c1f\ncmovb   r8, rbx; Size                                                  ; +0xf2, 0x180070c22\ncall    memcmp                                                         ; +0xf6, 0x180070c26\ntest    eax, eax                                                       ; +0xfb, 0x180070c2b\njz      short loc_180070C3E                                            ; +0xfd, 0x180070c2d\njs      short loc_180070C43                                            ; +0xff, 0x180070c2f\njmp     short loc_180070C46                                            ; +0x101, 0x180070c31\ncmp     rdi, rsi                                                       ; +0x103, 0x180070c33\njnb     short loc_180070BE5                                            ; +0x106, 0x180070c36\nmov     rbx, [rbx+10h]                                                 ; +0x108, 0x180070c38\njmp     short loc_180070BEB                                            ; +0x10c, 0x180070c3c\ncmp     rsi, rbx                                                       ; +0x10e, 0x180070c3e\njnb     short loc_180070C46                                            ; +0x111, 0x180070c41\nmov     rbp, r13                                                       ; +0x113, 0x180070c43\nmov     r13, [rsp+88h+var_38]                                          ; +0x116, 0x180070c46\nmov     rsi, [rsp+88h+arg_10]                                          ; +0x11b, 0x180070c4b\ncmp     r15, 0Fh                                                       ; +0x123, 0x180070c53\njbe     short loc_180070C8D                                            ; +0x127, 0x180070c57\nlea     rdx, [r15+1]                                                   ; +0x129, 0x180070c59\nmov     rax, r14                                                       ; +0x12d, 0x180070c5d\ncmp     rdx, 1000h                                                     ; +0x130, 0x180070c60\njb      short loc_180070C85                                            ; +0x137, 0x180070c67\nmov     r14, [r14-8]                                                   ; +0x139, 0x180070c69\nadd     rdx, 27h ; '''                                                 ; +0x13d, 0x180070c6d\nsub     rax, r14                                                       ; +0x141, 0x180070c71\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x144, 0x180070c74\ncmp     rax, 1Fh                                                       ; +0x148, 0x180070c78\njbe     short loc_180070C85                                            ; +0x14c, 0x180070c7c\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0x14e, 0x180070c7e\ndb 0CCh                                                                ; +0x154, 0x180070c84\nmov     rcx, r14; Block                                                ; +0x155, 0x180070c85\ncall    j_j_free_0                                                     ; +0x158, 0x180070c88\ncmp     rbp, [r12]                                                     ; +0x15d, 0x180070c8d\njz      short loc_180070CBA                                            ; +0x161, 0x180070c91\nmov     rdx, rbp                                                       ; +0x163, 0x180070c93\nmov     rcx, r12                                                       ; +0x166, 0x180070c96\ncall    sub_18000F1F0                                                  ; +0x169, 0x180070c99\nmov     rcx, r12                                                       ; +0x16e, 0x180070c9e\nmov     rbx, rax                                                       ; +0x171, 0x180070ca1\nlea     rdx, [rax+20h]                                                 ; +0x174, 0x180070ca4\ncall    sub_18006C9C0                                                  ; +0x178, 0x180070ca8\nmov     edx, 60h ; '`'                                                 ; +0x17d, 0x180070cad\nmov     rcx, rbx; Block                                                ; +0x182, 0x180070cb2\ncall    j_j_free_0                                                     ; +0x185, 0x180070cb5\nmov     rcx, [rsp+88h+var_48]                                          ; +0x18a, 0x180070cba\nxor     rcx, rsp; StackCookie                                          ; +0x18f, 0x180070cbf\ncall    __security_check_cookie                                        ; +0x192, 0x180070cc2\nadd     rsp, 60h                                                       ; +0x197, 0x180070cc7\npop     r15                                                            ; +0x19b, 0x180070ccb\npop     r14                                                            ; +0x19d, 0x180070ccd\npop     r12                                                            ; +0x19f, 0x180070ccf\npop     rbp                                                            ; +0x1a1, 0x180070cd1\npop     rbx                                                            ; +0x1a2, 0x180070cd2\nretn                                                                   ; +0x1a3, 0x180070cd3", "xrefs": ["<???> @ 0x180100368", "<???> @ 0x180101090", "<???> @ 0x18013a5fc", "<???> @ 0x18013a644", "<???> @ 0x1801438a8", "<???> @ 0x1801b4290"], "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"}