{"type": "func", "start": 4300350528, "end": 4300350872, "name": "GJHttpResult::create", "pseudocode": "// \n// GJHttpResult::create from 0x100522440 to 0x100522598 (344 bytes)\n// \n// 4 xrefs:\n// > GJAccountManager::handleItDelayed @ 0x10009e39d\n// > GameLevelManager::handleItDelayed @ 0x10051c41d\n// > MusicDownloadManager::handleItDelayed @ 0x10064a6cd\n// > GJMultiplayerManager::handleItDelayed @ 0x100738bad\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 12:31:44 +0000\n// \n\nchar *__fastcall GJHttpResult::create(char a1, std::string *a2, std::string *a3, int a4)\n{\n  char *v6; // rbx\n  char v7; // r12\n  std::string __str; // [rsp+0h] [rbp-60h] BYREF\n  std::string v10; // [rsp+20h] [rbp-40h] BYREF\n\n  v6 = (char *)operator new(0x178u);\n  cocos2d::CCNode::CCNode((__int64)v6);\n  *(_QWORD *)v6 = off_100B6F360;\n  v6[314] = 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->__r_.__value_.__s.0 & 1) != 0 )\n  {\n    sub_10001AD30(&__str, a2->__r_.__value_.__l.__data_, a2->__r_.__value_.__l.__size_);\n    if ( (*(_BYTE *)&a3->__r_.__value_.__s.0 & 1) != 0 )\n      goto LABEL_3;\n  }\n  else\n  {\n    __str = *a2;\n    if ( (*(_BYTE *)&a3->__r_.__value_.__s.0 & 1) != 0 )\n    {\nLABEL_3:\n      sub_10001AD30(&v10, a3->__r_.__value_.__l.__data_, a3->__r_.__value_.__l.__size_);\n      goto LABEL_6;\n    }\n  }\n  v10 = *a3;\nLABEL_6:\n  v7 = cocos2d::CCNode::init();\n  if ( v7 )\n  {\n    v6[314] = a1;\n    std::string::operator=((std::string *)(v6 + 320), &__str);\n    std::string::operator=((std::string *)(v6 + 344), &v10);\n    *((_DWORD *)v6 + 92) = a4;\n  }\n  if ( (*(_BYTE *)&v10.__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 ( v7 )\n      goto LABEL_11;\nLABEL_14:\n    (*(void (__fastcall **)(char *))(*(_QWORD *)v6 + 16LL))(v6);\n    return nullptr;\n  }\n  operator delete(v10.__r_.__value_.__l.__data_);\n  if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 )\n    goto LABEL_13;\nLABEL_10:\n  if ( !v7 )\n    goto LABEL_14;\nLABEL_11:\n  cocos2d::CCObject::autorelease((__int64)v6);\n  return v6;\n}", "assembly": "; \n; GJHttpResult::create from 0x100522440 to 0x100522598 (344 bytes)\n; \n; 4 xrefs:\n; > GJAccountManager::handleItDelayed @ 0x10009e39d\n; > GameLevelManager::handleItDelayed @ 0x10051c41d\n; > MusicDownloadManager::handleItDelayed @ 0x10064a6cd\n; > GJMultiplayerManager::handleItDelayed @ 0x100738bad\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 12:31:44 +0000\n; \npush    rbp                                                            ; +0x0, 0x100522440\nmov     rbp, rsp                                                       ; +0x1, 0x100522441\npush    r15                                                            ; +0x4, 0x100522444\npush    r14                                                            ; +0x6, 0x100522446\npush    r13                                                            ; +0x8, 0x100522448\npush    r12                                                            ; +0xa, 0x10052244a\npush    rbx                                                            ; +0xc, 0x10052244c\nsub     rsp, 38h                                                       ; +0xd, 0x10052244d\nmov     r14d, ecx                                                      ; +0x11, 0x100522451\nmov     r12, rdx                                                       ; +0x14, 0x100522454\nmov     r13, rsi                                                       ; +0x17, 0x100522457\nmov     r15d, edi                                                      ; +0x1a, 0x10052245a\nmov     edi, 178h; __sz                                                ; +0x1d, 0x10052245d\ncall    __Znwm; operator new(ulong)                                    ; +0x22, 0x100522462\nmov     rbx, rax                                                       ; +0x27, 0x100522467\nmov     rdi, rax                                                       ; +0x2a, 0x10052246a\ncall    cocos2d__CCNode__CCNode                                        ; +0x2d, 0x10052246d\nlea     rax, off_100B6F360                                             ; +0x32, 0x100522472\nmov     [rbx], rax                                                     ; +0x39, 0x100522479\nmov     byte ptr [rbx+13Ah], 0                                         ; +0x3c, 0x10052247c\nxorps   xmm0, xmm0                                                     ; +0x43, 0x100522483\nmovups  xmmword ptr [rbx+140h], xmm0                                   ; +0x46, 0x100522486\nmovups  xmmword ptr [rbx+150h], xmm0                                   ; +0x4d, 0x10052248d\nmovups  xmmword ptr [rbx+160h], xmm0                                   ; +0x54, 0x100522494\nmov     dword ptr [rbx+170h], 0                                        ; +0x5b, 0x10052249b\ntest    byte ptr [r13+0], 1                                            ; +0x65, 0x1005224a5\njnz     short loc_1005224D9                                            ; +0x6a, 0x1005224aa\nmov     rax, [r13+10h]                                                 ; +0x6c, 0x1005224ac\nmov     qword ptr [rbp+__str.__r_.__value_+10h], rax                   ; +0x70, 0x1005224b0\nmovups  xmm0, xmmword ptr [r13+0]                                      ; +0x74, 0x1005224b4\nmovaps  xmmword ptr [rbp+__str.__r_.__value_], xmm0                    ; +0x79, 0x1005224b9\ntest    byte ptr [r12], 1                                              ; +0x7d, 0x1005224bd\njz      short loc_1005224F1                                            ; +0x82, 0x1005224c2\nmov     rdx, [r12+8]                                                   ; +0x84, 0x1005224c4\nmov     rsi, [r12+10h]                                                 ; +0x89, 0x1005224c9\nlea     rdi, [rbp+var_40]                                              ; +0x8e, 0x1005224ce\ncall    sub_10001AD30                                                  ; +0x92, 0x1005224d2\njmp     short loc_100522503                                            ; +0x97, 0x1005224d7\nmov     rdx, [r13+8]                                                   ; +0x99, 0x1005224d9\nmov     rsi, [r13+10h]                                                 ; +0x9d, 0x1005224dd\nlea     rdi, [rbp+__str]                                               ; +0xa1, 0x1005224e1\ncall    sub_10001AD30                                                  ; +0xa5, 0x1005224e5\ntest    byte ptr [r12], 1                                              ; +0xaa, 0x1005224ea\njnz     short loc_1005224C4                                            ; +0xaf, 0x1005224ef\nmov     rax, [r12+10h]                                                 ; +0xb1, 0x1005224f1\nmov     qword ptr [rbp+var_40.__r_.__value_+10h], rax                  ; +0xb6, 0x1005224f6\nmovups  xmm0, xmmword ptr [r12]                                        ; +0xba, 0x1005224fa\nmovaps  xmmword ptr [rbp+var_40.__r_.__value_], xmm0                   ; +0xbf, 0x1005224ff\nmov     rdi, rbx                                                       ; +0xc3, 0x100522503\ncall    cocos2d__CCNode__init                                          ; +0xc6, 0x100522506\nmov     r12d, eax                                                      ; +0xcb, 0x10052250b\ntest    al, al                                                         ; +0xce, 0x10052250e\njz      short loc_100522543                                            ; +0xd0, 0x100522510\nlea     rdi, [rbx+140h]; this                                          ; +0xd2, 0x100522512\nmov     [rbx+13Ah], r15b                                               ; +0xd9, 0x100522519\nlea     rsi, [rbp+__str]; __str                                        ; +0xe0, 0x100522520\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0xe4, 0x100522524\nmov     rdi, rbx                                                       ; +0xe9, 0x100522529\nadd     rdi, 158h; this                                                ; +0xec, 0x10052252c\nlea     rsi, [rbp+var_40]; __str                                       ; +0xf3, 0x100522533\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0xf7, 0x100522537\nmov     [rbx+170h], r14d                                               ; +0xfc, 0x10052253c\ntest    byte ptr [rbp+var_40.__r_.__value_], 1                         ; +0x103, 0x100522543\njnz     short loc_10052255E                                            ; +0x107, 0x100522547\ntest    byte ptr [rbp+__str.__r_.__value_], 1                          ; +0x109, 0x100522549\njnz     short loc_10052256D                                            ; +0x10d, 0x10052254d\ntest    r12b, r12b                                                     ; +0x10f, 0x10052254f\njz      short loc_10052257B                                            ; +0x112, 0x100522552\nmov     rdi, rbx                                                       ; +0x114, 0x100522554\ncall    cocos2d__CCObject__autorelease                                 ; +0x117, 0x100522557\njmp     short loc_100522586                                            ; +0x11c, 0x10052255c\nmov     rdi, qword ptr [rbp+var_40.__r_.__value_+10h]; __p             ; +0x11e, 0x10052255e\ncall    __ZdlPv; operator delete(void *)                               ; +0x122, 0x100522562\ntest    byte ptr [rbp+__str.__r_.__value_], 1                          ; +0x127, 0x100522567\njz      short loc_10052254F                                            ; +0x12b, 0x10052256b\nmov     rdi, qword ptr [rbp+__str.__r_.__value_+10h]; __p              ; +0x12d, 0x10052256d\ncall    __ZdlPv; operator delete(void *)                               ; +0x131, 0x100522571\ntest    r12b, r12b                                                     ; +0x136, 0x100522576\njnz     short loc_100522554                                            ; +0x139, 0x100522579\nmov     rax, [rbx]                                                     ; +0x13b, 0x10052257b\nmov     rdi, rbx                                                       ; +0x13e, 0x10052257e\ncall    qword ptr [rax+10h]                                            ; +0x141, 0x100522581\nxor     ebx, ebx                                                       ; +0x144, 0x100522584\nmov     rax, rbx                                                       ; +0x146, 0x100522586\nadd     rsp, 38h                                                       ; +0x149, 0x100522589\npop     rbx                                                            ; +0x14d, 0x10052258d\npop     r12                                                            ; +0x14e, 0x10052258e\npop     r13                                                            ; +0x150, 0x100522590\npop     r14                                                            ; +0x152, 0x100522592\npop     r15                                                            ; +0x154, 0x100522594\npop     rbp                                                            ; +0x156, 0x100522596\nretn                                                                   ; +0x157, 0x100522597", "xrefs": ["GJAccountManager::handleItDelayed @ 0x10009e39d", "GameLevelManager::handleItDelayed @ 0x10051c41d", "MusicDownloadManager::handleItDelayed @ 0x10064a6cd", "GJMultiplayerManager::handleItDelayed @ 0x100738bad"], "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"}