{"type": "func", "start": 5371049824, "end": 5371050385, "name": "GameLevelManager::onUploadUserMessageCompleted", "pseudocode": "// \n// GameLevelManager::onUploadUserMessageCompleted from 0x14023b760 to 0x14023b991 (561 bytes)\n// \n// 2 xrefs:\n// > GameLevelManager::handleIt @ 0x14021a335\n// > <???> @ 0x14091c0ac\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=4\nvoid __fastcall GameLevelManager::onUploadUserMessageCompleted(__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  unsigned int SplitIntFromKey; // r13d\n  const void *v11; // rcx\n  unsigned __int64 v12; // r12\n  size_t v13; // r8\n  int v14; // ebp\n  __int64 v15; // rcx\n  cocos2d::CCString *v16; // rax\n  char *CString; // rbx\n  __int64 v18; // rcx\n  void (__fastcall ***v19)(_QWORD, _QWORD); // rcx\n  void *v20; // [rsp+30h] [rbp-78h]\n  void *Block[2]; // [rsp+48h] [rbp-60h] BYREF\n  __int64 v22; // [rsp+58h] [rbp-50h]\n  unsigned __int64 v23; // [rsp+60h] [rbp-48h]\n\n  v6 = a3;\n  if ( (unsigned __int64)a3[3] > 0xF )\n    v6 = *a3;\n  *(_OWORD *)Block = 0;\n  v22 = 0;\n  v23 = 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 ( v23 > 0xF )\n  {\n    v9 = Block[0];\n    if ( v23 + 1 >= 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, 1);\n  *(_OWORD *)Block = 0;\n  v22 = 2;\n  v23 = 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  v14 = memcmp(v11, Block, v13);\n  if ( !v14 )\n  {\n    if ( v12 >= 2 )\n      v14 = v12 > 2;\n    else\n      v14 = -1;\n  }\n  if ( v14 )\n  {\n    v16 = cocos2d::CCString::createWithFormat(\"messages_%i_%i\", 1, 0);\n    CString = (char *)cocos2d::CCString::getCString(v16);\n    v18 = *(_QWORD *)&qword_14090BFB0;\n    if ( !*(_QWORD *)&qword_14090BFB0 )\n    {\n      v20 = operator new(0x690u);\n      *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v20);\n      (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);\n      v18 = *(_QWORD *)&qword_14090BFB0;\n    }\n    GameLevelManager::resetTimerForKey(v18, CString);\n    v19 = *(void (__fastcall ****)(_QWORD, _QWORD))(a1 + 1528);\n    if ( v19 )\n      (**v19)(v19, SplitIntFromKey);\n  }\n  else\n  {\n    v15 = *(_QWORD *)(a1 + 1528);\n    if ( v15 )\n      (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v15 + 8LL))(v15, SplitIntFromKey);\n    GameLevelManager::resetTimerForKey(a1, v6);\n  }\n  sub_14003D310((__int64)a2);\n  sub_14003D310((__int64)a3);\n}", "assembly": "; \n; GameLevelManager::onUploadUserMessageCompleted from 0x14023b760 to 0x14023b991 (561 bytes)\n; \n; 2 xrefs:\n; > GameLevelManager::handleIt @ 0x14021a335\n; > <???> @ 0x14091c0ac\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, 0x14023b760\npush    rbp                                                            ; +0x5, 0x14023b765\npush    rsi                                                            ; +0x6, 0x14023b766\npush    rdi                                                            ; +0x7, 0x14023b767\npush    r12                                                            ; +0x8, 0x14023b768\npush    r13                                                            ; +0xa, 0x14023b76a\npush    r14                                                            ; +0xc, 0x14023b76c\npush    r15                                                            ; +0xe, 0x14023b76e\nsub     rsp, 70h                                                       ; +0x10, 0x14023b770\nmov     rax, cs:__security_cookie                                      ; +0x14, 0x14023b774\nxor     rax, rsp                                                       ; +0x1b, 0x14023b77b\nmov     [rsp+0A8h+var_40], rax                                         ; +0x1e, 0x14023b77e\nmov     rdi, r8                                                        ; +0x23, 0x14023b783\nmov     rsi, rdx                                                       ; +0x26, 0x14023b786\nmov     r15, rcx                                                       ; +0x29, 0x14023b789\nmov     [rsp+0A8h+var_70], rdx                                         ; +0x2c, 0x14023b78c\nmov     [rsp+0A8h+var_68], r8                                          ; +0x31, 0x14023b791\nmov     rbx, r8                                                        ; +0x36, 0x14023b796\ncmp     qword ptr [r8+18h], 0Fh                                        ; +0x39, 0x14023b799\njbe     short loc_14023B7A3                                            ; +0x3e, 0x14023b79e\nmov     rbx, [r8]                                                      ; +0x40, 0x14023b7a0\nxorps   xmm0, xmm0                                                     ; +0x43, 0x14023b7a3\nmovups  xmmword ptr [rsp+0A8h+Block], xmm0                             ; +0x46, 0x14023b7a6\nxor     ebp, ebp                                                       ; +0x4b, 0x14023b7ab\nmov     [rsp+0A8h+var_50], rbp                                         ; +0x4d, 0x14023b7ad\nmov     [rsp+0A8h+var_48], rbp                                         ; +0x52, 0x14023b7b2\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x57, 0x14023b7b7\nxchg    ax, ax                                                         ; +0x5e, 0x14023b7be\ninc     r8                                                             ; +0x60, 0x14023b7c0\ncmp     [rbx+r8], bpl                                                  ; +0x63, 0x14023b7c3\njnz     short loc_14023B7C0                                            ; +0x67, 0x14023b7c7\nmov     rdx, rbx                                                       ; +0x69, 0x14023b7c9\nlea     rcx, [rsp+0A8h+Block]                                          ; +0x6c, 0x14023b7cc\ncall    sub_14003D230                                                  ; +0x71, 0x14023b7d1\nnop                                                                    ; +0x76, 0x14023b7d6\nlea     rdx, [rsp+0A8h+Block]                                          ; +0x77, 0x14023b7d7\nmov     rcx, [r15+4B0h]                                                ; +0x7c, 0x14023b7dc\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 &) ; +0x83, 0x14023b7e3\nnop                                                                    ; +0x89, 0x14023b7e9\nmov     rdx, [rsp+0A8h+var_48]                                         ; +0x8a, 0x14023b7ea\ncmp     rdx, 0Fh                                                       ; +0x8f, 0x14023b7ef\njbe     short loc_14023B839                                            ; +0x93, 0x14023b7f3\ninc     rdx                                                            ; +0x95, 0x14023b7f5\nmov     rcx, [rsp+0A8h+Block]; Block                                   ; +0x98, 0x14023b7f8\nmov     rax, rcx                                                       ; +0x9d, 0x14023b7fd\ncmp     rdx, 1000h                                                     ; +0xa0, 0x14023b800\njb      short loc_14023B834                                            ; +0xa7, 0x14023b807\nadd     rdx, 27h ; '''                                                 ; +0xa9, 0x14023b809\nmov     rcx, [rcx-8]                                                   ; +0xad, 0x14023b80d\nsub     rax, rcx                                                       ; +0xb1, 0x14023b811\nsub     rax, 8                                                         ; +0xb4, 0x14023b814\ncmp     rax, 1Fh                                                       ; +0xb8, 0x14023b818\njbe     short loc_14023B834                                            ; +0xbc, 0x14023b81c\nmov     [rsp+0A8h+Reserved], rbp; Reserved                             ; +0xbe, 0x14023b81e\nxor     r9d, r9d; LineNo                                               ; +0xc3, 0x14023b823\nxor     r8d, r8d; FileName                                             ; +0xc6, 0x14023b826\nxor     edx, edx; FunctionName                                         ; +0xc9, 0x14023b829\nxor     ecx, ecx; Expression                                           ; +0xcb, 0x14023b82b\ncall    cs:_invoke_watson                                              ; +0xcd, 0x14023b82d\nalign 4                                                                ; +0xd3, 0x14023b833\ncall    j_j_free                                                       ; +0xd4, 0x14023b834\nmov     r8d, 1                                                         ; +0xd9, 0x14023b839\nmov     rdx, rbx                                                       ; +0xdf, 0x14023b83f\ncall    GameLevelManager__getSplitIntFromKey                           ; +0xe2, 0x14023b842\nmov     r13d, eax                                                      ; +0xe7, 0x14023b847\nxorps   xmm0, xmm0                                                     ; +0xea, 0x14023b84a\nmovups  xmmword ptr [rsp+0A8h+Block], xmm0                             ; +0xed, 0x14023b84d\nmov     eax, 2                                                         ; +0xf2, 0x14023b852\nmov     [rsp+0A8h+var_50], rax                                         ; +0xf7, 0x14023b857\nmov     r8d, 0Fh                                                       ; +0xfc, 0x14023b85c\nmov     [rsp+0A8h+var_48], r8                                          ; +0x102, 0x14023b862\nmovzx   ecx, word ptr cs:a1; \"-1\"                                      ; +0x107, 0x14023b867\nmov     word ptr [rsp+0A8h+Block], cx                                  ; +0x10e, 0x14023b86e\nmov     byte ptr [rsp+0A8h+Block+2], 0                                 ; +0x113, 0x14023b873\nlea     rdx, [rsp+0A8h+Block]; Buf2                                    ; +0x118, 0x14023b878\nmov     rcx, rsi                                                       ; +0x11d, 0x14023b87d\ncmp     [rsi+18h], r8                                                  ; +0x120, 0x14023b880\njbe     short loc_14023B889                                            ; +0x124, 0x14023b884\nmov     rcx, [rsi]; Buf1                                               ; +0x126, 0x14023b886\nmov     r12, [rsi+10h]                                                 ; +0x129, 0x14023b889\nmov     r8, r12                                                        ; +0x12d, 0x14023b88d\ncmp     rax, r12                                                       ; +0x130, 0x14023b890\ncmovb   r8, rax; Size                                                  ; +0x133, 0x14023b893\ncall    memcmp                                                         ; +0x137, 0x14023b897\nmov     ebp, eax                                                       ; +0x13c, 0x14023b89c\ntest    eax, eax                                                       ; +0x13e, 0x14023b89e\njnz     short loc_14023B8B9                                            ; +0x140, 0x14023b8a0\ncmp     r12, 2                                                         ; +0x142, 0x14023b8a2\njnb     short loc_14023B8AF                                            ; +0x146, 0x14023b8a6\nmov     ebp, 0FFFFFFFFh                                                ; +0x148, 0x14023b8a8\njmp     short loc_14023B8B9                                            ; +0x14d, 0x14023b8ad\nxor     ebp, ebp                                                       ; +0x14f, 0x14023b8af\ncmp     r12, 2                                                         ; +0x151, 0x14023b8b1\nsetnbe  bpl                                                            ; +0x155, 0x14023b8b5\ntest    ebp, ebp                                                       ; +0x159, 0x14023b8b9\njnz     short loc_14023B8DF                                            ; +0x15b, 0x14023b8bb\nmov     rcx, [r15+5F8h]                                                ; +0x15d, 0x14023b8bd\ntest    rcx, rcx                                                       ; +0x164, 0x14023b8c4\njz      short loc_14023B8D2                                            ; +0x167, 0x14023b8c7\nmov     rax, [rcx]                                                     ; +0x169, 0x14023b8c9\nmov     edx, r13d                                                      ; +0x16c, 0x14023b8cc\ncall    qword ptr [rax+8]                                              ; +0x16f, 0x14023b8cf\nmov     rdx, rbx                                                       ; +0x172, 0x14023b8d2\nmov     rcx, r15                                                       ; +0x175, 0x14023b8d5\ncall    GameLevelManager__resetTimerForKey                             ; +0x178, 0x14023b8d8\njmp     short loc_14023B95B                                            ; +0x17d, 0x14023b8dd\nxor     r8d, r8d                                                       ; +0x17f, 0x14023b8df\nmov     edx, 1                                                         ; +0x182, 0x14023b8e2\nlea     rcx, aMessagesII; \"messages_%i_%i\"                             ; +0x187, 0x14023b8e7\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x18e, 0x14023b8ee\nmov     rcx, rax                                                       ; +0x194, 0x14023b8f4\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x197, 0x14023b8f7\nmov     rbx, rax                                                       ; +0x19d, 0x14023b8fd\nmov     rcx, cs:qword_14090BFB0                                        ; +0x1a0, 0x14023b900\ntest    rcx, rcx                                                       ; +0x1a7, 0x14023b907\njnz     short loc_14023B93E                                            ; +0x1aa, 0x14023b90a\nmov     ecx, 690h; Size                                                ; +0x1ac, 0x14023b90c\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1b1, 0x14023b911\nmov     [rsp+0A8h+var_78], rax                                         ; +0x1b6, 0x14023b916\nmov     rcx, rax                                                       ; +0x1bb, 0x14023b91b\ncall    GameLevelManager__GameLevelManager                             ; +0x1be, 0x14023b91e\nnop                                                                    ; +0x1c3, 0x14023b923\nmov     cs:qword_14090BFB0, rax                                        ; +0x1c4, 0x14023b924\nmov     rcx, [rax]                                                     ; +0x1cb, 0x14023b92b\nmov     rdx, [rcx+48h]                                                 ; +0x1ce, 0x14023b92e\nmov     rcx, rax                                                       ; +0x1d2, 0x14023b932\ncall    rdx                                                            ; +0x1d5, 0x14023b935\nmov     rcx, cs:qword_14090BFB0                                        ; +0x1d7, 0x14023b937\nmov     rdx, rbx                                                       ; +0x1de, 0x14023b93e\ncall    GameLevelManager__resetTimerForKey                             ; +0x1e1, 0x14023b941\nmov     rcx, [r15+5F8h]                                                ; +0x1e6, 0x14023b946\ntest    rcx, rcx                                                       ; +0x1ed, 0x14023b94d\njz      short loc_14023B95B                                            ; +0x1f0, 0x14023b950\nmov     rax, [rcx]                                                     ; +0x1f2, 0x14023b952\nmov     edx, r13d                                                      ; +0x1f5, 0x14023b955\ncall    qword ptr [rax]                                                ; +0x1f8, 0x14023b958\nnop                                                                    ; +0x1fa, 0x14023b95a\nmov     rcx, rsi                                                       ; +0x1fb, 0x14023b95b\ncall    sub_14003D310                                                  ; +0x1fe, 0x14023b95e\nnop                                                                    ; +0x203, 0x14023b963\nmov     rcx, rdi                                                       ; +0x204, 0x14023b964\ncall    sub_14003D310                                                  ; +0x207, 0x14023b967\nmov     rcx, [rsp+0A8h+var_40]                                         ; +0x20c, 0x14023b96c\nxor     rcx, rsp; StackCookie                                          ; +0x211, 0x14023b971\ncall    __security_check_cookie                                        ; +0x214, 0x14023b974\nmov     rbx, [rsp+0A8h+arg_18]                                         ; +0x219, 0x14023b979\nadd     rsp, 70h                                                       ; +0x221, 0x14023b981\npop     r15                                                            ; +0x225, 0x14023b985\npop     r14                                                            ; +0x227, 0x14023b987\npop     r13                                                            ; +0x229, 0x14023b989\npop     r12                                                            ; +0x22b, 0x14023b98b\npop     rdi                                                            ; +0x22d, 0x14023b98d\npop     rsi                                                            ; +0x22e, 0x14023b98e\npop     rbp                                                            ; +0x22f, 0x14023b98f\nretn                                                                   ; +0x230, 0x14023b990", "xrefs": ["GameLevelManager::handleIt @ 0x14021a335", "<???> @ 0x14091c0ac"], "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"}