{"type": "func", "start": 6443118256, "end": 6443118322, "name": "cocos2d::CCUserDefault::isXMLFileExist", "pseudocode": "// \n// cocos2d::CCUserDefault::isXMLFileExist from 0x1800a2eb0 to 0x1800a2ef2 (66 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c18e4\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:14 +0000\n// \n\nbool __fastcall cocos2d::CCUserDefault::isXMLFileExist()\n{\n  const char *v0; // rcx\n  FILE *v1; // rax\n\n  v0 = (const char *)&cocos2d::CCUserDefault::m_sFilePath;\n  if ( *((_QWORD *)&xmmword_1801B2AA0 + 1) > 0xFu )\n    v0 = cocos2d::CCUserDefault::m_sFilePath;\n  v1 = fopen(v0, \"r\");\n  if ( v1 )\n  {\n    fclose(v1);\n    LOBYTE(v1) = 1;\n  }\n  return (char)v1;\n}", "assembly": "; \n; cocos2d::CCUserDefault::isXMLFileExist from 0x1800a2eb0 to 0x1800a2ef2 (66 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c18e4\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:14 +0000\n; \nsub     rsp, 28h                                                       ; +0x0, 0x1800a2eb0\ncmp     qword ptr cs:xmmword_1801B2AA0+8, 0Fh                          ; +0x4, 0x1800a2eb4\nlea     rcx, ?m_sFilePath@CCUserDefault@cocos2d@@0V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@A; std::string cocos2d::CCUserDefault::m_sFilePath ; +0xc, 0x1800a2ebc\nlea     rdx, aR; \"r\"                                                   ; +0x13, 0x1800a2ec3\ncmova   rcx, cs:?m_sFilePath@CCUserDefault@cocos2d@@0V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@A; FileName ; +0x1a, 0x1800a2eca\ncall    cs:fopen                                                       ; +0x22, 0x1800a2ed2\ntest    rax, rax                                                       ; +0x28, 0x1800a2ed8\njz      short loc_1800A2EED                                            ; +0x2b, 0x1800a2edb\nmov     rcx, rax; Stream                                               ; +0x2d, 0x1800a2edd\ncall    cs:fclose                                                      ; +0x30, 0x1800a2ee0\nmov     al, 1                                                          ; +0x36, 0x1800a2ee6\nadd     rsp, 28h                                                       ; +0x38, 0x1800a2ee8\nretn                                                                   ; +0x3c, 0x1800a2eec\nadd     rsp, 28h                                                       ; +0x3d, 0x1800a2eed\nretn                                                                   ; +0x41, 0x1800a2ef1", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801c18e4"], "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"}