{"type": "func", "start": 5371885872, "end": 5371886127, "name": "LevelListLayer::shareCommentClosed", "pseudocode": "// \n// LevelListLayer::shareCommentClosed from 0x140307930 to 0x140307a2f (255 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1405890f8\n// > <???> @ 0x1406d4508\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 LevelListLayer::shareCommentClosed(__int64 a1, __int64 a2)\n{\n  __int64 v4; // rax\n  __int64 v5; // rbx\n  void **v6; // rcx\n  void **v7; // rdx\n  void *Src[2]; // [rsp+28h] [rbp-70h] BYREF\n  size_t Size[2]; // [rsp+38h] [rbp-60h]\n  _BYTE v10[32]; // [rsp+48h] [rbp-50h] BYREF\n  __int64 v11; // [rsp+68h] [rbp-30h]\n\n  v11 = a2;\n  v4 = sub_14003BDB0((__int64)v10, a2);\n  v5 = v4;\n  if ( *(_QWORD *)(v4 + 16) )\n  {\n    cocos2d::ZipUtils::base64URLEncode(Src, v4);\n  }\n  else\n  {\n    *(_OWORD *)Src = 0;\n    Size[0] = 0;\n    Size[1] = 0;\n    *(_OWORD *)Src = *(_OWORD *)v4;\n    *(_OWORD *)Size = *(_OWORD *)(v4 + 16);\n    *(_QWORD *)(v4 + 16) = 0;\n    *(_QWORD *)(v4 + 24) = 15;\n    *(_BYTE *)v4 = 0;\n  }\n  sub_14003A830(v5);\n  v6 = (void **)(*(_QWORD *)(a1 + 288) + 528LL);\n  if ( v6 != Src )\n  {\n    v7 = Src;\n    if ( Size[1] > 0xF )\n      v7 = (void **)Src[0];\n    sub_14003CCE0(v6, v7, Size[0]);\n  }\n  sub_14003A830((__int64)Src);\n  sub_14003A830(a2);\n}", "assembly": "; \n; LevelListLayer::shareCommentClosed from 0x140307930 to 0x140307a2f (255 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1405890f8\n; > <???> @ 0x1406d4508\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_10], rbx                                              ; +0x0, 0x140307930\npush    rbp                                                            ; +0x5, 0x140307935\npush    rsi                                                            ; +0x6, 0x140307936\npush    rdi                                                            ; +0x7, 0x140307937\nsub     rsp, 80h                                                       ; +0x8, 0x140307938\nmov     rax, cs:__security_cookie                                      ; +0xf, 0x14030793f\nxor     rax, rsp                                                       ; +0x16, 0x140307946\nmov     [rsp+98h+var_28], rax                                          ; +0x19, 0x140307949\nmov     rdi, rdx                                                       ; +0x1e, 0x14030794e\nmov     rsi, rcx                                                       ; +0x21, 0x140307951\nmov     [rsp+98h+var_30], rdx                                          ; +0x24, 0x140307954\nxor     ebp, ebp                                                       ; +0x29, 0x140307959\nlea     rcx, [rsp+98h+var_50]                                          ; +0x2b, 0x14030795b\ncall    sub_14003BDB0                                                  ; +0x30, 0x140307960\nmov     rbx, rax                                                       ; +0x35, 0x140307965\nmov     [rsp+98h+var_78], rax                                          ; +0x38, 0x140307968\ncmp     [rax+10h], rbp                                                 ; +0x3d, 0x14030796d\njnz     short loc_1403079A7                                            ; +0x41, 0x140307971\nxorps   xmm0, xmm0                                                     ; +0x43, 0x140307973\nmovups  xmmword ptr [rsp+98h+Src], xmm0                                ; +0x46, 0x140307976\nmov     [rsp+98h+Size], rbp                                            ; +0x4b, 0x14030797b\nmov     [rsp+98h+Size+8], rbp                                          ; +0x50, 0x140307980\nmovups  xmm0, xmmword ptr [rax]                                        ; +0x55, 0x140307985\nmovups  xmmword ptr [rsp+98h+Src], xmm0                                ; +0x58, 0x140307988\nmovups  xmm1, xmmword ptr [rax+10h]                                    ; +0x5d, 0x14030798d\nmovups  xmmword ptr [rsp+98h+Size], xmm1                               ; +0x61, 0x140307991\nmov     [rax+10h], rbp                                                 ; +0x66, 0x140307996\nmov     qword ptr [rax+18h], 0Fh                                       ; +0x6a, 0x14030799a\nmov     [rax], bpl                                                     ; +0x72, 0x1403079a2\njmp     short loc_1403079B6                                            ; +0x75, 0x1403079a5\nmov     rdx, rbx                                                       ; +0x77, 0x1403079a7\nlea     rcx, [rsp+98h+Src]                                             ; +0x7a, 0x1403079aa\ncall    cs:?base64URLEncode@ZipUtils@cocos2d@@SA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBV34@@Z; cocos2d::ZipUtils::base64URLEncode(std::string const &) ; +0x7f, 0x1403079af\nnop                                                                    ; +0x85, 0x1403079b5\nmov     rcx, rbx                                                       ; +0x86, 0x1403079b6\ncall    sub_14003A830                                                  ; +0x89, 0x1403079b9\nlea     rax, [rsp+98h+Src]                                             ; +0x8e, 0x1403079be\nmov     [rsp+98h+var_78], rax                                          ; +0x93, 0x1403079c3\nmov     rcx, [rsi+120h]                                                ; +0x98, 0x1403079c8\nadd     rcx, 210h; void *                                              ; +0x9f, 0x1403079cf\nlea     rax, [rsp+98h+Src]                                             ; +0xa6, 0x1403079d6\ncmp     rcx, rax                                                       ; +0xab, 0x1403079db\njz      short loc_1403079FC                                            ; +0xae, 0x1403079de\nlea     rdx, [rsp+98h+Src]                                             ; +0xb0, 0x1403079e0\ncmp     [rsp+98h+Size+8], 0Fh                                          ; +0xb5, 0x1403079e5\ncmova   rdx, [rsp+98h+Src]; Src                                        ; +0xbb, 0x1403079eb\nmov     r8, [rsp+98h+Size]; Size                                       ; +0xc1, 0x1403079f1\ncall    sub_14003CCE0                                                  ; +0xc6, 0x1403079f6\nnop                                                                    ; +0xcb, 0x1403079fb\nlea     rcx, [rsp+98h+Src]                                             ; +0xcc, 0x1403079fc\ncall    sub_14003A830                                                  ; +0xd1, 0x140307a01\nnop                                                                    ; +0xd6, 0x140307a06\nmov     rcx, rdi                                                       ; +0xd7, 0x140307a07\ncall    sub_14003A830                                                  ; +0xda, 0x140307a0a\nmov     rcx, [rsp+98h+var_28]                                          ; +0xdf, 0x140307a0f\nxor     rcx, rsp; StackCookie                                          ; +0xe4, 0x140307a14\ncall    __security_check_cookie                                        ; +0xe7, 0x140307a17\nmov     rbx, [rsp+98h+arg_10]                                          ; +0xec, 0x140307a1c\nadd     rsp, 80h                                                       ; +0xf4, 0x140307a24\npop     rdi                                                            ; +0xfb, 0x140307a2b\npop     rsi                                                            ; +0xfc, 0x140307a2c\npop     rbp                                                            ; +0xfd, 0x140307a2d\nretn                                                                   ; +0xfe, 0x140307a2e", "xrefs": ["<???> @ 0x1405890f8", "<???> @ 0x1406d4508"], "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"}