{"type": "func", "start": 5371876016, "end": 5371876350, "name": "GJAccountManager::ProcessHttpRequest", "pseudocode": "// \n// GJAccountManager::ProcessHttpRequest from 0x1403052b0 to 0x1403053fe (334 bytes)\n// \n// 9 xrefs:\n// > GJAccountManager::registerAccount @ 0x140306145\n// > GJAccountManager::openRegister @ 0x140306559\n// > GJAccountManager::loginAccount @ 0x1403069c5\n// > GJAccountManager::getAccountBackupURL @ 0x14030715e\n// > GJAccountManager::backupAccount @ 0x140307a00\n// > GJAccountManager::getAccountSyncURL @ 0x1403081d8\n// > GJAccountManager::syncAccount @ 0x140308799\n// > GJAccountManager::updateAccountSettings @ 0x140309ec9\n// > <???> @ 0x14091e518\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 11:30:09 +0000\n// \n\n// Hidden C++ exception states: #wind=4\nvoid __fastcall GJAccountManager::ProcessHttpRequest(\n        cocos2d::CCObject *a1,\n        const char *a2,\n        const char *a3,\n        const char *a4,\n        int a5)\n{\n  cocos2d::extension::CCHttpRequest *v9; // rbx\n  const char *v10; // rdx\n  const char *v11; // rax\n  const char *v12; // rdx\n  __int64 v13; // r8\n  const char *v14; // rdx\n  __int64 v15; // rdx\n  __int64 v16; // rcx\n  cocos2d::extension::CCHttpClient *Instance; // rax\n\n  v9 = (cocos2d::extension::CCHttpRequest *)operator new(0xE0u);\n  cocos2d::extension::CCHttpRequest::CCHttpRequest(v9);\n  *(_QWORD *)v9 = &cocos2d::extension::CCHttpRequest::`vftable';\n  v10 = a2;\n  if ( *((_QWORD *)a2 + 3) > 0xFu )\n    v10 = *(const char **)a2;\n  cocos2d::extension::CCHttpRequest::setUrl(v9, v10);\n  *((_DWORD *)v9 + 14) = 1;\n  *((_QWORD *)v9 + 19) = a1;\n  *((_QWORD *)v9 + 20) = GJAccountManager::onProcessHttpRequestCompleted;\n  if ( a1 )\n    cocos2d::CCObject::retain(a1);\n  if ( (unsigned int)(a5 - 22) <= 1 )\n    *((_DWORD *)v9 + 53) = 600;\n  v11 = a3;\n  if ( *((_QWORD *)a3 + 3) <= 0xFu )\n  {\n    v12 = a3;\n  }\n  else\n  {\n    v11 = *(const char **)a3;\n    v12 = *(const char **)a3;\n  }\n  v13 = -1;\n  do\n    ++v13;\n  while ( v11[v13] );\n  cocos2d::extension::CCHttpRequest::setRequestData(v9, v12, v13);\n  v14 = a4;\n  if ( *((_QWORD *)a4 + 3) > 0xFu )\n    v14 = *(const char **)a4;\n  cocos2d::extension::CCHttpRequest::setTag(v9, v14);\n  *((_DWORD *)v9 + 50) = a5;\n  Instance = (cocos2d::extension::CCHttpClient *)cocos2d::extension::CCHttpClient::getInstance(v16, v15);\n  cocos2d::extension::CCHttpClient::send(Instance, v9);\n  cocos2d::CCObject::release(v9);\n  sub_14003D310((__int64)a2);\n  sub_14003D310((__int64)a3);\n  sub_14003D310((__int64)a4);\n}", "assembly": "; \n; GJAccountManager::ProcessHttpRequest from 0x1403052b0 to 0x1403053fe (334 bytes)\n; \n; 9 xrefs:\n; > GJAccountManager::registerAccount @ 0x140306145\n; > GJAccountManager::openRegister @ 0x140306559\n; > GJAccountManager::loginAccount @ 0x1403069c5\n; > GJAccountManager::getAccountBackupURL @ 0x14030715e\n; > GJAccountManager::backupAccount @ 0x140307a00\n; > GJAccountManager::getAccountSyncURL @ 0x1403081d8\n; > GJAccountManager::syncAccount @ 0x140308799\n; > GJAccountManager::updateAccountSettings @ 0x140309ec9\n; > <???> @ 0x14091e518\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 11:30:09 +0000\n; \npush    rbx                                                            ; +0x0, 0x1403052b0\npush    rsi                                                            ; +0x2, 0x1403052b2\npush    rdi                                                            ; +0x3, 0x1403052b3\npush    r14                                                            ; +0x4, 0x1403052b4\npush    r15                                                            ; +0x6, 0x1403052b6\nsub     rsp, 50h                                                       ; +0x8, 0x1403052b8\nmov     rax, cs:__security_cookie                                      ; +0xc, 0x1403052bc\nxor     rax, rsp                                                       ; +0x13, 0x1403052c3\nmov     [rsp+78h+var_38], rax                                          ; +0x16, 0x1403052c6\nmov     r14, r9                                                        ; +0x1b, 0x1403052cb\nmov     rdi, r8                                                        ; +0x1e, 0x1403052ce\nmov     r15, rdx                                                       ; +0x21, 0x1403052d1\nmov     rsi, rcx                                                       ; +0x24, 0x1403052d4\nmov     [rsp+78h+var_50], rdx                                          ; +0x27, 0x1403052d7\nmov     [rsp+78h+var_48], r8                                           ; +0x2c, 0x1403052dc\nmov     [rsp+78h+var_40], r9                                           ; +0x31, 0x1403052e1\nmov     ecx, 0E0h; Size                                                ; +0x36, 0x1403052e6\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x3b, 0x1403052eb\nmov     rbx, rax                                                       ; +0x40, 0x1403052f0\nmov     [rsp+78h+var_58], rax                                          ; +0x43, 0x1403052f3\nmov     rcx, rax                                                       ; +0x48, 0x1403052f8\ncall    cs:??0CCHttpRequest@extension@cocos2d@@QEAA@XZ; cocos2d::extension::CCHttpRequest::CCHttpRequest(void) ; +0x4b, 0x1403052fb\nlea     rax, ??_7CCHttpRequest@extension@cocos2d@@6B@; const cocos2d::extension::CCHttpRequest::`vftable' ; +0x51, 0x140305301\nmov     [rbx], rax                                                     ; +0x58, 0x140305308\nmov     rdx, r15                                                       ; +0x5b, 0x14030530b\ncmp     qword ptr [r15+18h], 0Fh                                       ; +0x5e, 0x14030530e\njbe     short loc_140305318                                            ; +0x63, 0x140305313\nmov     rdx, [r15]                                                     ; +0x65, 0x140305315\nmov     rcx, rbx                                                       ; +0x68, 0x140305318\ncall    cs:?setUrl@CCHttpRequest@extension@cocos2d@@QEAAXPEBD@Z; cocos2d::extension::CCHttpRequest::setUrl(char const *) ; +0x6b, 0x14030531b\nmov     dword ptr [rbx+38h], 1                                         ; +0x71, 0x140305321\nmov     [rbx+98h], rsi                                                 ; +0x78, 0x140305328\nlea     rax, GJAccountManager__onProcessHttpRequestCompleted           ; +0x7f, 0x14030532f\nmov     [rbx+0A0h], rax                                                ; +0x86, 0x140305336\ntest    rsi, rsi                                                       ; +0x8d, 0x14030533d\njz      short loc_14030534B                                            ; +0x90, 0x140305340\nmov     rcx, rsi                                                       ; +0x92, 0x140305342\ncall    cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x95, 0x140305345\nmov     esi, [rsp+78h+arg_20]                                          ; +0x9b, 0x14030534b\nlea     eax, [rsi-16h]                                                 ; +0xa2, 0x140305352\ncmp     eax, 1                                                         ; +0xa5, 0x140305355\nja      short loc_140305364                                            ; +0xa8, 0x140305358\nmov     dword ptr [rbx+0D4h], 258h                                     ; +0xaa, 0x14030535a\nmov     rax, rdi                                                       ; +0xb4, 0x140305364\ncmp     qword ptr [rdi+18h], 0Fh                                       ; +0xb7, 0x140305367\njbe     short loc_140305376                                            ; +0xbc, 0x14030536c\nmov     rax, [rdi]                                                     ; +0xbe, 0x14030536e\nmov     rdx, rax                                                       ; +0xc1, 0x140305371\njmp     short loc_140305379                                            ; +0xc4, 0x140305374\nmov     rdx, rdi                                                       ; +0xc6, 0x140305376\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0xc9, 0x140305379\ninc     r8                                                             ; +0xd0, 0x140305380\ncmp     byte ptr [rax+r8], 0                                           ; +0xd3, 0x140305383\njnz     short loc_140305380                                            ; +0xd8, 0x140305388\nmov     rcx, rbx                                                       ; +0xda, 0x14030538a\ncall    cs:?setRequestData@CCHttpRequest@extension@cocos2d@@QEAAXPEBDI@Z; cocos2d::extension::CCHttpRequest::setRequestData(char const *,uint) ; +0xdd, 0x14030538d\nmov     rdx, r14                                                       ; +0xe3, 0x140305393\ncmp     qword ptr [r14+18h], 0Fh                                       ; +0xe6, 0x140305396\njbe     short loc_1403053A0                                            ; +0xeb, 0x14030539b\nmov     rdx, [r14]                                                     ; +0xed, 0x14030539d\nmov     rcx, rbx                                                       ; +0xf0, 0x1403053a0\ncall    cs:?setTag@CCHttpRequest@extension@cocos2d@@QEAAXPEBD@Z; cocos2d::extension::CCHttpRequest::setTag(char const *) ; +0xf3, 0x1403053a3\nmov     [rbx+0C8h], esi                                                ; +0xf9, 0x1403053a9\ncall    cs:?getInstance@CCHttpClient@extension@cocos2d@@SAPEAV123@XZ; cocos2d::extension::CCHttpClient::getInstance(void) ; +0xff, 0x1403053af\nmov     rcx, rax                                                       ; +0x105, 0x1403053b5\nmov     rdx, rbx                                                       ; +0x108, 0x1403053b8\ncall    cs:?send@CCHttpClient@extension@cocos2d@@QEAAXPEAVCCHttpRequest@23@@Z; cocos2d::extension::CCHttpClient::send(cocos2d::extension::CCHttpRequest *) ; +0x10b, 0x1403053bb\nmov     rcx, rbx                                                       ; +0x111, 0x1403053c1\ncall    cs:?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x114, 0x1403053c4\nnop                                                                    ; +0x11a, 0x1403053ca\nmov     rcx, r15                                                       ; +0x11b, 0x1403053cb\ncall    sub_14003D310                                                  ; +0x11e, 0x1403053ce\nnop                                                                    ; +0x123, 0x1403053d3\nmov     rcx, rdi                                                       ; +0x124, 0x1403053d4\ncall    sub_14003D310                                                  ; +0x127, 0x1403053d7\nnop                                                                    ; +0x12c, 0x1403053dc\nmov     rcx, r14                                                       ; +0x12d, 0x1403053dd\ncall    sub_14003D310                                                  ; +0x130, 0x1403053e0\nmov     rcx, [rsp+78h+var_38]                                          ; +0x135, 0x1403053e5\nxor     rcx, rsp; StackCookie                                          ; +0x13a, 0x1403053ea\ncall    __security_check_cookie                                        ; +0x13d, 0x1403053ed\nadd     rsp, 50h                                                       ; +0x142, 0x1403053f2\npop     r15                                                            ; +0x146, 0x1403053f6\npop     r14                                                            ; +0x148, 0x1403053f8\npop     rdi                                                            ; +0x14a, 0x1403053fa\npop     rsi                                                            ; +0x14b, 0x1403053fb\npop     rbx                                                            ; +0x14c, 0x1403053fc\nretn                                                                   ; +0x14d, 0x1403053fd", "xrefs": ["GJAccountManager::registerAccount @ 0x140306145", "GJAccountManager::openRegister @ 0x140306559", "GJAccountManager::loginAccount @ 0x1403069c5", "GJAccountManager::getAccountBackupURL @ 0x14030715e", "GJAccountManager::backupAccount @ 0x140307a00", "GJAccountManager::getAccountSyncURL @ 0x1403081d8", "GJAccountManager::syncAccount @ 0x140308799", "GJAccountManager::updateAccountSettings @ 0x140309ec9", "<???> @ 0x14091e518"], "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"}