{"type": "func", "start": 4297665792, "end": 4297665982, "name": "FriendRequestPopup::onClosePopup", "pseudocode": "// \n// FriendRequestPopup::onClosePopup from 0x100292d00 to 0x100292dbe (190 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x100b01b38\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:27:50 +0000\n// \n\n__int64 __fastcall FriendRequestPopup::onClosePopup(__int64 a1, __int64 a2, double a3)\n{\n  __int64 result; // rax\n  __int64 v4; // rax\n  __int64 v5; // rax\n\n  (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a2 + 1072LL))(a2, 0);\n  result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a2 + 528LL))(a2, 1);\n  if ( *(_QWORD *)(a1 + 720) == a2 )\n  {\n    *(_QWORD *)(a1 + 720) = 0;\n    if ( *(_BYTE *)(a1 + 688) == 1 )\n    {\n      if ( !*(_BYTE *)(a1 + 689) )\n      {\n        v4 = *(_QWORD *)(a1 + 696);\n        if ( v4 )\n        {\n          if ( !*(_BYTE *)(v4 + 376) )\n          {\n            v5 = GameLevelManager::sharedState(a3);\n            sub_10057B4C0(v5, *(unsigned int *)(*(_QWORD *)(a1 + 696) + 316LL));\n            *(_BYTE *)(*(_QWORD *)(a1 + 696) + 376LL) = 1;\n          }\n        }\n      }\n      (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1072LL))(a1, 0);\n      return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 528LL))(a1, 1);\n    }\n  }\n  return result;\n}", "assembly": "; \n; FriendRequestPopup::onClosePopup from 0x100292d00 to 0x100292dbe (190 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x100b01b38\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:27:50 +0000\n; \npush    rbp                                                            ; +0x0, 0x100292d00\nmov     rbp, rsp                                                       ; +0x1, 0x100292d01\npush    r14                                                            ; +0x4, 0x100292d04\npush    rbx                                                            ; +0x6, 0x100292d06\nmov     r14, rsi                                                       ; +0x7, 0x100292d07\nmov     rbx, rdi                                                       ; +0xa, 0x100292d0a\nmov     rax, [rsi]                                                     ; +0xd, 0x100292d0d\nmov     rdi, rsi                                                       ; +0x10, 0x100292d10\nxor     esi, esi                                                       ; +0x13, 0x100292d13\ncall    qword ptr [rax+430h]                                           ; +0x15, 0x100292d15\nmov     rax, [r14]                                                     ; +0x1b, 0x100292d1b\nmov     rdi, r14                                                       ; +0x1e, 0x100292d1e\nmov     esi, 1                                                         ; +0x21, 0x100292d21\ncall    qword ptr [rax+210h]                                           ; +0x26, 0x100292d26\ncmp     [rbx+2D0h], r14                                                ; +0x2c, 0x100292d2c\njnz     loc_100292DB9                                                  ; +0x33, 0x100292d33\nmov     qword ptr [rbx+2D0h], 0                                        ; +0x39, 0x100292d39\ncmp     byte ptr [rbx+2B0h], 1                                         ; +0x44, 0x100292d44\njnz     short loc_100292DB9                                            ; +0x4b, 0x100292d4b\ncmp     byte ptr [rbx+2B1h], 0                                         ; +0x4d, 0x100292d4d\njnz     short loc_100292D93                                            ; +0x54, 0x100292d54\nmov     rax, [rbx+2B8h]                                                ; +0x56, 0x100292d56\ntest    rax, rax                                                       ; +0x5d, 0x100292d5d\njz      short loc_100292D93                                            ; +0x60, 0x100292d60\ncmp     byte ptr [rax+178h], 0                                         ; +0x62, 0x100292d62\njnz     short loc_100292D93                                            ; +0x69, 0x100292d69\ncall    GameLevelManager__sharedState                                  ; +0x6b, 0x100292d6b\nmov     rcx, [rbx+2B8h]                                                ; +0x70, 0x100292d70\nmov     esi, [rcx+13Ch]                                                ; +0x77, 0x100292d77\nmov     rdi, rax                                                       ; +0x7d, 0x100292d7d\ncall    sub_10057B4C0                                                  ; +0x80, 0x100292d80\nmov     rax, [rbx+2B8h]                                                ; +0x85, 0x100292d85\nmov     byte ptr [rax+178h], 1                                         ; +0x8c, 0x100292d8c\nmov     rax, [rbx]                                                     ; +0x93, 0x100292d93\nmov     rdi, rbx                                                       ; +0x96, 0x100292d96\nxor     esi, esi                                                       ; +0x99, 0x100292d99\ncall    qword ptr [rax+430h]                                           ; +0x9b, 0x100292d9b\nmov     rax, [rbx]                                                     ; +0xa1, 0x100292da1\nmov     rax, [rax+210h]                                                ; +0xa4, 0x100292da4\nmov     rdi, rbx                                                       ; +0xab, 0x100292dab\nmov     esi, 1                                                         ; +0xae, 0x100292dae\npop     rbx                                                            ; +0xb3, 0x100292db3\npop     r14                                                            ; +0xb4, 0x100292db4\npop     rbp                                                            ; +0xb6, 0x100292db6\njmp     rax                                                            ; +0xb7, 0x100292db7\npop     rbx                                                            ; +0xb9, 0x100292db9\npop     r14                                                            ; +0xba, 0x100292dba\npop     rbp                                                            ; +0xbc, 0x100292dbc\nretn                                                                   ; +0xbd, 0x100292dbd", "xrefs": ["<???> @ 0x100b01b38"], "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"}