{"type": "func", "start": 4295816112, "end": 4295816448, "name": "GJAccountManager::onProcessHttpRequestCompleted", "pseudocode": "// \n// GJAccountManager::onProcessHttpRequestCompleted from 0x1000cf3b0 to 0x1000cf500 (336 bytes)\n// \n// 1 xrefs:\n// > GJAccountManager::ProcessHttpRequest @ 0x1000cf2e5\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\nvoid __fastcall GJAccountManager::onProcessHttpRequestCompleted(\n        GJAccountManager *a1,\n        cocos2d::extension::CCHttpClient *a2,\n        cocos2d::extension::CCHttpResponse *a3)\n{\n  double v3; // xmm0_8\n  GJAccountManager *v4; // rbx\n  cocos2d::extension::CCHttpRequest *pHttpRequest; // rax\n  const char *longStorage; // r15\n  unsigned int requestTypeGJ; // r14d\n  size_t v8; // rax\n  size_t v9; // r12\n  char *v10; // r13\n  size_t v11; // rbx\n  __int128 v12; // [rsp+0h] [rbp-80h] BYREF\n  void *v13; // [rsp+10h] [rbp-70h]\n  __int128 v14; // [rsp+20h] [rbp-60h] BYREF\n  void *__p; // [rsp+30h] [rbp-50h]\n  _QWORD __dst[2]; // [rsp+38h] [rbp-48h] BYREF\n  void *v17; // [rsp+48h] [rbp-38h]\n  unsigned int v18; // [rsp+54h] [rbp-2Ch]\n\n  v4 = a1;\n  pHttpRequest = a3->_pHttpRequest;\n  if ( (pHttpRequest->_tag.m_data.m_short.sizex2 & 1) != 0 )\n    longStorage = pHttpRequest->_tag.m_data.m_long.longStorage;\n  else\n    longStorage = pHttpRequest->_tag.m_data.m_short.shortStorage.__elems_;\n  requestTypeGJ = pHttpRequest->_requestTypeGJ;\n  GameToolbox::getResponse(&v14, a3);\n  if ( (v14 & 1) != 0 )\n  {\n    sub_100006B70(&v12, __p, *((unsigned __int64 *)&v14 + 1), v3);\n  }\n  else\n  {\n    v13 = __p;\n    v3 = *(double *)&v14;\n    v12 = v14;\n  }\n  v8 = strlen(longStorage);\n  if ( v8 >= 0xFFFFFFFFFFFFFFF8LL )\n    sub_100006BF0(v3);\n  v9 = v8;\n  if ( v8 >= 0x17 )\n  {\n    v18 = requestTypeGJ;\n    v11 = 26;\n    if ( (v8 | 7) != 0x17 )\n      v11 = (v8 | 7) + 1;\n    v10 = (char *)operator new(v11);\n    v17 = v10;\n    __dst[0] = v11 | 1;\n    __dst[1] = v9;\n    v4 = a1;\n    requestTypeGJ = v18;\n    goto LABEL_14;\n  }\n  LOBYTE(__dst[0]) = 2 * v8;\n  v10 = (char *)__dst + 1;\n  if ( v8 )\nLABEL_14:\n    memmove(v10, longStorage, v9);\n  v10[v9] = 0;\n  GJAccountManager::handleIt(v4, 1, &v12, __dst, requestTypeGJ);\n  if ( (__dst[0] & 1) != 0 )\n  {\n    operator delete(v17);\n    if ( (v12 & 1) == 0 )\n    {\nLABEL_17:\n      if ( (v14 & 1) == 0 )\n        return;\n      goto LABEL_18;\n    }\n  }\n  else if ( (v12 & 1) == 0 )\n  {\n    goto LABEL_17;\n  }\n  operator delete(v13);\n  if ( (v14 & 1) != 0 )\nLABEL_18:\n    operator delete(__p);\n}", "assembly": "; \n; GJAccountManager::onProcessHttpRequestCompleted from 0x1000cf3b0 to 0x1000cf500 (336 bytes)\n; \n; 1 xrefs:\n; > GJAccountManager::ProcessHttpRequest @ 0x1000cf2e5\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, 0x1000cf3b0\nmov     rbp, rsp                                                       ; +0x1, 0x1000cf3b1\npush    r15                                                            ; +0x4, 0x1000cf3b4\npush    r14                                                            ; +0x6, 0x1000cf3b6\npush    r13                                                            ; +0x8, 0x1000cf3b8\npush    r12                                                            ; +0xa, 0x1000cf3ba\npush    rbx                                                            ; +0xc, 0x1000cf3bc\nsub     rsp, 58h                                                       ; +0xd, 0x1000cf3bd\nmov     rbx, rdi                                                       ; +0x11, 0x1000cf3c1\nmov     rax, [rdx+38h]                                                 ; +0x14, 0x1000cf3c4\ntest    byte ptr [rax+70h], 1                                          ; +0x18, 0x1000cf3c8\njnz     short loc_1000CF3D4                                            ; +0x1c, 0x1000cf3cc\nlea     r15, [rax+71h]                                                 ; +0x1e, 0x1000cf3ce\njmp     short loc_1000CF3DB                                            ; +0x22, 0x1000cf3d2\nmov     r15, [rax+80h]                                                 ; +0x24, 0x1000cf3d4\nmov     r14d, [rax+0C0h]                                               ; +0x2b, 0x1000cf3db\nlea     rdi, [rbp+var_60]                                              ; +0x32, 0x1000cf3e2\nmov     rsi, rdx                                                       ; +0x36, 0x1000cf3e6\ncall    GameToolbox__getResponse                                       ; +0x39, 0x1000cf3e9\ntest    byte ptr [rbp+var_60], 1                                       ; +0x3e, 0x1000cf3ee\njnz     short loc_1000CF406                                            ; +0x42, 0x1000cf3f2\nmov     rax, [rbp+__p]                                                 ; +0x44, 0x1000cf3f4\nmov     [rbp+var_70], rax                                              ; +0x48, 0x1000cf3f8\nmovups  xmm0, [rbp+var_60]                                             ; +0x4c, 0x1000cf3fc\nmovaps  [rbp+var_80], xmm0                                             ; +0x50, 0x1000cf400\njmp     short loc_1000CF417                                            ; +0x54, 0x1000cf404\nmov     rdx, qword ptr [rbp+var_60+8]                                  ; +0x56, 0x1000cf406\nmov     rsi, [rbp+__p]                                                 ; +0x5a, 0x1000cf40a\nlea     rdi, [rbp+var_80]                                              ; +0x5e, 0x1000cf40e\ncall    sub_100006B70                                                  ; +0x62, 0x1000cf412\nmov     rdi, r15; __s                                                  ; +0x67, 0x1000cf417\ncall    _strlen                                                        ; +0x6a, 0x1000cf41a\ncmp     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x6f, 0x1000cf41f\njnb     loc_1000CF4FB                                                  ; +0x73, 0x1000cf423\nmov     r12, rax                                                       ; +0x79, 0x1000cf429\ncmp     rax, 17h                                                       ; +0x7c, 0x1000cf42c\njnb     short loc_1000CF444                                            ; +0x80, 0x1000cf430\nlea     eax, [r12+r12]                                                 ; +0x82, 0x1000cf432\nmov     byte ptr [rbp+__dst], al                                       ; +0x86, 0x1000cf436\nlea     r13, [rbp+__dst+1]                                             ; +0x89, 0x1000cf439\ntest    r12, r12                                                       ; +0x8d, 0x1000cf43d\njnz     short loc_1000CF485                                            ; +0x90, 0x1000cf440\njmp     short loc_1000CF493                                            ; +0x92, 0x1000cf442\nmov     [rbp+var_2C], r14d                                             ; +0x94, 0x1000cf444\nmov     r14, rbx                                                       ; +0x98, 0x1000cf448\nmov     rax, r12                                                       ; +0x9b, 0x1000cf44b\nor      rax, 7                                                         ; +0x9e, 0x1000cf44e\nlea     rcx, [rax+1]                                                   ; +0xa2, 0x1000cf452\ncmp     rax, 17h                                                       ; +0xa6, 0x1000cf456\nmov     ebx, 1Ah                                                       ; +0xaa, 0x1000cf45a\ncmovnz  rbx, rcx                                                       ; +0xaf, 0x1000cf45f\nmov     rdi, rbx; __sz                                                 ; +0xb3, 0x1000cf463\ncall    __Znwm; operator new(ulong)                                    ; +0xb6, 0x1000cf466\nmov     r13, rax                                                       ; +0xbb, 0x1000cf46b\nmov     [rbp+var_38], rax                                              ; +0xbe, 0x1000cf46e\nor      rbx, 1                                                         ; +0xc2, 0x1000cf472\nmov     [rbp+__dst], rbx                                               ; +0xc6, 0x1000cf476\nmov     [rbp+var_40], r12                                              ; +0xca, 0x1000cf47a\nmov     rbx, r14                                                       ; +0xce, 0x1000cf47e\nmov     r14d, [rbp+var_2C]                                             ; +0xd1, 0x1000cf481\nmov     rdi, r13; __dst                                                ; +0xd5, 0x1000cf485\nmov     rsi, r15; __src                                                ; +0xd8, 0x1000cf488\nmov     rdx, r12; __len                                                ; +0xdb, 0x1000cf48b\ncall    _memmove                                                       ; +0xde, 0x1000cf48e\nmov     byte ptr [r13+r12+0], 0                                        ; +0xe3, 0x1000cf493\nlea     rdx, [rbp+var_80]                                              ; +0xe9, 0x1000cf499\nlea     rcx, [rbp+__dst]                                               ; +0xed, 0x1000cf49d\nmov     rdi, rbx                                                       ; +0xf1, 0x1000cf4a1\nmov     esi, 1                                                         ; +0xf4, 0x1000cf4a4\nmov     r8d, r14d                                                      ; +0xf9, 0x1000cf4a9\ncall    GJAccountManager__handleIt                                     ; +0xfc, 0x1000cf4ac\ntest    byte ptr [rbp+__dst], 1                                        ; +0x101, 0x1000cf4b1\njnz     short loc_1000CF4DB                                            ; +0x105, 0x1000cf4b5\ntest    byte ptr [rbp+var_80], 1                                       ; +0x107, 0x1000cf4b7\njnz     short loc_1000CF4EA                                            ; +0x10b, 0x1000cf4bb\ntest    byte ptr [rbp+var_60], 1                                       ; +0x10d, 0x1000cf4bd\njz      short loc_1000CF4CC                                            ; +0x111, 0x1000cf4c1\nmov     rdi, [rbp+__p]; __p                                            ; +0x113, 0x1000cf4c3\ncall    __ZdlPv; operator delete(void *)                               ; +0x117, 0x1000cf4c7\nadd     rsp, 58h                                                       ; +0x11c, 0x1000cf4cc\npop     rbx                                                            ; +0x120, 0x1000cf4d0\npop     r12                                                            ; +0x121, 0x1000cf4d1\npop     r13                                                            ; +0x123, 0x1000cf4d3\npop     r14                                                            ; +0x125, 0x1000cf4d5\npop     r15                                                            ; +0x127, 0x1000cf4d7\npop     rbp                                                            ; +0x129, 0x1000cf4d9\nretn                                                                   ; +0x12a, 0x1000cf4da\nmov     rdi, [rbp+var_38]; __p                                         ; +0x12b, 0x1000cf4db\ncall    __ZdlPv; operator delete(void *)                               ; +0x12f, 0x1000cf4df\ntest    byte ptr [rbp+var_80], 1                                       ; +0x134, 0x1000cf4e4\njz      short loc_1000CF4BD                                            ; +0x138, 0x1000cf4e8\nmov     rdi, [rbp+var_70]; __p                                         ; +0x13a, 0x1000cf4ea\ncall    __ZdlPv; operator delete(void *)                               ; +0x13e, 0x1000cf4ee\ntest    byte ptr [rbp+var_60], 1                                       ; +0x143, 0x1000cf4f3\njnz     short loc_1000CF4C3                                            ; +0x147, 0x1000cf4f7\njmp     short loc_1000CF4CC                                            ; +0x149, 0x1000cf4f9\ncall    sub_100006BF0                                                  ; +0x14b, 0x1000cf4fb", "xrefs": ["GJAccountManager::ProcessHttpRequest @ 0x1000cf2e5"], "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"}