{"type": "func", "start": 4300231632, "end": 4300231850, "name": "GJRateLevelLayer::onRate", "pseudocode": "// \n// GJRateLevelLayer::onRate from 0x1005053d0 to 0x1005054aa (218 bytes)\n// \n// 1 xrefs:\n// > GJRateLevelLayer::init @ 0x100504fd5\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:31 +0000\n// \n\nvoid __fastcall GJRateLevelLayer::onRate(__int64 a1, double a2)\n{\n  __int64 v2; // rax\n  __int64 v3; // rax\n  char *v4; // rax\n  __int128 v5[2]; // [rsp+0h] [rbp-20h] BYREF\n\n  if ( *(_DWORD *)(a1 + 1080) != -1 )\n  {\n    v2 = GameLevelManager::sharedState(a2);\n    if ( (unsigned __int8)sub_100562960(\n                            v2,\n                            (unsigned int)(*(_DWORD *)(*(_QWORD *)(a1 + 1048) + 328LL)\n                                         - *(_DWORD *)(*(_QWORD *)(a1 + 1048) + 332LL)),\n                            *(unsigned int *)(a1 + 1080),\n                            *(unsigned int *)(*(_QWORD *)(a1 + 1104) + 596LL),\n                            *(unsigned __int8 *)(a1 + 1084),\n                            0) )\n    {\n      *(_QWORD *)(GameLevelManager::sharedState(a2) + 1360) = a1 + 1024;\n      v3 = *(_QWORD *)(a1 + 1096);\n      if ( v3 )\n        *(_QWORD *)(v3 + 664) = 0;\n      strcpy((char *)v5, \"\\\"Sending rating...\");\n      v4 = UploadActionPopup::create(a1 + 1016, v5);\n      *(_QWORD *)(a1 + 1096) = v4;\n      if ( (v5[0] & 1) != 0 )\n      {\n        operator delete(*(void **)&v5[1]);\n        v4 = *(char **)(a1 + 1096);\n      }\n      (*(void (__fastcall **)(char *))(*(_QWORD *)v4 + 1312LL))(v4);\n    }\n  }\n}", "assembly": "; \n; GJRateLevelLayer::onRate from 0x1005053d0 to 0x1005054aa (218 bytes)\n; \n; 1 xrefs:\n; > GJRateLevelLayer::init @ 0x100504fd5\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:31 +0000\n; \npush    rbp                                                            ; +0x0, 0x1005053d0\nmov     rbp, rsp                                                       ; +0x1, 0x1005053d1\npush    rbx                                                            ; +0x4, 0x1005053d4\nsub     rsp, 18h                                                       ; +0x5, 0x1005053d5\ncmp     dword ptr [rdi+438h], 0FFFFFFFFh                               ; +0x9, 0x1005053d9\njz      loc_1005054A3                                                  ; +0x10, 0x1005053e0\nmov     rbx, rdi                                                       ; +0x16, 0x1005053e6\ncall    GameLevelManager__sharedState                                  ; +0x19, 0x1005053e9\nmov     rcx, [rbx+418h]                                                ; +0x1e, 0x1005053ee\nmov     esi, [rcx+148h]                                                ; +0x25, 0x1005053f5\nsub     esi, [rcx+14Ch]                                                ; +0x2b, 0x1005053fb\nmov     edx, [rbx+438h]                                                ; +0x31, 0x100505401\nmov     rcx, [rbx+450h]                                                ; +0x37, 0x100505407\nmov     ecx, [rcx+254h]                                                ; +0x3e, 0x10050540e\nmovzx   r8d, byte ptr [rbx+43Ch]                                       ; +0x44, 0x100505414\nmov     rdi, rax                                                       ; +0x4c, 0x10050541c\nxor     r9d, r9d                                                       ; +0x4f, 0x10050541f\ncall    sub_100562960                                                  ; +0x52, 0x100505422\ntest    al, al                                                         ; +0x57, 0x100505427\njz      short loc_1005054A3                                            ; +0x59, 0x100505429\ncall    GameLevelManager__sharedState                                  ; +0x5b, 0x10050542b\nlea     rcx, [rbx+400h]                                                ; +0x60, 0x100505430\nmov     [rax+550h], rcx                                                ; +0x67, 0x100505437\nmov     rax, [rbx+448h]                                                ; +0x6e, 0x10050543e\ntest    rax, rax                                                       ; +0x75, 0x100505445\njz      short loc_100505455                                            ; +0x78, 0x100505448\nmov     qword ptr [rax+298h], 0                                        ; +0x7a, 0x10050544a\nlea     rdi, [rbx+3F8h]                                                ; +0x85, 0x100505455\nmov     [rbp+var_20], 22h ; '\"'                                        ; +0x8c, 0x10050545c\nmovups  xmm0, xmmword ptr cs:aSendingRating; \"Sending rating...\"       ; +0x90, 0x100505460\nmovups  xmmword ptr [rbp+var_20+1], xmm0                               ; +0x97, 0x100505467\nmov     word ptr [rbp+var_20+11h], 2Eh ; '.'                           ; +0x9b, 0x10050546b\nlea     rsi, [rbp+var_20]                                              ; +0xa1, 0x100505471\ncall    UploadActionPopup__create                                      ; +0xa5, 0x100505475\nmov     [rbx+448h], rax                                                ; +0xaa, 0x10050547a\ntest    [rbp+var_20], 1                                                ; +0xb1, 0x100505481\njz      short loc_100505497                                            ; +0xb5, 0x100505485\nmov     rdi, qword ptr [rbp+var_20+10h]; __p                           ; +0xb7, 0x100505487\ncall    __ZdlPv; operator delete(void *)                               ; +0xbb, 0x10050548b\nmov     rax, [rbx+448h]                                                ; +0xc0, 0x100505490\nmov     rcx, [rax]                                                     ; +0xc7, 0x100505497\nmov     rdi, rax                                                       ; +0xca, 0x10050549a\ncall    qword ptr [rcx+520h]                                           ; +0xcd, 0x10050549d\nadd     rsp, 18h                                                       ; +0xd3, 0x1005054a3\npop     rbx                                                            ; +0xd7, 0x1005054a7\npop     rbp                                                            ; +0xd8, 0x1005054a8\nretn                                                                   ; +0xd9, 0x1005054a9", "xrefs": ["GJRateLevelLayer::init @ 0x100504fd5"], "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"}