{"type": "func", "start": 6442954688, "end": 6442954835, "name": "cocos2d::CCFileUtilsWin32::removeSearchPath", "pseudocode": "// \n// cocos2d::CCFileUtilsWin32::removeSearchPath from 0x18007afc0 to 0x18007b053 (147 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x1801010d8\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b4ce0\n// > <???> @ 0x1801b4cec\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::CCFileUtilsWin32::removeSearchPath(cocos2d::CCFileUtilsWin32 *this, const char *a2)\n{\n  void **v3; // rdx\n  void *v4; // rcx\n  void *Block[3]; // [rsp+20h] [rbp-38h] BYREF\n  unsigned __int64 v6; // [rsp+38h] [rbp-20h]\n\n  cocos2d::CCFileUtilsWin32::utf8Togbk(this, Block, a2);\n  v3 = Block;\n  if ( v6 > 0xF )\n    v3 = (void **)Block[0];\n  cocos2d::CCFileUtils::removeSearchPath(this, (const char *)v3);\n  if ( v6 > 0xF )\n  {\n    v4 = Block[0];\n    if ( v6 + 1 >= 0x1000 )\n    {\n      v4 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v4 - 8) > 0x1F )\n        invalid_parameter_noinfo_noreturn();\n    }\n    j_j_free_0(v4);\n  }\n}", "assembly": "; \n; cocos2d::CCFileUtilsWin32::removeSearchPath from 0x18007afc0 to 0x18007b053 (147 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x1801010d8\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b4ce0\n; > <???> @ 0x1801b4cec\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\npush    rbx                                                            ; +0x0, 0x18007afc0\nsub     rsp, 50h                                                       ; +0x2, 0x18007afc2\nmov     rax, cs:__security_cookie                                      ; +0x6, 0x18007afc6\nxor     rax, rsp                                                       ; +0xd, 0x18007afcd\nmov     [rsp+58h+var_18], rax                                          ; +0x10, 0x18007afd0\nmov     rbx, rcx                                                       ; +0x15, 0x18007afd5\nmov     r8, rdx                                                        ; +0x18, 0x18007afd8\nlea     rdx, [rsp+58h+Block]                                           ; +0x1b, 0x18007afdb\ncall    ?utf8Togbk@CCFileUtilsWin32@cocos2d@@QEAA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PEBD@Z; cocos2d::CCFileUtilsWin32::utf8Togbk(char const *) ; +0x20, 0x18007afe0\nnop                                                                    ; +0x25, 0x18007afe5\nlea     rdx, [rsp+58h+Block]                                           ; +0x26, 0x18007afe6\ncmp     [rsp+58h+var_20], 0Fh                                          ; +0x2b, 0x18007afeb\ncmova   rdx, [rsp+58h+Block]; char *                                   ; +0x31, 0x18007aff1\nmov     rcx, rbx; this                                                 ; +0x37, 0x18007aff7\ncall    ?removeSearchPath@CCFileUtils@cocos2d@@UEAAXPEBD@Z; cocos2d::CCFileUtils::removeSearchPath(char const *) ; +0x3a, 0x18007affa\nnop                                                                    ; +0x3f, 0x18007afff\nmov     rdx, [rsp+58h+var_20]                                          ; +0x40, 0x18007b000\ncmp     rdx, 0Fh                                                       ; +0x45, 0x18007b005\njbe     short loc_18007B040                                            ; +0x49, 0x18007b009\ninc     rdx                                                            ; +0x4b, 0x18007b00b\nmov     rcx, [rsp+58h+Block]; Block                                    ; +0x4e, 0x18007b00e\nmov     rax, rcx                                                       ; +0x53, 0x18007b013\ncmp     rdx, 1000h                                                     ; +0x56, 0x18007b016\njb      short loc_18007B03B                                            ; +0x5d, 0x18007b01d\nadd     rdx, 27h ; '''                                                 ; +0x5f, 0x18007b01f\nmov     rcx, [rcx-8]                                                   ; +0x63, 0x18007b023\nsub     rax, rcx                                                       ; +0x67, 0x18007b027\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x6a, 0x18007b02a\ncmp     rax, 1Fh                                                       ; +0x6e, 0x18007b02e\njbe     short loc_18007B03B                                            ; +0x72, 0x18007b032\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0x74, 0x18007b034\ndb 0CCh                                                                ; +0x7a, 0x18007b03a\ncall    j_j_free_0                                                     ; +0x7b, 0x18007b03b\nmov     rcx, [rsp+58h+var_18]                                          ; +0x80, 0x18007b040\nxor     rcx, rsp; StackCookie                                          ; +0x85, 0x18007b045\ncall    __security_check_cookie                                        ; +0x88, 0x18007b048\nadd     rsp, 50h                                                       ; +0x8d, 0x18007b04d\npop     rbx                                                            ; +0x91, 0x18007b051\nretn                                                                   ; +0x92, 0x18007b052", "xrefs": ["<???> @ 0x1801010d8", "<???> @ 0x1801438a8", "<???> @ 0x1801b4ce0", "<???> @ 0x1801b4cec"], "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"}