{"type": "func", "start": 6442951200, "end": 6442951347, "name": "cocos2d::CCFileUtilsWin32::addSearchPath", "pseudocode": "// \n// cocos2d::CCFileUtilsWin32::addSearchPath from 0x18007a220 to 0x18007a2b3 (147 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x1801010d0\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b4c8c\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\n// Hidden C++ exception states: #wind=1\nvoid __fastcall cocos2d::CCFileUtilsWin32::addSearchPath(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::addSearchPath(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::addSearchPath from 0x18007a220 to 0x18007a2b3 (147 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x1801010d0\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b4c8c\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, 0x18007a220\nsub     rsp, 50h                                                       ; +0x2, 0x18007a222\nmov     rax, cs:__security_cookie                                      ; +0x6, 0x18007a226\nxor     rax, rsp                                                       ; +0xd, 0x18007a22d\nmov     [rsp+58h+var_18], rax                                          ; +0x10, 0x18007a230\nmov     rbx, rcx                                                       ; +0x15, 0x18007a235\nmov     r8, rdx                                                        ; +0x18, 0x18007a238\nlea     rdx, [rsp+58h+Block]                                           ; +0x1b, 0x18007a23b\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, 0x18007a240\nnop                                                                    ; +0x25, 0x18007a245\nlea     rdx, [rsp+58h+Block]                                           ; +0x26, 0x18007a246\ncmp     [rsp+58h+var_20], 0Fh                                          ; +0x2b, 0x18007a24b\ncmova   rdx, [rsp+58h+Block]; char *                                   ; +0x31, 0x18007a251\nmov     rcx, rbx; this                                                 ; +0x37, 0x18007a257\ncall    ?addSearchPath@CCFileUtils@cocos2d@@UEAAXPEBD@Z; cocos2d::CCFileUtils::addSearchPath(char const *) ; +0x3a, 0x18007a25a\nnop                                                                    ; +0x3f, 0x18007a25f\nmov     rdx, [rsp+58h+var_20]                                          ; +0x40, 0x18007a260\ncmp     rdx, 0Fh                                                       ; +0x45, 0x18007a265\njbe     short loc_18007A2A0                                            ; +0x49, 0x18007a269\ninc     rdx                                                            ; +0x4b, 0x18007a26b\nmov     rcx, [rsp+58h+Block]; Block                                    ; +0x4e, 0x18007a26e\nmov     rax, rcx                                                       ; +0x53, 0x18007a273\ncmp     rdx, 1000h                                                     ; +0x56, 0x18007a276\njb      short loc_18007A29B                                            ; +0x5d, 0x18007a27d\nadd     rdx, 27h ; '''                                                 ; +0x5f, 0x18007a27f\nmov     rcx, [rcx-8]                                                   ; +0x63, 0x18007a283\nsub     rax, rcx                                                       ; +0x67, 0x18007a287\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x6a, 0x18007a28a\ncmp     rax, 1Fh                                                       ; +0x6e, 0x18007a28e\njbe     short loc_18007A29B                                            ; +0x72, 0x18007a292\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0x74, 0x18007a294\ndb 0CCh                                                                ; +0x7a, 0x18007a29a\ncall    j_j_free_0                                                     ; +0x7b, 0x18007a29b\nmov     rcx, [rsp+58h+var_18]                                          ; +0x80, 0x18007a2a0\nxor     rcx, rsp; StackCookie                                          ; +0x85, 0x18007a2a5\ncall    __security_check_cookie                                        ; +0x88, 0x18007a2a8\nadd     rsp, 50h                                                       ; +0x8d, 0x18007a2ad\npop     rbx                                                            ; +0x91, 0x18007a2b1\nretn                                                                   ; +0x92, 0x18007a2b2", "xrefs": ["<???> @ 0x1801010d0", "<???> @ 0x1801438a8", "<???> @ 0x1801b4c8c"], "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"}