{"type": "func", "start": 4304416048, "end": 4304416340, "name": "EmotePickerPopup::refreshEnabled", "pseudocode": "// \n// EmotePickerPopup::refreshEnabled from 0x100902d30 to 0x100902e54 (292 bytes)\n// \n// 4 xrefs:\n// > EmotePickerPopup::init @ 0x1009028f7\n// > EmotePickerPopup::textChanged @ 0x100902e65\n// > sub_100902E70 @ 0x100902e7c\n// > EmotePickerPopup::onPickEmote @ 0x1009038c5\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:38:03 +0000\n// \n\n__int64 __fastcall EmotePickerPopup::refreshEnabled(__int64 a1)\n{\n  __int64 result; // rax\n  unsigned int v2; // ebx\n  char v3; // r14\n  _QWORD *v4; // r12\n  __int64 v5; // r13\n  unsigned __int64 v6; // r13\n  unsigned __int8 v7; // r14\n  __int64 v8; // r15\n  __int64 v9; // rax\n  __int64 v10; // rax\n\n  if ( *(_QWORD *)(a1 + 1048) )\n  {\n    result = EmotePickerPopup::canAddEmote(a1);\n    v2 = (unsigned __int8)result;\n    if ( *(_DWORD *)(a1 + 1208) != (unsigned __int8)result )\n    {\n      v3 = result;\n      *(_DWORD *)(a1 + 1208) = (unsigned __int8)result;\n      result = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1048) + 488LL))(*(_QWORD *)(a1 + 1048));\n      if ( result )\n      {\n        result = *(_QWORD *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1048) + 488LL))(*(_QWORD *)(a1 + 1048))\n                           + 56);\n        if ( *(_DWORD *)result )\n        {\n          v4 = *(_QWORD **)(*(_QWORD *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1048) + 488LL))(*(_QWORD *)(a1 + 1048))\n                                      + 56)\n                          + 16LL);\n          v5 = *(_QWORD *)(*(_QWORD *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1048) + 488LL))(*(_QWORD *)(a1 + 1048))\n                                     + 56)\n                         + 16LL);\n          result = **(unsigned int **)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1048) + 488LL))(*(_QWORD *)(a1 + 1048))\n                                     + 56);\n          v6 = v5 + 8 * result - 8;\n          if ( (unsigned __int64)v4 <= v6 )\n          {\n            v7 = -v3 | 0x5A;\n            do\n            {\n              v8 = *v4;\n              if ( !*v4 )\n                break;\n              (*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)v8 + 1056LL))(*v4, v2);\n              v9 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 488LL))(v8);\n              v10 = sub_1007FEFE0(v9, 0);\n              result = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v10 + 912LL))(v10, v7);\n              ++v4;\n            }\n            while ( (unsigned __int64)v4 <= v6 );\n          }\n        }\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; EmotePickerPopup::refreshEnabled from 0x100902d30 to 0x100902e54 (292 bytes)\n; \n; 4 xrefs:\n; > EmotePickerPopup::init @ 0x1009028f7\n; > EmotePickerPopup::textChanged @ 0x100902e65\n; > sub_100902E70 @ 0x100902e7c\n; > EmotePickerPopup::onPickEmote @ 0x1009038c5\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:38:03 +0000\n; \ncmp     qword ptr [rdi+418h], 0                                        ; +0x0, 0x100902d30\njz      locret_100902E53                                               ; +0x8, 0x100902d38\npush    rbp                                                            ; +0xe, 0x100902d3e\nmov     rbp, rsp                                                       ; +0xf, 0x100902d3f\npush    r15                                                            ; +0x12, 0x100902d42\npush    r14                                                            ; +0x14, 0x100902d44\npush    r13                                                            ; +0x16, 0x100902d46\npush    r12                                                            ; +0x18, 0x100902d48\npush    rbx                                                            ; +0x1a, 0x100902d4a\npush    rax                                                            ; +0x1b, 0x100902d4b\nmov     r15, rdi                                                       ; +0x1c, 0x100902d4c\ncall    EmotePickerPopup__canAddEmote                                  ; +0x1f, 0x100902d4f\nmovzx   ebx, al                                                        ; +0x24, 0x100902d54\ncmp     [r15+4B8h], ebx                                                ; +0x27, 0x100902d57\njz      loc_100902E45                                                  ; +0x2e, 0x100902d5e\nmov     r14d, eax                                                      ; +0x34, 0x100902d64\nmov     [r15+4B8h], ebx                                                ; +0x37, 0x100902d67\nmov     rdi, [r15+418h]                                                ; +0x3e, 0x100902d6e\nmov     rax, [rdi]                                                     ; +0x45, 0x100902d75\ncall    qword ptr [rax+1E8h]                                           ; +0x48, 0x100902d78\ntest    rax, rax                                                       ; +0x4e, 0x100902d7e\njz      loc_100902E45                                                  ; +0x51, 0x100902d81\nmov     rdi, [r15+418h]                                                ; +0x57, 0x100902d87\nmov     rax, [rdi]                                                     ; +0x5e, 0x100902d8e\ncall    qword ptr [rax+1E8h]                                           ; +0x61, 0x100902d91\nmov     rax, [rax+38h]                                                 ; +0x67, 0x100902d97\ncmp     dword ptr [rax], 0                                             ; +0x6b, 0x100902d9b\njz      loc_100902E45                                                  ; +0x6e, 0x100902d9e\nmov     rdi, [r15+418h]                                                ; +0x74, 0x100902da4\nmov     rax, [rdi]                                                     ; +0x7b, 0x100902dab\ncall    qword ptr [rax+1E8h]                                           ; +0x7e, 0x100902dae\nmov     rax, [rax+38h]                                                 ; +0x84, 0x100902db4\nmov     r12, [rax+10h]                                                 ; +0x88, 0x100902db8\nmov     rdi, [r15+418h]                                                ; +0x8c, 0x100902dbc\nmov     rax, [rdi]                                                     ; +0x93, 0x100902dc3\ncall    qword ptr [rax+1E8h]                                           ; +0x96, 0x100902dc6\nmov     rax, [rax+38h]                                                 ; +0x9c, 0x100902dcc\nmov     r13, [rax+10h]                                                 ; +0xa0, 0x100902dd0\nmov     rdi, [r15+418h]                                                ; +0xa4, 0x100902dd4\nmov     rax, [rdi]                                                     ; +0xab, 0x100902ddb\ncall    qword ptr [rax+1E8h]                                           ; +0xae, 0x100902dde\nmov     rax, [rax+38h]                                                 ; +0xb4, 0x100902de4\nmov     eax, [rax]                                                     ; +0xb8, 0x100902de8\nlea     r13, [r13+rax*8-8]                                             ; +0xba, 0x100902dea\ncmp     r12, r13                                                       ; +0xbf, 0x100902def\nja      short loc_100902E45                                            ; +0xc2, 0x100902df2\nneg     r14b                                                           ; +0xc4, 0x100902df4\nor      r14b, 5Ah                                                      ; +0xc7, 0x100902df7\nmovzx   r14d, r14b                                                     ; +0xcb, 0x100902dfb\nnop                                                                    ; +0xcf, 0x100902dff\nmov     r15, [r12]                                                     ; +0xd0, 0x100902e00\ntest    r15, r15                                                       ; +0xd4, 0x100902e04\njz      short loc_100902E45                                            ; +0xd7, 0x100902e07\nmov     rax, [r15]                                                     ; +0xd9, 0x100902e09\nmov     rdi, r15                                                       ; +0xdc, 0x100902e0c\nmov     esi, ebx                                                       ; +0xdf, 0x100902e0f\ncall    qword ptr [rax+420h]                                           ; +0xe1, 0x100902e11\nmov     rax, [r15]                                                     ; +0xe7, 0x100902e17\nmov     rdi, r15                                                       ; +0xea, 0x100902e1a\ncall    qword ptr [rax+1E8h]                                           ; +0xed, 0x100902e1d\nmov     rdi, rax                                                       ; +0xf3, 0x100902e23\nxor     esi, esi                                                       ; +0xf6, 0x100902e26\ncall    sub_1007FEFE0                                                  ; +0xf8, 0x100902e28\nmov     rcx, [rax]                                                     ; +0xfd, 0x100902e2d\nmov     rdi, rax                                                       ; +0x100, 0x100902e30\nmov     esi, r14d                                                      ; +0x103, 0x100902e33\ncall    qword ptr [rcx+390h]                                           ; +0x106, 0x100902e36\nadd     r12, 8                                                         ; +0x10c, 0x100902e3c\ncmp     r12, r13                                                       ; +0x110, 0x100902e40\njbe     short loc_100902E00                                            ; +0x113, 0x100902e43\nadd     rsp, 8                                                         ; +0x115, 0x100902e45\npop     rbx                                                            ; +0x119, 0x100902e49\npop     r12                                                            ; +0x11a, 0x100902e4a\npop     r13                                                            ; +0x11c, 0x100902e4c\npop     r14                                                            ; +0x11e, 0x100902e4e\npop     r15                                                            ; +0x120, 0x100902e50\npop     rbp                                                            ; +0x122, 0x100902e52\nretn                                                                   ; +0x123, 0x100902e53", "xrefs": ["EmotePickerPopup::init @ 0x1009028f7", "EmotePickerPopup::textChanged @ 0x100902e65", "sub_100902E70 @ 0x100902e7c", "EmotePickerPopup::onPickEmote @ 0x1009038c5"], "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"}