{"type": "func", "start": 5371162592, "end": 5371163035, "name": "GameLevelManager::onUnblockUserCompleted", "pseudocode": "// \n// GameLevelManager::onUnblockUserCompleted from 0x140256fe0 to 0x14025719b (443 bytes)\n// \n// 2 xrefs:\n// > GameLevelManager::handleIt @ 0x14021a1d3\n// > <???> @ 0x14091c604\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:44 +0000\n// \n\n// Hidden C++ exception states: #wind=3\nvoid __fastcall GameLevelManager::onUnblockUserCompleted(__int64 a1, const void **a2, void **a3)\n{\n  _BYTE *v6; // rbx\n  size_t v7; // r8\n  __int64 v8; // rcx\n  void *v9; // rcx\n  __int64 SplitIntFromKey; // rbp\n  const void *v11; // rcx\n  unsigned __int64 v12; // rbx\n  size_t v13; // r8\n  void (__fastcall ***v14)(_QWORD, _QWORD, __int64); // rcx\n  __int64 v15; // rcx\n  void *Block[2]; // [rsp+40h] [rbp-58h] BYREF\n  __int128 v17; // [rsp+50h] [rbp-48h]\n\n  v6 = a3;\n  if ( (unsigned __int64)a3[3] > 0xF )\n    v6 = *a3;\n  *(_OWORD *)Block = 0;\n  v17 = 0;\n  v7 = -1;\n  do\n    ++v7;\n  while ( v6[v7] );\n  sub_14003D230(Block, v6, v7);\n  cocos2d::CCDictionary::removeObjectForKey(*(_QWORD *)(a1 + 1200), Block);\n  if ( *((_QWORD *)&v17 + 1) > 0xFu )\n  {\n    v9 = Block[0];\n    if ( (unsigned __int64)(*((_QWORD *)&v17 + 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  SplitIntFromKey = GameLevelManager::getSplitIntFromKey(v8, v6, 1u);\n  *(_OWORD *)Block = 0;\n  *(_QWORD *)&v17 = 2;\n  *((_QWORD *)&v17 + 1) = 15;\n  strcpy((char *)Block, \"-1\");\n  v11 = a2;\n  if ( (unsigned __int64)a2[3] > 0xF )\n    v11 = *a2;\n  v12 = (unsigned __int64)a2[2];\n  v13 = v12;\n  if ( v12 > 2 )\n    v13 = 2;\n  if ( !memcmp(v11, Block, v13) && v12 == 2 )\n  {\n    v15 = *(_QWORD *)(a1 + 1488);\n    if ( v15 )\n      (*(void (__fastcall **)(__int64, _QWORD, __int64))(*(_QWORD *)v15 + 8LL))(v15, (unsigned int)SplitIntFromKey, 41);\n  }\n  else\n  {\n    v14 = *(void (__fastcall ****)(_QWORD, _QWORD, __int64))(a1 + 1488);\n    if ( v14 )\n      (**v14)(v14, (unsigned int)SplitIntFromKey, 41);\n    cocos2d::CCDictionary::removeObjectForKey(*(cocos2d::CCDictionary **)(a1 + 1232), SplitIntFromKey);\n    GameLevelManager::removeUserFromList(a1, (unsigned int)SplitIntFromKey, 1);\n  }\n  sub_14003D310((__int64)a2);\n  sub_14003D310((__int64)a3);\n}", "assembly": "; \n; GameLevelManager::onUnblockUserCompleted from 0x140256fe0 to 0x14025719b (443 bytes)\n; \n; 2 xrefs:\n; > GameLevelManager::handleIt @ 0x14021a1d3\n; > <???> @ 0x14091c604\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:44 +0000\n; \npush    rbx                                                            ; +0x0, 0x140256fe0\npush    rbp                                                            ; +0x2, 0x140256fe2\npush    rsi                                                            ; +0x3, 0x140256fe3\npush    rdi                                                            ; +0x4, 0x140256fe4\npush    r14                                                            ; +0x5, 0x140256fe5\nsub     rsp, 70h                                                       ; +0x7, 0x140256fe7\nmov     rax, cs:__security_cookie                                      ; +0xb, 0x140256feb\nxor     rax, rsp                                                       ; +0x12, 0x140256ff2\nmov     [rsp+98h+var_38], rax                                          ; +0x15, 0x140256ff5\nmov     rsi, r8                                                        ; +0x1a, 0x140256ffa\nmov     r14, rdx                                                       ; +0x1d, 0x140256ffd\nmov     rdi, rcx                                                       ; +0x20, 0x140257000\nmov     [rsp+98h+var_68], rdx                                          ; +0x23, 0x140257003\nmov     [rsp+98h+var_60], r8                                           ; +0x28, 0x140257008\nmov     rbx, r8                                                        ; +0x2d, 0x14025700d\ncmp     qword ptr [r8+18h], 0Fh                                        ; +0x30, 0x140257010\njbe     short loc_14025701A                                            ; +0x35, 0x140257015\nmov     rbx, [r8]                                                      ; +0x37, 0x140257017\nxorps   xmm0, xmm0                                                     ; +0x3a, 0x14025701a\nmovups  xmmword ptr [rsp+98h+Block], xmm0                              ; +0x3d, 0x14025701d\nxorps   xmm1, xmm1                                                     ; +0x42, 0x140257022\nmovdqu  [rsp+98h+var_48], xmm1                                         ; +0x45, 0x140257025\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x4b, 0x14025702b\ninc     r8                                                             ; +0x52, 0x140257032\ncmp     byte ptr [rbx+r8], 0                                           ; +0x55, 0x140257035\njnz     short loc_140257032                                            ; +0x5a, 0x14025703a\nmov     rdx, rbx                                                       ; +0x5c, 0x14025703c\nlea     rcx, [rsp+98h+Block]                                           ; +0x5f, 0x14025703f\ncall    sub_14003D230                                                  ; +0x64, 0x140257044\nnop                                                                    ; +0x69, 0x140257049\nlea     rdx, [rsp+98h+Block]                                           ; +0x6a, 0x14025704a\nmov     rcx, [rdi+4B0h]                                                ; +0x6f, 0x14025704f\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 &) ; +0x76, 0x140257056\nnop                                                                    ; +0x7c, 0x14025705c\nmov     rdx, qword ptr [rsp+98h+var_48+8]                              ; +0x7d, 0x14025705d\ncmp     rdx, 0Fh                                                       ; +0x82, 0x140257062\njbe     short loc_1402570B0                                            ; +0x86, 0x140257066\ninc     rdx                                                            ; +0x88, 0x140257068\nmov     rcx, [rsp+98h+Block]; Block                                    ; +0x8b, 0x14025706b\nmov     rax, rcx                                                       ; +0x90, 0x140257070\ncmp     rdx, 1000h                                                     ; +0x93, 0x140257073\njb      short loc_1402570AB                                            ; +0x9a, 0x14025707a\nadd     rdx, 27h ; '''                                                 ; +0x9c, 0x14025707c\nmov     rcx, [rcx-8]                                                   ; +0xa0, 0x140257080\nsub     rax, rcx                                                       ; +0xa4, 0x140257084\nsub     rax, 8                                                         ; +0xa7, 0x140257087\ncmp     rax, 1Fh                                                       ; +0xab, 0x14025708b\njbe     short loc_1402570AB                                            ; +0xaf, 0x14025708f\nmov     [rsp+98h+Reserved], 0; Reserved                                ; +0xb1, 0x140257091\nxor     r9d, r9d; LineNo                                               ; +0xba, 0x14025709a\nxor     r8d, r8d; FileName                                             ; +0xbd, 0x14025709d\nxor     edx, edx; FunctionName                                         ; +0xc0, 0x1402570a0\nxor     ecx, ecx; Expression                                           ; +0xc2, 0x1402570a2\ncall    cs:_invoke_watson                                              ; +0xc4, 0x1402570a4\ndb 0CCh                                                                ; +0xca, 0x1402570aa\ncall    j_j_free                                                       ; +0xcb, 0x1402570ab\nmov     r8d, 1                                                         ; +0xd0, 0x1402570b0\nmov     rdx, rbx                                                       ; +0xd6, 0x1402570b6\ncall    GameLevelManager__getSplitIntFromKey                           ; +0xd9, 0x1402570b9\nmovsxd  rbp, eax                                                       ; +0xde, 0x1402570be\nxorps   xmm0, xmm0                                                     ; +0xe1, 0x1402570c1\nmovups  xmmword ptr [rsp+98h+Block], xmm0                              ; +0xe4, 0x1402570c4\nmov     edx, 2                                                         ; +0xe9, 0x1402570c9\nmov     qword ptr [rsp+98h+var_48], rdx                                ; +0xee, 0x1402570ce\nmov     qword ptr [rsp+98h+var_48+8], 0Fh                              ; +0xf3, 0x1402570d3\nmov     eax, 312Dh                                                     ; +0xfc, 0x1402570dc\nmov     word ptr [rsp+98h+Block], ax                                   ; +0x101, 0x1402570e1\nmov     byte ptr [rsp+98h+Block+2], 0                                  ; +0x106, 0x1402570e6\nmov     rcx, r14                                                       ; +0x10b, 0x1402570eb\ncmp     qword ptr [r14+18h], 0Fh                                       ; +0x10e, 0x1402570ee\njbe     short loc_1402570F8                                            ; +0x113, 0x1402570f3\nmov     rcx, [r14]; Buf1                                               ; +0x115, 0x1402570f5\nmov     rbx, [r14+10h]                                                 ; +0x118, 0x1402570f8\nmov     r8, rbx                                                        ; +0x11c, 0x1402570fc\ncmp     rbx, rdx                                                       ; +0x11f, 0x1402570ff\ncmova   r8, rdx; Size                                                  ; +0x122, 0x140257102\nlea     rdx, [rsp+98h+Block]; Buf2                                     ; +0x126, 0x140257106\ncall    memcmp                                                         ; +0x12b, 0x14025710b\ntest    eax, eax                                                       ; +0x130, 0x140257110\njnz     short loc_14025711C                                            ; +0x132, 0x140257112\ncmp     rbx, 2                                                         ; +0x134, 0x140257114\njb      short loc_14025711C                                            ; +0x138, 0x140257118\njbe     short loc_140257157                                            ; +0x13a, 0x14025711a\nmov     rcx, [rdi+5D0h]                                                ; +0x13c, 0x14025711c\ntest    rcx, rcx                                                       ; +0x143, 0x140257123\njz      short loc_140257135                                            ; +0x146, 0x140257126\nmov     rax, [rcx]                                                     ; +0x148, 0x140257128\nmov     r8d, 29h ; ')'                                                 ; +0x14b, 0x14025712b\nmov     edx, ebp                                                       ; +0x151, 0x140257131\ncall    qword ptr [rax]                                                ; +0x153, 0x140257133\nmov     rdx, rbp                                                       ; +0x155, 0x140257135\nmov     rcx, [rdi+4D0h]                                                ; +0x158, 0x140257138\ncall    cs:?removeObjectForKey@CCDictionary@cocos2d@@QEAAX_J@Z; cocos2d::CCDictionary::removeObjectForKey(__int64) ; +0x15f, 0x14025713f\nmov     r8d, 1                                                         ; +0x165, 0x140257145\nmov     edx, ebp                                                       ; +0x16b, 0x14025714b\nmov     rcx, rdi                                                       ; +0x16d, 0x14025714d\ncall    GameLevelManager__removeUserFromList                           ; +0x170, 0x140257150\njmp     short loc_140257172                                            ; +0x175, 0x140257155\nmov     rcx, [rdi+5D0h]                                                ; +0x177, 0x140257157\ntest    rcx, rcx                                                       ; +0x17e, 0x14025715e\njz      short loc_140257172                                            ; +0x181, 0x140257161\nmov     rax, [rcx]                                                     ; +0x183, 0x140257163\nmov     r8d, 29h ; ')'                                                 ; +0x186, 0x140257166\nmov     edx, ebp                                                       ; +0x18c, 0x14025716c\ncall    qword ptr [rax+8]                                              ; +0x18e, 0x14025716e\nnop                                                                    ; +0x191, 0x140257171\nmov     rcx, r14                                                       ; +0x192, 0x140257172\ncall    sub_14003D310                                                  ; +0x195, 0x140257175\nnop                                                                    ; +0x19a, 0x14025717a\nmov     rcx, rsi                                                       ; +0x19b, 0x14025717b\ncall    sub_14003D310                                                  ; +0x19e, 0x14025717e\nmov     rcx, [rsp+98h+var_38]                                          ; +0x1a3, 0x140257183\nxor     rcx, rsp; StackCookie                                          ; +0x1a8, 0x140257188\ncall    __security_check_cookie                                        ; +0x1ab, 0x14025718b\nadd     rsp, 70h                                                       ; +0x1b0, 0x140257190\npop     r14                                                            ; +0x1b4, 0x140257194\npop     rdi                                                            ; +0x1b6, 0x140257196\npop     rsi                                                            ; +0x1b7, 0x140257197\npop     rbp                                                            ; +0x1b8, 0x140257198\npop     rbx                                                            ; +0x1b9, 0x140257199\nretn                                                                   ; +0x1ba, 0x14025719a", "xrefs": ["GameLevelManager::handleIt @ 0x14021a1d3", "<???> @ 0x14091c604"], "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"}