{"type": "func", "start": 4300232368, "end": 4300232569, "name": "GJRateLevelLayer::FLAlert_Clicked", "pseudocode": "// \n// GJRateLevelLayer::FLAlert_Clicked from 0x1005056b0 to 0x100505779 (201 bytes)\n// \n// 2 xrefs:\n// > sub_1005057A0 @ 0x1005057ac\n// > <???> @ 0x100b65950\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:32 +0000\n// \n\nvoid __fastcall GJRateLevelLayer::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) == -3 )\n    {\n      v4 = GameLevelManager::sharedState(a4);\n      if ( (unsigned __int8)sub_100579B20(\n                              v4,\n                              (unsigned int)(*(_DWORD *)(*(_QWORD *)(a1 + 1048) + 328LL)\n                                           - *(_DWORD *)(*(_QWORD *)(a1 + 1048) + 332LL))) )\n      {\n        *(_QWORD *)(GameLevelManager::sharedState(a4) + 1360) = a1 + 1024;\n        v5 = *(_QWORD *)(a1 + 1096);\n        if ( v5 )\n          *(_QWORD *)(v5 + 664) = 0;\n        strcpy((char *)v7, \"\\\"Unrating level...\");\n        v6 = UploadActionPopup::create(a1 + 1016, v7);\n        *(_QWORD *)(a1 + 1096) = v6;\n        if ( (v7[0] & 1) != 0 )\n        {\n          operator delete(*(void **)&v7[1]);\n          v6 = *(char **)(a1 + 1096);\n        }\n        (*(void (__fastcall **)(char *))(*(_QWORD *)v6 + 1312LL))(v6);\n      }\n    }\n  }\n}", "assembly": "; \n; GJRateLevelLayer::FLAlert_Clicked from 0x1005056b0 to 0x100505779 (201 bytes)\n; \n; 2 xrefs:\n; > sub_1005057A0 @ 0x1005057ac\n; > <???> @ 0x100b65950\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:32 +0000\n; \npush    rbp                                                            ; +0x0, 0x1005056b0\nmov     rbp, rsp                                                       ; +0x1, 0x1005056b1\npush    rbx                                                            ; +0x4, 0x1005056b4\nsub     rsp, 18h                                                       ; +0x5, 0x1005056b5\ntest    edx, edx                                                       ; +0x9, 0x1005056b9\njz      loc_100505772                                                  ; +0xb, 0x1005056bb\nmov     rbx, rdi                                                       ; +0x11, 0x1005056c1\nmov     rax, [rsi]                                                     ; +0x14, 0x1005056c4\nmov     rdi, rsi                                                       ; +0x17, 0x1005056c7\ncall    qword ptr [rax+40h]                                            ; +0x1a, 0x1005056ca\ncmp     eax, 0FFFFFFFDh                                                ; +0x1d, 0x1005056cd\njnz     loc_100505772                                                  ; +0x20, 0x1005056d0\ncall    GameLevelManager__sharedState                                  ; +0x26, 0x1005056d6\nmov     rcx, [rbx+418h]                                                ; +0x2b, 0x1005056db\nmov     esi, [rcx+148h]                                                ; +0x32, 0x1005056e2\nsub     esi, [rcx+14Ch]                                                ; +0x38, 0x1005056e8\nmov     rdi, rax                                                       ; +0x3e, 0x1005056ee\ncall    sub_100579B20                                                  ; +0x41, 0x1005056f1\ntest    al, al                                                         ; +0x46, 0x1005056f6\njz      short loc_100505772                                            ; +0x48, 0x1005056f8\ncall    GameLevelManager__sharedState                                  ; +0x4a, 0x1005056fa\nlea     rcx, [rbx+400h]                                                ; +0x4f, 0x1005056ff\nmov     [rax+550h], rcx                                                ; +0x56, 0x100505706\nmov     rax, [rbx+448h]                                                ; +0x5d, 0x10050570d\ntest    rax, rax                                                       ; +0x64, 0x100505714\njz      short loc_100505724                                            ; +0x67, 0x100505717\nmov     qword ptr [rax+298h], 0                                        ; +0x69, 0x100505719\nlea     rdi, [rbx+3F8h]                                                ; +0x74, 0x100505724\nmov     [rbp+var_20], 22h ; '\"'                                        ; +0x7b, 0x10050572b\nmovups  xmm0, xmmword ptr cs:aUnratingLevel; \"Unrating level...\"       ; +0x7f, 0x10050572f\nmovups  xmmword ptr [rbp+var_20+1], xmm0                               ; +0x86, 0x100505736\nmov     word ptr [rbp+var_20+11h], 2Eh ; '.'                           ; +0x8a, 0x10050573a\nlea     rsi, [rbp+var_20]                                              ; +0x90, 0x100505740\ncall    UploadActionPopup__create                                      ; +0x94, 0x100505744\nmov     [rbx+448h], rax                                                ; +0x99, 0x100505749\ntest    [rbp+var_20], 1                                                ; +0xa0, 0x100505750\njz      short loc_100505766                                            ; +0xa4, 0x100505754\nmov     rdi, qword ptr [rbp+var_20+10h]; __p                           ; +0xa6, 0x100505756\ncall    __ZdlPv; operator delete(void *)                               ; +0xaa, 0x10050575a\nmov     rax, [rbx+448h]                                                ; +0xaf, 0x10050575f\nmov     rcx, [rax]                                                     ; +0xb6, 0x100505766\nmov     rdi, rax                                                       ; +0xb9, 0x100505769\ncall    qword ptr [rcx+520h]                                           ; +0xbc, 0x10050576c\nadd     rsp, 18h                                                       ; +0xc2, 0x100505772\npop     rbx                                                            ; +0xc6, 0x100505776\npop     rbp                                                            ; +0xc7, 0x100505777\nretn                                                                   ; +0xc8, 0x100505778", "xrefs": ["sub_1005057A0 @ 0x1005057ac", "<???> @ 0x100b65950"], "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"}