{"type": "func", "start": 5371045936, "end": 5371046587, "name": "GameLevelManager::onGetGJUserInfoCompleted", "pseudocode": "// \n// GameLevelManager::onGetGJUserInfoCompleted from 0x14023a830 to 0x14023aabb (651 bytes)\n// \n// 2 xrefs:\n// > GameLevelManager::handleIt @ 0x140219f90\n// > <???> @ 0x14091c070\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:28:34 +0000\n// \n\n// Hidden C++ exception states: #wind=3\nvoid __fastcall GameLevelManager::onGetGJUserInfoCompleted(__int64 a1, const void **a2, _QWORD *a3)\n{\n  char v6; // r15\n  _BYTE *v7; // rsi\n  __int64 v8; // rcx\n  __int64 SplitIntFromKey; // rbp\n  const void *v10; // rcx\n  unsigned __int64 v11; // rsi\n  size_t v12; // r8\n  __int64 v13; // rax\n  __int64 v14; // r13\n  __int64 v15; // rax\n  int *v16; // rsi\n  __int64 v17; // rcx\n  __int64 v18; // rax\n  bool v19; // r12\n  void *v20; // rcx\n  struct cocos2d::CCObject *v21; // rax\n  void (__fastcall ***v22)(_QWORD, int *); // rcx\n  _BYTE v23[32]; // [rsp+38h] [rbp-90h] BYREF\n  const void **v24; // [rsp+58h] [rbp-70h]\n  _QWORD *v25; // [rsp+60h] [rbp-68h]\n  __int128 Buf2; // [rsp+68h] [rbp-60h] BYREF\n  __m128i si128; // [rsp+78h] [rbp-50h]\n\n  v24 = a2;\n  v25 = a3;\n  v6 = 0;\n  v7 = a3;\n  if ( a3[3] > 0xFu )\n    v7 = (_BYTE *)*a3;\n  GameLevelManager::removeDLFromActive(a1, v7);\n  SplitIntFromKey = (int)GameLevelManager::getSplitIntFromKey(v8, v7, 1);\n  Buf2 = 0;\n  si128.m128i_i64[0] = 2;\n  si128.m128i_i64[1] = 15;\n  strcpy((char *)&Buf2, \"-1\");\n  v10 = a2;\n  if ( (unsigned __int64)a2[3] > 0xF )\n    v10 = *a2;\n  v11 = (unsigned __int64)a2[2];\n  v12 = v11;\n  if ( v11 > 2 )\n    v12 = 2;\n  if ( !memcmp(v10, &Buf2, v12) && v11 == 2\n    || (v13 = sub_14003F4F0((__int64)v23, (__int64)a2),\n        v14 = GameLevelManager::responseToDict(v13, 0),\n        v15 = GJUserScore::create(v14),\n        (v16 = (int *)v15) == nullptr) )\n  {\n    v17 = *(_QWORD *)(a1 + 1480);\n    if ( v17 )\n      (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v17 + 8LL))(v17, (unsigned int)SplitIntFromKey);\n  }\n  else\n  {\n    v18 = *(int *)(v15 + 392);\n    if ( (int)v18 > 0 )\n    {\n      cocos2d::CCDictionary::setObject(*(cocos2d::CCDictionary **)(a1 + 1232), (struct cocos2d::CCObject *)v16, v18);\n      sub_14003F4F0((__int64)&Buf2, (__int64)(v16 + 80));\n      v6 = 2;\n      GameLevelManager::storeUserName((_QWORD *)a1, v16[97], v16[98], (void **)&Buf2);\n    }\n    v19 = false;\n    if ( v16[190] == 4 )\n    {\n      Buf2 = 0;\n      si128 = _mm_load_si128((const __m128i *)&xmmword_140836530);\n      strcpy((char *)&Buf2, \"32\");\n      v6 |= 1u;\n      if ( cocos2d::CCDictionary::objectForKey(v14, &Buf2) )\n        v19 = true;\n    }\n    if ( (v6 & 1) != 0 && si128.m128i_i64[1] > 0xFuLL )\n    {\n      v20 = (void *)Buf2;\n      if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 )\n      {\n        v20 = *(void **)(Buf2 - 8);\n        if ( (unsigned __int64)(Buf2 - (_QWORD)v20 - 8) > 0x1F )\n          invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n      }\n      j_j_free(v20);\n    }\n    if ( v16[190] == 3 || v19 )\n    {\n      v21 = (struct cocos2d::CCObject *)GJFriendRequest::create(v14);\n      *((_DWORD *)v21 + 81) = SplitIntFromKey;\n      if ( (int)SplitIntFromKey > 0 )\n        cocos2d::CCDictionary::setObject(*(cocos2d::CCDictionary **)(a1 + 1240), v21, SplitIntFromKey);\n    }\n    v22 = *(void (__fastcall ****)(_QWORD, int *))(a1 + 1480);\n    if ( v22 )\n      (**v22)(v22, v16);\n  }\n  sub_14003D310((__int64)a2);\n  sub_14003D310((__int64)a3);\n}", "assembly": "; \n; GameLevelManager::onGetGJUserInfoCompleted from 0x14023a830 to 0x14023aabb (651 bytes)\n; \n; 2 xrefs:\n; > GameLevelManager::handleIt @ 0x140219f90\n; > <???> @ 0x14091c070\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:28:34 +0000\n; \nmov     [rsp+arg_18], rbx                                              ; +0x0, 0x14023a830\npush    rbp                                                            ; +0x5, 0x14023a835\npush    rsi                                                            ; +0x6, 0x14023a836\npush    rdi                                                            ; +0x7, 0x14023a837\npush    r12                                                            ; +0x8, 0x14023a838\npush    r13                                                            ; +0xa, 0x14023a83a\npush    r14                                                            ; +0xc, 0x14023a83c\npush    r15                                                            ; +0xe, 0x14023a83e\nsub     rsp, 90h                                                       ; +0x10, 0x14023a840\nmov     rax, cs:__security_cookie                                      ; +0x17, 0x14023a847\nxor     rax, rsp                                                       ; +0x1e, 0x14023a84e\nmov     [rsp+0C8h+var_40], rax                                         ; +0x21, 0x14023a851\nmov     r14, r8                                                        ; +0x29, 0x14023a859\nmov     rbx, rdx                                                       ; +0x2c, 0x14023a85c\nmov     rdi, rcx                                                       ; +0x2f, 0x14023a85f\nmov     [rsp+0C8h+var_70], rdx                                         ; +0x32, 0x14023a862\nmov     [rsp+0C8h+var_68], r8                                          ; +0x37, 0x14023a867\nxor     r15d, r15d                                                     ; +0x3c, 0x14023a86c\nmov     [rsp+0C8h+var_98], r15d                                        ; +0x3f, 0x14023a86f\nmov     rsi, r8                                                        ; +0x44, 0x14023a874\ncmp     qword ptr [r8+18h], 0Fh                                        ; +0x47, 0x14023a877\njbe     short loc_14023A881                                            ; +0x4c, 0x14023a87c\nmov     rsi, [r8]                                                      ; +0x4e, 0x14023a87e\nmov     rdx, rsi                                                       ; +0x51, 0x14023a881\ncall    GameLevelManager__removeDLFromActive                           ; +0x54, 0x14023a884\nmov     r8d, 1                                                         ; +0x59, 0x14023a889\nmov     rdx, rsi                                                       ; +0x5f, 0x14023a88f\ncall    GameLevelManager__getSplitIntFromKey                           ; +0x62, 0x14023a892\nmovsxd  rbp, eax                                                       ; +0x67, 0x14023a897\nxorps   xmm0, xmm0                                                     ; +0x6a, 0x14023a89a\nmovups  [rsp+0C8h+Buf2], xmm0                                          ; +0x6d, 0x14023a89d\nmov     r12d, 2                                                        ; +0x72, 0x14023a8a2\nmov     qword ptr [rsp+0C8h+var_50], r12                               ; +0x78, 0x14023a8a8\nmov     qword ptr [rsp+0C8h+var_50+8], 0Fh                             ; +0x7d, 0x14023a8ad\nmov     eax, 312Dh                                                     ; +0x89, 0x14023a8b9\nmov     word ptr [rsp+0C8h+Buf2], ax                                   ; +0x8e, 0x14023a8be\nmov     byte ptr [rsp+0C8h+Buf2+2], 0                                  ; +0x93, 0x14023a8c3\nmov     rcx, rbx                                                       ; +0x98, 0x14023a8c8\ncmp     qword ptr [rbx+18h], 0Fh                                       ; +0x9b, 0x14023a8cb\njbe     short loc_14023A8D5                                            ; +0xa0, 0x14023a8d0\nmov     rcx, [rbx]; Buf1                                               ; +0xa2, 0x14023a8d2\nmov     rsi, [rbx+10h]                                                 ; +0xa5, 0x14023a8d5\nmov     r8, rsi                                                        ; +0xa9, 0x14023a8d9\ncmp     rsi, r12                                                       ; +0xac, 0x14023a8dc\ncmova   r8, r12; Size                                                  ; +0xaf, 0x14023a8df\nlea     rdx, [rsp+0C8h+Buf2]; Buf2                                     ; +0xb3, 0x14023a8e3\ncall    memcmp                                                         ; +0xb8, 0x14023a8e8\ntest    eax, eax                                                       ; +0xbd, 0x14023a8ed\njnz     short loc_14023A8F6                                            ; +0xbf, 0x14023a8ef\ncmp     rsi, r12                                                       ; +0xc1, 0x14023a8f1\njz      short loc_14023A920                                            ; +0xc4, 0x14023a8f4\nmov     rdx, rbx                                                       ; +0xc6, 0x14023a8f6\nlea     rcx, [rsp+0C8h+var_90]                                         ; +0xc9, 0x14023a8f9\ncall    sub_14003F4F0                                                  ; +0xce, 0x14023a8fe\nxor     edx, edx                                                       ; +0xd3, 0x14023a903\nmov     rcx, rax                                                       ; +0xd5, 0x14023a905\ncall    GameLevelManager__responseToDict                               ; +0xd8, 0x14023a908\nmov     r13, rax                                                       ; +0xdd, 0x14023a90d\nmov     rcx, rax                                                       ; +0xe0, 0x14023a910\ncall    GJUserScore__create                                            ; +0xe3, 0x14023a913\nmov     rsi, rax                                                       ; +0xe8, 0x14023a918\ntest    rax, rax                                                       ; +0xeb, 0x14023a91b\njnz     short loc_14023A93D                                            ; +0xee, 0x14023a91e\nmov     rcx, [rdi+5C8h]                                                ; +0xf0, 0x14023a920\ntest    rcx, rcx                                                       ; +0xf7, 0x14023a927\njz      loc_14023AA7F                                                  ; +0xfa, 0x14023a92a\nmov     rax, [rcx]                                                     ; +0x100, 0x14023a930\nmov     edx, ebp                                                       ; +0x103, 0x14023a933\ncall    qword ptr [rax+8]                                              ; +0x105, 0x14023a935\njmp     loc_14023AA7F                                                  ; +0x108, 0x14023a938\nmovsxd  rax, dword ptr [rax+188h]                                      ; +0x10d, 0x14023a93d\ntest    eax, eax                                                       ; +0x114, 0x14023a944\njle     short loc_14023A989                                            ; +0x116, 0x14023a946\nmov     r8, rax                                                        ; +0x118, 0x14023a948\nmov     rdx, rsi                                                       ; +0x11b, 0x14023a94b\nmov     rcx, [rdi+4D0h]                                                ; +0x11e, 0x14023a94e\ncall    cs:?setObject@CCDictionary@cocos2d@@QEAAXPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,__int64) ; +0x125, 0x14023a955\nlea     rdx, [rsi+140h]                                                ; +0x12b, 0x14023a95b\nlea     rcx, [rsp+0C8h+Buf2]                                           ; +0x132, 0x14023a962\ncall    sub_14003F4F0                                                  ; +0x137, 0x14023a967\nmov     r15d, r12d                                                     ; +0x13c, 0x14023a96c\nlea     r9, [rsp+0C8h+Buf2]                                            ; +0x13f, 0x14023a96f\nmov     r8d, [rsi+188h]                                                ; +0x144, 0x14023a974\nmov     edx, [rsi+184h]                                                ; +0x14b, 0x14023a97b\nmov     rcx, rdi                                                       ; +0x151, 0x14023a981\ncall    GameLevelManager__storeUserName                                ; +0x154, 0x14023a984\ncmp     dword ptr [rsi+2F8h], 4                                        ; +0x159, 0x14023a989\njnz     short loc_14023A9D8                                            ; +0x160, 0x14023a990\nxorps   xmm0, xmm0                                                     ; +0x162, 0x14023a992\nmovups  [rsp+0C8h+Buf2], xmm0                                          ; +0x165, 0x14023a995\nmovdqa  xmm1, cs:xmmword_140836530                                     ; +0x16a, 0x14023a99a\nmovdqu  [rsp+0C8h+var_50], xmm1                                        ; +0x172, 0x14023a9a2\nmov     eax, 3233h                                                     ; +0x178, 0x14023a9a8\nmov     word ptr [rsp+0C8h+Buf2], ax                                   ; +0x17d, 0x14023a9ad\nmov     byte ptr [rsp+0C8h+Buf2+2], 0                                  ; +0x182, 0x14023a9b2\nor      r15d, 1                                                        ; +0x187, 0x14023a9b7\nmov     [rsp+0C8h+var_98], r15d                                        ; +0x18b, 0x14023a9bb\nlea     rdx, [rsp+0C8h+Buf2]                                           ; +0x190, 0x14023a9c0\nmov     rcx, r13                                                       ; +0x195, 0x14023a9c5\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 &) ; +0x198, 0x14023a9c8\ntest    rax, rax                                                       ; +0x19e, 0x14023a9ce\njz      short loc_14023A9D8                                            ; +0x1a1, 0x14023a9d1\nmov     r12b, 1                                                        ; +0x1a3, 0x14023a9d3\njmp     short loc_14023A9DB                                            ; +0x1a6, 0x14023a9d6\nxor     r12b, r12b                                                     ; +0x1a8, 0x14023a9d8\ntest    r15b, 1                                                        ; +0x1ab, 0x14023a9db\njz      short loc_14023AA37                                            ; +0x1af, 0x14023a9df\nmov     rdx, qword ptr [rsp+0C8h+var_50+8]                             ; +0x1b1, 0x14023a9e1\ncmp     rdx, 0Fh                                                       ; +0x1b9, 0x14023a9e9\njbe     short loc_14023AA37                                            ; +0x1bd, 0x14023a9ed\ninc     rdx                                                            ; +0x1bf, 0x14023a9ef\nmov     rcx, qword ptr [rsp+0C8h+Buf2]; Block                          ; +0x1c2, 0x14023a9f2\nmov     rax, rcx                                                       ; +0x1c7, 0x14023a9f7\ncmp     rdx, 1000h                                                     ; +0x1ca, 0x14023a9fa\njb      short loc_14023AA32                                            ; +0x1d1, 0x14023aa01\nadd     rdx, 27h ; '''                                                 ; +0x1d3, 0x14023aa03\nmov     rcx, [rcx-8]                                                   ; +0x1d7, 0x14023aa07\nsub     rax, rcx                                                       ; +0x1db, 0x14023aa0b\nsub     rax, 8                                                         ; +0x1de, 0x14023aa0e\ncmp     rax, 1Fh                                                       ; +0x1e2, 0x14023aa12\njbe     short loc_14023AA32                                            ; +0x1e6, 0x14023aa16\nmov     [rsp+0C8h+Reserved], 0; Reserved                               ; +0x1e8, 0x14023aa18\nxor     r9d, r9d; LineNo                                               ; +0x1f1, 0x14023aa21\nxor     r8d, r8d; FileName                                             ; +0x1f4, 0x14023aa24\nxor     edx, edx; FunctionName                                         ; +0x1f7, 0x14023aa27\nxor     ecx, ecx; Expression                                           ; +0x1f9, 0x14023aa29\ncall    cs:_invoke_watson                                              ; +0x1fb, 0x14023aa2b\nalign 2                                                                ; +0x201, 0x14023aa31\ncall    j_j_free                                                       ; +0x202, 0x14023aa32\ncmp     dword ptr [rsi+2F8h], 3                                        ; +0x207, 0x14023aa37\njz      short loc_14023AA45                                            ; +0x20e, 0x14023aa3e\ntest    r12b, r12b                                                     ; +0x210, 0x14023aa40\njz      short loc_14023AA6A                                            ; +0x213, 0x14023aa43\nmov     rcx, r13                                                       ; +0x215, 0x14023aa45\ncall    GJFriendRequest__create                                        ; +0x218, 0x14023aa48\nmov     [rax+144h], ebp                                                ; +0x21d, 0x14023aa4d\ntest    ebp, ebp                                                       ; +0x223, 0x14023aa53\njle     short loc_14023AA6A                                            ; +0x225, 0x14023aa55\nmov     r8, rbp                                                        ; +0x227, 0x14023aa57\nmov     rdx, rax                                                       ; +0x22a, 0x14023aa5a\nmov     rcx, [rdi+4D8h]                                                ; +0x22d, 0x14023aa5d\ncall    cs:?setObject@CCDictionary@cocos2d@@QEAAXPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,__int64) ; +0x234, 0x14023aa64\nmov     rcx, [rdi+5C8h]                                                ; +0x23a, 0x14023aa6a\ntest    rcx, rcx                                                       ; +0x241, 0x14023aa71\njz      short loc_14023AA7F                                            ; +0x244, 0x14023aa74\nmov     rax, [rcx]                                                     ; +0x246, 0x14023aa76\nmov     rdx, rsi                                                       ; +0x249, 0x14023aa79\ncall    qword ptr [rax]                                                ; +0x24c, 0x14023aa7c\nnop                                                                    ; +0x24e, 0x14023aa7e\nmov     rcx, rbx                                                       ; +0x24f, 0x14023aa7f\ncall    sub_14003D310                                                  ; +0x252, 0x14023aa82\nnop                                                                    ; +0x257, 0x14023aa87\nmov     rcx, r14                                                       ; +0x258, 0x14023aa88\ncall    sub_14003D310                                                  ; +0x25b, 0x14023aa8b\nmov     rcx, [rsp+0C8h+var_40]                                         ; +0x260, 0x14023aa90\nxor     rcx, rsp; StackCookie                                          ; +0x268, 0x14023aa98\ncall    __security_check_cookie                                        ; +0x26b, 0x14023aa9b\nmov     rbx, [rsp+0C8h+arg_18]                                         ; +0x270, 0x14023aaa0\nadd     rsp, 90h                                                       ; +0x278, 0x14023aaa8\npop     r15                                                            ; +0x27f, 0x14023aaaf\npop     r14                                                            ; +0x281, 0x14023aab1\npop     r13                                                            ; +0x283, 0x14023aab3\npop     r12                                                            ; +0x285, 0x14023aab5\npop     rdi                                                            ; +0x287, 0x14023aab7\npop     rsi                                                            ; +0x288, 0x14023aab8\npop     rbp                                                            ; +0x289, 0x14023aab9\nretn                                                                   ; +0x28a, 0x14023aaba", "xrefs": ["GameLevelManager::handleIt @ 0x140219f90", "<???> @ 0x14091c070"], "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"}