{"type": "func", "start": 4300249216, "end": 4300249427, "name": "GJRateEditorSoundLayer::FLAlert_Clicked", "pseudocode": "// \n// GJRateEditorSoundLayer::FLAlert_Clicked from 0x100509880 to 0x100509953 (211 bytes)\n// \n// 2 xrefs:\n// > sub_100509970 @ 0x10050997c\n// > <???> @ 0x100b66a70\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:31:33 +0000\n// \n\nvoid __fastcall GJRateEditorSoundLayer::FLAlert_Clicked(__int64 a1, __int64 a2, int a3, double a4)\n{\n  __int64 v4; // rax\n  __int64 v5; // rax\n  char *v6; // rax\n  __int128 v7[2]; // [rsp+0h] [rbp-20h] BYREF\n\n  if ( a3 )\n  {\n    if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) == -22 )\n    {\n      v4 = GameLevelManager::sharedState(a4);\n      if ( (unsigned __int8)GameLevelManager::unrateLevelAdmin(v4, *(unsigned int *)(*(_QWORD *)(a1 + 1040) + 316LL)) )\n      {\n        *(_QWORD *)(GameLevelManager::sharedState(a4) + 1360) = a1 + 1024;\n        v5 = *(_QWORD *)(a1 + 1048);\n        if ( v5 )\n          *(_QWORD *)(v5 + 664) = 0;\n        strcpy((char *)v7, \",Unrating sound pack...\");\n        v6 = UploadActionPopup::create(a1 + 1016, v7);\n        *(_QWORD *)(a1 + 1048) = v6;\n        if ( (v7[0] & 1) != 0 )\n        {\n          operator delete(*(void **)&v7[1]);\n          v6 = *(char **)(a1 + 1048);\n        }\n        (*(void (__fastcall **)(char *))(*(_QWORD *)v6 + 1312LL))(v6);\n      }\n    }\n  }\n}", "assembly": "; \n; GJRateEditorSoundLayer::FLAlert_Clicked from 0x100509880 to 0x100509953 (211 bytes)\n; \n; 2 xrefs:\n; > sub_100509970 @ 0x10050997c\n; > <???> @ 0x100b66a70\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:31:33 +0000\n; \npush    rbp                                                            ; +0x0, 0x100509880\nmov     rbp, rsp                                                       ; +0x1, 0x100509881\npush    rbx                                                            ; +0x4, 0x100509884\nsub     rsp, 18h                                                       ; +0x5, 0x100509885\ntest    edx, edx                                                       ; +0x9, 0x100509889\njz      loc_10050994C                                                  ; +0xb, 0x10050988b\nmov     rbx, rdi                                                       ; +0x11, 0x100509891\nmov     rax, [rsi]                                                     ; +0x14, 0x100509894\nmov     rdi, rsi                                                       ; +0x17, 0x100509897\ncall    qword ptr [rax+40h]                                            ; +0x1a, 0x10050989a\ncmp     eax, 0FFFFFFEAh                                                ; +0x1d, 0x10050989d\njnz     loc_10050994C                                                  ; +0x20, 0x1005098a0\ncall    GameLevelManager__sharedState                                  ; +0x26, 0x1005098a6\nmov     rcx, [rbx+410h]                                                ; +0x2b, 0x1005098ab\nmov     esi, [rcx+13Ch]                                                ; +0x32, 0x1005098b2\nmov     rdi, rax                                                       ; +0x38, 0x1005098b8\ncall    GameLevelManager__unrateLevelAdmin                             ; +0x3b, 0x1005098bb\ntest    al, al                                                         ; +0x40, 0x1005098c0\njz      loc_10050994C                                                  ; +0x42, 0x1005098c2\ncall    GameLevelManager__sharedState                                  ; +0x48, 0x1005098c8\nlea     rcx, [rbx+400h]                                                ; +0x4d, 0x1005098cd\nmov     [rax+550h], rcx                                                ; +0x54, 0x1005098d4\nmov     rax, [rbx+418h]                                                ; +0x5b, 0x1005098db\ntest    rax, rax                                                       ; +0x62, 0x1005098e2\njz      short loc_1005098F2                                            ; +0x65, 0x1005098e5\nmov     qword ptr [rax+298h], 0                                        ; +0x67, 0x1005098e7\nlea     rdi, [rbx+3F8h]                                                ; +0x72, 0x1005098f2\nmov     [rbp+var_20], 2Ch ; ','                                        ; +0x79, 0x1005098f9\nmovups  xmm0, xmmword ptr cs:aUnratingSoundP; \"Unrating sound pack...\" ; +0x7d, 0x1005098fd\nmovups  xmmword ptr [rbp+var_20+1], xmm0                               ; +0x84, 0x100509904\nmov     rax, 2E2E2E6B63617020h                                         ; +0x88, 0x100509908\nmov     qword ptr [rbp+var_20+0Fh], rax                                ; +0x92, 0x100509912\nmov     [rbp+var_20+17h], 0                                            ; +0x96, 0x100509916\nlea     rsi, [rbp+var_20]                                              ; +0x9a, 0x10050991a\ncall    UploadActionPopup__create                                      ; +0x9e, 0x10050991e\nmov     [rbx+418h], rax                                                ; +0xa3, 0x100509923\ntest    [rbp+var_20], 1                                                ; +0xaa, 0x10050992a\njz      short loc_100509940                                            ; +0xae, 0x10050992e\nmov     rdi, qword ptr [rbp+var_20+10h]; __p                           ; +0xb0, 0x100509930\ncall    __ZdlPv; operator delete(void *)                               ; +0xb4, 0x100509934\nmov     rax, [rbx+418h]                                                ; +0xb9, 0x100509939\nmov     rcx, [rax]                                                     ; +0xc0, 0x100509940\nmov     rdi, rax                                                       ; +0xc3, 0x100509943\ncall    qword ptr [rcx+520h]                                           ; +0xc6, 0x100509946\nadd     rsp, 18h                                                       ; +0xcc, 0x10050994c\npop     rbx                                                            ; +0xd0, 0x100509950\npop     rbp                                                            ; +0xd1, 0x100509951\nretn                                                                   ; +0xd2, 0x100509952", "xrefs": ["sub_100509970 @ 0x10050997c", "<???> @ 0x100b66a70"], "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"}