{"type": "func", "start": 5370808688, "end": 5370809084, "name": "GJAccountManager::onRegisterAccountCompleted", "pseudocode": "// \n// GJAccountManager::onRegisterAccountCompleted from 0x140200970 to 0x140200afc (396 bytes)\n// \n// 2 xrefs:\n// > GJAccountManager::handleIt @ 0x1402003cb\n// > <???> @ 0x1406ccae0\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=3\nvoid __fastcall GJAccountManager::onRegisterAccountCompleted(__int64 a1, const void **a2, __int64 a3)\n{\n  void *v6; // rcx\n  const void *v7; // rcx\n  unsigned __int64 v8; // rsi\n  size_t v9; // r8\n  _QWORD *v10; // rsi\n  __int64 *v11; // rbx\n  const char *v12; // rcx\n  __int64 v13; // rbx\n  unsigned int v14; // eax\n  void (__fastcall ***v15)(_QWORD); // rcx\n  void *Block[2]; // [rsp+30h] [rbp-48h] BYREF\n  __int64 v17; // [rsp+40h] [rbp-38h]\n  unsigned __int64 v18; // [rsp+48h] [rbp-30h]\n\n  HIWORD(Block[1]) = 0;\n  v17 = 11;\n  v18 = 15;\n  qmemcpy(Block, \"reg_accoun\", 10);\n  *(_DWORD *)((char *)&Block[1] + 2) = (unsigned __int8)aRegAccount[10];\n  cocos2d::CCDictionary::removeObjectForKey(*(_QWORD *)(a1 + 320), Block);\n  if ( v18 > 0xF )\n  {\n    v6 = Block[0];\n    if ( v18 + 1 >= 0x1000 )\n    {\n      v6 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v6 - 8) > 0x1F )\n        invalid_parameter_noinfo_noreturn();\n    }\n    j_j_free(v6);\n  }\n  *(_OWORD *)Block = 0;\n  v17 = 1;\n  v18 = 15;\n  LOWORD(Block[0]) = 49;\n  v7 = a2;\n  if ( (unsigned __int64)a2[3] > 0xF )\n    v7 = *a2;\n  v8 = (unsigned __int64)a2[2];\n  v9 = v8;\n  if ( v8 > 1 )\n    v9 = 1;\n  if ( !memcmp(v7, Block, v9) && v8 == 1 )\n  {\n    v15 = *(void (__fastcall ****)(_QWORD))(a1 + 408);\n    if ( v15 )\n      (**v15)(v15);\n  }\n  else\n  {\n    v10 = (_QWORD *)(a1 + 408);\n    v11 = *(__int64 **)(a1 + 408);\n    if ( v11 )\n    {\n      v12 = (const char *)a2;\n      if ( (unsigned __int64)a2[3] > 0xF )\n        v12 = (const char *)*a2;\n      v13 = *v11;\n      v14 = atoi(v12);\n      (*(void (__fastcall **)(_QWORD, _QWORD))(v13 + 8))(*v10, v14);\n    }\n  }\n  sub_14003A830((__int64)a2);\n  sub_14003A830(a3);\n}", "assembly": "; \n; GJAccountManager::onRegisterAccountCompleted from 0x140200970 to 0x140200afc (396 bytes)\n; \n; 2 xrefs:\n; > GJAccountManager::handleIt @ 0x1402003cb\n; > <???> @ 0x1406ccae0\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\nmov     [rsp+arg_18], rbx                                              ; +0x0, 0x140200970\npush    rsi                                                            ; +0x5, 0x140200975\npush    rdi                                                            ; +0x6, 0x140200976\npush    r14                                                            ; +0x7, 0x140200977\nsub     rsp, 60h                                                       ; +0x9, 0x140200979\nmov     rax, cs:__security_cookie                                      ; +0xd, 0x14020097d\nxor     rax, rsp                                                       ; +0x14, 0x140200984\nmov     [rsp+78h+var_28], rax                                          ; +0x17, 0x140200987\nmov     r14, r8                                                        ; +0x1c, 0x14020098c\nmov     rdi, rdx                                                       ; +0x1f, 0x14020098f\nmov     rbx, rcx                                                       ; +0x22, 0x140200992\nmov     [rsp+78h+var_58], rdx                                          ; +0x25, 0x140200995\nmov     [rsp+78h+var_50], r8                                           ; +0x2a, 0x14020099a\nxorps   xmm0, xmm0                                                     ; +0x2f, 0x14020099f\nmovups  xmmword ptr [rsp+78h+Block], xmm0                              ; +0x32, 0x1402009a2\nmov     [rsp+78h+var_38], 0Bh                                          ; +0x37, 0x1402009a7\nmov     [rsp+78h+var_30], 0Fh                                          ; +0x40, 0x1402009b0\nmovsd   xmm0, qword ptr cs:aRegAccount; \"reg_account\"                  ; +0x49, 0x1402009b9\nmovsd   [rsp+78h+Block], xmm0                                          ; +0x51, 0x1402009c1\nmovzx   eax, word ptr cs:aRegAccount+8; \"unt\"                          ; +0x57, 0x1402009c7\nmov     word ptr [rsp+78h+Block+8], ax                                 ; +0x5e, 0x1402009ce\nmovzx   eax, byte ptr cs:aRegAccount+0Ah; \"t\"                          ; +0x63, 0x1402009d3\nmov     byte ptr [rsp+78h+Block+0Ah], al                               ; +0x6a, 0x1402009da\nmov     byte ptr [rsp+78h+Block+0Bh], 0                                ; +0x6e, 0x1402009de\nlea     rdx, [rsp+78h+Block]                                           ; +0x73, 0x1402009e3\nmov     rcx, [rcx+140h]                                                ; +0x78, 0x1402009e8\ncall    cs:?removeObjectForKey@CCDictionary@cocos2d@@QEAAXAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::removeObjectForKey(std::string const &) ; +0x7f, 0x1402009ef\nnop                                                                    ; +0x85, 0x1402009f5\nmov     rdx, [rsp+78h+var_30]                                          ; +0x86, 0x1402009f6\ncmp     rdx, 0Fh                                                       ; +0x8b, 0x1402009fb\njbe     short loc_140200A36                                            ; +0x8f, 0x1402009ff\ninc     rdx                                                            ; +0x91, 0x140200a01\nmov     rcx, [rsp+78h+Block]; Block                                    ; +0x94, 0x140200a04\nmov     rax, rcx                                                       ; +0x99, 0x140200a09\ncmp     rdx, 1000h                                                     ; +0x9c, 0x140200a0c\njb      short loc_140200A31                                            ; +0xa3, 0x140200a13\nadd     rdx, 27h ; '''                                                 ; +0xa5, 0x140200a15\nmov     rcx, [rcx-8]                                                   ; +0xa9, 0x140200a19\nsub     rax, rcx                                                       ; +0xad, 0x140200a1d\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0xb0, 0x140200a20\ncmp     rax, 1Fh                                                       ; +0xb4, 0x140200a24\njbe     short loc_140200A31                                            ; +0xb8, 0x140200a28\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0xba, 0x140200a2a\ndb 0CCh                                                                ; +0xc0, 0x140200a30\ncall    j_j_free                                                       ; +0xc1, 0x140200a31\nxorps   xmm0, xmm0                                                     ; +0xc6, 0x140200a36\nmovups  xmmword ptr [rsp+78h+Block], xmm0                              ; +0xc9, 0x140200a39\nmov     eax, 1                                                         ; +0xce, 0x140200a3e\nmov     [rsp+78h+var_38], rax                                          ; +0xd3, 0x140200a43\nmov     [rsp+78h+var_30], 0Fh                                          ; +0xd8, 0x140200a48\nmov     word ptr [rsp+78h+Block], 31h ; '1'                            ; +0xe1, 0x140200a51\nmov     rcx, rdi                                                       ; +0xe8, 0x140200a58\ncmp     qword ptr [rdi+18h], 0Fh                                       ; +0xeb, 0x140200a5b\njbe     short loc_140200A65                                            ; +0xf0, 0x140200a60\nmov     rcx, [rdi]; Buf1                                               ; +0xf2, 0x140200a62\nmov     rsi, [rdi+10h]                                                 ; +0xf5, 0x140200a65\nmov     r8, rsi                                                        ; +0xf9, 0x140200a69\ncmp     rsi, rax                                                       ; +0xfc, 0x140200a6c\ncmova   r8, rax; Size                                                  ; +0xff, 0x140200a6f\nlea     rdx, [rsp+78h+Block]; Buf2                                     ; +0x103, 0x140200a73\ncall    memcmp                                                         ; +0x108, 0x140200a78\ntest    eax, eax                                                       ; +0x10d, 0x140200a7d\njnz     short loc_140200A89                                            ; +0x10f, 0x140200a7f\ncmp     rsi, 1                                                         ; +0x111, 0x140200a81\njb      short loc_140200A89                                            ; +0x115, 0x140200a85\njbe     short loc_140200ABB                                            ; +0x117, 0x140200a87\nlea     rax, [rbx+198h]                                                ; +0x119, 0x140200a89\nmov     rsi, rax                                                       ; +0x120, 0x140200a90\nmov     rbx, [rax]                                                     ; +0x123, 0x140200a93\ntest    rbx, rbx                                                       ; +0x126, 0x140200a96\njz      short loc_140200ACD                                            ; +0x129, 0x140200a99\nmov     rcx, rdi                                                       ; +0x12b, 0x140200a9b\ncmp     qword ptr [rdi+18h], 0Fh                                       ; +0x12e, 0x140200a9e\njbe     short loc_140200AA8                                            ; +0x133, 0x140200aa3\nmov     rcx, [rdi]; String                                             ; +0x135, 0x140200aa5\nmov     rbx, [rbx]                                                     ; +0x138, 0x140200aa8\ncall    cs:atoi                                                        ; +0x13b, 0x140200aab\nmov     edx, eax                                                       ; +0x141, 0x140200ab1\nmov     rcx, [rsi]                                                     ; +0x143, 0x140200ab3\ncall    qword ptr [rbx+8]                                              ; +0x146, 0x140200ab6\njmp     short loc_140200ACD                                            ; +0x149, 0x140200ab9\nmov     rcx, [rbx+198h]                                                ; +0x14b, 0x140200abb\ntest    rcx, rcx                                                       ; +0x152, 0x140200ac2\njz      short loc_140200ACD                                            ; +0x155, 0x140200ac5\nmov     rax, [rcx]                                                     ; +0x157, 0x140200ac7\ncall    qword ptr [rax]                                                ; +0x15a, 0x140200aca\nnop                                                                    ; +0x15c, 0x140200acc\nmov     rcx, rdi                                                       ; +0x15d, 0x140200acd\ncall    sub_14003A830                                                  ; +0x160, 0x140200ad0\nnop                                                                    ; +0x165, 0x140200ad5\nmov     rcx, r14                                                       ; +0x166, 0x140200ad6\ncall    sub_14003A830                                                  ; +0x169, 0x140200ad9\nmov     rcx, [rsp+78h+var_28]                                          ; +0x16e, 0x140200ade\nxor     rcx, rsp; StackCookie                                          ; +0x173, 0x140200ae3\ncall    __security_check_cookie                                        ; +0x176, 0x140200ae6\nmov     rbx, [rsp+78h+arg_18]                                          ; +0x17b, 0x140200aeb\nadd     rsp, 60h                                                       ; +0x183, 0x140200af3\npop     r14                                                            ; +0x187, 0x140200af7\npop     rdi                                                            ; +0x189, 0x140200af9\npop     rsi                                                            ; +0x18a, 0x140200afa\nretn                                                                   ; +0x18b, 0x140200afb", "xrefs": ["GJAccountManager::handleIt @ 0x1402003cb", "<???> @ 0x1406ccae0"], "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"}