{"type": "func", "start": 5369906752, "end": 5369907070, "name": "EmotePickerPopup::refreshEnabled", "pseudocode": "// \n// EmotePickerPopup::refreshEnabled from 0x140124640 to 0x14012477e (318 bytes)\n// \n// 6 xrefs:\n// > EmotePickerPopup::init @ 0x140123c11\n// > EmotePickerPopup::textChanged @ 0x140123c67\n// > EmotePickerPopup::onPickEmote @ 0x1401249a3\n// > <???> @ 0x1408980b8\n// > <???> @ 0x140898114\n// > <???> @ 0x1409168c8\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 11:26:57 +0000\n// \n\nvoid __fastcall EmotePickerPopup::refreshEnabled(__int64 a1, __int64 a2, __int64 a3, double a4)\n{\n  unsigned __int8 canAddEmote; // al\n  unsigned __int8 v6; // bp\n  __int64 v7; // rcx\n  _QWORD *v8; // rsi\n  __int64 v9; // rbx\n  unsigned __int64 i; // rdi\n  __int64 v11; // rbx\n  cocos2d::CCArray *v12; // rax\n  struct cocos2d::CCObject *v13; // rax\n  __int64 v14; // rdx\n\n  if ( *(_QWORD *)(a1 + 1032) )\n  {\n    canAddEmote = EmotePickerPopup::canAddEmote(a1, a2, a3, a4);\n    v6 = canAddEmote;\n    if ( canAddEmote != *(_DWORD *)(a1 + 1192) )\n    {\n      v7 = *(_QWORD *)(a1 + 1032);\n      *(_DWORD *)(a1 + 1192) = canAddEmote;\n      if ( (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 480LL))(v7) )\n      {\n        if ( **(_DWORD **)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1032) + 480LL))(*(_QWORD *)(a1 + 1032))\n                         + 56) )\n        {\n          v8 = *(_QWORD **)(*(_QWORD *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1032) + 480LL))(*(_QWORD *)(a1 + 1032))\n                                      + 56)\n                          + 16LL);\n          v9 = *(_QWORD *)(*(_QWORD *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1032) + 480LL))(*(_QWORD *)(a1 + 1032))\n                                     + 56)\n                         + 16LL);\n          for ( i = v9\n                  + 8\n                  * (**(unsigned int **)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1032) + 480LL))(*(_QWORD *)(a1 + 1032))\n                                       + 56)\n                   - 1LL); (unsigned __int64)v8 <= i; ++v8 )\n          {\n            v11 = *v8;\n            if ( !*v8 )\n              break;\n            (*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)v11 + 936LL))(*v8, v6);\n            v12 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v11 + 480LL))(v11);\n            v13 = cocos2d::CCArray::objectAtIndex(v12, 0);\n            v14 = 90;\n            if ( v6 )\n              v14 = 255;\n            (*(void (__fastcall **)(__int64, __int64))(*((_QWORD *)v13 + 40) + 40LL))((__int64)v13 + 320, v14);\n          }\n        }\n      }\n    }\n  }\n}", "assembly": "; \n; EmotePickerPopup::refreshEnabled from 0x140124640 to 0x14012477e (318 bytes)\n; \n; 6 xrefs:\n; > EmotePickerPopup::init @ 0x140123c11\n; > EmotePickerPopup::textChanged @ 0x140123c67\n; > EmotePickerPopup::onPickEmote @ 0x1401249a3\n; > <???> @ 0x1408980b8\n; > <???> @ 0x140898114\n; > <???> @ 0x1409168c8\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 11:26:57 +0000\n; \npush    rdi                                                            ; +0x0, 0x140124640\nsub     rsp, 20h                                                       ; +0x2, 0x140124642\ncmp     qword ptr [rcx+408h], 0                                        ; +0x6, 0x140124646\nmov     rdi, rcx                                                       ; +0xe, 0x14012464e\njz      loc_140124778                                                  ; +0x11, 0x140124651\nmov     [rsp+28h+arg_8], rbp                                           ; +0x17, 0x140124657\ncall    EmotePickerPopup__canAddEmote                                  ; +0x1c, 0x14012465c\nmovzx   ebp, al                                                        ; +0x21, 0x140124661\ncmp     ebp, [rdi+4A8h]                                                ; +0x24, 0x140124664\njz      loc_140124773                                                  ; +0x2a, 0x14012466a\nmov     rcx, [rdi+408h]                                                ; +0x30, 0x140124670\nmov     [rdi+4A8h], ebp                                                ; +0x37, 0x140124677\nmov     rdx, [rcx]                                                     ; +0x3d, 0x14012467d\ncall    qword ptr [rdx+1E0h]                                           ; +0x40, 0x140124680\ntest    rax, rax                                                       ; +0x46, 0x140124686\njz      loc_140124773                                                  ; +0x49, 0x140124689\nmov     rcx, [rdi+408h]                                                ; +0x4f, 0x14012468f\nmov     rax, [rcx]                                                     ; +0x56, 0x140124696\ncall    qword ptr [rax+1E0h]                                           ; +0x59, 0x140124699\nmov     rcx, [rax+38h]                                                 ; +0x5f, 0x14012469f\ncmp     dword ptr [rcx], 0                                             ; +0x63, 0x1401246a3\njbe     loc_140124773                                                  ; +0x66, 0x1401246a6\nmov     rcx, [rdi+408h]                                                ; +0x6c, 0x1401246ac\nmov     [rsp+28h+arg_0], rbx                                           ; +0x73, 0x1401246b3\nmov     [rsp+28h+arg_10], rsi                                          ; +0x78, 0x1401246b8\nmov     rax, [rcx]                                                     ; +0x7d, 0x1401246bd\ncall    qword ptr [rax+1E0h]                                           ; +0x80, 0x1401246c0\nmov     rcx, [rax+38h]                                                 ; +0x86, 0x1401246c6\nmov     rsi, [rcx+10h]                                                 ; +0x8a, 0x1401246ca\nmov     rcx, [rdi+408h]                                                ; +0x8e, 0x1401246ce\nmov     rax, [rcx]                                                     ; +0x95, 0x1401246d5\ncall    qword ptr [rax+1E0h]                                           ; +0x98, 0x1401246d8\nmov     rcx, [rax+38h]                                                 ; +0x9e, 0x1401246de\nmov     rbx, [rcx+10h]                                                 ; +0xa2, 0x1401246e2\nmov     rcx, [rdi+408h]                                                ; +0xa6, 0x1401246e6\nmov     rax, [rcx]                                                     ; +0xad, 0x1401246ed\ncall    qword ptr [rax+1E0h]                                           ; +0xb0, 0x1401246f0\nmov     rcx, [rax+38h]                                                 ; +0xb6, 0x1401246f6\nmov     edi, [rcx]                                                     ; +0xba, 0x1401246fa\ndec     rdi                                                            ; +0xbc, 0x1401246fc\nlea     rdi, [rbx+rdi*8]                                               ; +0xbf, 0x1401246ff\ncmp     rsi, rdi                                                       ; +0xc3, 0x140124703\nja      short loc_140124769                                            ; +0xc6, 0x140124706\nmov     [rsp+28h+arg_18], r14                                          ; +0xc8, 0x140124708\nmov     r14d, 0FFh                                                     ; +0xcd, 0x14012470d\nmov     rbx, [rsi]                                                     ; +0xd3, 0x140124713\ntest    rbx, rbx                                                       ; +0xd6, 0x140124716\njz      short loc_140124764                                            ; +0xd9, 0x140124719\nmov     rax, [rbx]                                                     ; +0xdb, 0x14012471b\nmovzx   edx, bpl                                                       ; +0xde, 0x14012471e\nmov     rcx, rbx                                                       ; +0xe2, 0x140124722\ncall    qword ptr [rax+3A8h]                                           ; +0xe5, 0x140124725\nmov     rax, [rbx]                                                     ; +0xeb, 0x14012472b\nmov     rcx, rbx                                                       ; +0xee, 0x14012472e\ncall    qword ptr [rax+1E0h]                                           ; +0xf1, 0x140124731\nmov     rcx, rax                                                       ; +0xf7, 0x140124737\nxor     edx, edx                                                       ; +0xfa, 0x14012473a\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0xfc, 0x14012473c\nmov     edx, 5Ah ; 'Z'                                                 ; +0x102, 0x140124742\ntest    bpl, bpl                                                       ; +0x107, 0x140124747\ncmovnz  edx, r14d                                                      ; +0x10a, 0x14012474a\nlea     rcx, [rax+140h]                                                ; +0x10e, 0x14012474e\nmov     rax, [rcx]                                                     ; +0x115, 0x140124755\ncall    qword ptr [rax+28h]                                            ; +0x118, 0x140124758\nadd     rsi, 8                                                         ; +0x11b, 0x14012475b\ncmp     rsi, rdi                                                       ; +0x11f, 0x14012475f\njbe     short loc_140124713                                            ; +0x122, 0x140124762\nmov     r14, [rsp+28h+arg_18]                                          ; +0x124, 0x140124764\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x129, 0x140124769\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x12e, 0x14012476e\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x133, 0x140124773\nadd     rsp, 20h                                                       ; +0x138, 0x140124778\npop     rdi                                                            ; +0x13c, 0x14012477c\nretn                                                                   ; +0x13d, 0x14012477d", "xrefs": ["EmotePickerPopup::init @ 0x140123c11", "EmotePickerPopup::textChanged @ 0x140123c67", "EmotePickerPopup::onPickEmote @ 0x1401249a3", "<???> @ 0x1408980b8", "<???> @ 0x140898114", "<???> @ 0x1409168c8"], "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"}