{"type": "func", "start": 5371879824, "end": 5371880232, "name": "GJAccountManager::onRegisterAccountCompleted", "pseudocode": "// \n// GJAccountManager::onRegisterAccountCompleted from 0x140306190 to 0x140306328 (408 bytes)\n// \n// 2 xrefs:\n// > GJAccountManager::handleIt @ 0x140305598\n// > <???> @ 0x14091e56c\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=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; // rbx\n  _QWORD *v11; // rsi\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+40h] [rbp-48h] BYREF\n  __m128i si128; // [rsp+50h] [rbp-38h]\n\n  HIWORD(Block[1]) = 0;\n  si128 = _mm_load_si128((const __m128i *)&xmmword_1408365C0);\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 ( si128.m128i_i64[1] > 0xFuLL )\n  {\n    v6 = Block[0];\n    if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 )\n    {\n      v6 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v6 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free(v6);\n  }\n  *(_OWORD *)Block = 0;\n  si128.m128i_i64[0] = 1;\n  si128.m128i_i64[1] = 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 = v10;\n    if ( v10 )\n    {\n      v12 = (const char *)a2;\n      if ( (unsigned __int64)a2[3] > 0xF )\n        v12 = (const char *)*a2;\n      v13 = *v10;\n      v14 = atoi(v12);\n      (*(void (__fastcall **)(_QWORD *, _QWORD))(v13 + 8))(v11, v14);\n    }\n  }\n  sub_14003D310((__int64)a2);\n  sub_14003D310(a3);\n}", "assembly": "; \n; GJAccountManager::onRegisterAccountCompleted from 0x140306190 to 0x140306328 (408 bytes)\n; \n; 2 xrefs:\n; > GJAccountManager::handleIt @ 0x140305598\n; > <???> @ 0x14091e56c\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; \nmov     [rsp+arg_18], rbx                                              ; +0x0, 0x140306190\npush    rsi                                                            ; +0x5, 0x140306195\npush    rdi                                                            ; +0x6, 0x140306196\npush    r14                                                            ; +0x7, 0x140306197\nsub     rsp, 70h                                                       ; +0x9, 0x140306199\nmov     rax, cs:__security_cookie                                      ; +0xd, 0x14030619d\nxor     rax, rsp                                                       ; +0x14, 0x1403061a4\nmov     [rsp+88h+var_28], rax                                          ; +0x17, 0x1403061a7\nmov     r14, r8                                                        ; +0x1c, 0x1403061ac\nmov     rdi, rdx                                                       ; +0x1f, 0x1403061af\nmov     rbx, rcx                                                       ; +0x22, 0x1403061b2\nmov     [rsp+88h+var_58], rdx                                          ; +0x25, 0x1403061b5\nmov     [rsp+88h+var_50], r8                                           ; +0x2a, 0x1403061ba\nxorps   xmm0, xmm0                                                     ; +0x2f, 0x1403061bf\nmovups  xmmword ptr [rsp+88h+Block], xmm0                              ; +0x32, 0x1403061c2\nmovdqa  xmm1, cs:xmmword_1408365C0                                     ; +0x37, 0x1403061c7\nmovdqu  [rsp+88h+var_38], xmm1                                         ; +0x3f, 0x1403061cf\nmovsd   xmm0, qword ptr cs:aRegAccount; \"reg_account\"                  ; +0x45, 0x1403061d5\nmovsd   [rsp+88h+Block], xmm0                                          ; +0x4d, 0x1403061dd\nmovzx   eax, word ptr cs:aRegAccount+8; \"unt\"                          ; +0x53, 0x1403061e3\nmov     word ptr [rsp+88h+Block+8], ax                                 ; +0x5a, 0x1403061ea\nmovzx   eax, byte ptr cs:aRegAccount+0Ah; \"t\"                          ; +0x5f, 0x1403061ef\nmov     byte ptr [rsp+88h+Block+0Ah], al                               ; +0x66, 0x1403061f6\nmov     byte ptr [rsp+88h+Block+0Bh], 0                                ; +0x6a, 0x1403061fa\nlea     rdx, [rsp+88h+Block]                                           ; +0x6f, 0x1403061ff\nmov     rcx, [rcx+140h]                                                ; +0x74, 0x140306204\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 &) ; +0x7b, 0x14030620b\nnop                                                                    ; +0x81, 0x140306211\nmov     rdx, qword ptr [rsp+88h+var_38+8]                              ; +0x82, 0x140306212\ncmp     rdx, 0Fh                                                       ; +0x87, 0x140306217\njbe     short loc_140306265                                            ; +0x8b, 0x14030621b\ninc     rdx                                                            ; +0x8d, 0x14030621d\nmov     rcx, [rsp+88h+Block]; Block                                    ; +0x90, 0x140306220\nmov     rax, rcx                                                       ; +0x95, 0x140306225\ncmp     rdx, 1000h                                                     ; +0x98, 0x140306228\njb      short loc_140306260                                            ; +0x9f, 0x14030622f\nadd     rdx, 27h ; '''                                                 ; +0xa1, 0x140306231\nmov     rcx, [rcx-8]                                                   ; +0xa5, 0x140306235\nsub     rax, rcx                                                       ; +0xa9, 0x140306239\nsub     rax, 8                                                         ; +0xac, 0x14030623c\ncmp     rax, 1Fh                                                       ; +0xb0, 0x140306240\njbe     short loc_140306260                                            ; +0xb4, 0x140306244\nmov     [rsp+88h+Reserved], 0; Reserved                                ; +0xb6, 0x140306246\nxor     r9d, r9d; LineNo                                               ; +0xbf, 0x14030624f\nxor     r8d, r8d; FileName                                             ; +0xc2, 0x140306252\nxor     edx, edx; FunctionName                                         ; +0xc5, 0x140306255\nxor     ecx, ecx; Expression                                           ; +0xc7, 0x140306257\ncall    cs:_invoke_watson                                              ; +0xc9, 0x140306259\nalign 20h                                                              ; +0xcf, 0x14030625f\ncall    j_j_free                                                       ; +0xd0, 0x140306260\nxorps   xmm0, xmm0                                                     ; +0xd5, 0x140306265\nmovups  xmmword ptr [rsp+88h+Block], xmm0                              ; +0xd8, 0x140306268\nmov     eax, 1                                                         ; +0xdd, 0x14030626d\nmov     qword ptr [rsp+88h+var_38], rax                                ; +0xe2, 0x140306272\nmov     qword ptr [rsp+88h+var_38+8], 0Fh                              ; +0xe7, 0x140306277\nmov     word ptr [rsp+88h+Block], 31h ; '1'                            ; +0xf0, 0x140306280\nmov     rcx, rdi                                                       ; +0xf7, 0x140306287\ncmp     qword ptr [rdi+18h], 0Fh                                       ; +0xfa, 0x14030628a\njbe     short loc_140306294                                            ; +0xff, 0x14030628f\nmov     rcx, [rdi]; Buf1                                               ; +0x101, 0x140306291\nmov     rsi, [rdi+10h]                                                 ; +0x104, 0x140306294\nmov     r8, rsi                                                        ; +0x108, 0x140306298\ncmp     rsi, rax                                                       ; +0x10b, 0x14030629b\ncmova   r8, rax; Size                                                  ; +0x10e, 0x14030629e\nlea     rdx, [rsp+88h+Block]; Buf2                                     ; +0x112, 0x1403062a2\ncall    memcmp                                                         ; +0x117, 0x1403062a7\ntest    eax, eax                                                       ; +0x11c, 0x1403062ac\njnz     short loc_1403062B8                                            ; +0x11e, 0x1403062ae\ncmp     rsi, 1                                                         ; +0x120, 0x1403062b0\njb      short loc_1403062B8                                            ; +0x124, 0x1403062b4\njbe     short loc_1403062E7                                            ; +0x126, 0x1403062b6\nmov     rbx, [rbx+198h]                                                ; +0x128, 0x1403062b8\nmov     rsi, rbx                                                       ; +0x12f, 0x1403062bf\ntest    rbx, rbx                                                       ; +0x132, 0x1403062c2\njz      short loc_1403062F9                                            ; +0x135, 0x1403062c5\nmov     rcx, rdi                                                       ; +0x137, 0x1403062c7\ncmp     qword ptr [rdi+18h], 0Fh                                       ; +0x13a, 0x1403062ca\njbe     short loc_1403062D4                                            ; +0x13f, 0x1403062cf\nmov     rcx, [rdi]; String                                             ; +0x141, 0x1403062d1\nmov     rbx, [rbx]                                                     ; +0x144, 0x1403062d4\ncall    cs:atoi                                                        ; +0x147, 0x1403062d7\nmov     edx, eax                                                       ; +0x14d, 0x1403062dd\nmov     rcx, rsi                                                       ; +0x14f, 0x1403062df\ncall    qword ptr [rbx+8]                                              ; +0x152, 0x1403062e2\njmp     short loc_1403062F9                                            ; +0x155, 0x1403062e5\nmov     rcx, [rbx+198h]                                                ; +0x157, 0x1403062e7\ntest    rcx, rcx                                                       ; +0x15e, 0x1403062ee\njz      short loc_1403062F9                                            ; +0x161, 0x1403062f1\nmov     rax, [rcx]                                                     ; +0x163, 0x1403062f3\ncall    qword ptr [rax]                                                ; +0x166, 0x1403062f6\nnop                                                                    ; +0x168, 0x1403062f8\nmov     rcx, rdi                                                       ; +0x169, 0x1403062f9\ncall    sub_14003D310                                                  ; +0x16c, 0x1403062fc\nnop                                                                    ; +0x171, 0x140306301\nmov     rcx, r14                                                       ; +0x172, 0x140306302\ncall    sub_14003D310                                                  ; +0x175, 0x140306305\nmov     rcx, [rsp+88h+var_28]                                          ; +0x17a, 0x14030630a\nxor     rcx, rsp; StackCookie                                          ; +0x17f, 0x14030630f\ncall    __security_check_cookie                                        ; +0x182, 0x140306312\nmov     rbx, [rsp+88h+arg_18]                                          ; +0x187, 0x140306317\nadd     rsp, 70h                                                       ; +0x18f, 0x14030631f\npop     r14                                                            ; +0x193, 0x140306323\npop     rdi                                                            ; +0x195, 0x140306325\npop     rsi                                                            ; +0x196, 0x140306326\nretn                                                                   ; +0x197, 0x140306327", "xrefs": ["GJAccountManager::handleIt @ 0x140305598", "<???> @ 0x14091e56c"], "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"}