{"type": "func", "start": 4300333248, "end": 4300333592, "name": "GJHttpResult::create", "pseudocode": "// \n// GJHttpResult::create from 0x10051e0c0 to 0x10051e218 (344 bytes)\n// \n// 4 xrefs:\n// > GJAccountManager::handleItDelayed @ 0x1000cfdfd\n// > GameLevelManager::handleItDelayed @ 0x10051dffd\n// > MusicDownloadManager::handleItDelayed @ 0x10058a7ad\n// > GJMultiplayerManager::handleItDelayed @ 0x10065954d\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 GJHttpResult::create(char a1, __int128 *a2, std::string *a3, int a4)\n{\n  char *v6; // rbx\n  __int128 v7; // xmm0\n  bool v8; // r12\n  std::string __str; // [rsp+0h] [rbp-60h] BYREF\n  std::string v11; // [rsp+20h] [rbp-40h] BYREF\n\n  v6 = (char *)operator new(0x178u);\n  cocos2d::CCNode::CCNode((__int64)v6);\n  *(_QWORD *)v6 = off_100962490;\n  v6[314] = 0;\n  *(_QWORD *)&v7 = 0;\n  *((_OWORD *)v6 + 20) = 0;\n  *((_OWORD *)v6 + 21) = 0;\n  *((_OWORD *)v6 + 22) = 0;\n  *((_DWORD *)v6 + 92) = 0;\n  if ( (*(_BYTE *)a2 & 1) != 0 )\n  {\n    sub_100006B70(&__str, *((const void **)a2 + 2), *((_QWORD *)a2 + 1), 0.0);\n    if ( (*(_BYTE *)&a3->__r_.__value_.__s.0 & 1) != 0 )\n      goto LABEL_3;\n  }\n  else\n  {\n    __str.__r_.__value_.__r.__words[2] = *((_QWORD *)a2 + 2);\n    v7 = *a2;\n    *(_OWORD *)&__str.__r_.__value_.__l.0 = *a2;\n    if ( (*(_BYTE *)&a3->__r_.__value_.__s.0 & 1) != 0 )\n    {\nLABEL_3:\n      sub_100006B70(&v11, a3->__r_.__value_.__l.__data_, a3->__r_.__value_.__l.__size_, *(double *)&v7);\n      goto LABEL_6;\n    }\n  }\n  v11 = *a3;\nLABEL_6:\n  v8 = cocos2d::CCNode::init((cocos2d::CCNode *)v6);\n  if ( v8 )\n  {\n    v6[314] = a1;\n    std::string::operator=((std::string *)(v6 + 320), &__str);\n    std::string::operator=((std::string *)(v6 + 344), &v11);\n    *((_DWORD *)v6 + 92) = a4;\n  }\n  if ( (*(_BYTE *)&v11.__r_.__value_.__s.0 & 1) == 0 )\n  {\n    if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) == 0 )\n      goto LABEL_10;\nLABEL_13:\n    operator delete(__str.__r_.__value_.__l.__data_);\n    if ( v8 )\n      goto LABEL_11;\nLABEL_14:\n    (*(void (__fastcall **)(char *))(*(_QWORD *)v6 + 16LL))(v6);\n    return nullptr;\n  }\n  operator delete(v11.__r_.__value_.__l.__data_);\n  if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 )\n    goto LABEL_13;\nLABEL_10:\n  if ( !v8 )\n    goto LABEL_14;\nLABEL_11:\n  cocos2d::CCObject::autorelease((cocos2d::CCObject *)v6);\n  return v6;\n}", "assembly": "; \n; GJHttpResult::create from 0x10051e0c0 to 0x10051e218 (344 bytes)\n; \n; 4 xrefs:\n; > GJAccountManager::handleItDelayed @ 0x1000cfdfd\n; > GameLevelManager::handleItDelayed @ 0x10051dffd\n; > MusicDownloadManager::handleItDelayed @ 0x10058a7ad\n; > GJMultiplayerManager::handleItDelayed @ 0x10065954d\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, 0x10051e0c0\nmov     rbp, rsp                                                       ; +0x1, 0x10051e0c1\npush    r15                                                            ; +0x4, 0x10051e0c4\npush    r14                                                            ; +0x6, 0x10051e0c6\npush    r13                                                            ; +0x8, 0x10051e0c8\npush    r12                                                            ; +0xa, 0x10051e0ca\npush    rbx                                                            ; +0xc, 0x10051e0cc\nsub     rsp, 38h                                                       ; +0xd, 0x10051e0cd\nmov     r14d, ecx                                                      ; +0x11, 0x10051e0d1\nmov     r12, rdx                                                       ; +0x14, 0x10051e0d4\nmov     r13, rsi                                                       ; +0x17, 0x10051e0d7\nmov     r15d, edi                                                      ; +0x1a, 0x10051e0da\nmov     edi, 178h; __sz                                                ; +0x1d, 0x10051e0dd\ncall    __Znwm; operator new(ulong)                                    ; +0x22, 0x10051e0e2\nmov     rbx, rax                                                       ; +0x27, 0x10051e0e7\nmov     rdi, rax                                                       ; +0x2a, 0x10051e0ea\ncall    cocos2d__CCNode__CCNode                                        ; +0x2d, 0x10051e0ed\nlea     rax, off_100962490                                             ; +0x32, 0x10051e0f2\nmov     [rbx], rax                                                     ; +0x39, 0x10051e0f9\nmov     byte ptr [rbx+13Ah], 0                                         ; +0x3c, 0x10051e0fc\nxorps   xmm0, xmm0                                                     ; +0x43, 0x10051e103\nmovups  xmmword ptr [rbx+140h], xmm0                                   ; +0x46, 0x10051e106\nmovups  xmmword ptr [rbx+150h], xmm0                                   ; +0x4d, 0x10051e10d\nmovups  xmmword ptr [rbx+160h], xmm0                                   ; +0x54, 0x10051e114\nmov     dword ptr [rbx+170h], 0                                        ; +0x5b, 0x10051e11b\ntest    byte ptr [r13+0], 1                                            ; +0x65, 0x10051e125\njnz     short loc_10051E159                                            ; +0x6a, 0x10051e12a\nmov     rax, [r13+10h]                                                 ; +0x6c, 0x10051e12c\nmov     qword ptr [rbp+__str.__r_.__value_+10h], rax                   ; +0x70, 0x10051e130\nmovups  xmm0, xmmword ptr [r13+0]                                      ; +0x74, 0x10051e134\nmovaps  xmmword ptr [rbp+__str.__r_.__value_], xmm0                    ; +0x79, 0x10051e139\ntest    byte ptr [r12], 1                                              ; +0x7d, 0x10051e13d\njz      short loc_10051E171                                            ; +0x82, 0x10051e142\nmov     rdx, [r12+8]                                                   ; +0x84, 0x10051e144\nmov     rsi, [r12+10h]                                                 ; +0x89, 0x10051e149\nlea     rdi, [rbp+var_40]                                              ; +0x8e, 0x10051e14e\ncall    sub_100006B70                                                  ; +0x92, 0x10051e152\njmp     short loc_10051E183                                            ; +0x97, 0x10051e157\nmov     rdx, [r13+8]                                                   ; +0x99, 0x10051e159\nmov     rsi, [r13+10h]                                                 ; +0x9d, 0x10051e15d\nlea     rdi, [rbp+__str]                                               ; +0xa1, 0x10051e161\ncall    sub_100006B70                                                  ; +0xa5, 0x10051e165\ntest    byte ptr [r12], 1                                              ; +0xaa, 0x10051e16a\njnz     short loc_10051E144                                            ; +0xaf, 0x10051e16f\nmov     rax, [r12+10h]                                                 ; +0xb1, 0x10051e171\nmov     qword ptr [rbp+var_40.__r_.__value_+10h], rax                  ; +0xb6, 0x10051e176\nmovups  xmm0, xmmword ptr [r12]                                        ; +0xba, 0x10051e17a\nmovaps  xmmword ptr [rbp+var_40.__r_.__value_], xmm0                   ; +0xbf, 0x10051e17f\nmov     rdi, rbx                                                       ; +0xc3, 0x10051e183\ncall    cocos2d__CCNode__init                                          ; +0xc6, 0x10051e186\nmov     r12d, eax                                                      ; +0xcb, 0x10051e18b\ntest    al, al                                                         ; +0xce, 0x10051e18e\njz      short loc_10051E1C3                                            ; +0xd0, 0x10051e190\nlea     rdi, [rbx+140h]; this                                          ; +0xd2, 0x10051e192\nmov     [rbx+13Ah], r15b                                               ; +0xd9, 0x10051e199\nlea     rsi, [rbp+__str]; __str                                        ; +0xe0, 0x10051e1a0\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0xe4, 0x10051e1a4\nmov     rdi, rbx                                                       ; +0xe9, 0x10051e1a9\nadd     rdi, 158h; this                                                ; +0xec, 0x10051e1ac\nlea     rsi, [rbp+var_40]; __str                                       ; +0xf3, 0x10051e1b3\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0xf7, 0x10051e1b7\nmov     [rbx+170h], r14d                                               ; +0xfc, 0x10051e1bc\ntest    byte ptr [rbp+var_40.__r_.__value_], 1                         ; +0x103, 0x10051e1c3\njnz     short loc_10051E1DE                                            ; +0x107, 0x10051e1c7\ntest    byte ptr [rbp+__str.__r_.__value_], 1                          ; +0x109, 0x10051e1c9\njnz     short loc_10051E1ED                                            ; +0x10d, 0x10051e1cd\ntest    r12b, r12b                                                     ; +0x10f, 0x10051e1cf\njz      short loc_10051E1FB                                            ; +0x112, 0x10051e1d2\nmov     rdi, rbx                                                       ; +0x114, 0x10051e1d4\ncall    cocos2d__CCObject__autorelease                                 ; +0x117, 0x10051e1d7\njmp     short loc_10051E206                                            ; +0x11c, 0x10051e1dc\nmov     rdi, qword ptr [rbp+var_40.__r_.__value_+10h]; __p             ; +0x11e, 0x10051e1de\ncall    __ZdlPv; operator delete(void *)                               ; +0x122, 0x10051e1e2\ntest    byte ptr [rbp+__str.__r_.__value_], 1                          ; +0x127, 0x10051e1e7\njz      short loc_10051E1CF                                            ; +0x12b, 0x10051e1eb\nmov     rdi, qword ptr [rbp+__str.__r_.__value_+10h]; __p              ; +0x12d, 0x10051e1ed\ncall    __ZdlPv; operator delete(void *)                               ; +0x131, 0x10051e1f1\ntest    r12b, r12b                                                     ; +0x136, 0x10051e1f6\njnz     short loc_10051E1D4                                            ; +0x139, 0x10051e1f9\nmov     rax, [rbx]                                                     ; +0x13b, 0x10051e1fb\nmov     rdi, rbx                                                       ; +0x13e, 0x10051e1fe\ncall    qword ptr [rax+10h]                                            ; +0x141, 0x10051e201\nxor     ebx, ebx                                                       ; +0x144, 0x10051e204\nmov     rax, rbx                                                       ; +0x146, 0x10051e206\nadd     rsp, 38h                                                       ; +0x149, 0x10051e209\npop     rbx                                                            ; +0x14d, 0x10051e20d\npop     r12                                                            ; +0x14e, 0x10051e20e\npop     r13                                                            ; +0x150, 0x10051e210\npop     r14                                                            ; +0x152, 0x10051e212\npop     r15                                                            ; +0x154, 0x10051e214\npop     rbp                                                            ; +0x156, 0x10051e216\nretn                                                                   ; +0x157, 0x10051e217", "xrefs": ["GJAccountManager::handleItDelayed @ 0x1000cfdfd", "GameLevelManager::handleItDelayed @ 0x10051dffd", "MusicDownloadManager::handleItDelayed @ 0x10058a7ad", "GJMultiplayerManager::handleItDelayed @ 0x10065954d"], "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"}