{"type": "func", "start": 4295612016, "end": 4295612410, "name": "GJAccountManager::ProcessHttpRequest", "pseudocode": "// \n// GJAccountManager::ProcessHttpRequest from 0x10009d670 to 0x10009d7fa (394 bytes)\n// \n// 8 xrefs:\n// > GJAccountManager::registerAccount @ 0x1000a07a6\n// > GJAccountManager::openRegister @ 0x1000a0b96\n// > GJAccountManager::loginAccount @ 0x1000a0fa5\n// > GJAccountManager::getAccountBackupURL @ 0x1000a16f4\n// > GJAccountManager::backupAccount @ 0x1000a1b0f\n// > GJAccountManager::getAccountSyncURL @ 0x1000a1f95\n// > GJAccountManager::syncAccount @ 0x1000a2248\n// > GJAccountManager::updateAccountSettings @ 0x1000a2a9f\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:20:12 +0000\n// \n\n__int64 __fastcall GJAccountManager::ProcessHttpRequest(__int64 a1, __int64 a2, __int64 a3, __int64 a4, int a5)\n{\n  char *v7; // rbx\n  const std::string::value_type *v8; // r14\n  const char *v9; // r12\n  int v10; // eax\n  const std::string::value_type *v11; // r15\n  __int64 Instance; // rax\n\n  v7 = (char *)operator new(0xD8u);\n  cocos2d::CCObject::CCObject(v7);\n  *(_QWORD *)v7 = off_100B6FB70;\n  *(_OWORD *)(v7 + 168) = 0;\n  *((_QWORD *)v7 + 23) = 0;\n  *((_OWORD *)v7 + 4) = 0;\n  *((_OWORD *)v7 + 5) = 0;\n  *((_OWORD *)v7 + 6) = 0;\n  *((_OWORD *)v7 + 7) = 0;\n  *((_QWORD *)v7 + 16) = 0;\n  *((_DWORD *)v7 + 14) = 5;\n  *((_DWORD *)v7 + 48) = 0;\n  v7[196] = 0;\n  *((_QWORD *)v7 + 25) = 0;\n  *((_DWORD *)v7 + 52) = 0;\n  *(_OWORD *)(v7 + 136) = 0;\n  *(_OWORD *)(v7 + 152) = 0;\n  if ( (*(_BYTE *)a2 & 1) != 0 )\n    v8 = *(const std::string::value_type **)(a2 + 16);\n  else\n    v8 = (const std::string::value_type *)(a2 + 1);\n  std::string::assign((std::string *)(v7 + 64), v8);\n  *((_DWORD *)v7 + 14) = 1;\n  *((_QWORD *)v7 + 17) = a1;\n  *((_QWORD *)v7 + 18) = GJAccountManager::onProcessHttpRequestCompleted;\n  *((_QWORD *)v7 + 19) = 0;\n  if ( a1 )\n    cocos2d::CCObject::retain(a1);\n  if ( (a5 & 0xFFFFFFFE) == 0x16 )\n    *((_DWORD *)v7 + 51) = 600;\n  if ( (*(_BYTE *)a3 & 1) != 0 )\n    v9 = *(const char **)(a3 + 16);\n  else\n    v9 = (const char *)(a3 + 1);\n  v10 = strlen(v9);\n  sub_1000A30A0(v7 + 88, v9, &v9[v10]);\n  if ( (*(_BYTE *)a4 & 1) != 0 )\n    v11 = *(const std::string::value_type **)(a4 + 16);\n  else\n    v11 = (const std::string::value_type *)(a4 + 1);\n  std::string::assign((std::string *)(v7 + 112), v11);\n  *((_DWORD *)v7 + 48) = a5;\n  Instance = cocos2d::extension::CCHttpClient::getInstance(v7 + 112);\n  cocos2d::extension::CCHttpClient::send(Instance, v7);\n  return cocos2d::CCObject::release(v7);\n}", "assembly": "; \n; GJAccountManager::ProcessHttpRequest from 0x10009d670 to 0x10009d7fa (394 bytes)\n; \n; 8 xrefs:\n; > GJAccountManager::registerAccount @ 0x1000a07a6\n; > GJAccountManager::openRegister @ 0x1000a0b96\n; > GJAccountManager::loginAccount @ 0x1000a0fa5\n; > GJAccountManager::getAccountBackupURL @ 0x1000a16f4\n; > GJAccountManager::backupAccount @ 0x1000a1b0f\n; > GJAccountManager::getAccountSyncURL @ 0x1000a1f95\n; > GJAccountManager::syncAccount @ 0x1000a2248\n; > GJAccountManager::updateAccountSettings @ 0x1000a2a9f\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:20:12 +0000\n; \npush    rbp                                                            ; +0x0, 0x10009d670\nmov     rbp, rsp                                                       ; +0x1, 0x10009d671\npush    r15                                                            ; +0x4, 0x10009d674\npush    r14                                                            ; +0x6, 0x10009d676\npush    r13                                                            ; +0x8, 0x10009d678\npush    r12                                                            ; +0xa, 0x10009d67a\npush    rbx                                                            ; +0xc, 0x10009d67c\npush    rax                                                            ; +0xd, 0x10009d67d\nmov     [rbp+var_2C], r8d                                              ; +0xe, 0x10009d67e\nmov     r15, rcx                                                       ; +0x12, 0x10009d682\nmov     r12, rdx                                                       ; +0x15, 0x10009d685\nmov     r14, rsi                                                       ; +0x18, 0x10009d688\nmov     r13, rdi                                                       ; +0x1b, 0x10009d68b\nmov     edi, 0D8h; __sz                                                ; +0x1e, 0x10009d68e\ncall    __Znwm; operator new(ulong)                                    ; +0x23, 0x10009d693\nmov     rbx, rax                                                       ; +0x28, 0x10009d698\nmov     rdi, rax                                                       ; +0x2b, 0x10009d69b\ncall    cocos2d__CCObject__CCObject                                    ; +0x2e, 0x10009d69e\nlea     rax, _ZTVN7cocos2d9extension13CCHttpRequestE; `vtable for'cocos2d::extension::CCHttpRequest ; +0x33, 0x10009d6a3\nadd     rax, 10h                                                       ; +0x3a, 0x10009d6aa\nmov     [rbx], rax                                                     ; +0x3e, 0x10009d6ae\nlea     rdi, [rbx+40h]; this                                           ; +0x41, 0x10009d6b1\nxorps   xmm0, xmm0                                                     ; +0x45, 0x10009d6b5\nmovups  xmmword ptr [rbx+0A8h], xmm0                                   ; +0x48, 0x10009d6b8\nmov     qword ptr [rbx+0B8h], 0                                        ; +0x4f, 0x10009d6bf\nmovups  xmmword ptr [rbx+40h], xmm0                                    ; +0x5a, 0x10009d6ca\nmovups  xmmword ptr [rbx+50h], xmm0                                    ; +0x5e, 0x10009d6ce\nmovups  xmmword ptr [rbx+60h], xmm0                                    ; +0x62, 0x10009d6d2\nmovups  xmmword ptr [rbx+70h], xmm0                                    ; +0x66, 0x10009d6d6\nmov     qword ptr [rbx+80h], 0                                         ; +0x6a, 0x10009d6da\nmov     dword ptr [rbx+38h], 5                                         ; +0x75, 0x10009d6e5\nmov     dword ptr [rbx+0C0h], 0                                        ; +0x7c, 0x10009d6ec\nmov     byte ptr [rbx+0C4h], 0                                         ; +0x86, 0x10009d6f6\nmov     qword ptr [rbx+0C8h], 0                                        ; +0x8d, 0x10009d6fd\nmov     dword ptr [rbx+0D0h], 0                                        ; +0x98, 0x10009d708\nmovups  xmmword ptr [rbx+88h], xmm0                                    ; +0xa2, 0x10009d712\nmovups  xmmword ptr [rbx+98h], xmm0                                    ; +0xa9, 0x10009d719\ntest    byte ptr [r14], 1                                              ; +0xb0, 0x10009d720\njnz     short loc_10009D72B                                            ; +0xb4, 0x10009d724\ninc     r14                                                            ; +0xb6, 0x10009d726\njmp     short loc_10009D72F                                            ; +0xb9, 0x10009d729\nmov     r14, [r14+10h]                                                 ; +0xbb, 0x10009d72b\nmov     rsi, r14; __s                                                  ; +0xbf, 0x10009d72f\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0xc2, 0x10009d732\nmov     dword ptr [rbx+38h], 1                                         ; +0xc7, 0x10009d737\nmov     [rbx+88h], r13                                                 ; +0xce, 0x10009d73e\nlea     rax, GJAccountManager__onProcessHttpRequestCompleted           ; +0xd5, 0x10009d745\nmov     [rbx+90h], rax                                                 ; +0xdc, 0x10009d74c\nmov     qword ptr [rbx+98h], 0                                         ; +0xe3, 0x10009d753\ntest    r13, r13                                                       ; +0xee, 0x10009d75e\njz      short loc_10009D76B                                            ; +0xf1, 0x10009d761\nmov     rdi, r13                                                       ; +0xf3, 0x10009d763\ncall    cocos2d__CCObject__retain                                      ; +0xf6, 0x10009d766\nmov     r14d, [rbp+var_2C]                                             ; +0xfb, 0x10009d76b\nmov     eax, r14d                                                      ; +0xff, 0x10009d76f\nand     eax, 0FFFFFFFEh                                                ; +0x102, 0x10009d772\ncmp     eax, 16h                                                       ; +0x105, 0x10009d775\njnz     short loc_10009D784                                            ; +0x108, 0x10009d778\nmov     dword ptr [rbx+0CCh], 258h                                     ; +0x10a, 0x10009d77a\ntest    byte ptr [r12], 1                                              ; +0x114, 0x10009d784\njnz     short loc_10009D790                                            ; +0x119, 0x10009d789\ninc     r12                                                            ; +0x11b, 0x10009d78b\njmp     short loc_10009D795                                            ; +0x11e, 0x10009d78e\nmov     r12, [r12+10h]                                                 ; +0x120, 0x10009d790\nmov     rdi, r12; __s                                                  ; +0x125, 0x10009d795\ncall    _strlen                                                        ; +0x128, 0x10009d798\nlea     rdi, [rbx+58h]                                                 ; +0x12d, 0x10009d79d\nmov     ecx, eax                                                       ; +0x131, 0x10009d7a1\nlea     rdx, [r12+rcx]                                                 ; +0x133, 0x10009d7a3\nmov     rsi, r12                                                       ; +0x137, 0x10009d7a7\ncall    sub_1000A30A0                                                  ; +0x13a, 0x10009d7aa\ntest    byte ptr [r15], 1                                              ; +0x13f, 0x10009d7af\njnz     short loc_10009D7BA                                            ; +0x143, 0x10009d7b3\ninc     r15                                                            ; +0x145, 0x10009d7b5\njmp     short loc_10009D7BE                                            ; +0x148, 0x10009d7b8\nmov     r15, [r15+10h]                                                 ; +0x14a, 0x10009d7ba\nmov     rdi, rbx                                                       ; +0x14e, 0x10009d7be\nadd     rdi, 70h ; 'p'; this                                           ; +0x151, 0x10009d7c1\nmov     rsi, r15; __s                                                  ; +0x155, 0x10009d7c5\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0x158, 0x10009d7c8\nmov     [rbx+0C0h], r14d                                               ; +0x15d, 0x10009d7cd\ncall    cocos2d__extension__CCHttpClient__getInstance                  ; +0x164, 0x10009d7d4\nmov     rdi, rax                                                       ; +0x169, 0x10009d7d9\nmov     rsi, rbx                                                       ; +0x16c, 0x10009d7dc\ncall    cocos2d__extension__CCHttpClient__send                         ; +0x16f, 0x10009d7df\nmov     rdi, rbx                                                       ; +0x174, 0x10009d7e4\nadd     rsp, 8                                                         ; +0x177, 0x10009d7e7\npop     rbx                                                            ; +0x17b, 0x10009d7eb\npop     r12                                                            ; +0x17c, 0x10009d7ec\npop     r13                                                            ; +0x17e, 0x10009d7ee\npop     r14                                                            ; +0x180, 0x10009d7f0\npop     r15                                                            ; +0x182, 0x10009d7f2\npop     rbp                                                            ; +0x184, 0x10009d7f4\njmp     cocos2d__CCObject__release                                     ; +0x185, 0x10009d7f5", "xrefs": ["GJAccountManager::registerAccount @ 0x1000a07a6", "GJAccountManager::openRegister @ 0x1000a0b96", "GJAccountManager::loginAccount @ 0x1000a0fa5", "GJAccountManager::getAccountBackupURL @ 0x1000a16f4", "GJAccountManager::backupAccount @ 0x1000a1b0f", "GJAccountManager::getAccountSyncURL @ 0x1000a1f95", "GJAccountManager::syncAccount @ 0x1000a2248", "GJAccountManager::updateAccountSettings @ 0x1000a2a9f"], "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"}