{"type": "func", "start": 6442967488, "end": 6442967654, "name": "cocos2d::CCFileUtilsWin32::removeSearchPath", "pseudocode": "// \n// cocos2d::CCFileUtilsWin32::removeSearchPath from 0x18007e1c0 to 0x18007e266 (166 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x1801077b0\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801befc8\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:01 +0000\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+30h] [rbp-38h] BYREF\n  unsigned __int64 v6; // [rsp+48h] [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        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free_0(v4);\n  }\n}", "assembly": "; \n; cocos2d::CCFileUtilsWin32::removeSearchPath from 0x18007e1c0 to 0x18007e266 (166 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x1801077b0\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801befc8\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:01 +0000\n; \npush    rbx                                                            ; +0x0, 0x18007e1c0\nsub     rsp, 60h                                                       ; +0x2, 0x18007e1c2\nmov     rax, cs:__security_cookie                                      ; +0x6, 0x18007e1c6\nxor     rax, rsp                                                       ; +0xd, 0x18007e1cd\nmov     [rsp+68h+var_18], rax                                          ; +0x10, 0x18007e1d0\nmov     rbx, rcx                                                       ; +0x15, 0x18007e1d5\nmov     r8, rdx                                                        ; +0x18, 0x18007e1d8\nlea     rdx, [rsp+68h+Block]                                           ; +0x1b, 0x18007e1db\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, 0x18007e1e0\nnop                                                                    ; +0x25, 0x18007e1e5\nlea     rdx, [rsp+68h+Block]                                           ; +0x26, 0x18007e1e6\ncmp     [rsp+68h+var_20], 0Fh                                          ; +0x2b, 0x18007e1eb\ncmova   rdx, [rsp+68h+Block]; char *                                   ; +0x31, 0x18007e1f1\nmov     rcx, rbx; this                                                 ; +0x37, 0x18007e1f7\ncall    ?removeSearchPath@CCFileUtils@cocos2d@@UEAAXPEBD@Z; cocos2d::CCFileUtils::removeSearchPath(char const *) ; +0x3a, 0x18007e1fa\nnop                                                                    ; +0x3f, 0x18007e1ff\nmov     rdx, [rsp+68h+var_20]                                          ; +0x40, 0x18007e200\ncmp     rdx, 0Fh                                                       ; +0x45, 0x18007e205\njbe     short loc_18007E253                                            ; +0x49, 0x18007e209\ninc     rdx                                                            ; +0x4b, 0x18007e20b\nmov     rcx, [rsp+68h+Block]; Block                                    ; +0x4e, 0x18007e20e\nmov     rax, rcx                                                       ; +0x53, 0x18007e213\ncmp     rdx, 1000h                                                     ; +0x56, 0x18007e216\njb      short loc_18007E24E                                            ; +0x5d, 0x18007e21d\nadd     rdx, 27h ; '''                                                 ; +0x5f, 0x18007e21f\nmov     rcx, [rcx-8]                                                   ; +0x63, 0x18007e223\nsub     rax, rcx                                                       ; +0x67, 0x18007e227\nsub     rax, 8                                                         ; +0x6a, 0x18007e22a\ncmp     rax, 1Fh                                                       ; +0x6e, 0x18007e22e\njbe     short loc_18007E24E                                            ; +0x72, 0x18007e232\nmov     [rsp+68h+Reserved], 0; Reserved                                ; +0x74, 0x18007e234\nxor     r9d, r9d; LineNo                                               ; +0x7d, 0x18007e23d\nxor     r8d, r8d; FileName                                             ; +0x80, 0x18007e240\nxor     edx, edx; FunctionName                                         ; +0x83, 0x18007e243\nxor     ecx, ecx; Expression                                           ; +0x85, 0x18007e245\ncall    cs:_invoke_watson                                              ; +0x87, 0x18007e247\nalign 2                                                                ; +0x8d, 0x18007e24d\ncall    j_j_free_0                                                     ; +0x8e, 0x18007e24e\nmov     rcx, [rsp+68h+var_18]                                          ; +0x93, 0x18007e253\nxor     rcx, rsp; StackCookie                                          ; +0x98, 0x18007e258\ncall    __security_check_cookie                                        ; +0x9b, 0x18007e25b\nadd     rsp, 60h                                                       ; +0xa0, 0x18007e260\npop     rbx                                                            ; +0xa4, 0x18007e264\nretn                                                                   ; +0xa5, 0x18007e265", "xrefs": ["<???> @ 0x1801077b0", "<???> @ 0x18014cf68", "<???> @ 0x1801befc8"], "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"}