{"type": "func", "start": 6442517648, "end": 6442517747, "name": "cocos2d::CCString::createWithContentsOfFile", "pseudocode": "// \n// cocos2d::CCString::createWithContentsOfFile from 0x180010490 to 0x1800104f3 (99 bytes)\n// \n// 6 xrefs:\n// > cocos2d::CCBMFontConfiguration::parseConfigFile @ 0x18004b994\n// > cocos2d::CCGLProgram::initWithVertexShaderFilename @ 0x180089ca2\n// > cocos2d::CCGLProgram::initWithVertexShaderFilename @ 0x180089d46\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801b81ac\n// > <???> @ 0x1801b81b8\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:21:22 +0000\n// \n\nstruct cocos2d::CCString *__fastcall cocos2d::CCString::createWithContentsOfFile(const char *a1)\n{\n  struct cocos2d::CCFileUtils *v2; // rax\n  unsigned __int8 *v3; // rdi\n  struct cocos2d::CCString *result; // rax\n  struct cocos2d::CCString *v5; // rbx\n  size_t Size; // [rsp+38h] [rbp+10h] BYREF\n\n  LODWORD(Size) = 0;\n  v2 = cocos2d::CCFileUtils::sharedFileUtils();\n  v3 = (unsigned __int8 *)(*(__int64 (__fastcall **)(struct cocos2d::CCFileUtils *, const char *, const char *, size_t *))(*(_QWORD *)v2 + 24LL))(\n                            v2,\n                            a1,\n                            \"rb\",\n                            &Size);\n  result = cocos2d::CCString::createWithData(v3, (unsigned int)Size);\n  v5 = result;\n  if ( v3 )\n  {\n    j_j_free_0(v3);\n    return v5;\n  }\n  return result;\n}", "assembly": "; \n; cocos2d::CCString::createWithContentsOfFile from 0x180010490 to 0x1800104f3 (99 bytes)\n; \n; 6 xrefs:\n; > cocos2d::CCBMFontConfiguration::parseConfigFile @ 0x18004b994\n; > cocos2d::CCGLProgram::initWithVertexShaderFilename @ 0x180089ca2\n; > cocos2d::CCGLProgram::initWithVertexShaderFilename @ 0x180089d46\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801b81ac\n; > <???> @ 0x1801b81b8\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:21:22 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180010490\npush    rdi                                                            ; +0x5, 0x180010495\nsub     rsp, 20h                                                       ; +0x6, 0x180010496\nmov     rbx, rcx                                                       ; +0xa, 0x18001049a\nmov     dword ptr [rsp+28h+Size], 0                                    ; +0xd, 0x18001049d\ncall    ?sharedFileUtils@CCFileUtils@cocos2d@@SAPEAV12@XZ; cocos2d::CCFileUtils::sharedFileUtils(void) ; +0x15, 0x1800104a5\nlea     r9, [rsp+28h+Size]                                             ; +0x1a, 0x1800104aa\nmov     rcx, rax                                                       ; +0x1f, 0x1800104af\nlea     r8, aRb_0; \"rb\"                                                ; +0x22, 0x1800104b2\nmov     rdx, [rax]                                                     ; +0x29, 0x1800104b9\nmov     r10, [rdx+18h]                                                 ; +0x2c, 0x1800104bc\nmov     rdx, rbx                                                       ; +0x30, 0x1800104c0\ncall    r10                                                            ; +0x33, 0x1800104c3\nmov     edx, dword ptr [rsp+28h+Size]; Size                            ; +0x36, 0x1800104c6\nmov     rcx, rax; Src                                                  ; +0x3a, 0x1800104ca\nmov     rdi, rax                                                       ; +0x3d, 0x1800104cd\ncall    ?createWithData@CCString@cocos2d@@SAPEAV12@PEBEK@Z; cocos2d::CCString::createWithData(uchar const *,ulong) ; +0x40, 0x1800104d0\nmov     rbx, rax                                                       ; +0x45, 0x1800104d5\ntest    rdi, rdi                                                       ; +0x48, 0x1800104d8\njz      short loc_1800104E8                                            ; +0x4b, 0x1800104db\nmov     rcx, rdi; Block                                                ; +0x4d, 0x1800104dd\ncall    j_j_free_0                                                     ; +0x50, 0x1800104e0\nmov     rax, rbx                                                       ; +0x55, 0x1800104e5\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x58, 0x1800104e8\nadd     rsp, 20h                                                       ; +0x5d, 0x1800104ed\npop     rdi                                                            ; +0x61, 0x1800104f1\nretn                                                                   ; +0x62, 0x1800104f2", "xrefs": ["cocos2d::CCBMFontConfiguration::parseConfigFile @ 0x18004b994", "cocos2d::CCGLProgram::initWithVertexShaderFilename @ 0x180089ca2", "cocos2d::CCGLProgram::initWithVertexShaderFilename @ 0x180089d46", "<???> @ 0x18014cf68", "<???> @ 0x1801b81ac", "<???> @ 0x1801b81b8"], "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"}