{"type": "func", "start": 4295815696, "end": 4295816090, "name": "GJAccountManager::ProcessHttpRequest", "pseudocode": "// \n// GJAccountManager::ProcessHttpRequest from 0x1000cf210 to 0x1000cf39a (394 bytes)\n// \n// 7 xrefs:\n// > GJAccountManager::registerAccount @ 0x1000d20df\n// > GJAccountManager::loginAccount @ 0x1000d24b5\n// > GJAccountManager::getAccountBackupURL @ 0x1000d2c04\n// > GJAccountManager::backupAccount @ 0x1000d3007\n// > GJAccountManager::getAccountSyncURL @ 0x1000d3495\n// > GJAccountManager::syncAccount @ 0x1000d3748\n// > GJAccountManager::updateAccountSettings @ 0x1000d3e29\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::ProcessHttpRequest(cocos2d::CCObject *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  cocos2d::extension::CCHttpClient *Instance; // rax\n\n  v7 = (char *)operator new(0xD8u);\n  cocos2d::CCObject::CCObject(v7);\n  *(_QWORD *)v7 = off_1008B9708;\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) == 0x14 )\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_1000D4430(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();\n  cocos2d::extension::CCHttpClient::send(Instance, (cocos2d::extension::CCHttpRequest *)v7);\n  cocos2d::CCObject::release((cocos2d::CCObject *)v7);\n}", "assembly": "; \n; GJAccountManager::ProcessHttpRequest from 0x1000cf210 to 0x1000cf39a (394 bytes)\n; \n; 7 xrefs:\n; > GJAccountManager::registerAccount @ 0x1000d20df\n; > GJAccountManager::loginAccount @ 0x1000d24b5\n; > GJAccountManager::getAccountBackupURL @ 0x1000d2c04\n; > GJAccountManager::backupAccount @ 0x1000d3007\n; > GJAccountManager::getAccountSyncURL @ 0x1000d3495\n; > GJAccountManager::syncAccount @ 0x1000d3748\n; > GJAccountManager::updateAccountSettings @ 0x1000d3e29\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, 0x1000cf210\nmov     rbp, rsp                                                       ; +0x1, 0x1000cf211\npush    r15                                                            ; +0x4, 0x1000cf214\npush    r14                                                            ; +0x6, 0x1000cf216\npush    r13                                                            ; +0x8, 0x1000cf218\npush    r12                                                            ; +0xa, 0x1000cf21a\npush    rbx                                                            ; +0xc, 0x1000cf21c\npush    rax                                                            ; +0xd, 0x1000cf21d\nmov     [rbp+var_2C], r8d                                              ; +0xe, 0x1000cf21e\nmov     r15, rcx                                                       ; +0x12, 0x1000cf222\nmov     r12, rdx                                                       ; +0x15, 0x1000cf225\nmov     r14, rsi                                                       ; +0x18, 0x1000cf228\nmov     r13, rdi                                                       ; +0x1b, 0x1000cf22b\nmov     edi, 0D8h; __sz                                                ; +0x1e, 0x1000cf22e\ncall    __Znwm; operator new(ulong)                                    ; +0x23, 0x1000cf233\nmov     rbx, rax                                                       ; +0x28, 0x1000cf238\nmov     rdi, rax                                                       ; +0x2b, 0x1000cf23b\ncall    cocos2d__CCObject__CCObject                                    ; +0x2e, 0x1000cf23e\nlea     rax, _ZTVN7cocos2d9extension13CCHttpRequestE; `vtable for'cocos2d::extension::CCHttpRequest ; +0x33, 0x1000cf243\nadd     rax, 10h                                                       ; +0x3a, 0x1000cf24a\nmov     [rbx], rax                                                     ; +0x3e, 0x1000cf24e\nlea     rdi, [rbx+40h]; this                                           ; +0x41, 0x1000cf251\nxorps   xmm0, xmm0                                                     ; +0x45, 0x1000cf255\nmovups  xmmword ptr [rbx+0A8h], xmm0                                   ; +0x48, 0x1000cf258\nmov     qword ptr [rbx+0B8h], 0                                        ; +0x4f, 0x1000cf25f\nmovups  xmmword ptr [rbx+40h], xmm0                                    ; +0x5a, 0x1000cf26a\nmovups  xmmword ptr [rbx+50h], xmm0                                    ; +0x5e, 0x1000cf26e\nmovups  xmmword ptr [rbx+60h], xmm0                                    ; +0x62, 0x1000cf272\nmovups  xmmword ptr [rbx+70h], xmm0                                    ; +0x66, 0x1000cf276\nmov     qword ptr [rbx+80h], 0                                         ; +0x6a, 0x1000cf27a\nmov     dword ptr [rbx+38h], 5                                         ; +0x75, 0x1000cf285\nmov     dword ptr [rbx+0C0h], 0                                        ; +0x7c, 0x1000cf28c\nmov     byte ptr [rbx+0C4h], 0                                         ; +0x86, 0x1000cf296\nmov     qword ptr [rbx+0C8h], 0                                        ; +0x8d, 0x1000cf29d\nmov     dword ptr [rbx+0D0h], 0                                        ; +0x98, 0x1000cf2a8\nmovups  xmmword ptr [rbx+88h], xmm0                                    ; +0xa2, 0x1000cf2b2\nmovups  xmmword ptr [rbx+98h], xmm0                                    ; +0xa9, 0x1000cf2b9\ntest    byte ptr [r14], 1                                              ; +0xb0, 0x1000cf2c0\njnz     short loc_1000CF2CB                                            ; +0xb4, 0x1000cf2c4\ninc     r14                                                            ; +0xb6, 0x1000cf2c6\njmp     short loc_1000CF2CF                                            ; +0xb9, 0x1000cf2c9\nmov     r14, [r14+10h]                                                 ; +0xbb, 0x1000cf2cb\nmov     rsi, r14; __s                                                  ; +0xbf, 0x1000cf2cf\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0xc2, 0x1000cf2d2\nmov     dword ptr [rbx+38h], 1                                         ; +0xc7, 0x1000cf2d7\nmov     [rbx+88h], r13                                                 ; +0xce, 0x1000cf2de\nlea     rax, GJAccountManager__onProcessHttpRequestCompleted           ; +0xd5, 0x1000cf2e5\nmov     [rbx+90h], rax                                                 ; +0xdc, 0x1000cf2ec\nmov     qword ptr [rbx+98h], 0                                         ; +0xe3, 0x1000cf2f3\ntest    r13, r13                                                       ; +0xee, 0x1000cf2fe\njz      short loc_1000CF30B                                            ; +0xf1, 0x1000cf301\nmov     rdi, r13                                                       ; +0xf3, 0x1000cf303\ncall    cocos2d__CCObject__retain                                      ; +0xf6, 0x1000cf306\nmov     r14d, [rbp+var_2C]                                             ; +0xfb, 0x1000cf30b\nmov     eax, r14d                                                      ; +0xff, 0x1000cf30f\nand     eax, 0FFFFFFFEh                                                ; +0x102, 0x1000cf312\ncmp     eax, 14h                                                       ; +0x105, 0x1000cf315\njnz     short loc_1000CF324                                            ; +0x108, 0x1000cf318\nmov     dword ptr [rbx+0CCh], 258h                                     ; +0x10a, 0x1000cf31a\ntest    byte ptr [r12], 1                                              ; +0x114, 0x1000cf324\njnz     short loc_1000CF330                                            ; +0x119, 0x1000cf329\ninc     r12                                                            ; +0x11b, 0x1000cf32b\njmp     short loc_1000CF335                                            ; +0x11e, 0x1000cf32e\nmov     r12, [r12+10h]                                                 ; +0x120, 0x1000cf330\nmov     rdi, r12; __s                                                  ; +0x125, 0x1000cf335\ncall    _strlen                                                        ; +0x128, 0x1000cf338\nlea     rdi, [rbx+58h]                                                 ; +0x12d, 0x1000cf33d\nmov     ecx, eax                                                       ; +0x131, 0x1000cf341\nlea     rdx, [r12+rcx]                                                 ; +0x133, 0x1000cf343\nmov     rsi, r12                                                       ; +0x137, 0x1000cf347\ncall    sub_1000D4430                                                  ; +0x13a, 0x1000cf34a\ntest    byte ptr [r15], 1                                              ; +0x13f, 0x1000cf34f\njnz     short loc_1000CF35A                                            ; +0x143, 0x1000cf353\ninc     r15                                                            ; +0x145, 0x1000cf355\njmp     short loc_1000CF35E                                            ; +0x148, 0x1000cf358\nmov     r15, [r15+10h]                                                 ; +0x14a, 0x1000cf35a\nmov     rdi, rbx                                                       ; +0x14e, 0x1000cf35e\nadd     rdi, 70h ; 'p'; this                                           ; +0x151, 0x1000cf361\nmov     rsi, r15; __s                                                  ; +0x155, 0x1000cf365\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0x158, 0x1000cf368\nmov     [rbx+0C0h], r14d                                               ; +0x15d, 0x1000cf36d\ncall    cocos2d__extension__CCHttpClient__getInstance                  ; +0x164, 0x1000cf374\nmov     rdi, rax                                                       ; +0x169, 0x1000cf379\nmov     rsi, rbx                                                       ; +0x16c, 0x1000cf37c\ncall    cocos2d__extension__CCHttpClient__send                         ; +0x16f, 0x1000cf37f\nmov     rdi, rbx                                                       ; +0x174, 0x1000cf384\nadd     rsp, 8                                                         ; +0x177, 0x1000cf387\npop     rbx                                                            ; +0x17b, 0x1000cf38b\npop     r12                                                            ; +0x17c, 0x1000cf38c\npop     r13                                                            ; +0x17e, 0x1000cf38e\npop     r14                                                            ; +0x180, 0x1000cf390\npop     r15                                                            ; +0x182, 0x1000cf392\npop     rbp                                                            ; +0x184, 0x1000cf394\njmp     cocos2d__CCObject__release                                     ; +0x185, 0x1000cf395", "xrefs": ["GJAccountManager::registerAccount @ 0x1000d20df", "GJAccountManager::loginAccount @ 0x1000d24b5", "GJAccountManager::getAccountBackupURL @ 0x1000d2c04", "GJAccountManager::backupAccount @ 0x1000d3007", "GJAccountManager::getAccountSyncURL @ 0x1000d3495", "GJAccountManager::syncAccount @ 0x1000d3748", "GJAccountManager::updateAccountSettings @ 0x1000d3e29"], "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"}