{"type": "func", "start": 6442963536, "end": 6442963728, "name": "cocos2d::CCFileUtilsWin32::fullPathForFilename", "pseudocode": "// \n// cocos2d::CCFileUtilsWin32::fullPathForFilename from 0x18007d250 to 0x18007d310 (192 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x180107838\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bef74\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:00 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n__m128i *__fastcall cocos2d::CCFileUtilsWin32::fullPathForFilename(__int64 *a1, __m128i *a2, __int64 a3)\n{\n  char *v5; // r8\n  void *v6; // rcx\n  void *Block[3]; // [rsp+40h] [rbp-38h] BYREF\n  unsigned __int64 v9; // [rsp+58h] [rbp-20h]\n\n  cocos2d::CCFileUtilsWin32::utf8Togbk(a1, Block, a3);\n  v5 = (char *)Block;\n  if ( v9 > 0xF )\n    v5 = (char *)Block[0];\n  cocos2d::CCFileUtils::fullPathForFilename(a1, a2, v5, 0);\n  if ( v9 > 0xF )\n  {\n    v6 = Block[0];\n    if ( v9 + 1 >= 0x1000 )\n    {\n      v6 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v6 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free_0(v6);\n  }\n  return a2;\n}", "assembly": "; \n; cocos2d::CCFileUtilsWin32::fullPathForFilename from 0x18007d250 to 0x18007d310 (192 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x180107838\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bef74\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:00 +0000\n; \nmov     [rsp+arg_18], rbx                                              ; +0x0, 0x18007d250\npush    rdi                                                            ; +0x5, 0x18007d255\nsub     rsp, 70h                                                       ; +0x6, 0x18007d256\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x18007d25a\nxor     rax, rsp                                                       ; +0x11, 0x18007d261\nmov     [rsp+78h+var_18], rax                                          ; +0x14, 0x18007d264\nmov     rdi, rdx                                                       ; +0x19, 0x18007d269\nmov     rbx, rcx                                                       ; +0x1c, 0x18007d26c\nmov     [rsp+78h+var_40], rdx                                          ; +0x1f, 0x18007d26f\nlea     rdx, [rsp+78h+Block]                                           ; +0x24, 0x18007d274\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 *) ; +0x29, 0x18007d279\nnop                                                                    ; +0x2e, 0x18007d27e\nlea     r8, [rsp+78h+Block]                                            ; +0x2f, 0x18007d27f\ncmp     [rsp+78h+var_20], 0Fh                                          ; +0x34, 0x18007d284\ncmova   r8, [rsp+78h+Block]                                            ; +0x3a, 0x18007d28a\nxor     r9d, r9d                                                       ; +0x40, 0x18007d290\nmov     rdx, rdi                                                       ; +0x43, 0x18007d293\nmov     rcx, rbx                                                       ; +0x46, 0x18007d296\ncall    ?fullPathForFilename@CCFileUtils@cocos2d@@UEAA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PEBD_N@Z; cocos2d::CCFileUtils::fullPathForFilename(char const *,bool) ; +0x49, 0x18007d299\nnop                                                                    ; +0x4e, 0x18007d29e\nmov     rdx, [rsp+78h+var_20]                                          ; +0x4f, 0x18007d29f\ncmp     rdx, 0Fh                                                       ; +0x54, 0x18007d2a4\njbe     short loc_18007D2F2                                            ; +0x58, 0x18007d2a8\ninc     rdx                                                            ; +0x5a, 0x18007d2aa\nmov     rcx, [rsp+78h+Block]; Block                                    ; +0x5d, 0x18007d2ad\nmov     rax, rcx                                                       ; +0x62, 0x18007d2b2\ncmp     rdx, 1000h                                                     ; +0x65, 0x18007d2b5\njb      short loc_18007D2ED                                            ; +0x6c, 0x18007d2bc\nadd     rdx, 27h ; '''                                                 ; +0x6e, 0x18007d2be\nmov     rcx, [rcx-8]                                                   ; +0x72, 0x18007d2c2\nsub     rax, rcx                                                       ; +0x76, 0x18007d2c6\nsub     rax, 8                                                         ; +0x79, 0x18007d2c9\ncmp     rax, 1Fh                                                       ; +0x7d, 0x18007d2cd\njbe     short loc_18007D2ED                                            ; +0x81, 0x18007d2d1\nmov     [rsp+78h+Reserved], 0; Reserved                                ; +0x83, 0x18007d2d3\nxor     r9d, r9d; LineNo                                               ; +0x8c, 0x18007d2dc\nxor     r8d, r8d; FileName                                             ; +0x8f, 0x18007d2df\nxor     edx, edx; FunctionName                                         ; +0x92, 0x18007d2e2\nxor     ecx, ecx; Expression                                           ; +0x94, 0x18007d2e4\ncall    cs:_invoke_watson                                              ; +0x96, 0x18007d2e6\ndb 0CCh                                                                ; +0x9c, 0x18007d2ec\ncall    j_j_free_0                                                     ; +0x9d, 0x18007d2ed\nmov     rax, rdi                                                       ; +0xa2, 0x18007d2f2\nmov     rcx, [rsp+78h+var_18]                                          ; +0xa5, 0x18007d2f5\nxor     rcx, rsp; StackCookie                                          ; +0xaa, 0x18007d2fa\ncall    __security_check_cookie                                        ; +0xad, 0x18007d2fd\nmov     rbx, [rsp+78h+arg_18]                                          ; +0xb2, 0x18007d302\nadd     rsp, 70h                                                       ; +0xba, 0x18007d30a\npop     rdi                                                            ; +0xbe, 0x18007d30e\nretn                                                                   ; +0xbf, 0x18007d30f", "xrefs": ["<???> @ 0x180107838", "<???> @ 0x18014cf68", "<???> @ 0x1801bef74"], "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"}