{"type": "func", "start": 5371878992, "end": 5371879815, "name": "GJAccountManager::registerAccount", "pseudocode": "// \n// GJAccountManager::registerAccount from 0x140305e50 to 0x140306187 (823 bytes)\n// \n// 2 xrefs:\n// > AccountRegisterLayer::onSubmit @ 0x14008ebfe\n// > <???> @ 0x14091e560\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=9\nchar __fastcall GJAccountManager::registerAccount(cocos2d::CCObject *a1, __int64 *a2, __int64 *a3, __int64 *a4)\n{\n  __int64 v8; // rbx\n  void *v9; // r8\n  void **v11; // rbx\n  void **v12; // rdi\n  void **v13; // rax\n  const char *v14; // rsi\n  const char *v15; // r13\n  cocos2d::CCString *v16; // rax\n  const char *CString; // rax\n  cocos2d::CCString *v18; // rbx\n  const char *v19; // rdx\n  size_t v20; // r8\n  int Reserved; // [rsp+20h] [rbp-A9h]\n  int v22; // [rsp+28h] [rbp-A1h]\n  void *Block[2]; // [rsp+78h] [rbp-51h] BYREF\n  __int128 v25; // [rsp+88h] [rbp-41h]\n  void *Src[4]; // [rsp+98h] [rbp-31h] BYREF\n  __int128 v27; // [rsp+B8h] [rbp-11h] BYREF\n  __int64 v28; // [rsp+C8h] [rbp-1h]\n  __int64 v29; // [rsp+D0h] [rbp+7h]\n\n  *(_OWORD *)Block = 0;\n  v25 = 0;\n  sub_14003D230(Block, \"reg_account\", 0xBu);\n  v8 = cocos2d::CCDictionary::objectForKey(*((_QWORD *)a1 + 40), Block);\n  if ( *((_QWORD *)&v25 + 1) > 0xFu )\n  {\n    v9 = Block[0];\n    if ( (unsigned __int64)(*((_QWORD *)&v25 + 1) + 1LL) >= 0x1000 )\n    {\n      v9 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v9 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free(v9);\n  }\n  if ( v8 )\n  {\n    sub_14003D310((__int64)a2);\n    sub_14003D310((__int64)a3);\n    sub_14003D310((__int64)a4);\n    return 0;\n  }\n  else\n  {\n    GJAccountManager::addDLToActive((__int64)a1, \"reg_account\");\n    v11 = sub_140305900(Src, a4);\n    v12 = sub_140305900(Block, a3);\n    v13 = sub_140305900((void **)&v27, a2);\n    v14 = (const char *)v13;\n    v15 = (char *)a1 + 496;\n    if ( *((_QWORD *)v15 + 3) > 0xFu )\n      v15 = *(const char **)v15;\n    if ( (unsigned __int64)v11[3] > 0xF )\n      v11 = (void **)*v11;\n    if ( (unsigned __int64)v12[3] > 0xF )\n      v12 = (void **)*v12;\n    if ( (unsigned __int64)v13[3] > 0xF )\n      v14 = (const char *)*v13;\n    v22 = 99;\n    Reserved = 103;\n    v16 = cocos2d::CCString::createWithFormat(\"%c%s%s%c%c%s\", 87, \"mfv\", \"3899\", Reserved, v22, \"9\");\n    CString = cocos2d::CCString::getCString(v16);\n    v18 = cocos2d::CCString::createWithFormat(\n            \"userName=%s&password=%s&email=%s&secret=%s&rsession=%s\",\n            v14,\n            (const char *)v12,\n            (const char *)v11,\n            CString,\n            v15);\n    sub_14003D310((__int64)&v27);\n    sub_14003D310((__int64)Block);\n    sub_14003D310((__int64)Src);\n    v19 = cocos2d::CCString::getCString(v18);\n    Src[2] = (void *)15;\n    Src[3] = (void *)15;\n    strcpy((char *)Src, \"RegisterAccount\");\n    v27 = 0;\n    v28 = 0;\n    v29 = 0;\n    v20 = -1;\n    do\n      ++v20;\n    while ( v19[v20] );\n    sub_14003D230(&v27, v19, v20);\n    *(_OWORD *)Block = 0;\n    v25 = 0u;\n    Block[0] = sub_14003D460(0x50u);\n    *(_QWORD *)&v25 = 65;\n    *((_QWORD *)&v25 + 1) = 79;\n    strcpy((char *)Block[0], \"https://www.boomlings.com/database/accounts/registerGJAccount.php\");\n    GJAccountManager::ProcessHttpRequest(a1, (const char *)Block, (const char *)&v27, (const char *)Src, 24);\n    sub_14003D310((__int64)a2);\n    sub_14003D310((__int64)a3);\n    sub_14003D310((__int64)a4);\n    return 1;\n  }\n}", "assembly": "; \n; GJAccountManager::registerAccount from 0x140305e50 to 0x140306187 (823 bytes)\n; \n; 2 xrefs:\n; > AccountRegisterLayer::onSubmit @ 0x14008ebfe\n; > <???> @ 0x14091e560\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    rbp                                                            ; +0x0, 0x140305e50\npush    rbx                                                            ; +0x2, 0x140305e52\npush    rsi                                                            ; +0x3, 0x140305e53\npush    rdi                                                            ; +0x4, 0x140305e54\npush    r12                                                            ; +0x5, 0x140305e55\npush    r13                                                            ; +0x7, 0x140305e57\npush    r14                                                            ; +0x9, 0x140305e59\npush    r15                                                            ; +0xb, 0x140305e5b\nlea     rbp, [rsp-1Fh]                                                 ; +0xd, 0x140305e5d\nsub     rsp, 0E8h                                                      ; +0x12, 0x140305e62\nmov     rax, cs:__security_cookie                                      ; +0x19, 0x140305e69\nxor     rax, rsp                                                       ; +0x20, 0x140305e70\nmov     [rbp+57h+var_48], rax                                          ; +0x23, 0x140305e73\nmov     r12, r9                                                        ; +0x27, 0x140305e77\nmov     r15, r8                                                        ; +0x2a, 0x140305e7a\nmov     r14, rdx                                                       ; +0x2d, 0x140305e7d\nmov     r13, rcx                                                       ; +0x30, 0x140305e80\nmov     [rsp+120h+var_E0], rcx                                         ; +0x33, 0x140305e83\nmov     [rbp+57h+var_C0], rdx                                          ; +0x38, 0x140305e88\nmov     [rbp+57h+var_B8], r8                                           ; +0x3c, 0x140305e8c\nmov     [rbp+57h+var_B0], r9                                           ; +0x40, 0x140305e90\nxorps   xmm0, xmm0                                                     ; +0x44, 0x140305e94\nmovups  xmmword ptr [rbp+57h+Block], xmm0                              ; +0x47, 0x140305e97\nxorps   xmm1, xmm1                                                     ; +0x4b, 0x140305e9b\nmovdqu  [rbp+57h+var_98], xmm1                                         ; +0x4e, 0x140305e9e\nmov     r8d, 0Bh                                                       ; +0x53, 0x140305ea3\nlea     rdx, aRegAccount; \"reg_account\"                                ; +0x59, 0x140305ea9\nlea     rcx, [rbp+57h+Block]                                           ; +0x60, 0x140305eb0\ncall    sub_14003D230                                                  ; +0x64, 0x140305eb4\nnop                                                                    ; +0x69, 0x140305eb9\nlea     rdx, [rbp+57h+Block]                                           ; +0x6a, 0x140305eba\nmov     rcx, [r13+140h]                                                ; +0x6e, 0x140305ebe\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 &) ; +0x75, 0x140305ec5\nmov     rbx, rax                                                       ; +0x7b, 0x140305ecb\nmov     rdx, qword ptr [rbp+57h+var_98+8]                              ; +0x7e, 0x140305ece\ncmp     rdx, 0Fh                                                       ; +0x82, 0x140305ed2\njbe     short loc_140305F20                                            ; +0x86, 0x140305ed6\ninc     rdx                                                            ; +0x88, 0x140305ed8\nmov     r8, [rbp+57h+Block]                                            ; +0x8b, 0x140305edb\nmov     rcx, r8                                                        ; +0x8f, 0x140305edf\ncmp     rdx, 1000h                                                     ; +0x92, 0x140305ee2\njb      short loc_140305F18                                            ; +0x99, 0x140305ee9\nadd     rdx, 27h ; '''                                                 ; +0x9b, 0x140305eeb\nmov     r8, [r8-8]                                                     ; +0x9f, 0x140305eef\nsub     rcx, r8                                                        ; +0xa3, 0x140305ef3\nsub     rcx, 8                                                         ; +0xa6, 0x140305ef6\ncmp     rcx, 1Fh                                                       ; +0xaa, 0x140305efa\njbe     short loc_140305F18                                            ; +0xae, 0x140305efe\nxor     ebx, ebx                                                       ; +0xb0, 0x140305f00\nmov     [rsp+120h+Reserved], rbx; Reserved                             ; +0xb2, 0x140305f02\nxor     r9d, r9d; LineNo                                               ; +0xb7, 0x140305f07\nxor     r8d, r8d; FileName                                             ; +0xba, 0x140305f0a\nxor     edx, edx; FunctionName                                         ; +0xbd, 0x140305f0d\nxor     ecx, ecx; Expression                                           ; +0xbf, 0x140305f0f\ncall    cs:_invoke_watson                                              ; +0xc1, 0x140305f11\nalign 8                                                                ; +0xc7, 0x140305f17\nmov     rcx, r8; Block                                                 ; +0xc8, 0x140305f18\ncall    j_j_free                                                       ; +0xcb, 0x140305f1b\ntest    rbx, rbx                                                       ; +0xd0, 0x140305f20\njz      short loc_140305F46                                            ; +0xd3, 0x140305f23\nmov     rcx, r14                                                       ; +0xd5, 0x140305f25\ncall    sub_14003D310                                                  ; +0xd8, 0x140305f28\nnop                                                                    ; +0xdd, 0x140305f2d\nmov     rcx, r15                                                       ; +0xde, 0x140305f2e\ncall    sub_14003D310                                                  ; +0xe1, 0x140305f31\nnop                                                                    ; +0xe6, 0x140305f36\nmov     rcx, r12                                                       ; +0xe7, 0x140305f37\ncall    sub_14003D310                                                  ; +0xea, 0x140305f3a\nxor     al, al                                                         ; +0xef, 0x140305f3f\njmp     loc_140306167                                                  ; +0xf1, 0x140305f41\nlea     rdx, aRegAccount; \"reg_account\"                                ; +0xf6, 0x140305f46\nmov     rcx, r13                                                       ; +0xfd, 0x140305f4d\ncall    GJAccountManager__addDLToActive                                ; +0x100, 0x140305f50\nmov     rdx, r12                                                       ; +0x105, 0x140305f55\nlea     rcx, [rbp+57h+Src]; Src                                        ; +0x108, 0x140305f58\ncall    sub_140305900                                                  ; +0x10c, 0x140305f5c\nmov     rbx, rax                                                       ; +0x111, 0x140305f61\nmov     rdx, r15                                                       ; +0x114, 0x140305f64\nlea     rcx, [rbp+57h+Block]; Src                                      ; +0x117, 0x140305f67\ncall    sub_140305900                                                  ; +0x11b, 0x140305f6b\nmov     rdi, rax                                                       ; +0x120, 0x140305f70\nmov     rdx, r14                                                       ; +0x123, 0x140305f73\nlea     rcx, [rbp+57h+var_68]; Src                                     ; +0x126, 0x140305f76\ncall    sub_140305900                                                  ; +0x12a, 0x140305f7a\nmov     rsi, rax                                                       ; +0x12f, 0x140305f7f\nadd     r13, 1F0h                                                      ; +0x132, 0x140305f82\ncmp     qword ptr [r13+18h], 0Fh                                       ; +0x139, 0x140305f89\njbe     short loc_140305F94                                            ; +0x13e, 0x140305f8e\nmov     r13, [r13+0]                                                   ; +0x140, 0x140305f90\ncmp     qword ptr [rbx+18h], 0Fh                                       ; +0x144, 0x140305f94\njbe     short loc_140305F9E                                            ; +0x149, 0x140305f99\nmov     rbx, [rbx]                                                     ; +0x14b, 0x140305f9b\ncmp     qword ptr [rdi+18h], 0Fh                                       ; +0x14e, 0x140305f9e\njbe     short loc_140305FA8                                            ; +0x153, 0x140305fa3\nmov     rdi, [rdi]                                                     ; +0x155, 0x140305fa5\ncmp     qword ptr [rax+18h], 0Fh                                       ; +0x158, 0x140305fa8\njbe     short loc_140305FB2                                            ; +0x15d, 0x140305fad\nmov     rsi, [rax]                                                     ; +0x15f, 0x140305faf\nlea     rax, a9; \"9\"                                                   ; +0x162, 0x140305fb2\nmov     [rsp+120h+var_F0], rax                                         ; +0x169, 0x140305fb9\nmov     dword ptr [rsp+120h+var_F8], 63h ; 'c'                         ; +0x16e, 0x140305fbe\nmov     dword ptr [rsp+120h+Reserved], 67h ; 'g'                       ; +0x176, 0x140305fc6\nlea     r9, a3899; \"3899\"                                              ; +0x17e, 0x140305fce\nlea     r8, aMfv; \"mfv\"                                                ; +0x185, 0x140305fd5\nmov     edx, 57h ; 'W'                                                 ; +0x18c, 0x140305fdc\nlea     rcx, aCSSCCS; \"%c%s%s%c%c%s\"                                   ; +0x191, 0x140305fe1\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x198, 0x140305fe8\nmov     rcx, rax                                                       ; +0x19e, 0x140305fee\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x1a1, 0x140305ff1\nmov     [rsp+120h+var_F8], r13                                         ; +0x1a7, 0x140305ff7\nmov     [rsp+120h+Reserved], rax                                       ; +0x1ac, 0x140305ffc\nmov     r9, rbx                                                        ; +0x1b1, 0x140306001\nmov     r8, rdi                                                        ; +0x1b4, 0x140306004\nmov     rdx, rsi                                                       ; +0x1b7, 0x140306007\nlea     rcx, aUsernameSPassw; \"userName=%s&password=%s&email=%s&secret\"... ; +0x1ba, 0x14030600a\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x1c1, 0x140306011\nmov     rbx, rax                                                       ; +0x1c7, 0x140306017\nlea     rcx, [rbp+57h+var_68]                                          ; +0x1ca, 0x14030601a\ncall    sub_14003D310                                                  ; +0x1ce, 0x14030601e\nnop                                                                    ; +0x1d3, 0x140306023\nlea     rcx, [rbp+57h+Block]                                           ; +0x1d4, 0x140306024\ncall    sub_14003D310                                                  ; +0x1d8, 0x140306028\nnop                                                                    ; +0x1dd, 0x14030602d\nlea     rcx, [rbp+57h+Src]                                             ; +0x1de, 0x14030602e\ncall    sub_14003D310                                                  ; +0x1e2, 0x140306032\nmov     rcx, rbx                                                       ; +0x1e7, 0x140306037\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x1ea, 0x14030603a\nmov     rdx, rax                                                       ; +0x1f0, 0x140306040\nlea     rax, [rbp+57h+Src]                                             ; +0x1f3, 0x140306043\nmov     [rsp+120h+var_D8], rax                                         ; +0x1f7, 0x140306047\nlea     rax, [rbp+57h+var_68]                                          ; +0x1fc, 0x14030604c\nmov     [rbp+57h+var_D0], rax                                          ; +0x200, 0x140306050\nmov     [rbp+57h+var_78], 0Fh                                          ; +0x204, 0x140306054\nmov     [rbp+57h+var_70], 0Fh                                          ; +0x20c, 0x14030605c\nmovsd   xmm0, cs:qword_140769F08                                       ; +0x214, 0x140306064\nmovsd   [rbp+57h+Src], xmm0                                            ; +0x21c, 0x14030606c\nmov     eax, cs:dword_140769F10                                        ; +0x221, 0x140306071\nmov     [rbp+57h+var_80], eax                                          ; +0x227, 0x140306077\nmovzx   eax, cs:word_140769F14                                         ; +0x22a, 0x14030607a\nmov     [rbp+57h+var_7C], ax                                           ; +0x231, 0x140306081\nmovzx   eax, cs:byte_140769F16                                         ; +0x235, 0x140306085\nmov     [rbp+57h+var_7A], al                                           ; +0x23c, 0x14030608c\nmov     [rbp+57h+var_79], 0                                            ; +0x23f, 0x14030608f\nxorps   xmm0, xmm0                                                     ; +0x243, 0x140306093\nmovups  [rbp+57h+var_68], xmm0                                         ; +0x246, 0x140306096\nxor     ebx, ebx                                                       ; +0x24a, 0x14030609a\nmov     [rbp+57h+var_58], rbx                                          ; +0x24c, 0x14030609c\nmov     [rbp+57h+var_50], rbx                                          ; +0x250, 0x1403060a0\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x254, 0x1403060a4\nnop     dword ptr [rax+rax+00h]                                        ; +0x25b, 0x1403060ab\ninc     r8                                                             ; +0x260, 0x1403060b0\ncmp     [rdx+r8], bl                                                   ; +0x263, 0x1403060b3\njnz     short loc_1403060B0                                            ; +0x267, 0x1403060b7\nlea     rcx, [rbp+57h+var_68]                                          ; +0x269, 0x1403060b9\ncall    sub_14003D230                                                  ; +0x26d, 0x1403060bd\nnop                                                                    ; +0x272, 0x1403060c2\nxorps   xmm0, xmm0                                                     ; +0x273, 0x1403060c3\nmovups  xmmword ptr [rbp+57h+Block], xmm0                              ; +0x276, 0x1403060c6\nmov     qword ptr [rbp+57h+var_98], rbx                                ; +0x27a, 0x1403060ca\nmov     qword ptr [rbp+57h+var_98+8], rbx                              ; +0x27e, 0x1403060ce\nmov     ecx, 50h ; 'P'                                                 ; +0x282, 0x1403060d2\ncall    sub_14003D460                                                  ; +0x287, 0x1403060d7\nmov     rdx, rax                                                       ; +0x28c, 0x1403060dc\nmov     [rbp+57h+Block], rax                                           ; +0x28f, 0x1403060df\nmov     qword ptr [rbp+57h+var_98], 41h ; 'A'                          ; +0x293, 0x1403060e3\nmov     qword ptr [rbp+57h+var_98+8], 4Fh ; 'O'                        ; +0x29b, 0x1403060eb\nmovaps  xmm0, cs:xmmword_140769F20                                     ; +0x2a3, 0x1403060f3\nmovups  xmmword ptr [rax], xmm0                                        ; +0x2aa, 0x1403060fa\nmovaps  xmm1, cs:xmmword_140769F30                                     ; +0x2ad, 0x1403060fd\nmovups  xmmword ptr [rax+10h], xmm1                                    ; +0x2b4, 0x140306104\nmovaps  xmm0, cs:xmmword_140769F40                                     ; +0x2b8, 0x140306108\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0x2bf, 0x14030610f\nmovaps  xmm1, cs:xmmword_140769F50                                     ; +0x2c3, 0x140306113\nmovups  xmmword ptr [rax+30h], xmm1                                    ; +0x2ca, 0x14030611a\nmovzx   eax, cs:byte_140769F60                                         ; +0x2ce, 0x14030611e\nmov     [rdx+40h], al                                                  ; +0x2d5, 0x140306125\nmov     byte ptr [rdx+41h], 0                                          ; +0x2d8, 0x140306128\nmov     dword ptr [rsp+120h+Reserved], 18h                             ; +0x2dc, 0x14030612c\nlea     r9, [rbp+57h+Src]                                              ; +0x2e4, 0x140306134\nlea     r8, [rbp+57h+var_68]                                           ; +0x2e8, 0x140306138\nlea     rdx, [rbp+57h+Block]                                           ; +0x2ec, 0x14030613c\nmov     rcx, [rsp+120h+var_E0]                                         ; +0x2f0, 0x140306140\ncall    GJAccountManager__ProcessHttpRequest                           ; +0x2f5, 0x140306145\nnop                                                                    ; +0x2fa, 0x14030614a\nmov     rcx, r14                                                       ; +0x2fb, 0x14030614b\ncall    sub_14003D310                                                  ; +0x2fe, 0x14030614e\nnop                                                                    ; +0x303, 0x140306153\nmov     rcx, r15                                                       ; +0x304, 0x140306154\ncall    sub_14003D310                                                  ; +0x307, 0x140306157\nnop                                                                    ; +0x30c, 0x14030615c\nmov     rcx, r12                                                       ; +0x30d, 0x14030615d\ncall    sub_14003D310                                                  ; +0x310, 0x140306160\nmov     al, 1                                                          ; +0x315, 0x140306165\nmov     rcx, [rbp+57h+var_48]                                          ; +0x317, 0x140306167\nxor     rcx, rsp; StackCookie                                          ; +0x31b, 0x14030616b\ncall    __security_check_cookie                                        ; +0x31e, 0x14030616e\nadd     rsp, 0E8h                                                      ; +0x323, 0x140306173\npop     r15                                                            ; +0x32a, 0x14030617a\npop     r14                                                            ; +0x32c, 0x14030617c\npop     r13                                                            ; +0x32e, 0x14030617e\npop     r12                                                            ; +0x330, 0x140306180\npop     rdi                                                            ; +0x332, 0x140306182\npop     rsi                                                            ; +0x333, 0x140306183\npop     rbx                                                            ; +0x334, 0x140306184\npop     rbp                                                            ; +0x335, 0x140306185\nretn                                                                   ; +0x336, 0x140306186", "xrefs": ["AccountRegisterLayer::onSubmit @ 0x14008ebfe", "<???> @ 0x14091e560"], "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"}