{"type": "func", "start": 5370807968, "end": 5370808682, "name": "GJAccountManager::registerAccount", "pseudocode": "// \n// GJAccountManager::registerAccount from 0x1402006a0 to 0x14020096a (714 bytes)\n// \n// 3 xrefs:\n// > AccountRegisterLayer::onSubmit @ 0x14007a9f0\n// > <???> @ 0x1406ccac8\n// > <???> @ 0x1406ccad4\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=6\nchar __fastcall GJAccountManager::registerAccount(GJAccountManager *a1, const char *a2, const char *a3, const char *a4)\n{\n  __int64 v8; // r14\n  void *v9; // rcx\n  const char *v11; // r12\n  const char *v12; // r14\n  const char *v13; // r15\n  cocos2d::CCString *v14; // rax\n  const char *CString; // rax\n  cocos2d::CCString *v16; // rax\n  const char *v17; // rdx\n  size_t v18; // r8\n  char v19[16]; // [rsp+40h] [rbp-89h] BYREF\n  __int64 v20; // [rsp+50h] [rbp-79h]\n  __int64 v21; // [rsp+58h] [rbp-71h]\n  __int128 v22; // [rsp+60h] [rbp-69h] BYREF\n  __int64 v23; // [rsp+70h] [rbp-59h]\n  __int64 v24; // [rsp+78h] [rbp-51h]\n  char *v25; // [rsp+80h] [rbp-49h]\n  __int128 *v26; // [rsp+88h] [rbp-41h]\n  const char *v27; // [rsp+98h] [rbp-31h]\n  const char *v28; // [rsp+A0h] [rbp-29h]\n  const char *v29; // [rsp+A8h] [rbp-21h]\n  void *Block[2]; // [rsp+B0h] [rbp-19h] BYREF\n  __int128 v31; // [rsp+C0h] [rbp-9h]\n\n  v27 = a2;\n  v28 = a3;\n  v29 = a4;\n  *(_OWORD *)Block = 0;\n  v31 = 0;\n  sub_14003A930(Block, \"reg_account\", 0xBu);\n  v8 = cocos2d::CCDictionary::objectForKey(a1->m_activeDownloads, Block);\n  if ( *((_QWORD *)&v31 + 1) > 0xFu )\n  {\n    v9 = Block[0];\n    if ( (unsigned __int64)(*((_QWORD *)&v31 + 1) + 1LL) >= 0x1000 )\n    {\n      v9 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v9 - 8) > 0x1F )\n        invalid_parameter_noinfo_noreturn();\n    }\n    j_j_free(v9);\n  }\n  if ( v8 )\n  {\n    sub_14003A830((__int64)a2);\n    sub_14003A830((__int64)a3);\n    sub_14003A830((__int64)a4);\n    return 0;\n  }\n  else\n  {\n    GJAccountManager::addDLToActive(a1, \"reg_account\");\n    v11 = a4;\n    if ( *((_QWORD *)a4 + 3) > 0xFu )\n      v11 = *(const char **)a4;\n    v12 = a3;\n    if ( *((_QWORD *)a3 + 3) > 0xFu )\n      v12 = *(const char **)a3;\n    v13 = a2;\n    if ( *((_QWORD *)a2 + 3) > 0xFu )\n      v13 = *(const char **)a2;\n    v14 = cocos2d::CCString::createWithFormat(\"%c%s%s%c%c%s\", 87, \"mfv\", \"3899\", 103, 99, \"9\");\n    CString = cocos2d::CCString::getCString(v14);\n    v16 = cocos2d::CCString::createWithFormat(\"userName=%s&password=%s&email=%s&secret=%s\", v13, v12, v11, CString);\n    v17 = cocos2d::CCString::getCString(v16);\n    v25 = v19;\n    v26 = &v22;\n    v20 = 15;\n    v21 = 15;\n    strcpy(v19, \"RegisterAccount\");\n    v22 = 0;\n    v23 = 0;\n    v24 = 0;\n    v18 = -1;\n    do\n      ++v18;\n    while ( v17[v18] );\n    sub_14003A930(&v22, v17, v18);\n    *(_OWORD *)Block = 0;\n    *(_QWORD *)&v31 = 0;\n    *((_QWORD *)&v31 + 1) = 15;\n    Block[0] = sub_14003AA10(0x50u);\n    *(_QWORD *)&v31 = 65;\n    *((_QWORD *)&v31 + 1) = 79;\n    strcpy((char *)Block[0], \"https://www.boomlings.com/database/accounts/registerGJAccount.php\");\n    GJAccountManager::ProcessHttpRequest(a1, (const char *)Block, (const char *)&v22, v19, 22);\n    sub_14003A830((__int64)a2);\n    sub_14003A830((__int64)a3);\n    sub_14003A830((__int64)a4);\n    return 1;\n  }\n}", "assembly": "; \n; GJAccountManager::registerAccount from 0x1402006a0 to 0x14020096a (714 bytes)\n; \n; 3 xrefs:\n; > AccountRegisterLayer::onSubmit @ 0x14007a9f0\n; > <???> @ 0x1406ccac8\n; > <???> @ 0x1406ccad4\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, 0x1402006a0\npush    rbx                                                            ; +0x2, 0x1402006a2\npush    rsi                                                            ; +0x3, 0x1402006a3\npush    rdi                                                            ; +0x4, 0x1402006a4\npush    r12                                                            ; +0x5, 0x1402006a5\npush    r13                                                            ; +0x7, 0x1402006a7\npush    r14                                                            ; +0x9, 0x1402006a9\npush    r15                                                            ; +0xb, 0x1402006ab\nlea     rbp, [rsp-1Fh]                                                 ; +0xd, 0x1402006ad\nsub     rsp, 0E8h                                                      ; +0x12, 0x1402006b2\nmov     rax, cs:__security_cookie                                      ; +0x19, 0x1402006b9\nxor     rax, rsp                                                       ; +0x20, 0x1402006c0\nmov     [rbp+57h+var_50], rax                                          ; +0x23, 0x1402006c3\nmov     rsi, r9                                                        ; +0x27, 0x1402006c7\nmov     rbx, r8                                                        ; +0x2a, 0x1402006ca\nmov     rdi, rdx                                                       ; +0x2d, 0x1402006cd\nmov     r13, rcx                                                       ; +0x30, 0x1402006d0\nmov     [rbp+57h+var_88], rdx                                          ; +0x33, 0x1402006d3\nmov     [rbp+57h+var_80], rbx                                          ; +0x37, 0x1402006d7\nmov     [rbp+57h+var_78], r9                                           ; +0x3b, 0x1402006db\nxorps   xmm0, xmm0                                                     ; +0x3f, 0x1402006df\nmovups  xmmword ptr [rbp+57h+Block], xmm0                              ; +0x42, 0x1402006e2\nxorps   xmm1, xmm1                                                     ; +0x46, 0x1402006e6\nmovdqu  [rbp+57h+var_60], xmm1                                         ; +0x49, 0x1402006e9\nmov     r8d, 0Bh                                                       ; +0x4e, 0x1402006ee\nlea     rdx, aRegAccount; \"reg_account\"                                ; +0x54, 0x1402006f4\nlea     rcx, [rbp+57h+Block]                                           ; +0x5b, 0x1402006fb\ncall    sub_14003A930                                                  ; +0x5f, 0x1402006ff\nnop                                                                    ; +0x64, 0x140200704\nlea     rdx, [rbp+57h+Block]                                           ; +0x65, 0x140200705\nmov     rcx, [r13+140h]                                                ; +0x69, 0x140200709\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::objectForKey(std::string const &) ; +0x70, 0x140200710\nmov     r14, rax                                                       ; +0x76, 0x140200716\nmov     rdx, qword ptr [rbp+57h+var_60+8]                              ; +0x79, 0x140200719\ncmp     rdx, 0Fh                                                       ; +0x7d, 0x14020071d\njbe     short loc_140200757                                            ; +0x81, 0x140200721\ninc     rdx                                                            ; +0x83, 0x140200723\nmov     rcx, [rbp+57h+Block]; Block                                    ; +0x86, 0x140200726\nmov     rax, rcx                                                       ; +0x8a, 0x14020072a\ncmp     rdx, 1000h                                                     ; +0x8d, 0x14020072d\njb      short loc_140200752                                            ; +0x94, 0x140200734\nadd     rdx, 27h ; '''                                                 ; +0x96, 0x140200736\nmov     rcx, [rcx-8]                                                   ; +0x9a, 0x14020073a\nsub     rax, rcx                                                       ; +0x9e, 0x14020073e\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0xa1, 0x140200741\ncmp     rax, 1Fh                                                       ; +0xa5, 0x140200745\njbe     short loc_140200752                                            ; +0xa9, 0x140200749\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0xab, 0x14020074b\nalign 2                                                                ; +0xb1, 0x140200751\ncall    j_j_free                                                       ; +0xb2, 0x140200752\ntest    r14, r14                                                       ; +0xb7, 0x140200757\njz      short loc_14020077D                                            ; +0xba, 0x14020075a\nmov     rcx, rdi                                                       ; +0xbc, 0x14020075c\ncall    sub_14003A830                                                  ; +0xbf, 0x14020075f\nnop                                                                    ; +0xc4, 0x140200764\nmov     rcx, rbx                                                       ; +0xc5, 0x140200765\ncall    sub_14003A830                                                  ; +0xc8, 0x140200768\nnop                                                                    ; +0xcd, 0x14020076d\nmov     rcx, rsi                                                       ; +0xce, 0x14020076e\ncall    sub_14003A830                                                  ; +0xd1, 0x140200771\nxor     al, al                                                         ; +0xd6, 0x140200776\njmp     loc_14020094A                                                  ; +0xd8, 0x140200778\nlea     rdx, aRegAccount; \"reg_account\"                                ; +0xdd, 0x14020077d\nmov     rcx, r13                                                       ; +0xe4, 0x140200784\ncall    GJAccountManager__addDLToActive                                ; +0xe7, 0x140200787\nmov     r12, rsi                                                       ; +0xec, 0x14020078c\ncmp     qword ptr [rsi+18h], 0Fh                                       ; +0xef, 0x14020078f\njbe     short loc_140200799                                            ; +0xf4, 0x140200794\nmov     r12, [rsi]                                                     ; +0xf6, 0x140200796\nmov     r14, rbx                                                       ; +0xf9, 0x140200799\ncmp     qword ptr [rbx+18h], 0Fh                                       ; +0xfc, 0x14020079c\njbe     short loc_1402007A6                                            ; +0x101, 0x1402007a1\nmov     r14, [rbx]                                                     ; +0x103, 0x1402007a3\nmov     r15, rdi                                                       ; +0x106, 0x1402007a6\ncmp     qword ptr [rdi+18h], 0Fh                                       ; +0x109, 0x1402007a9\njbe     short loc_1402007B3                                            ; +0x10e, 0x1402007ae\nmov     r15, [rdi]                                                     ; +0x110, 0x1402007b0\nlea     rax, a9; \"9\"                                                   ; +0x113, 0x1402007b3\nmov     [rsp+120h+var_F0], rax                                         ; +0x11a, 0x1402007ba\nmov     [rsp+120h+var_F8], 63h ; 'c'                                   ; +0x11f, 0x1402007bf\nmov     dword ptr [rsp+120h+var_100], 67h ; 'g'                        ; +0x127, 0x1402007c7\nlea     r9, a3899; \"3899\"                                              ; +0x12f, 0x1402007cf\nlea     r8, aMfv; \"mfv\"                                                ; +0x136, 0x1402007d6\nmov     edx, 57h ; 'W'                                                 ; +0x13d, 0x1402007dd\nlea     rcx, aCSSCCS; \"%c%s%s%c%c%s\"                                   ; +0x142, 0x1402007e2\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x149, 0x1402007e9\nmov     rcx, rax                                                       ; +0x14f, 0x1402007ef\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x152, 0x1402007f2\nmov     [rsp+120h+var_100], rax                                        ; +0x158, 0x1402007f8\nmov     r9, r12                                                        ; +0x15d, 0x1402007fd\nmov     r8, r14                                                        ; +0x160, 0x140200800\nmov     rdx, r15                                                       ; +0x163, 0x140200803\nlea     rcx, aUsernameSPassw; \"userName=%s&password=%s&email=%s&secret\"... ; +0x166, 0x140200806\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x16d, 0x14020080d\nmov     rcx, rax                                                       ; +0x173, 0x140200813\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x176, 0x140200816\nmov     rdx, rax                                                       ; +0x17c, 0x14020081c\nlea     rax, [rsp+120h+var_E0]                                         ; +0x17f, 0x14020081f\nmov     [rbp+57h+var_A0], rax                                          ; +0x184, 0x140200824\nlea     rax, [rbp+57h+var_C0]                                          ; +0x188, 0x140200828\nmov     [rbp+57h+var_98], rax                                          ; +0x18c, 0x14020082c\nmov     [rbp+57h+var_D0], 0Fh                                          ; +0x190, 0x140200830\nmov     [rbp+57h+var_C8], 0Fh                                          ; +0x198, 0x140200838\nmovsd   xmm0, cs:qword_140565250                                       ; +0x1a0, 0x140200840\nmovsd   qword ptr [rsp+120h+var_E0], xmm0                              ; +0x1a8, 0x140200848\nmov     eax, cs:dword_140565258                                        ; +0x1ae, 0x14020084e\nmov     dword ptr [rsp+120h+var_E0+8], eax                             ; +0x1b4, 0x140200854\nmovzx   eax, cs:word_14056525C                                         ; +0x1b8, 0x140200858\nmov     word ptr [rbp+57h+var_E0+0Ch], ax                              ; +0x1bf, 0x14020085f\nmovzx   eax, cs:byte_14056525E                                         ; +0x1c3, 0x140200863\nmov     [rbp+57h+var_E0+0Eh], al                                       ; +0x1ca, 0x14020086a\nmov     [rbp+57h+var_E0+0Fh], 0                                        ; +0x1cd, 0x14020086d\nxorps   xmm0, xmm0                                                     ; +0x1d1, 0x140200871\nmovups  [rbp+57h+var_C0], xmm0                                         ; +0x1d4, 0x140200874\nxor     r14d, r14d                                                     ; +0x1d8, 0x140200878\nmov     [rbp+57h+var_B0], r14                                          ; +0x1db, 0x14020087b\nmov     [rbp+57h+var_A8], r14                                          ; +0x1df, 0x14020087f\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x1e3, 0x140200883\nnop     word ptr [rax+rax+00h]                                         ; +0x1ea, 0x14020088a\ninc     r8                                                             ; +0x1f0, 0x140200890\ncmp     [rdx+r8], r14b                                                 ; +0x1f3, 0x140200893\njnz     short loc_140200890                                            ; +0x1f7, 0x140200897\nlea     rcx, [rbp+57h+var_C0]                                          ; +0x1f9, 0x140200899\ncall    sub_14003A930                                                  ; +0x1fd, 0x14020089d\nnop                                                                    ; +0x202, 0x1402008a2\nxorps   xmm0, xmm0                                                     ; +0x203, 0x1402008a3\nmovups  xmmword ptr [rbp+57h+Block], xmm0                              ; +0x206, 0x1402008a6\nmov     qword ptr [rbp+57h+var_60], r14                                ; +0x20a, 0x1402008aa\nmov     qword ptr [rbp+57h+var_60+8], 0Fh                              ; +0x20e, 0x1402008ae\nmov     ecx, 50h ; 'P'                                                 ; +0x216, 0x1402008b6\ncall    sub_14003AA10                                                  ; +0x21b, 0x1402008bb\nmov     rdx, rax                                                       ; +0x220, 0x1402008c0\nmov     [rbp+57h+Block], rax                                           ; +0x223, 0x1402008c3\nmov     qword ptr [rbp+57h+var_60], 41h ; 'A'                          ; +0x227, 0x1402008c7\nmov     qword ptr [rbp+57h+var_60+8], 4Fh ; 'O'                        ; +0x22f, 0x1402008cf\nmovaps  xmm0, cs:xmmword_1405652E0                                     ; +0x237, 0x1402008d7\nmovups  xmmword ptr [rax], xmm0                                        ; +0x23e, 0x1402008de\nmovaps  xmm1, cs:xmmword_1405652F0                                     ; +0x241, 0x1402008e1\nmovups  xmmword ptr [rax+10h], xmm1                                    ; +0x248, 0x1402008e8\nmovaps  xmm0, cs:xmmword_140565300                                     ; +0x24c, 0x1402008ec\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0x253, 0x1402008f3\nmovaps  xmm1, cs:xmmword_140565310                                     ; +0x257, 0x1402008f7\nmovups  xmmword ptr [rax+30h], xmm1                                    ; +0x25e, 0x1402008fe\nmovzx   eax, cs:byte_140565320                                         ; +0x262, 0x140200902\nmov     [rdx+40h], al                                                  ; +0x269, 0x140200909\nmov     byte ptr [rdx+41h], 0                                          ; +0x26c, 0x14020090c\nmov     dword ptr [rsp+120h+var_100], 16h                              ; +0x270, 0x140200910\nlea     r9, [rsp+120h+var_E0]                                          ; +0x278, 0x140200918\nlea     r8, [rbp+57h+var_C0]                                           ; +0x27d, 0x14020091d\nlea     rdx, [rbp+57h+Block]                                           ; +0x281, 0x140200921\nmov     rcx, r13                                                       ; +0x285, 0x140200925\ncall    GJAccountManager__ProcessHttpRequest                           ; +0x288, 0x140200928\nnop                                                                    ; +0x28d, 0x14020092d\nmov     rcx, rdi                                                       ; +0x28e, 0x14020092e\ncall    sub_14003A830                                                  ; +0x291, 0x140200931\nnop                                                                    ; +0x296, 0x140200936\nmov     rcx, rbx                                                       ; +0x297, 0x140200937\ncall    sub_14003A830                                                  ; +0x29a, 0x14020093a\nnop                                                                    ; +0x29f, 0x14020093f\nmov     rcx, rsi                                                       ; +0x2a0, 0x140200940\ncall    sub_14003A830                                                  ; +0x2a3, 0x140200943\nmov     al, 1                                                          ; +0x2a8, 0x140200948\nmov     rcx, [rbp+57h+var_50]                                          ; +0x2aa, 0x14020094a\nxor     rcx, rsp; StackCookie                                          ; +0x2ae, 0x14020094e\ncall    __security_check_cookie                                        ; +0x2b1, 0x140200951\nadd     rsp, 0E8h                                                      ; +0x2b6, 0x140200956\npop     r15                                                            ; +0x2bd, 0x14020095d\npop     r14                                                            ; +0x2bf, 0x14020095f\npop     r13                                                            ; +0x2c1, 0x140200961\npop     r12                                                            ; +0x2c3, 0x140200963\npop     rdi                                                            ; +0x2c5, 0x140200965\npop     rsi                                                            ; +0x2c6, 0x140200966\npop     rbx                                                            ; +0x2c7, 0x140200967\npop     rbp                                                            ; +0x2c8, 0x140200968\nretn                                                                   ; +0x2c9, 0x140200969", "xrefs": ["AccountRegisterLayer::onSubmit @ 0x14007a9f0", "<???> @ 0x1406ccac8", "<???> @ 0x1406ccad4"], "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"}