{"type": "func", "start": 5371049440, "end": 5371049810, "name": "GameLevelManager::onDownloadUserMessageCompleted", "pseudocode": "// \n// GameLevelManager::onDownloadUserMessageCompleted from 0x14023b5e0 to 0x14023b752 (370 bytes)\n// \n// 2 xrefs:\n// > GameLevelManager::handleIt @ 0x14021a2fa\n// > <???> @ 0x14091c0a0\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=2\nvoid __fastcall GameLevelManager::onDownloadUserMessageCompleted(__int64 a1, const void **a2, _QWORD *a3)\n{\n  _BYTE *v6; // rbp\n  unsigned int SplitIntFromKey; // r15d\n  _BYTE *v8; // rcx\n  unsigned __int64 v9; // rbp\n  size_t v10; // r8\n  _BYTE *v11; // rdx\n  size_t v12; // r8\n  __int64 v13; // rax\n  int *v14; // rax\n  int *v15; // rbp\n  __int64 v16; // rcx\n  void (__fastcall ***v17)(_QWORD, int *); // rcx\n  __int128 Buf2; // [rsp+20h] [rbp-68h] BYREF\n  __int64 v19; // [rsp+30h] [rbp-58h]\n  __int64 v20; // [rsp+38h] [rbp-50h]\n  const void **v21; // [rsp+48h] [rbp-40h]\n  _QWORD *v22; // [rsp+50h] [rbp-38h]\n\n  v21 = a2;\n  v22 = a3;\n  v6 = a3;\n  if ( a3[3] > 0xFu )\n    v6 = (_BYTE *)*a3;\n  SplitIntFromKey = GameLevelManager::getSplitIntFromKey(a1, v6, 1);\n  GameLevelManager::removeDLFromActive(a1, v6);\n  Buf2 = 0;\n  v19 = 2;\n  v20 = 15;\n  strcpy((char *)&Buf2, \"-1\");\n  v8 = a2;\n  if ( (unsigned __int64)a2[3] > 0xF )\n    v8 = *a2;\n  v9 = (unsigned __int64)a2[2];\n  v10 = v9;\n  if ( v9 > 2 )\n    v10 = 2;\n  if ( !memcmp(v8, &Buf2, v10) && v9 == 2 )\n    goto LABEL_14;\n  v11 = a2;\n  if ( (unsigned __int64)a2[3] > 0xF )\n    v11 = *a2;\n  Buf2 = 0;\n  v19 = 0;\n  v20 = 0;\n  v12 = -1;\n  do\n    ++v12;\n  while ( v11[v12] );\n  sub_14003D230(&Buf2, v11, v12);\n  v13 = GameLevelManager::responseToDict(&Buf2, 0);\n  v14 = (int *)GJUserMessage::create(v13);\n  v15 = v14;\n  if ( !v14 )\n  {\nLABEL_14:\n    v16 = *(_QWORD *)(a1 + 1520);\n    if ( v16 )\n      (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v16 + 8LL))(v16, SplitIntFromKey);\n  }\n  else\n  {\n    cocos2d::CCDictionary::setObject(*(cocos2d::CCDictionary **)(a1 + 1248), (struct cocos2d::CCObject *)v14, v14[80]);\n    v17 = *(void (__fastcall ****)(_QWORD, int *))(a1 + 1520);\n    if ( v17 )\n      (**v17)(v17, v15);\n  }\n  sub_14003D310((__int64)a2);\n  sub_14003D310((__int64)a3);\n}", "assembly": "; \n; GameLevelManager::onDownloadUserMessageCompleted from 0x14023b5e0 to 0x14023b752 (370 bytes)\n; \n; 2 xrefs:\n; > GameLevelManager::handleIt @ 0x14021a2fa\n; > <???> @ 0x14091c0a0\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; \npush    rbx                                                            ; +0x0, 0x14023b5e0\npush    rbp                                                            ; +0x2, 0x14023b5e2\npush    rsi                                                            ; +0x3, 0x14023b5e3\npush    rdi                                                            ; +0x4, 0x14023b5e4\npush    r15                                                            ; +0x5, 0x14023b5e5\nsub     rsp, 60h                                                       ; +0x7, 0x14023b5e7\nmov     rax, cs:__security_cookie                                      ; +0xb, 0x14023b5eb\nxor     rax, rsp                                                       ; +0x12, 0x14023b5f2\nmov     [rsp+88h+var_30], rax                                          ; +0x15, 0x14023b5f5\nmov     rdi, r8                                                        ; +0x1a, 0x14023b5fa\nmov     rbx, rdx                                                       ; +0x1d, 0x14023b5fd\nmov     rsi, rcx                                                       ; +0x20, 0x14023b600\nmov     [rsp+88h+var_40], rdx                                          ; +0x23, 0x14023b603\nmov     [rsp+88h+var_38], r8                                           ; +0x28, 0x14023b608\nmov     rbp, r8                                                        ; +0x2d, 0x14023b60d\ncmp     qword ptr [r8+18h], 0Fh                                        ; +0x30, 0x14023b610\njbe     short loc_14023B61A                                            ; +0x35, 0x14023b615\nmov     rbp, [r8]                                                      ; +0x37, 0x14023b617\nmov     r8d, 1                                                         ; +0x3a, 0x14023b61a\nmov     rdx, rbp                                                       ; +0x40, 0x14023b620\ncall    GameLevelManager__getSplitIntFromKey                           ; +0x43, 0x14023b623\nmov     r15d, eax                                                      ; +0x48, 0x14023b628\nmov     rdx, rbp                                                       ; +0x4b, 0x14023b62b\nmov     rcx, rsi                                                       ; +0x4e, 0x14023b62e\ncall    GameLevelManager__removeDLFromActive                           ; +0x51, 0x14023b631\nxorps   xmm0, xmm0                                                     ; +0x56, 0x14023b636\nmovups  [rsp+88h+Buf2], xmm0                                           ; +0x59, 0x14023b639\nmov     edx, 2                                                         ; +0x5e, 0x14023b63e\nmov     [rsp+88h+var_58], rdx                                          ; +0x63, 0x14023b643\nmov     [rsp+88h+var_50], 0Fh                                          ; +0x68, 0x14023b648\nmov     eax, 312Dh                                                     ; +0x71, 0x14023b651\nmov     word ptr [rsp+88h+Buf2], ax                                    ; +0x76, 0x14023b656\nmov     byte ptr [rsp+88h+Buf2+2], 0                                   ; +0x7b, 0x14023b65b\nmov     rcx, rbx                                                       ; +0x80, 0x14023b660\ncmp     qword ptr [rbx+18h], 0Fh                                       ; +0x83, 0x14023b663\njbe     short loc_14023B66D                                            ; +0x88, 0x14023b668\nmov     rcx, [rbx]; Buf1                                               ; +0x8a, 0x14023b66a\nmov     rbp, [rbx+10h]                                                 ; +0x8d, 0x14023b66d\nmov     r8, rbp                                                        ; +0x91, 0x14023b671\ncmp     rbp, rdx                                                       ; +0x94, 0x14023b674\ncmova   r8, rdx; Size                                                  ; +0x97, 0x14023b677\nlea     rdx, [rsp+88h+Buf2]; Buf2                                      ; +0x9b, 0x14023b67b\ncall    memcmp                                                         ; +0xa0, 0x14023b680\ntest    eax, eax                                                       ; +0xa5, 0x14023b685\njnz     short loc_14023B68F                                            ; +0xa7, 0x14023b687\ncmp     rbp, 2                                                         ; +0xa9, 0x14023b689\njz      short loc_14023B6E6                                            ; +0xad, 0x14023b68d\nmov     rdx, rbx                                                       ; +0xaf, 0x14023b68f\ncmp     qword ptr [rbx+18h], 0Fh                                       ; +0xb2, 0x14023b692\njbe     short loc_14023B69C                                            ; +0xb7, 0x14023b697\nmov     rdx, [rbx]                                                     ; +0xb9, 0x14023b699\nxorps   xmm0, xmm0                                                     ; +0xbc, 0x14023b69c\nmovups  [rsp+88h+Buf2], xmm0                                           ; +0xbf, 0x14023b69f\nxor     eax, eax                                                       ; +0xc4, 0x14023b6a4\nmov     [rsp+88h+var_58], rax                                          ; +0xc6, 0x14023b6a6\nmov     [rsp+88h+var_50], rax                                          ; +0xcb, 0x14023b6ab\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0xd0, 0x14023b6b0\ninc     r8                                                             ; +0xd7, 0x14023b6b7\ncmp     [rdx+r8], al                                                   ; +0xda, 0x14023b6ba\njnz     short loc_14023B6B7                                            ; +0xde, 0x14023b6be\nlea     rcx, [rsp+88h+Buf2]                                            ; +0xe0, 0x14023b6c0\ncall    sub_14003D230                                                  ; +0xe5, 0x14023b6c5\nxor     edx, edx                                                       ; +0xea, 0x14023b6ca\nlea     rcx, [rsp+88h+Buf2]                                            ; +0xec, 0x14023b6cc\ncall    GameLevelManager__responseToDict                               ; +0xf1, 0x14023b6d1\nmov     rcx, rax                                                       ; +0xf6, 0x14023b6d6\ncall    GJUserMessage__create                                          ; +0xf9, 0x14023b6d9\nmov     rbp, rax                                                       ; +0xfe, 0x14023b6de\ntest    rax, rax                                                       ; +0x101, 0x14023b6e1\njnz     short loc_14023B6FD                                            ; +0x104, 0x14023b6e4\nmov     rcx, [rsi+5F0h]                                                ; +0x106, 0x14023b6e6\ntest    rcx, rcx                                                       ; +0x10d, 0x14023b6ed\njz      short loc_14023B729                                            ; +0x110, 0x14023b6f0\nmov     rax, [rcx]                                                     ; +0x112, 0x14023b6f2\nmov     edx, r15d                                                      ; +0x115, 0x14023b6f5\ncall    qword ptr [rax+8]                                              ; +0x118, 0x14023b6f8\njmp     short loc_14023B729                                            ; +0x11b, 0x14023b6fb\nmovsxd  r8, dword ptr [rax+140h]                                       ; +0x11d, 0x14023b6fd\nmov     rdx, rbp                                                       ; +0x124, 0x14023b704\nmov     rcx, [rsi+4E0h]                                                ; +0x127, 0x14023b707\ncall    cs:?setObject@CCDictionary@cocos2d@@QEAAXPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,__int64) ; +0x12e, 0x14023b70e\nmov     rcx, [rsi+5F0h]                                                ; +0x134, 0x14023b714\ntest    rcx, rcx                                                       ; +0x13b, 0x14023b71b\njz      short loc_14023B729                                            ; +0x13e, 0x14023b71e\nmov     rax, [rcx]                                                     ; +0x140, 0x14023b720\nmov     rdx, rbp                                                       ; +0x143, 0x14023b723\ncall    qword ptr [rax]                                                ; +0x146, 0x14023b726\nnop                                                                    ; +0x148, 0x14023b728\nmov     rcx, rbx                                                       ; +0x149, 0x14023b729\ncall    sub_14003D310                                                  ; +0x14c, 0x14023b72c\nnop                                                                    ; +0x151, 0x14023b731\nmov     rcx, rdi                                                       ; +0x152, 0x14023b732\ncall    sub_14003D310                                                  ; +0x155, 0x14023b735\nmov     rcx, [rsp+88h+var_30]                                          ; +0x15a, 0x14023b73a\nxor     rcx, rsp; StackCookie                                          ; +0x15f, 0x14023b73f\ncall    __security_check_cookie                                        ; +0x162, 0x14023b742\nadd     rsp, 60h                                                       ; +0x167, 0x14023b747\npop     r15                                                            ; +0x16b, 0x14023b74b\npop     rdi                                                            ; +0x16d, 0x14023b74d\npop     rsi                                                            ; +0x16e, 0x14023b74e\npop     rbp                                                            ; +0x16f, 0x14023b74f\npop     rbx                                                            ; +0x170, 0x14023b750\nretn                                                                   ; +0x171, 0x14023b751", "xrefs": ["GameLevelManager::handleIt @ 0x14021a2fa", "<???> @ 0x14091c0a0"], "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"}