{"type": "func", "start": 5370806848, "end": 5370807093, "name": "GJAccountManager::onProcessHttpRequestCompleted", "pseudocode": "// \n// GJAccountManager::onProcessHttpRequestCompleted from 0x140200240 to 0x140200335 (245 bytes)\n// \n// 2 xrefs:\n// > GJAccountManager::ProcessHttpRequest @ 0x14020016f\n// > <???> @ 0x1406ccaa4\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// Hidden C++ exception states: #wind=2\nvoid GJAccountManager::onProcessHttpRequestCompleted(\n        GJAccountManager *a1,\n        cocos2d::extension::CCHttpClient *a2,\n        cocos2d::extension::CCHttpResponse *a3)\n{\n  int v4; // esi\n  const char *Tag; // rdi\n  int Myend; // ebp\n  size_t v7; // r8\n  int v8; // eax\n  int v9; // edx\n  __int128 v10; // [rsp+30h] [rbp-88h] BYREF\n  __int64 v11; // [rsp+40h] [rbp-78h]\n  __int64 v12; // [rsp+48h] [rbp-70h]\n  __int128 *v13; // [rsp+50h] [rbp-68h]\n  _BYTE v14[32]; // [rsp+60h] [rbp-58h] BYREF\n  _BYTE v15[32]; // [rsp+80h] [rbp-38h] BYREF\n\n  v4 = (int)a1;\n  Tag = cocos2d::extension::CCHttpRequest::getTag(a3->_pHttpRequest);\n  Myend = (int)a3->_pHttpRequest->_headers._Mypair._Myval2._Myend;\n  GameToolbox::getResponse((__int64)v15, (__int64)a3);\n  v13 = &v10;\n  v10 = 0;\n  v11 = 0;\n  v12 = 0;\n  v7 = -1;\n  do\n    ++v7;\n  while ( Tag[v7] );\n  sub_14003A930(&v10, Tag, v7);\n  v8 = sub_14003BDB0((__int64)v14, (__int64)v15);\n  GJAccountManager::handleIt(v4, v9, v8, (unsigned int)&v10, Myend);\n  sub_14003A830((__int64)v15);\n}", "assembly": "; \n; GJAccountManager::onProcessHttpRequestCompleted from 0x140200240 to 0x140200335 (245 bytes)\n; \n; 2 xrefs:\n; > GJAccountManager::ProcessHttpRequest @ 0x14020016f\n; > <???> @ 0x1406ccaa4\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_0], rbx                                               ; +0x0, 0x140200240\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x140200245\nmov     [rsp+arg_18], rsi                                              ; +0xa, 0x14020024a\npush    rdi                                                            ; +0xf, 0x14020024f\nsub     rsp, 0B0h                                                      ; +0x10, 0x140200250\nmov     rax, cs:__security_cookie                                      ; +0x17, 0x140200257\nxor     rax, rsp                                                       ; +0x1e, 0x14020025e\nmov     [rsp+0B8h+var_18], rax                                         ; +0x21, 0x140200261\nmov     rbx, r8                                                        ; +0x29, 0x140200269\nmov     rsi, rcx                                                       ; +0x2c, 0x14020026c\nmov     rcx, [r8+38h]                                                  ; +0x2f, 0x14020026f\ncall    cs:?getTag@CCHttpRequest@extension@cocos2d@@QEAAPEBDXZ; cocos2d::extension::CCHttpRequest::getTag(void) ; +0x33, 0x140200273\nmov     rdi, rax                                                       ; +0x39, 0x140200279\nmov     r8, [rbx+38h]                                                  ; +0x3c, 0x14020027c\nmov     ebp, [r8+0C8h]                                                 ; +0x40, 0x140200280\nmov     rdx, rbx                                                       ; +0x47, 0x140200287\nlea     rcx, [rsp+0B8h+var_38]                                         ; +0x4a, 0x14020028a\ncall    GameToolbox__getResponse                                       ; +0x52, 0x140200292\nnop                                                                    ; +0x57, 0x140200297\nlea     rax, [rsp+0B8h+var_88]                                         ; +0x58, 0x140200298\nmov     [rsp+0B8h+var_68], rax                                         ; +0x5d, 0x14020029d\nxorps   xmm0, xmm0                                                     ; +0x62, 0x1402002a2\nmovups  [rsp+0B8h+var_88], xmm0                                        ; +0x65, 0x1402002a5\nxor     eax, eax                                                       ; +0x6a, 0x1402002aa\nmov     [rsp+0B8h+var_78], rax                                         ; +0x6c, 0x1402002ac\nmov     [rsp+0B8h+var_70], rax                                         ; +0x71, 0x1402002b1\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x76, 0x1402002b6\nnop     dword ptr [rax]                                                ; +0x7d, 0x1402002bd\ninc     r8                                                             ; +0x80, 0x1402002c0\ncmp     [rdi+r8], al                                                   ; +0x83, 0x1402002c3\njnz     short loc_1402002C0                                            ; +0x87, 0x1402002c7\nmov     rdx, rdi                                                       ; +0x89, 0x1402002c9\nlea     rcx, [rsp+0B8h+var_88]                                         ; +0x8c, 0x1402002cc\ncall    sub_14003A930                                                  ; +0x91, 0x1402002d1\nnop                                                                    ; +0x96, 0x1402002d6\nlea     rdx, [rsp+0B8h+var_38]                                         ; +0x97, 0x1402002d7\nlea     rcx, [rsp+0B8h+var_58]                                         ; +0x9f, 0x1402002df\ncall    sub_14003BDB0                                                  ; +0xa4, 0x1402002e4\nnop                                                                    ; +0xa9, 0x1402002e9\nmov     [rsp+0B8h+var_98], ebp                                         ; +0xaa, 0x1402002ea\nlea     r9, [rsp+0B8h+var_88]                                          ; +0xae, 0x1402002ee\nmov     r8, rax                                                        ; +0xb3, 0x1402002f3\nmov     rcx, rsi                                                       ; +0xb6, 0x1402002f6\ncall    GJAccountManager__handleIt                                     ; +0xb9, 0x1402002f9\nnop                                                                    ; +0xbe, 0x1402002fe\nlea     rcx, [rsp+0B8h+var_38]                                         ; +0xbf, 0x1402002ff\ncall    sub_14003A830                                                  ; +0xc7, 0x140200307\nmov     rcx, [rsp+0B8h+var_18]                                         ; +0xcc, 0x14020030c\nxor     rcx, rsp; StackCookie                                          ; +0xd4, 0x140200314\ncall    __security_check_cookie                                        ; +0xd7, 0x140200317\nlea     r11, [rsp+0B8h+var_8]                                          ; +0xdc, 0x14020031c\nmov     rbx, [r11+10h]                                                 ; +0xe4, 0x140200324\nmov     rbp, [r11+18h]                                                 ; +0xe8, 0x140200328\nmov     rsi, [r11+28h]                                                 ; +0xec, 0x14020032c\nmov     rsp, r11                                                       ; +0xf0, 0x140200330\npop     rdi                                                            ; +0xf3, 0x140200333\nretn                                                                   ; +0xf4, 0x140200334", "xrefs": ["GJAccountManager::ProcessHttpRequest @ 0x14020016f", "<???> @ 0x1406ccaa4"], "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"}