{"type": "func", "start": 4298598624, "end": 4298598894, "name": "CCURLObject::create", "pseudocode": "// \n// CCURLObject::create from 0x1003768e0 to 0x1003769ee (270 bytes)\n// \n// 23 xrefs:\n// > LevelAreaInnerLayer::onInfo @ 0x10027aea2\n// > LevelAreaInnerLayer::onInfo @ 0x10027af6b\n// > LevelAreaInnerLayer::onInfo @ 0x10027b007\n// > LevelAreaInnerLayer::onInfo @ 0x10027b0a3\n// > LevelAreaInnerLayer::onInfo @ 0x10027b157\n// > LevelAreaInnerLayer::onInfo @ 0x10027b1f6\n// > SupportLayer::onLinks @ 0x1003992da\n// > SupportLayer::onLinks @ 0x100399391\n// > SupportLayer::onLinks @ 0x10039944f\n// > SupportLayer::onLinks @ 0x10039950e\n// > SupportLayer::onLinks @ 0x1003995ce\n// > SupportLayer::onLinks @ 0x10039969a\n// > SupportLayer::onLinks @ 0x100399741\n// > SupportLayer::onLinks @ 0x1003997ef\n// > SupportLayer::onLinks @ 0x1003998b8\n// > SupportLayer::onLinks @ 0x10039995f\n// > SupportLayer::onSFX @ 0x100399de3\n// > SupportLayer::onSFX @ 0x100399e91\n// > SupportLayer::onSFX @ 0x100399f18\n// > SupportLayer::onSFX @ 0x100399fb6\n// > SupportLayer::onSFX @ 0x10039a059\n// > SupportLayer::onSFX @ 0x10039a0f5\n// > MusicDownloadManager::parseSFXLibrary @ 0x1005960cf\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\nchar *__fastcall CCURLObject::create(__int128 *a1, std::string *a2)\n{\n  char *v2; // rbx\n  __int128 v3; // xmm0\n  std::string __str; // [rsp+0h] [rbp-50h] BYREF\n  std::string v6; // [rsp+20h] [rbp-30h] BYREF\n\n  v2 = (char *)operator new(0x68u);\n  *(_OWORD *)v2 = 0;\n  *((_OWORD *)v2 + 1) = 0;\n  *((_OWORD *)v2 + 2) = 0;\n  *((_OWORD *)v2 + 3) = 0;\n  *((_OWORD *)v2 + 4) = 0;\n  *((_OWORD *)v2 + 5) = 0;\n  *((_QWORD *)v2 + 12) = 0;\n  cocos2d::CCObject::CCObject(v2);\n  *(_QWORD *)v2 = off_10091EE00;\n  *(_QWORD *)&v3 = 0;\n  *(_OWORD *)(v2 + 56) = 0;\n  *(_OWORD *)(v2 + 72) = 0;\n  *(_OWORD *)(v2 + 88) = 0;\n  if ( (*(_BYTE *)a1 & 1) != 0 )\n  {\n    sub_100006B70(&__str, *((const void **)a1 + 2), *((_QWORD *)a1 + 1), 0.0);\n    if ( (*(_BYTE *)&a2->__r_.__value_.__s.0 & 1) != 0 )\n      goto LABEL_3;\n  }\n  else\n  {\n    __str.__r_.__value_.__r.__words[2] = *((_QWORD *)a1 + 2);\n    v3 = *a1;\n    *(_OWORD *)&__str.__r_.__value_.__l.0 = *a1;\n    if ( (*(_BYTE *)&a2->__r_.__value_.__s.0 & 1) != 0 )\n    {\nLABEL_3:\n      sub_100006B70(&v6, a2->__r_.__value_.__l.__data_, a2->__r_.__value_.__l.__size_, *(double *)&v3);\n      goto LABEL_6;\n    }\n  }\n  v6 = *a2;\nLABEL_6:\n  std::string::operator=((std::string *)(v2 + 56), &__str);\n  std::string::operator=((std::string *)(v2 + 80), &v6);\n  if ( (*(_BYTE *)&v6.__r_.__value_.__s.0 & 1) != 0 )\n    operator delete(v6.__r_.__value_.__l.__data_);\n  if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 )\n    operator delete(__str.__r_.__value_.__l.__data_);\n  cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);\n  return v2;\n}", "assembly": "; \n; CCURLObject::create from 0x1003768e0 to 0x1003769ee (270 bytes)\n; \n; 23 xrefs:\n; > LevelAreaInnerLayer::onInfo @ 0x10027aea2\n; > LevelAreaInnerLayer::onInfo @ 0x10027af6b\n; > LevelAreaInnerLayer::onInfo @ 0x10027b007\n; > LevelAreaInnerLayer::onInfo @ 0x10027b0a3\n; > LevelAreaInnerLayer::onInfo @ 0x10027b157\n; > LevelAreaInnerLayer::onInfo @ 0x10027b1f6\n; > SupportLayer::onLinks @ 0x1003992da\n; > SupportLayer::onLinks @ 0x100399391\n; > SupportLayer::onLinks @ 0x10039944f\n; > SupportLayer::onLinks @ 0x10039950e\n; > SupportLayer::onLinks @ 0x1003995ce\n; > SupportLayer::onLinks @ 0x10039969a\n; > SupportLayer::onLinks @ 0x100399741\n; > SupportLayer::onLinks @ 0x1003997ef\n; > SupportLayer::onLinks @ 0x1003998b8\n; > SupportLayer::onLinks @ 0x10039995f\n; > SupportLayer::onSFX @ 0x100399de3\n; > SupportLayer::onSFX @ 0x100399e91\n; > SupportLayer::onSFX @ 0x100399f18\n; > SupportLayer::onSFX @ 0x100399fb6\n; > SupportLayer::onSFX @ 0x10039a059\n; > SupportLayer::onSFX @ 0x10039a0f5\n; > MusicDownloadManager::parseSFXLibrary @ 0x1005960cf\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\npush    rbp                                                            ; +0x0, 0x1003768e0\nmov     rbp, rsp                                                       ; +0x1, 0x1003768e1\npush    r15                                                            ; +0x4, 0x1003768e4\npush    r14                                                            ; +0x6, 0x1003768e6\npush    rbx                                                            ; +0x8, 0x1003768e8\nsub     rsp, 38h                                                       ; +0x9, 0x1003768e9\nmov     r14, rsi                                                       ; +0xd, 0x1003768ed\nmov     r15, rdi                                                       ; +0x10, 0x1003768f0\nmov     edi, 68h ; 'h'; __sz                                           ; +0x13, 0x1003768f3\ncall    __Znwm; operator new(ulong)                                    ; +0x18, 0x1003768f8\nmov     rbx, rax                                                       ; +0x1d, 0x1003768fd\nxorps   xmm0, xmm0                                                     ; +0x20, 0x100376900\nmovaps  xmmword ptr [rax], xmm0                                        ; +0x23, 0x100376903\nmovaps  xmmword ptr [rax+10h], xmm0                                    ; +0x26, 0x100376906\nmovaps  xmmword ptr [rax+20h], xmm0                                    ; +0x2a, 0x10037690a\nmovaps  xmmword ptr [rax+30h], xmm0                                    ; +0x2e, 0x10037690e\nmovaps  xmmword ptr [rax+40h], xmm0                                    ; +0x32, 0x100376912\nmovaps  xmmword ptr [rax+50h], xmm0                                    ; +0x36, 0x100376916\nmov     qword ptr [rax+60h], 0                                         ; +0x3a, 0x10037691a\nmov     rdi, rax                                                       ; +0x42, 0x100376922\ncall    cocos2d__CCObject__CCObject                                    ; +0x45, 0x100376925\nlea     rax, _ZTV11CCURLObject; `vtable for'CCURLObject                ; +0x4a, 0x10037692a\nadd     rax, 10h                                                       ; +0x51, 0x100376931\nmov     [rbx], rax                                                     ; +0x55, 0x100376935\nxorps   xmm0, xmm0                                                     ; +0x58, 0x100376938\nmovups  xmmword ptr [rbx+38h], xmm0                                    ; +0x5b, 0x10037693b\nmovups  xmmword ptr [rbx+48h], xmm0                                    ; +0x5f, 0x10037693f\nmovups  xmmword ptr [rbx+58h], xmm0                                    ; +0x63, 0x100376943\ntest    byte ptr [r15], 1                                              ; +0x67, 0x100376947\njnz     short loc_100376976                                            ; +0x6b, 0x10037694b\nmov     rax, [r15+10h]                                                 ; +0x6d, 0x10037694d\nmov     qword ptr [rbp+__str.__r_.__value_+10h], rax                   ; +0x71, 0x100376951\nmovups  xmm0, xmmword ptr [r15]                                        ; +0x75, 0x100376955\nmovaps  xmmword ptr [rbp+__str.__r_.__value_], xmm0                    ; +0x79, 0x100376959\ntest    byte ptr [r14], 1                                              ; +0x7d, 0x10037695d\njz      short loc_10037698D                                            ; +0x81, 0x100376961\nmov     rdx, [r14+8]                                                   ; +0x83, 0x100376963\nmov     rsi, [r14+10h]                                                 ; +0x87, 0x100376967\nlea     rdi, [rbp+var_30]                                              ; +0x8b, 0x10037696b\ncall    sub_100006B70                                                  ; +0x8f, 0x10037696f\njmp     short loc_10037699D                                            ; +0x94, 0x100376974\nmov     rdx, [r15+8]                                                   ; +0x96, 0x100376976\nmov     rsi, [r15+10h]                                                 ; +0x9a, 0x10037697a\nlea     rdi, [rbp+__str]                                               ; +0x9e, 0x10037697e\ncall    sub_100006B70                                                  ; +0xa2, 0x100376982\ntest    byte ptr [r14], 1                                              ; +0xa7, 0x100376987\njnz     short loc_100376963                                            ; +0xab, 0x10037698b\nmov     rax, [r14+10h]                                                 ; +0xad, 0x10037698d\nmov     qword ptr [rbp+var_30.__r_.__value_+10h], rax                  ; +0xb1, 0x100376991\nmovups  xmm0, xmmword ptr [r14]                                        ; +0xb5, 0x100376995\nmovaps  xmmword ptr [rbp+var_30.__r_.__value_], xmm0                   ; +0xb9, 0x100376999\nlea     rdi, [rbx+38h]; this                                           ; +0xbd, 0x10037699d\nlea     rsi, [rbp+__str]; __str                                        ; +0xc1, 0x1003769a1\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0xc5, 0x1003769a5\nmov     rdi, rbx                                                       ; +0xca, 0x1003769aa\nadd     rdi, 50h ; 'P'; this                                           ; +0xcd, 0x1003769ad\nlea     rsi, [rbp+var_30]; __str                                       ; +0xd1, 0x1003769b1\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0xd5, 0x1003769b5\ntest    byte ptr [rbp+var_30.__r_.__value_], 1                         ; +0xda, 0x1003769ba\njz      short loc_1003769C9                                            ; +0xde, 0x1003769be\nmov     rdi, qword ptr [rbp+var_30.__r_.__value_+10h]; __p             ; +0xe0, 0x1003769c0\ncall    __ZdlPv; operator delete(void *)                               ; +0xe4, 0x1003769c4\ntest    byte ptr [rbp+__str.__r_.__value_], 1                          ; +0xe9, 0x1003769c9\njz      short loc_1003769D8                                            ; +0xed, 0x1003769cd\nmov     rdi, qword ptr [rbp+__str.__r_.__value_+10h]; __p              ; +0xef, 0x1003769cf\ncall    __ZdlPv; operator delete(void *)                               ; +0xf3, 0x1003769d3\nmov     rdi, rbx                                                       ; +0xf8, 0x1003769d8\ncall    cocos2d__CCObject__autorelease                                 ; +0xfb, 0x1003769db\nmov     rax, rbx                                                       ; +0x100, 0x1003769e0\nadd     rsp, 38h                                                       ; +0x103, 0x1003769e3\npop     rbx                                                            ; +0x107, 0x1003769e7\npop     r14                                                            ; +0x108, 0x1003769e8\npop     r15                                                            ; +0x10a, 0x1003769ea\npop     rbp                                                            ; +0x10c, 0x1003769ec\nretn                                                                   ; +0x10d, 0x1003769ed", "xrefs": ["LevelAreaInnerLayer::onInfo @ 0x10027aea2", "LevelAreaInnerLayer::onInfo @ 0x10027af6b", "LevelAreaInnerLayer::onInfo @ 0x10027b007", "LevelAreaInnerLayer::onInfo @ 0x10027b0a3", "LevelAreaInnerLayer::onInfo @ 0x10027b157", "LevelAreaInnerLayer::onInfo @ 0x10027b1f6", "SupportLayer::onLinks @ 0x1003992da", "SupportLayer::onLinks @ 0x100399391", "SupportLayer::onLinks @ 0x10039944f", "SupportLayer::onLinks @ 0x10039950e", "SupportLayer::onLinks @ 0x1003995ce", "SupportLayer::onLinks @ 0x10039969a", "SupportLayer::onLinks @ 0x100399741", "SupportLayer::onLinks @ 0x1003997ef", "SupportLayer::onLinks @ 0x1003998b8", "SupportLayer::onLinks @ 0x10039995f", "SupportLayer::onSFX @ 0x100399de3", "SupportLayer::onSFX @ 0x100399e91", "SupportLayer::onSFX @ 0x100399f18", "SupportLayer::onSFX @ 0x100399fb6", "SupportLayer::onSFX @ 0x10039a059", "SupportLayer::onSFX @ 0x10039a0f5", "MusicDownloadManager::parseSFXLibrary @ 0x1005960cf"], "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"}