{"type": "func", "start": 5371004272, "end": 5371004745, "name": "GameLevelManager::onDeleteServerEditorSoundCompleted", "pseudocode": "// \n// GameLevelManager::onDeleteServerEditorSoundCompleted from 0x140230570 to 0x140230749 (473 bytes)\n// \n// 2 xrefs:\n// > GameLevelManager::handleIt @ 0x14021a98f\n// > <???> @ 0x14091bec0\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:30 +0000\n// \n\n// Hidden C++ exception states: #wind=2\nvoid __fastcall GameLevelManager::onDeleteServerEditorSoundCompleted(__int64 a1, const char *a2, _QWORD *a3)\n{\n  unsigned int v6; // esi\n  unsigned int v7; // r12d\n  unsigned __int64 v8; // rax\n  size_t v9; // rax\n  size_t v10; // r8\n  _QWORD *v11; // rdx\n  const char *v12; // rcx\n  char *v13; // r8\n  const char *v14; // rcx\n  int v15; // ebp\n  const char *v16; // rcx\n  size_t v17; // r8\n  void (__fastcall ***v18)(_QWORD, _QWORD); // rcx\n  __int64 v19; // rcx\n  char *String[2]; // [rsp+48h] [rbp-50h] BYREF\n  __int128 v21; // [rsp+58h] [rbp-40h]\n\n  v6 = 0;\n  sub_1400CF7C0((__int64 *)(a1 + 824), a3);\n  v7 = 0;\n  v8 = a3[2];\n  if ( v8 > 7 )\n  {\n    *(_OWORD *)String = 0;\n    v21 = 0;\n    v9 = v8 - 7;\n    v10 = -1;\n    if ( v9 != -1 )\n      v10 = v9;\n    v11 = a3;\n    if ( a3[3] > 0xFu )\n      v11 = (_QWORD *)*a3;\n    sub_14003D230(String, (char *)v11 + 7, v10);\n    v12 = (const char *)String;\n    if ( *((_QWORD *)&v21 + 1) > 0xFu )\n      v12 = String[0];\n    v7 = atoi(v12);\n    if ( *((_QWORD *)&v21 + 1) > 0xFu )\n    {\n      v13 = String[0];\n      if ( (unsigned __int64)(*((_QWORD *)&v21 + 1) + 1LL) >= 0x1000 )\n      {\n        v13 = *((char **)String[0] - 1);\n        if ( (unsigned __int64)(String[0] - v13 - 8) > 0x1F )\n          invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n      }\n      j_j_free(v13);\n    }\n  }\n  v14 = a2;\n  if ( *((_QWORD *)a2 + 3) > 0xFu )\n    v14 = *(const char **)a2;\n  v15 = atoi(v14);\n  *(_OWORD *)String = 0;\n  *(_QWORD *)&v21 = 2;\n  *((_QWORD *)&v21 + 1) = 15;\n  strcpy((char *)String, \"-1\");\n  v16 = a2;\n  if ( *((_QWORD *)a2 + 3) > 0xFu )\n    v16 = *(const char **)a2;\n  v17 = *((_QWORD *)a2 + 2);\n  if ( v17 > 2 )\n    v17 = 2;\n  if ( !memcmp(v16, String, v17) && *((_QWORD *)a2 + 2) == 2 || v15 < 0 )\n  {\n    v19 = *(_QWORD *)(a1 + 1472);\n    if ( v15 == -21 )\n      v6 = -21;\n    if ( v19 )\n      (*(void (__fastcall **)(__int64, _QWORD, _QWORD))(*(_QWORD *)v19 + 8LL))(v19, v7, v6);\n  }\n  else\n  {\n    v18 = *(void (__fastcall ****)(_QWORD, _QWORD))(a1 + 1472);\n    if ( v18 )\n      (**v18)(v18, v7);\n  }\n  sub_14003D310((__int64)a2);\n  sub_14003D310((__int64)a3);\n}", "assembly": "; \n; GameLevelManager::onDeleteServerEditorSoundCompleted from 0x140230570 to 0x140230749 (473 bytes)\n; \n; 2 xrefs:\n; > GameLevelManager::handleIt @ 0x14021a98f\n; > <???> @ 0x14091bec0\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:30 +0000\n; \nmov     [rsp+arg_18], rbx                                              ; +0x0, 0x140230570\npush    rbp                                                            ; +0x5, 0x140230575\npush    rsi                                                            ; +0x6, 0x140230576\npush    rdi                                                            ; +0x7, 0x140230577\npush    r12                                                            ; +0x8, 0x140230578\npush    r15                                                            ; +0xa, 0x14023057a\nsub     rsp, 70h                                                       ; +0xc, 0x14023057c\nmov     rax, cs:__security_cookie                                      ; +0x10, 0x140230580\nxor     rax, rsp                                                       ; +0x17, 0x140230587\nmov     [rsp+98h+var_30], rax                                          ; +0x1a, 0x14023058a\nmov     rdi, r8                                                        ; +0x1f, 0x14023058f\nmov     rbx, rdx                                                       ; +0x22, 0x140230592\nmov     r15, rcx                                                       ; +0x25, 0x140230595\nmov     [rsp+98h+var_60], rdx                                          ; +0x28, 0x140230598\nmov     [rsp+98h+var_58], r8                                           ; +0x2d, 0x14023059d\nxor     esi, esi                                                       ; +0x32, 0x1402305a2\nadd     rcx, 338h                                                      ; +0x34, 0x1402305a4\nmov     rdx, r8                                                        ; +0x3b, 0x1402305ab\ncall    sub_1400CF7C0                                                  ; +0x3e, 0x1402305ae\nmov     r12d, esi                                                      ; +0x43, 0x1402305b3\nmov     rax, [rdi+10h]                                                 ; +0x46, 0x1402305b6\ncmp     rax, 7                                                         ; +0x4a, 0x1402305ba\njbe     loc_14023066E                                                  ; +0x4e, 0x1402305be\nxorps   xmm0, xmm0                                                     ; +0x54, 0x1402305c4\nmovups  xmmword ptr [rsp+98h+String], xmm0                             ; +0x57, 0x1402305c7\nxorps   xmm1, xmm1                                                     ; +0x5c, 0x1402305cc\nmovdqu  [rsp+98h+var_40], xmm1                                         ; +0x5f, 0x1402305cf\nadd     rax, 0FFFFFFFFFFFFFFF9h                                        ; +0x65, 0x1402305d5\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x69, 0x1402305d9\ncmp     rax, r8                                                        ; +0x70, 0x1402305e0\ncmovb   r8, rax                                                        ; +0x73, 0x1402305e3\nmov     rdx, rdi                                                       ; +0x77, 0x1402305e7\ncmp     qword ptr [rdi+18h], 0Fh                                       ; +0x7a, 0x1402305ea\njbe     short loc_1402305F4                                            ; +0x7f, 0x1402305ef\nmov     rdx, [rdi]                                                     ; +0x81, 0x1402305f1\nadd     rdx, 7                                                         ; +0x84, 0x1402305f4\nlea     rcx, [rsp+98h+String]                                          ; +0x88, 0x1402305f8\ncall    sub_14003D230                                                  ; +0x8d, 0x1402305fd\nlea     rcx, [rsp+98h+String]                                          ; +0x92, 0x140230602\ncmp     qword ptr [rsp+98h+var_40+8], 0Fh                              ; +0x97, 0x140230607\ncmova   rcx, [rsp+98h+String]; String                                  ; +0x9d, 0x14023060d\ncall    cs:atoi                                                        ; +0xa3, 0x140230613\nmov     r12d, eax                                                      ; +0xa9, 0x140230619\nmov     rdx, qword ptr [rsp+98h+var_40+8]                              ; +0xac, 0x14023061c\ncmp     rdx, 0Fh                                                       ; +0xb1, 0x140230621\njbe     short loc_14023066E                                            ; +0xb5, 0x140230625\ninc     rdx                                                            ; +0xb7, 0x140230627\nmov     r8, [rsp+98h+String]                                           ; +0xba, 0x14023062a\nmov     rcx, r8                                                        ; +0xbf, 0x14023062f\ncmp     rdx, 1000h                                                     ; +0xc2, 0x140230632\njb      short loc_140230666                                            ; +0xc9, 0x140230639\nadd     rdx, 27h ; '''                                                 ; +0xcb, 0x14023063b\nmov     r8, [r8-8]                                                     ; +0xcf, 0x14023063f\nsub     rcx, r8                                                        ; +0xd3, 0x140230643\nsub     rcx, 8                                                         ; +0xd6, 0x140230646\ncmp     rcx, 1Fh                                                       ; +0xda, 0x14023064a\njbe     short loc_140230666                                            ; +0xde, 0x14023064e\nmov     [rsp+98h+Reserved], rsi; Reserved                              ; +0xe0, 0x140230650\nxor     r9d, r9d; LineNo                                               ; +0xe5, 0x140230655\nxor     r8d, r8d; FileName                                             ; +0xe8, 0x140230658\nxor     edx, edx; FunctionName                                         ; +0xeb, 0x14023065b\nxor     ecx, ecx; Expression                                           ; +0xed, 0x14023065d\ncall    cs:_invoke_watson                                              ; +0xef, 0x14023065f\nalign 2                                                                ; +0xf5, 0x140230665\nmov     rcx, r8; Block                                                 ; +0xf6, 0x140230666\ncall    j_j_free                                                       ; +0xf9, 0x140230669\nmov     rcx, rbx                                                       ; +0xfe, 0x14023066e\ncmp     qword ptr [rbx+18h], 0Fh                                       ; +0x101, 0x140230671\njbe     short loc_14023067B                                            ; +0x106, 0x140230676\nmov     rcx, [rbx]; String                                             ; +0x108, 0x140230678\ncall    cs:atoi                                                        ; +0x10b, 0x14023067b\nmov     ebp, eax                                                       ; +0x111, 0x140230681\nxorps   xmm0, xmm0                                                     ; +0x113, 0x140230683\nmovups  xmmword ptr [rsp+98h+String], xmm0                             ; +0x116, 0x140230686\nmov     edx, 2                                                         ; +0x11b, 0x14023068b\nmov     qword ptr [rsp+98h+var_40], rdx                                ; +0x120, 0x140230690\nmov     qword ptr [rsp+98h+var_40+8], 0Fh                              ; +0x125, 0x140230695\nmov     eax, 312Dh                                                     ; +0x12e, 0x14023069e\nmov     word ptr [rsp+98h+String], ax                                  ; +0x133, 0x1402306a3\nmov     byte ptr [rsp+98h+String+2], 0                                 ; +0x138, 0x1402306a8\nmov     rcx, rbx                                                       ; +0x13d, 0x1402306ad\ncmp     qword ptr [rbx+18h], 0Fh                                       ; +0x140, 0x1402306b0\njbe     short loc_1402306BA                                            ; +0x145, 0x1402306b5\nmov     rcx, [rbx]; Buf1                                               ; +0x147, 0x1402306b7\nmov     r8, [rbx+10h]                                                  ; +0x14a, 0x1402306ba\ncmp     r8, rdx                                                        ; +0x14e, 0x1402306be\ncmova   r8, rdx; Size                                                  ; +0x151, 0x1402306c1\nlea     rdx, [rsp+98h+String]; Buf2                                    ; +0x155, 0x1402306c5\ncall    memcmp                                                         ; +0x15a, 0x1402306ca\ntest    eax, eax                                                       ; +0x15f, 0x1402306cf\njnz     short loc_1402306DA                                            ; +0x161, 0x1402306d1\ncmp     qword ptr [rbx+10h], 2                                         ; +0x163, 0x1402306d3\njz      short loc_1402306F4                                            ; +0x168, 0x1402306d8\ntest    ebp, ebp                                                       ; +0x16a, 0x1402306da\njs      short loc_1402306F4                                            ; +0x16c, 0x1402306dc\nmov     rcx, [r15+5C0h]                                                ; +0x16e, 0x1402306de\ntest    rcx, rcx                                                       ; +0x175, 0x1402306e5\njz      short loc_140230717                                            ; +0x178, 0x1402306e8\nmov     rax, [rcx]                                                     ; +0x17a, 0x1402306ea\nmov     edx, r12d                                                      ; +0x17d, 0x1402306ed\ncall    qword ptr [rax]                                                ; +0x180, 0x1402306f0\njmp     short loc_140230717                                            ; +0x182, 0x1402306f2\nmov     rcx, [r15+5C0h]                                                ; +0x184, 0x1402306f4\nmov     eax, 0FFFFFFEBh                                                ; +0x18b, 0x1402306fb\ncmp     ebp, eax                                                       ; +0x190, 0x140230700\ncmovz   esi, eax                                                       ; +0x192, 0x140230702\ntest    rcx, rcx                                                       ; +0x195, 0x140230705\njz      short loc_140230717                                            ; +0x198, 0x140230708\nmov     rax, [rcx]                                                     ; +0x19a, 0x14023070a\nmov     r8d, esi                                                       ; +0x19d, 0x14023070d\nmov     edx, r12d                                                      ; +0x1a0, 0x140230710\ncall    qword ptr [rax+8]                                              ; +0x1a3, 0x140230713\nnop                                                                    ; +0x1a6, 0x140230716\nmov     rcx, rbx                                                       ; +0x1a7, 0x140230717\ncall    sub_14003D310                                                  ; +0x1aa, 0x14023071a\nnop                                                                    ; +0x1af, 0x14023071f\nmov     rcx, rdi                                                       ; +0x1b0, 0x140230720\ncall    sub_14003D310                                                  ; +0x1b3, 0x140230723\nmov     rcx, [rsp+98h+var_30]                                          ; +0x1b8, 0x140230728\nxor     rcx, rsp; StackCookie                                          ; +0x1bd, 0x14023072d\ncall    __security_check_cookie                                        ; +0x1c0, 0x140230730\nmov     rbx, [rsp+98h+arg_18]                                          ; +0x1c5, 0x140230735\nadd     rsp, 70h                                                       ; +0x1cd, 0x14023073d\npop     r15                                                            ; +0x1d1, 0x140230741\npop     r12                                                            ; +0x1d3, 0x140230743\npop     rdi                                                            ; +0x1d5, 0x140230745\npop     rsi                                                            ; +0x1d6, 0x140230746\npop     rbp                                                            ; +0x1d7, 0x140230747\nretn                                                                   ; +0x1d8, 0x140230748", "xrefs": ["GameLevelManager::handleIt @ 0x14021a98f", "<???> @ 0x14091bec0"], "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"}