Function at 0x140022930
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x88
mov rax, qword [0x1400a8650]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rdi, r9
mov ebp, r8d
mov rsi, rdx
mov rbx, rcx
cmp r8d, 0x113
ja 0x140022bd9
je 0x140022acf
mov eax, r8d
sub eax, 2
je 0x140022ac2
dec eax
je 0x140022ab8
sub eax, 0xc
je 0x140022a97
sub eax, 0x11
je 0x140022a65
cmp eax, 0xf1
jne 0x140022bfb
lea rax, [r9 - 0x8e]
cmp rax, 0x17
ja case.0x1400229c5.143
lea rcx, [0x140000000]
movzx eax, byte [rcx + rax + 0x22ce4]
mov edx, dword [rcx + rax*4 + 0x22cc8]
add rdx, rcx
jmp rdx
mov dl, 1
mov rcx, rbx
call fcn.140022d00
jmp 0x140022bfb
xor edx, edx
mov rcx, rbx
call fcn.140022fd0
jmp 0x140022bfb
mov edx, 1
mov rcx, rbx
call fcn.140022fd0
jmp 0x140022bfb
mov edx, 2
mov rcx, rbx
call fcn.140022fd0
jmp 0x140022bfb
mov rax, qword [rbx + 0x90]
mov rcx, rbx
movzx edx, byte [rax + 0x8a]
call fcn.1400227e0
jmp 0x140022bfb
mov rax, qword [rbx + 0x88]
xor edx, edx
lea rcx, [rbx + 0x210]
cmp byte [rax + 0x8a], dl
setne dl
call fcn.140016b50
jmp 0x140022bfb
mov r9, qword [rsp + 0xd0]
mov r8, rdi
mov edx, 0x111
mov rcx, rsi
call qword [sym.imp.USER32.dll_DefWindowProcW]
jmp 0x140022cac
mov rcx, qword [rcx + 0x38]
test rcx, rcx
je 0x140022a79
call qword [sym.imp.USER32.dll_SetCursor]
jmp 0x140022ca7
mov r9, qword [rsp + 0xd0]
mov r8, rdi
mov edx, 0x20
mov rcx, rsi
call qword [sym.imp.USER32.dll_DefWindowProcW]
jmp 0x140022cac
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.USER32.dll_BeginPaint]
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.USER32.dll_EndPaint]
jmp 0x140022ca7
call fcn.140022f50
jmp 0x140022ca7
xor ecx, ecx
call qword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x140022ca7
mov rax, r9
sub rax, 0x2710
je 0x140022bcf
dec rax
je 0x140022bc5
dec rax
je 0x140022b44
dec rax
je 0x140022b1e
dec rax
je 0x140022b14
mov r9, qword [rsp + 0xd0]
mov r8, rdi
mov edx, 0x113
mov rcx, rsi
call qword [sym.imp.USER32.dll_DefWindowProcW]
jmp 0x140022cac
call fcn.1400232e0
jmp 0x140022ca7
mov rax, qword [rcx + 0xb8]
mov byte [rax + 0x8c], 5
mov dword [rax + 0x88], 2
movzx edx, byte [rcx + 0x58]
call fcn.14001ceb0
jmp 0x140022ca7
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
test al, 1
je 0x140022ba7
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
test al, 1
je 0x140022ba7
mov ecx, 0x24
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
je 0x140022ba1
cmp byte [0x1400b22f4], 0
jne 0x140022ba1
cmp byte [rbx + 0x449], 0
mov byte [0x1400b22f4], 1
sete cl
mov byte [rbx + 0x449], cl
call fcn.140014c00
jmp 0x140022ba7
mov byte [0x1400b22f4], al
cmp byte [rbx + 0x449], 0
je 0x140022ca7
lea rcx, [rbx + 0xd0]
call fcn.140018b00
jmp 0x140022ca7
call fcn.1400233e0
jmp 0x140022ca7
call fcn.140022ed0
jmp 0x140022ca7
mov eax, r8d
sub eax, 0x200
je 0x140022c87
dec eax
je 0x140022c65
dec eax
je 0x140022c43
sub eax, 3
je 0x140022c21
cmp eax, 0x9e
je 0x140022c16
mov r9, qword [rsp + 0xd0]
mov r8, rdi
mov edx, ebp
mov rcx, rsi
call qword [sym.imp.USER32.dll_DefWindowProcW]
jmp 0x140022cac
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x140022ca7
mov r9, qword [rcx]
mov rcx, qword [rsp + 0xd0]
mov rax, rcx
movsx edx, cx
mov rcx, rbx
shr rax, 0x10
movsx r8d, ax
call qword [r9 + 0x28]
jmp 0x140022ca7
mov r9, qword [rcx]
mov rcx, qword [rsp + 0xd0]
mov rax, rcx
movsx edx, cx
mov rcx, rbx
shr rax, 0x10
movsx r8d, ax
call qword [r9 + 0x20]
jmp 0x140022ca7
mov r9, qword [rcx]
mov rcx, qword [rsp + 0xd0]
mov rax, rcx
movsx edx, cx
mov rcx, rbx
shr rax, 0x10
movsx r8d, ax
call qword [r9 + 0x18]
jmp 0x140022ca7
mov r9, qword [rcx]
mov rcx, qword [rsp + 0xd0]
mov rax, rcx
movsx edx, cx
mov rcx, rbx
shr rax, 0x10
movsx r8d, ax
call qword [r9 + 0x10]
mov eax, 1
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400466a0
add rsp, 0x88
pop rdi
pop rsi
pop rbp
pop rbx
ret