{"type": "func", "start": 5370126384, "end": 5370126773, "name": "GameLevelManager::onGetGJUserInfoCompleted", "pseudocode": "// \n// GameLevelManager::onGetGJUserInfoCompleted from 0x14015a030 to 0x14015a1b5 (389 bytes)\n// \n// 2 xrefs:\n// > GameLevelManager::handleIt @ 0x14014361b\n// > <???> @ 0x1406ca9e0\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=2\nvoid __fastcall GameLevelManager::onGetGJUserInfoCompleted(GameLevelManager *a1, const void **a2, const char *a3)\n{\n  const char *v6; // rbp\n  GameLevelManager *v7; // rcx\n  __int64 SplitIntFromKey; // rbp\n  const void *v9; // rcx\n  unsigned __int64 v10; // r14\n  size_t v11; // r8\n  __int64 v12; // rax\n  cocos2d::CCDictionary *v13; // r15\n  GJUserScore *v14; // rax\n  struct cocos2d::CCObject *v15; // r14\n  UserInfoDelegate *m_userInfoDelegate; // rcx\n  __int64 m_accountID; // rax\n  GJFriendRequest *v18; // rax\n  UserInfoDelegate *v19; // rcx\n  __int128 Buf2; // [rsp+38h] [rbp-50h] BYREF\n  __int64 v21; // [rsp+48h] [rbp-40h]\n  __int64 v22; // [rsp+50h] [rbp-38h]\n\n  v6 = a3;\n  if ( *((_QWORD *)a3 + 3) > 0xFu )\n    v6 = *(const char **)a3;\n  GameLevelManager::removeDLFromActive(a1, v6);\n  SplitIntFromKey = GameLevelManager::getSplitIntFromKey(v7, v6, 1);\n  Buf2 = 0;\n  v21 = 2;\n  v22 = 15;\n  strcpy((char *)&Buf2, \"-1\");\n  v9 = a2;\n  if ( (unsigned __int64)a2[3] > 0xF )\n    v9 = *a2;\n  v10 = (unsigned __int64)a2[2];\n  v11 = v10;\n  if ( v10 > 2 )\n    v11 = 2;\n  if ( !memcmp(v9, &Buf2, v11) && v10 == 2\n    || (v12 = sub_14003BDB0((__int64)&Buf2, (__int64)a2),\n        v13 = (cocos2d::CCDictionary *)GameLevelManager::responseToDict(v12, 0),\n        v14 = GJUserScore::create(v13),\n        (v15 = v14) == nullptr) )\n  {\n    m_userInfoDelegate = a1->m_userInfoDelegate;\n    if ( m_userInfoDelegate )\n      m_userInfoDelegate->getUserInfoFailed(m_userInfoDelegate, SplitIntFromKey);\n  }\n  else\n  {\n    m_accountID = v14->m_accountID;\n    if ( (int)m_accountID > 0 )\n      cocos2d::CCDictionary::setObject(a1->m_storedUserInfo, v15, m_accountID);\n    if ( v15[13].m_nTag == 3 )\n    {\n      v18 = GJFriendRequest::create(v13);\n      v18->m_accountID = SplitIntFromKey;\n      if ( (int)SplitIntFromKey > 0 )\n        cocos2d::CCDictionary::setObject(a1->m_friendRequests, v18, SplitIntFromKey);\n    }\n    v19 = a1->m_userInfoDelegate;\n    if ( v19 )\n      v19->getUserInfoFinished(v19, (GJUserScore *)v15);\n  }\n  sub_14003A830((__int64)a2);\n  sub_14003A830((__int64)a3);\n}", "assembly": "; \n; GameLevelManager::onGetGJUserInfoCompleted from 0x14015a030 to 0x14015a1b5 (389 bytes)\n; \n; 2 xrefs:\n; > GameLevelManager::handleIt @ 0x14014361b\n; > <???> @ 0x1406ca9e0\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, 0x14015a030\npush    rbp                                                            ; +0x5, 0x14015a035\npush    rsi                                                            ; +0x6, 0x14015a036\npush    rdi                                                            ; +0x7, 0x14015a037\npush    r14                                                            ; +0x8, 0x14015a038\npush    r15                                                            ; +0xa, 0x14015a03a\nsub     rsp, 60h                                                       ; +0xc, 0x14015a03c\nmov     rax, cs:__security_cookie                                      ; +0x10, 0x14015a040\nxor     rax, rsp                                                       ; +0x17, 0x14015a047\nmov     [rsp+88h+var_30], rax                                          ; +0x1a, 0x14015a04a\nmov     rsi, r8                                                        ; +0x1f, 0x14015a04f\nmov     rdi, rdx                                                       ; +0x22, 0x14015a052\nmov     rbx, rcx                                                       ; +0x25, 0x14015a055\nmov     [rsp+88h+var_60], rdx                                          ; +0x28, 0x14015a058\nmov     [rsp+88h+var_58], r8                                           ; +0x2d, 0x14015a05d\nmov     rbp, r8                                                        ; +0x32, 0x14015a062\ncmp     qword ptr [r8+18h], 0Fh                                        ; +0x35, 0x14015a065\njbe     short loc_14015A06F                                            ; +0x3a, 0x14015a06a\nmov     rbp, [r8]                                                      ; +0x3c, 0x14015a06c\nmov     rdx, rbp                                                       ; +0x3f, 0x14015a06f\ncall    GameLevelManager__removeDLFromActive                           ; +0x42, 0x14015a072\nmov     r8d, 1                                                         ; +0x47, 0x14015a077\nmov     rdx, rbp                                                       ; +0x4d, 0x14015a07d\ncall    GameLevelManager__getSplitIntFromKey                           ; +0x50, 0x14015a080\nmovsxd  rbp, eax                                                       ; +0x55, 0x14015a085\nxorps   xmm0, xmm0                                                     ; +0x58, 0x14015a088\nmovups  [rsp+88h+Buf2], xmm0                                           ; +0x5b, 0x14015a08b\nmov     edx, 2                                                         ; +0x60, 0x14015a090\nmov     [rsp+88h+var_40], rdx                                          ; +0x65, 0x14015a095\nmov     [rsp+88h+var_38], 0Fh                                          ; +0x6a, 0x14015a09a\nmov     eax, 312Dh                                                     ; +0x73, 0x14015a0a3\nmov     word ptr [rsp+88h+Buf2], ax                                    ; +0x78, 0x14015a0a8\nmov     byte ptr [rsp+88h+Buf2+2], 0                                   ; +0x7d, 0x14015a0ad\nmov     rcx, rdi                                                       ; +0x82, 0x14015a0b2\ncmp     qword ptr [rdi+18h], 0Fh                                       ; +0x85, 0x14015a0b5\njbe     short loc_14015A0BF                                            ; +0x8a, 0x14015a0ba\nmov     rcx, [rdi]; Buf1                                               ; +0x8c, 0x14015a0bc\nmov     r14, [rdi+10h]                                                 ; +0x8f, 0x14015a0bf\nmov     r8, r14                                                        ; +0x93, 0x14015a0c3\ncmp     r14, rdx                                                       ; +0x96, 0x14015a0c6\ncmova   r8, rdx; Size                                                  ; +0x99, 0x14015a0c9\nlea     rdx, [rsp+88h+Buf2]; Buf2                                      ; +0x9d, 0x14015a0cd\ncall    memcmp                                                         ; +0xa2, 0x14015a0d2\ntest    eax, eax                                                       ; +0xa7, 0x14015a0d7\njnz     short loc_14015A0E1                                            ; +0xa9, 0x14015a0d9\ncmp     r14, 2                                                         ; +0xab, 0x14015a0db\njz      short loc_14015A10B                                            ; +0xaf, 0x14015a0df\nmov     rdx, rdi                                                       ; +0xb1, 0x14015a0e1\nlea     rcx, [rsp+88h+Buf2]                                            ; +0xb4, 0x14015a0e4\ncall    sub_14003BDB0                                                  ; +0xb9, 0x14015a0e9\nxor     edx, edx                                                       ; +0xbe, 0x14015a0ee\nmov     rcx, rax                                                       ; +0xc0, 0x14015a0f0\ncall    GameLevelManager__responseToDict                               ; +0xc3, 0x14015a0f3\nmov     r15, rax                                                       ; +0xc8, 0x14015a0f8\nmov     rcx, rax                                                       ; +0xcb, 0x14015a0fb\ncall    GJUserScore__create                                            ; +0xce, 0x14015a0fe\nmov     r14, rax                                                       ; +0xd3, 0x14015a103\ntest    rax, rax                                                       ; +0xd6, 0x14015a106\njnz     short loc_14015A121                                            ; +0xd9, 0x14015a109\nmov     rcx, [rbx+320h]                                                ; +0xdb, 0x14015a10b\ntest    rcx, rcx                                                       ; +0xe2, 0x14015a112\njz      short loc_14015A183                                            ; +0xe5, 0x14015a115\nmov     rax, [rcx]                                                     ; +0xe7, 0x14015a117\nmov     edx, ebp                                                       ; +0xea, 0x14015a11a\ncall    qword ptr [rax+8]                                              ; +0xec, 0x14015a11c\njmp     short loc_14015A183                                            ; +0xef, 0x14015a11f\nmovsxd  rax, dword ptr [rax+188h]                                      ; +0xf1, 0x14015a121\ntest    eax, eax                                                       ; +0xf8, 0x14015a128\njle     short loc_14015A13F                                            ; +0xfa, 0x14015a12a\nmov     r8, rax                                                        ; +0xfc, 0x14015a12c\nmov     rdx, r14                                                       ; +0xff, 0x14015a12f\nmov     rcx, [rbx+258h]                                                ; +0x102, 0x14015a132\ncall    cs:?setObject@CCDictionary@cocos2d@@QEAAXPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,__int64) ; +0x109, 0x14015a139\ncmp     dword ptr [r14+2E8h], 3                                        ; +0x10f, 0x14015a13f\njnz     short loc_14015A16E                                            ; +0x117, 0x14015a147\nmov     rcx, r15                                                       ; +0x119, 0x14015a149\ncall    GJFriendRequest__create                                        ; +0x11c, 0x14015a14c\nmov     [rax+144h], ebp                                                ; +0x121, 0x14015a151\ntest    ebp, ebp                                                       ; +0x127, 0x14015a157\njle     short loc_14015A16E                                            ; +0x129, 0x14015a159\nmov     r8, rbp                                                        ; +0x12b, 0x14015a15b\nmov     rdx, rax                                                       ; +0x12e, 0x14015a15e\nmov     rcx, [rbx+260h]                                                ; +0x131, 0x14015a161\ncall    cs:?setObject@CCDictionary@cocos2d@@QEAAXPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,__int64) ; +0x138, 0x14015a168\nmov     rcx, [rbx+320h]                                                ; +0x13e, 0x14015a16e\ntest    rcx, rcx                                                       ; +0x145, 0x14015a175\njz      short loc_14015A183                                            ; +0x148, 0x14015a178\nmov     rax, [rcx]                                                     ; +0x14a, 0x14015a17a\nmov     rdx, r14                                                       ; +0x14d, 0x14015a17d\ncall    qword ptr [rax]                                                ; +0x150, 0x14015a180\nnop                                                                    ; +0x152, 0x14015a182\nmov     rcx, rdi                                                       ; +0x153, 0x14015a183\ncall    sub_14003A830                                                  ; +0x156, 0x14015a186\nnop                                                                    ; +0x15b, 0x14015a18b\nmov     rcx, rsi                                                       ; +0x15c, 0x14015a18c\ncall    sub_14003A830                                                  ; +0x15f, 0x14015a18f\nmov     rcx, [rsp+88h+var_30]                                          ; +0x164, 0x14015a194\nxor     rcx, rsp; StackCookie                                          ; +0x169, 0x14015a199\ncall    __security_check_cookie                                        ; +0x16c, 0x14015a19c\nmov     rbx, [rsp+88h+arg_18]                                          ; +0x171, 0x14015a1a1\nadd     rsp, 60h                                                       ; +0x179, 0x14015a1a9\npop     r15                                                            ; +0x17d, 0x14015a1ad\npop     r14                                                            ; +0x17f, 0x14015a1af\npop     rdi                                                            ; +0x181, 0x14015a1b1\npop     rsi                                                            ; +0x182, 0x14015a1b2\npop     rbp                                                            ; +0x183, 0x14015a1b3\nretn                                                                   ; +0x184, 0x14015a1b4", "xrefs": ["GameLevelManager::handleIt @ 0x14014361b", "<???> @ 0x1406ca9e0"], "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"}