{"type": "func", "start": 6442482928, "end": 6442483059, "name": "sub_180007CF0", "pseudocode": "// \n// sub_180007CF0 from 0x180007cf0 to 0x180007d73 (131 bytes)\n// \n// 26 xrefs:\n// > cocos2d::CCPrettyPrinter::visit @ 0x18000802a\n// > cocos2d::CCPrettyPrinter::visit @ 0x1800082ab\n// > cocos2d::CCPrettyPrinter::visit @ 0x18000837c\n// > cocos2d::CCPrettyPrinter::visit @ 0x1800085b6\n// > cocos2d::CCPrettyPrinter::visit @ 0x1800088ca\n// > cocos2d::CCPrettyPrinter::visit @ 0x180008a98\n// > cocos2d::CCPrettyPrinter::visit @ 0x180008e90\n// > cocos2d::CCPrettyPrinter::visit @ 0x180008fbe\n// > cocos2d::CCPrettyPrinter::visit @ 0x18000917a\n// > cocos2d::CCPrettyPrinter::visit @ 0x180009345\n// > cocos2d::CCPrettyPrinter::visit @ 0x180009426\n// > cocos2d::CCFileUtils::fullPathFromRelativeFile @ 0x18006f8cd\n// > cocos2d::CCFileUtils::getPathForFilename @ 0x1800704d2\n// > cocos2d::CCFileUtils::getPathForFilename @ 0x1800704eb\n// > sub_180071FE0 @ 0x1800721a3\n// > sub_1800864F0 @ 0x18008653e\n// > cocos2d::ZipUtils::decompressString2 @ 0x1800a3ee8\n// > cocos2d::ZipUtils::decompressString2 @ 0x1800a401d\n// > cocos2d::ZipUtils::decompressString2 @ 0x1800a4096\n// > cocos2d::ZipUtils::decompressString2 @ 0x1800a40dc\n// > cocos2d::ZipUtils::decompressString @ 0x1800a4271\n// > cocos2d::CCTMXMapInfo::startElement @ 0x1800b08ed\n// > cocos2d::CCTMXMapInfo::startElement @ 0x1800b1155\n// > <???> @ 0x180131894\n// > <???> @ 0x1801318a4\n// > <???> @ 0x1801adb64\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_QWORD *__fastcall sub_180007CF0(_QWORD *Src, const void *a2, unsigned __int64 a3)\n{\n  __int64 v5; // rcx\n  unsigned __int64 v6; // r8\n  _QWORD *v7; // rax\n  char *v8; // rbx\n\n  v5 = Src[2];\n  v6 = Src[3];\n  if ( a3 > v6 - v5 )\n    return sub_180007900(Src, a3, 0, a2, a3);\n  Src[2] = v5 + a3;\n  v7 = Src;\n  if ( v6 > 0xF )\n    v7 = (_QWORD *)*Src;\n  v8 = (char *)v7 + v5;\n  memmove((char *)v7 + v5, a2, a3);\n  v8[a3] = 0;\n  return Src;\n}", "assembly": "; \n; sub_180007CF0 from 0x180007cf0 to 0x180007d73 (131 bytes)\n; \n; 26 xrefs:\n; > cocos2d::CCPrettyPrinter::visit @ 0x18000802a\n; > cocos2d::CCPrettyPrinter::visit @ 0x1800082ab\n; > cocos2d::CCPrettyPrinter::visit @ 0x18000837c\n; > cocos2d::CCPrettyPrinter::visit @ 0x1800085b6\n; > cocos2d::CCPrettyPrinter::visit @ 0x1800088ca\n; > cocos2d::CCPrettyPrinter::visit @ 0x180008a98\n; > cocos2d::CCPrettyPrinter::visit @ 0x180008e90\n; > cocos2d::CCPrettyPrinter::visit @ 0x180008fbe\n; > cocos2d::CCPrettyPrinter::visit @ 0x18000917a\n; > cocos2d::CCPrettyPrinter::visit @ 0x180009345\n; > cocos2d::CCPrettyPrinter::visit @ 0x180009426\n; > cocos2d::CCFileUtils::fullPathFromRelativeFile @ 0x18006f8cd\n; > cocos2d::CCFileUtils::getPathForFilename @ 0x1800704d2\n; > cocos2d::CCFileUtils::getPathForFilename @ 0x1800704eb\n; > sub_180071FE0 @ 0x1800721a3\n; > sub_1800864F0 @ 0x18008653e\n; > cocos2d::ZipUtils::decompressString2 @ 0x1800a3ee8\n; > cocos2d::ZipUtils::decompressString2 @ 0x1800a401d\n; > cocos2d::ZipUtils::decompressString2 @ 0x1800a4096\n; > cocos2d::ZipUtils::decompressString2 @ 0x1800a40dc\n; > cocos2d::ZipUtils::decompressString @ 0x1800a4271\n; > cocos2d::CCTMXMapInfo::startElement @ 0x1800b08ed\n; > cocos2d::CCTMXMapInfo::startElement @ 0x1800b1155\n; > <???> @ 0x180131894\n; > <???> @ 0x1801318a4\n; > <???> @ 0x1801adb64\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_8], rsi                                               ; +0x0, 0x180007cf0\npush    rdi                                                            ; +0x5, 0x180007cf5\nsub     rsp, 30h                                                       ; +0x6, 0x180007cf6\nmov     rdi, rcx                                                       ; +0xa, 0x180007cfa\nmov     rsi, r8                                                        ; +0xd, 0x180007cfd\nmov     rcx, [rcx+10h]                                                 ; +0x10, 0x180007d00\nmov     r8, [rdi+18h]                                                  ; +0x14, 0x180007d04\nmov     rax, r8                                                        ; +0x18, 0x180007d08\nsub     rax, rcx                                                       ; +0x1b, 0x180007d0b\ncmp     rsi, rax                                                       ; +0x1e, 0x180007d0e\nja      short loc_180007D52                                            ; +0x21, 0x180007d11\nmov     [rsp+38h+arg_0], rbx                                           ; +0x23, 0x180007d13\nlea     rax, [rcx+rsi]                                                 ; +0x28, 0x180007d18\nmov     [rdi+10h], rax                                                 ; +0x2c, 0x180007d1c\nmov     rax, rdi                                                       ; +0x30, 0x180007d20\ncmp     r8, 0Fh                                                        ; +0x33, 0x180007d23\njbe     short loc_180007D2C                                            ; +0x37, 0x180007d27\nmov     rax, [rdi]                                                     ; +0x39, 0x180007d29\nlea     rbx, [rax+rcx]                                                 ; +0x3c, 0x180007d2c\nmov     r8, rsi; Size                                                  ; +0x40, 0x180007d30\nmov     rcx, rbx; void *                                               ; +0x43, 0x180007d33\ncall    memmove                                                        ; +0x46, 0x180007d36\nmov     byte ptr [rbx+rsi], 0                                          ; +0x4b, 0x180007d3b\nmov     rax, rdi                                                       ; +0x4f, 0x180007d3f\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x52, 0x180007d42\nmov     rsi, [rsp+38h+arg_8]                                           ; +0x57, 0x180007d47\nadd     rsp, 30h                                                       ; +0x5c, 0x180007d4c\npop     rdi                                                            ; +0x60, 0x180007d50\nretn                                                                   ; +0x61, 0x180007d51\nmov     r9, rdx                                                        ; +0x62, 0x180007d52\nmov     [rsp+38h+Size], rsi; Size                                      ; +0x65, 0x180007d55\nmov     rdx, rsi                                                       ; +0x6a, 0x180007d5a\nxor     r8d, r8d                                                       ; +0x6d, 0x180007d5d\nmov     rcx, rdi; Src                                                  ; +0x70, 0x180007d60\ncall    sub_180007900                                                  ; +0x73, 0x180007d63\nmov     rsi, [rsp+38h+arg_8]                                           ; +0x78, 0x180007d68\nadd     rsp, 30h                                                       ; +0x7d, 0x180007d6d\npop     rdi                                                            ; +0x81, 0x180007d71\nretn                                                                   ; +0x82, 0x180007d72", "xrefs": ["cocos2d::CCPrettyPrinter::visit @ 0x18000802a", "cocos2d::CCPrettyPrinter::visit @ 0x1800082ab", "cocos2d::CCPrettyPrinter::visit @ 0x18000837c", "cocos2d::CCPrettyPrinter::visit @ 0x1800085b6", "cocos2d::CCPrettyPrinter::visit @ 0x1800088ca", "cocos2d::CCPrettyPrinter::visit @ 0x180008a98", "cocos2d::CCPrettyPrinter::visit @ 0x180008e90", "cocos2d::CCPrettyPrinter::visit @ 0x180008fbe", "cocos2d::CCPrettyPrinter::visit @ 0x18000917a", "cocos2d::CCPrettyPrinter::visit @ 0x180009345", "cocos2d::CCPrettyPrinter::visit @ 0x180009426", "cocos2d::CCFileUtils::fullPathFromRelativeFile @ 0x18006f8cd", "cocos2d::CCFileUtils::getPathForFilename @ 0x1800704d2", "cocos2d::CCFileUtils::getPathForFilename @ 0x1800704eb", "sub_180071FE0 @ 0x1800721a3", "sub_1800864F0 @ 0x18008653e", "cocos2d::ZipUtils::decompressString2 @ 0x1800a3ee8", "cocos2d::ZipUtils::decompressString2 @ 0x1800a401d", "cocos2d::ZipUtils::decompressString2 @ 0x1800a4096", "cocos2d::ZipUtils::decompressString2 @ 0x1800a40dc", "cocos2d::ZipUtils::decompressString @ 0x1800a4271", "cocos2d::CCTMXMapInfo::startElement @ 0x1800b08ed", "cocos2d::CCTMXMapInfo::startElement @ 0x1800b1155", "<???> @ 0x180131894", "<???> @ 0x1801318a4", "<???> @ 0x1801adb64"], "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"}