{"type": "func", "start": 4300245008, "end": 4300245201, "name": "GJRateLevelListLayer::FLAlert_Clicked", "pseudocode": "// \n// GJRateLevelListLayer::FLAlert_Clicked from 0x100508810 to 0x1005088d1 (193 bytes)\n// \n// 2 xrefs:\n// > sub_1005088F0 @ 0x1005088fc\n// > <???> @ 0x100b661f0\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 GJRateLevelListLayer::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) == -14 )\n    {\n      v4 = GameLevelManager::sharedState(a4);\n      if ( (unsigned __int8)sub_100579B50(v4, *(unsigned int *)(*(_QWORD *)(a1 + 1040) + 344LL)) )\n      {\n        *(_QWORD *)(GameLevelManager::sharedState(a4) + 1360) = a1 + 1024;\n        v5 = *(_QWORD *)(a1 + 1056);\n        if ( v5 )\n          *(_QWORD *)(v5 + 664) = 0;\n        strcpy((char *)v7, \" Unrating list...\");\n        v6 = UploadActionPopup::create(a1 + 1016, v7);\n        *(_QWORD *)(a1 + 1056) = v6;\n        if ( (v7[0] & 1) != 0 )\n        {\n          operator delete(*(void **)&v7[1]);\n          v6 = *(char **)(a1 + 1056);\n        }\n        (*(void (__fastcall **)(char *))(*(_QWORD *)v6 + 1312LL))(v6);\n      }\n    }\n  }\n}", "assembly": "; \n; GJRateLevelListLayer::FLAlert_Clicked from 0x100508810 to 0x1005088d1 (193 bytes)\n; \n; 2 xrefs:\n; > sub_1005088F0 @ 0x1005088fc\n; > <???> @ 0x100b661f0\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, 0x100508810\nmov     rbp, rsp                                                       ; +0x1, 0x100508811\npush    rbx                                                            ; +0x4, 0x100508814\nsub     rsp, 18h                                                       ; +0x5, 0x100508815\ntest    edx, edx                                                       ; +0x9, 0x100508819\njz      loc_1005088CA                                                  ; +0xb, 0x10050881b\nmov     rbx, rdi                                                       ; +0x11, 0x100508821\nmov     rax, [rsi]                                                     ; +0x14, 0x100508824\nmov     rdi, rsi                                                       ; +0x17, 0x100508827\ncall    qword ptr [rax+40h]                                            ; +0x1a, 0x10050882a\ncmp     eax, 0FFFFFFF2h                                                ; +0x1d, 0x10050882d\njnz     loc_1005088CA                                                  ; +0x20, 0x100508830\ncall    GameLevelManager__sharedState                                  ; +0x26, 0x100508836\nmov     rcx, [rbx+410h]                                                ; +0x2b, 0x10050883b\nmov     esi, [rcx+158h]                                                ; +0x32, 0x100508842\nmov     rdi, rax                                                       ; +0x38, 0x100508848\ncall    sub_100579B50                                                  ; +0x3b, 0x10050884b\ntest    al, al                                                         ; +0x40, 0x100508850\njz      short loc_1005088CA                                            ; +0x42, 0x100508852\ncall    GameLevelManager__sharedState                                  ; +0x44, 0x100508854\nlea     rcx, [rbx+400h]                                                ; +0x49, 0x100508859\nmov     [rax+550h], rcx                                                ; +0x50, 0x100508860\nmov     rax, [rbx+420h]                                                ; +0x57, 0x100508867\ntest    rax, rax                                                       ; +0x5e, 0x10050886e\njz      short loc_10050887E                                            ; +0x61, 0x100508871\nmov     qword ptr [rax+298h], 0                                        ; +0x63, 0x100508873\nlea     rdi, [rbx+3F8h]                                                ; +0x6e, 0x10050887e\nmov     [rbp+var_20], 20h ; ' '                                        ; +0x75, 0x100508885\nmovups  xmm0, xmmword ptr cs:aUnratingList; \"Unrating list...\"         ; +0x79, 0x100508889\nmovups  xmmword ptr [rbp+var_20+1], xmm0                               ; +0x80, 0x100508890\nmov     [rbp+var_20+11h], 0                                            ; +0x84, 0x100508894\nlea     rsi, [rbp+var_20]                                              ; +0x88, 0x100508898\ncall    UploadActionPopup__create                                      ; +0x8c, 0x10050889c\nmov     [rbx+420h], rax                                                ; +0x91, 0x1005088a1\ntest    [rbp+var_20], 1                                                ; +0x98, 0x1005088a8\njz      short loc_1005088BE                                            ; +0x9c, 0x1005088ac\nmov     rdi, qword ptr [rbp+var_20+10h]; __p                           ; +0x9e, 0x1005088ae\ncall    __ZdlPv; operator delete(void *)                               ; +0xa2, 0x1005088b2\nmov     rax, [rbx+420h]                                                ; +0xa7, 0x1005088b7\nmov     rcx, [rax]                                                     ; +0xae, 0x1005088be\nmov     rdi, rax                                                       ; +0xb1, 0x1005088c1\ncall    qword ptr [rcx+520h]                                           ; +0xb4, 0x1005088c4\nadd     rsp, 18h                                                       ; +0xba, 0x1005088ca\npop     rbx                                                            ; +0xbe, 0x1005088ce\npop     rbp                                                            ; +0xbf, 0x1005088cf\nretn                                                                   ; +0xc0, 0x1005088d0", "xrefs": ["sub_1005088F0 @ 0x1005088fc", "<???> @ 0x100b661f0"], "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"}