{"type": "func", "start": 4302542752, "end": 4302542950, "name": "GJMultiplayerManager::onUploadCommentCompleted", "pseudocode": "// \n// GJMultiplayerManager::onUploadCommentCompleted from 0x1007397a0 to 0x100739866 (198 bytes)\n// \n// 0 xrefs:\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 12:36:26 +0000\n// \n\nunsigned __int8 __fastcall GJMultiplayerManager::onUploadCommentCompleted(__int64 a1, unsigned __int8 *a2, __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  __int64 v12; // rdi\n  _WORD __s2[23]; // [rsp+1h] [rbp-2Fh] BYREF\n\n  if ( (*(_BYTE *)a3 & 1) != 0 )\n  {\n    GJMultiplayerManager::removeDLFromActive(a1, *(_QWORD *)(a3 + 16));\n    if ( (*(_BYTE *)a3 & 1) != 0 )\n      goto LABEL_3;\n  }\n  else\n  {\n    GJMultiplayerManager::removeDLFromActive(a1, 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    v12 = *(_QWORD *)(a1 + 352);\n    if ( v12 )\n      return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v12 + 16LL))(v12, v6);\n  }\n  return result;\n}", "assembly": "; \n; GJMultiplayerManager::onUploadCommentCompleted from 0x1007397a0 to 0x100739866 (198 bytes)\n; \n; 0 xrefs:\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 12:36:26 +0000\n; \npush    rbp                                                            ; +0x0, 0x1007397a0\nmov     rbp, rsp                                                       ; +0x1, 0x1007397a1\npush    r15                                                            ; +0x4, 0x1007397a4\npush    r14                                                            ; +0x6, 0x1007397a6\npush    rbx                                                            ; +0x8, 0x1007397a8\nsub     rsp, 18h                                                       ; +0x9, 0x1007397a9\nmov     r15, rdx                                                       ; +0xd, 0x1007397ad\nmov     r14, rsi                                                       ; +0x10, 0x1007397b0\nmov     rbx, rdi                                                       ; +0x13, 0x1007397b3\ntest    byte ptr [rdx], 1                                              ; +0x16, 0x1007397b6\njnz     short loc_1007397D3                                            ; +0x19, 0x1007397b9\nlea     rsi, [r15+1]                                                   ; +0x1b, 0x1007397bb\nmov     rdi, rbx                                                       ; +0x1f, 0x1007397bf\ncall    GJMultiplayerManager__removeDLFromActive                       ; +0x22, 0x1007397c2\ntest    byte ptr [r15], 1                                              ; +0x27, 0x1007397c7\njz      short loc_1007397E5                                            ; +0x2b, 0x1007397cb\nmov     r15, [r15+10h]                                                 ; +0x2d, 0x1007397cd\njmp     short loc_1007397E8                                            ; +0x31, 0x1007397d1\nmov     rsi, [r15+10h]                                                 ; +0x33, 0x1007397d3\nmov     rdi, rbx                                                       ; +0x37, 0x1007397d7\ncall    GJMultiplayerManager__removeDLFromActive                       ; +0x3a, 0x1007397da\ntest    byte ptr [r15], 1                                              ; +0x3f, 0x1007397df\njnz     short loc_1007397CD                                            ; +0x43, 0x1007397e3\ninc     r15                                                            ; +0x45, 0x1007397e5\nmov     rdi, r15; char *                                               ; +0x48, 0x1007397e8\ncall    _atoi                                                          ; +0x4b, 0x1007397eb\nmov     r15d, eax                                                      ; +0x50, 0x1007397f0\nmov     [rbp+__s2], 312Dh                                              ; +0x53, 0x1007397f3\nmov     [rbp+var_2D], 0                                                ; +0x59, 0x1007397f9\nmovzx   eax, byte ptr [r14]                                            ; +0x5d, 0x1007397fd\nlea     rdi, [r14+1]                                                   ; +0x61, 0x100739801\nmov     ecx, eax                                                       ; +0x65, 0x100739805\nshr     ecx, 1                                                         ; +0x67, 0x100739807\ntest    al, 1                                                          ; +0x69, 0x100739809\ncmovnz  rdi, [r14+10h]; __s1                                           ; +0x6b, 0x10073980b\nlea     rsi, [rbp+__s2]; __s2                                          ; +0x70, 0x100739810\ncmovnz  rcx, [r14+8]                                                   ; +0x74, 0x100739814\ncmp     rcx, 2                                                         ; +0x79, 0x100739819\nmov     edx, 2                                                         ; +0x7d, 0x10073981d\ncmovb   rdx, rcx; __n                                                  ; +0x82, 0x100739822\nsetz    r14b                                                           ; +0x86, 0x100739826\ncall    _memcmp                                                        ; +0x8a, 0x10073982a\ntest    eax, eax                                                       ; +0x8f, 0x10073982f\nsetz    al                                                             ; +0x91, 0x100739831\ntest    al, r14b                                                       ; +0x94, 0x100739834\njnz     short loc_10073985B                                            ; +0x97, 0x100739837\nmov     rdi, [rbx+160h]                                                ; +0x99, 0x100739839\ntest    rdi, rdi                                                       ; +0xa0, 0x100739840\njz      short loc_10073985B                                            ; +0xa3, 0x100739843\nmov     rax, [rdi]                                                     ; +0xa5, 0x100739845\nmov     rax, [rax+10h]                                                 ; +0xa8, 0x100739848\nmov     esi, r15d                                                      ; +0xac, 0x10073984c\nadd     rsp, 18h                                                       ; +0xaf, 0x10073984f\npop     rbx                                                            ; +0xb3, 0x100739853\npop     r14                                                            ; +0xb4, 0x100739854\npop     r15                                                            ; +0xb6, 0x100739856\npop     rbp                                                            ; +0xb8, 0x100739858\njmp     rax                                                            ; +0xb9, 0x100739859\nadd     rsp, 18h                                                       ; +0xbb, 0x10073985b\npop     rbx                                                            ; +0xbf, 0x10073985f\npop     r14                                                            ; +0xc0, 0x100739860\npop     r15                                                            ; +0xc2, 0x100739862\npop     rbp                                                            ; +0xc4, 0x100739864\nretn                                                                   ; +0xc5, 0x100739865", "xrefs": [], "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"}