{"type": "func", "start": 5369907760, "end": 5369907962, "name": "EmotePickerPopup::keyDown", "pseudocode": "// \n// EmotePickerPopup::keyDown from 0x140124a30 to 0x140124afa (202 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x140733318\n// > <???> @ 0x140916928\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::keyDown(__int64 a1, unsigned int a2)\n{\n  __int64 v2; // rbx\n  __int64 v5; // rcx\n  __int64 v6; // rcx\n  __int64 v7; // rcx\n\n  v2 = a1 - 344;\n  if ( a2 == 27 )\n  {\n    (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v2 + 1104LL))(a1 - 344, 0);\n    return;\n  }\n  v5 = *(_QWORD *)(v2 + 1168);\n  if ( v5 )\n    (*(void (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)v5 + 16LL))(v5, v2, a2);\n  if ( !*(_BYTE *)(v2 + 1079) )\n  {\n    v6 = qword_140909788;\n    if ( !qword_140909788 )\n    {\nLABEL_9:\n      v7 = *(_QWORD *)(a1 + 656);\n      if ( v7 )\n        (**(void (__fastcall ***)(__int64, _QWORD))(v7 + 344))(v7 + 344, a2);\n      return;\n    }\n    while ( v6 != v2 )\n    {\n      v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 504LL))(v6);\n      if ( !v6 )\n        goto LABEL_9;\n    }\n  }\n  *(_BYTE *)(a1 + 735) = 0;\n  if ( a2 == 13 )\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)v2 + 1216LL))(v2);\n}", "assembly": "; \n; EmotePickerPopup::keyDown from 0x140124a30 to 0x140124afa (202 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x140733318\n; > <???> @ 0x140916928\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; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140124a30\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x140124a35\npush    rdi                                                            ; +0xa, 0x140124a3a\nsub     rsp, 30h                                                       ; +0xb, 0x140124a3b\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0xf, 0x140124a3f\nmovaps  xmm6, xmm2                                                     ; +0x14, 0x140124a44\nlea     rbx, [rcx-158h]                                                ; +0x17, 0x140124a47\nmov     edi, edx                                                       ; +0x1e, 0x140124a4e\nmov     rsi, rcx                                                       ; +0x20, 0x140124a50\ncmp     edx, 1Bh                                                       ; +0x23, 0x140124a53\njnz     short loc_140124A68                                            ; +0x26, 0x140124a56\nmov     rax, [rbx]                                                     ; +0x28, 0x140124a58\nxor     edx, edx                                                       ; +0x2b, 0x140124a5b\nmov     rcx, rbx                                                       ; +0x2d, 0x140124a5d\ncall    qword ptr [rax+450h]                                           ; +0x30, 0x140124a60\njmp     short loc_140124AE5                                            ; +0x36, 0x140124a66\nmov     rcx, [rbx+490h]                                                ; +0x38, 0x140124a68\ntest    rcx, rcx                                                       ; +0x3f, 0x140124a6f\njz      short loc_140124A83                                            ; +0x42, 0x140124a72\nmov     rax, [rcx]                                                     ; +0x44, 0x140124a74\nmovaps  xmm3, xmm6                                                     ; +0x47, 0x140124a77\nmov     r8d, edi                                                       ; +0x4a, 0x140124a7a\nmov     rdx, rbx                                                       ; +0x4d, 0x140124a7d\ncall    qword ptr [rax+10h]                                            ; +0x50, 0x140124a80\ncmp     byte ptr [rbx+437h], 0                                         ; +0x53, 0x140124a83\njnz     short loc_140124ACD                                            ; +0x5a, 0x140124a8a\nmov     rcx, cs:qword_140909788                                        ; +0x5c, 0x140124a8c\ntest    rcx, rcx                                                       ; +0x63, 0x140124a93\njz      short loc_140124AAE                                            ; +0x66, 0x140124a96\ncmp     rcx, rbx                                                       ; +0x68, 0x140124a98\njz      short loc_140124ACD                                            ; +0x6b, 0x140124a9b\nmov     rax, [rcx]                                                     ; +0x6d, 0x140124a9d\ncall    qword ptr [rax+1F8h]                                           ; +0x70, 0x140124aa0\nmov     rcx, rax                                                       ; +0x76, 0x140124aa6\ntest    rax, rax                                                       ; +0x79, 0x140124aa9\njnz     short loc_140124A98                                            ; +0x7c, 0x140124aac\nmov     rcx, [rsi+290h]                                                ; +0x7e, 0x140124aae\ntest    rcx, rcx                                                       ; +0x85, 0x140124ab5\njz      short loc_140124AE5                                            ; +0x88, 0x140124ab8\nadd     rcx, 158h                                                      ; +0x8a, 0x140124aba\nmovaps  xmm2, xmm6                                                     ; +0x91, 0x140124ac1\nmov     edx, edi                                                       ; +0x94, 0x140124ac4\nmov     rax, [rcx]                                                     ; +0x96, 0x140124ac6\ncall    qword ptr [rax]                                                ; +0x99, 0x140124ac9\njmp     short loc_140124AE5                                            ; +0x9b, 0x140124acb\nmov     byte ptr [rsi+2DFh], 0                                         ; +0x9d, 0x140124acd\ncmp     edi, 0Dh                                                       ; +0xa4, 0x140124ad4\njnz     short loc_140124AE5                                            ; +0xa7, 0x140124ad7\nmov     rax, [rbx]                                                     ; +0xa9, 0x140124ad9\nmov     rcx, rbx                                                       ; +0xac, 0x140124adc\ncall    qword ptr [rax+4C0h]                                           ; +0xaf, 0x140124adf\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xb5, 0x140124ae5\nmov     rsi, [rsp+38h+arg_8]                                           ; +0xba, 0x140124aea\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0xbf, 0x140124aef\nadd     rsp, 30h                                                       ; +0xc4, 0x140124af4\npop     rdi                                                            ; +0xc8, 0x140124af8\nretn                                                                   ; +0xc9, 0x140124af9", "xrefs": ["<???> @ 0x140733318", "<???> @ 0x140916928"], "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"}