{"type": "func", "start": 4301627712, "end": 4301627910, "name": "GJMultiplayerManager::onUploadCommentCompleted", "pseudocode": "// \n// GJMultiplayerManager::onUploadCommentCompleted from 0x10065a140 to 0x10065a206 (198 bytes)\n// \n// 0 xrefs:\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\nunsigned __int8 __fastcall GJMultiplayerManager::onUploadCommentCompleted(\n        GJMultiplayerManager *a1,\n        unsigned __int8 *a2,\n        __int64 a3)\n{\n  const char *v5; // r15\n  unsigned int v6; // r15d\n  const void *v7; // rdi\n  unsigned __int64 v8; // rcx\n  size_t v9; // rdx\n  bool v10; // r14\n  unsigned __int8 result; // al\n  GJMPDelegate *m_mpDelegate; // rdi\n  _WORD __s2[23]; // [rsp+1h] [rbp-2Fh] BYREF\n\n  if ( (*(_BYTE *)a3 & 1) != 0 )\n  {\n    GJMultiplayerManager::removeDLFromActive(a1, *(const char **)(a3 + 16));\n    if ( (*(_BYTE *)a3 & 1) != 0 )\n      goto LABEL_3;\n  }\n  else\n  {\n    GJMultiplayerManager::removeDLFromActive(a1, (const char *)(a3 + 1));\n    if ( (*(_BYTE *)a3 & 1) != 0 )\n    {\nLABEL_3:\n      v5 = *(const char **)(a3 + 16);\n      goto LABEL_6;\n    }\n  }\n  v5 = (const char *)(a3 + 1);\nLABEL_6:\n  v6 = atoi(v5);\n  strcpy((char *)__s2, \"-1\");\n  v7 = a2 + 1;\n  v8 = *a2 >> 1;\n  if ( (*a2 & 1) != 0 )\n  {\n    v7 = *((const void **)a2 + 2);\n    v8 = *((_QWORD *)a2 + 1);\n  }\n  v9 = 2;\n  if ( v8 < 2 )\n    v9 = v8;\n  v10 = v8 == 2;\n  result = memcmp(v7, __s2, v9) == 0;\n  if ( (v10 & result) == 0 )\n  {\n    m_mpDelegate = a1->m_mpDelegate;\n    if ( m_mpDelegate )\n      return ((__int64 (__fastcall *)(GJMPDelegate *, _QWORD))m_mpDelegate->didUploadMPComment)(m_mpDelegate, v6);\n  }\n  return result;\n}", "assembly": "; \n; GJMultiplayerManager::onUploadCommentCompleted from 0x10065a140 to 0x10065a206 (198 bytes)\n; \n; 0 xrefs:\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\npush    rbp                                                            ; +0x0, 0x10065a140\nmov     rbp, rsp                                                       ; +0x1, 0x10065a141\npush    r15                                                            ; +0x4, 0x10065a144\npush    r14                                                            ; +0x6, 0x10065a146\npush    rbx                                                            ; +0x8, 0x10065a148\nsub     rsp, 18h                                                       ; +0x9, 0x10065a149\nmov     r15, rdx                                                       ; +0xd, 0x10065a14d\nmov     r14, rsi                                                       ; +0x10, 0x10065a150\nmov     rbx, rdi                                                       ; +0x13, 0x10065a153\ntest    byte ptr [rdx], 1                                              ; +0x16, 0x10065a156\njnz     short loc_10065A173                                            ; +0x19, 0x10065a159\nlea     rsi, [r15+1]                                                   ; +0x1b, 0x10065a15b\nmov     rdi, rbx                                                       ; +0x1f, 0x10065a15f\ncall    GJMultiplayerManager__removeDLFromActive                       ; +0x22, 0x10065a162\ntest    byte ptr [r15], 1                                              ; +0x27, 0x10065a167\njz      short loc_10065A185                                            ; +0x2b, 0x10065a16b\nmov     r15, [r15+10h]                                                 ; +0x2d, 0x10065a16d\njmp     short loc_10065A188                                            ; +0x31, 0x10065a171\nmov     rsi, [r15+10h]                                                 ; +0x33, 0x10065a173\nmov     rdi, rbx                                                       ; +0x37, 0x10065a177\ncall    GJMultiplayerManager__removeDLFromActive                       ; +0x3a, 0x10065a17a\ntest    byte ptr [r15], 1                                              ; +0x3f, 0x10065a17f\njnz     short loc_10065A16D                                            ; +0x43, 0x10065a183\ninc     r15                                                            ; +0x45, 0x10065a185\nmov     rdi, r15; char *                                               ; +0x48, 0x10065a188\ncall    _atoi                                                          ; +0x4b, 0x10065a18b\nmov     r15d, eax                                                      ; +0x50, 0x10065a190\nmov     [rbp+__s2], 312Dh                                              ; +0x53, 0x10065a193\nmov     [rbp+var_2D], 0                                                ; +0x59, 0x10065a199\nmovzx   eax, byte ptr [r14]                                            ; +0x5d, 0x10065a19d\nlea     rdi, [r14+1]                                                   ; +0x61, 0x10065a1a1\nmov     ecx, eax                                                       ; +0x65, 0x10065a1a5\nshr     ecx, 1                                                         ; +0x67, 0x10065a1a7\ntest    al, 1                                                          ; +0x69, 0x10065a1a9\ncmovnz  rdi, [r14+10h]; __s1                                           ; +0x6b, 0x10065a1ab\nlea     rsi, [rbp+__s2]; __s2                                          ; +0x70, 0x10065a1b0\ncmovnz  rcx, [r14+8]                                                   ; +0x74, 0x10065a1b4\ncmp     rcx, 2                                                         ; +0x79, 0x10065a1b9\nmov     edx, 2                                                         ; +0x7d, 0x10065a1bd\ncmovb   rdx, rcx; __n                                                  ; +0x82, 0x10065a1c2\nsetz    r14b                                                           ; +0x86, 0x10065a1c6\ncall    _memcmp                                                        ; +0x8a, 0x10065a1ca\ntest    eax, eax                                                       ; +0x8f, 0x10065a1cf\nsetz    al                                                             ; +0x91, 0x10065a1d1\ntest    al, r14b                                                       ; +0x94, 0x10065a1d4\njnz     short loc_10065A1FB                                            ; +0x97, 0x10065a1d7\nmov     rdi, [rbx+160h]                                                ; +0x99, 0x10065a1d9\ntest    rdi, rdi                                                       ; +0xa0, 0x10065a1e0\njz      short loc_10065A1FB                                            ; +0xa3, 0x10065a1e3\nmov     rax, [rdi]                                                     ; +0xa5, 0x10065a1e5\nmov     rax, [rax+10h]                                                 ; +0xa8, 0x10065a1e8\nmov     esi, r15d                                                      ; +0xac, 0x10065a1ec\nadd     rsp, 18h                                                       ; +0xaf, 0x10065a1ef\npop     rbx                                                            ; +0xb3, 0x10065a1f3\npop     r14                                                            ; +0xb4, 0x10065a1f4\npop     r15                                                            ; +0xb6, 0x10065a1f6\npop     rbp                                                            ; +0xb8, 0x10065a1f8\njmp     rax                                                            ; +0xb9, 0x10065a1f9\nadd     rsp, 18h                                                       ; +0xbb, 0x10065a1fb\npop     rbx                                                            ; +0xbf, 0x10065a1ff\npop     r14                                                            ; +0xc0, 0x10065a200\npop     r15                                                            ; +0xc2, 0x10065a202\npop     rbp                                                            ; +0xc4, 0x10065a204\nretn                                                                   ; +0xc5, 0x10065a205", "xrefs": [], "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"}