{"type": "func", "start": 6442517248, "end": 6442517344, "name": "cocos2d::CCString::createWithContentsOfFile", "pseudocode": "// \n// cocos2d::CCString::createWithContentsOfFile from 0x180010300 to 0x180010360 (96 bytes)\n// \n// 6 xrefs:\n// > cocos2d::CCBMFontConfiguration::parseConfigFile @ 0x18004a2f5\n// > cocos2d::CCGLProgram::initWithVertexShaderFilename @ 0x180086afc\n// > cocos2d::CCGLProgram::initWithVertexShaderFilename @ 0x180086b87\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801ae0f8\n// > <???> @ 0x1801ae104\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\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 *))v2->addSearchResolutionsOrder)(\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 0x180010300 to 0x180010360 (96 bytes)\n; \n; 6 xrefs:\n; > cocos2d::CCBMFontConfiguration::parseConfigFile @ 0x18004a2f5\n; > cocos2d::CCGLProgram::initWithVertexShaderFilename @ 0x180086afc\n; > cocos2d::CCGLProgram::initWithVertexShaderFilename @ 0x180086b87\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801ae0f8\n; > <???> @ 0x1801ae104\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180010300\npush    rdi                                                            ; +0x5, 0x180010305\nsub     rsp, 20h                                                       ; +0x6, 0x180010306\nmov     rbx, rcx                                                       ; +0xa, 0x18001030a\nmov     dword ptr [rsp+28h+Size], 0                                    ; +0xd, 0x18001030d\ncall    ?sharedFileUtils@CCFileUtils@cocos2d@@SAPEAV12@XZ; cocos2d::CCFileUtils::sharedFileUtils(void) ; +0x15, 0x180010315\nlea     r9, [rsp+28h+Size]                                             ; +0x1a, 0x18001031a\nmov     rdx, rbx                                                       ; +0x1f, 0x18001031f\nlea     r8, aRb_0; \"rb\"                                                ; +0x22, 0x180010322\nmov     rcx, rax                                                       ; +0x29, 0x180010329\nmov     r10, [rax]                                                     ; +0x2c, 0x18001032c\ncall    qword ptr [r10+18h]                                            ; +0x2f, 0x18001032f\nmov     edx, dword ptr [rsp+28h+Size]; Size                            ; +0x33, 0x180010333\nmov     rcx, rax; Src                                                  ; +0x37, 0x180010337\nmov     rdi, rax                                                       ; +0x3a, 0x18001033a\ncall    ?createWithData@CCString@cocos2d@@SAPEAV12@PEBEK@Z; cocos2d::CCString::createWithData(uchar const *,ulong) ; +0x3d, 0x18001033d\nmov     rbx, rax                                                       ; +0x42, 0x180010342\ntest    rdi, rdi                                                       ; +0x45, 0x180010345\njz      short loc_180010355                                            ; +0x48, 0x180010348\nmov     rcx, rdi; Block                                                ; +0x4a, 0x18001034a\ncall    j_j_free_0                                                     ; +0x4d, 0x18001034d\nmov     rax, rbx                                                       ; +0x52, 0x180010352\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x55, 0x180010355\nadd     rsp, 20h                                                       ; +0x5a, 0x18001035a\npop     rdi                                                            ; +0x5e, 0x18001035e\nretn                                                                   ; +0x5f, 0x18001035f", "xrefs": ["cocos2d::CCBMFontConfiguration::parseConfigFile @ 0x18004a2f5", "cocos2d::CCGLProgram::initWithVertexShaderFilename @ 0x180086afc", "cocos2d::CCGLProgram::initWithVertexShaderFilename @ 0x180086b87", "<???> @ 0x1801438a8", "<???> @ 0x1801ae0f8", "<???> @ 0x1801ae104"], "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"}