Function at 0x1400d98d0
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x40
mov edi, edx
mov rbx, rcx
cmp edx, 0x27
ja 0x1400d9c54
mov eax, edi
movabs rcx, 0xa100000000
bt rcx, rax
jae 0x1400d9c54
cmp qword [rbx + 0xa0], 0
jne 0x1400d9913
mov al, 1
add rsp, 0x40
pop rdi
pop rbx
pop rbp
ret
mov ecx, 0x11
mov qword [rsp + 0x60], rsi
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
mov ecx, 0x10
sets sil
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
sets al
cmp edi, 0x20
je 0x1400d9b02
cmp edi, 0x25
je 0x1400d9a5a
cmp edi, 0x27
jne 0x1400d9c45
mov rax, qword [rbx + 0xa0]
test byte [rax + 0x34], 1
jne 0x1400d9c45
test byte [rax], 4
jne 0x1400d9989
mov r8b, 1
mov rdx, rax
mov rcx, rbx
call fcn.1400d8420
mov rsi, qword [rsp + 0x60]
mov al, 1
add rsp, 0x40
pop rdi
pop rbx
pop rbp
ret
mov rdx, qword [rbx + 0x130]
mov eax, dword [rax + 0x2c]
inc eax
cmp eax, dword [rdx]
jae 0x1400d9c45
mov ecx, eax
mov rax, qword [rdx + 8]
mov rdi, qword [rax + rcx*8]
mov rax, qword [rbx + 0xa0]
mov ecx, dword [rax + 0x30]
inc ecx
cmp dword [rdi + 0x30], ecx
jne 0x1400d9c45
mov qword [rbx + 0xa0], rdi
mov rcx, rbx
mov eax, dword [rdi + 0x2c]
mov dword [rbx + 0xac], eax
mov edx, dword [rdi + 0x2c]
inc edx
call fcn.1400d9060
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call fcn.1400d8c70
mov rax, qword [rbx + 0xa0]
mov edx, dword [rax + 0x2c]
mov r8d, edx
lea rax, [rbp + 0x28]
mov r9d, 4
mov qword [rsp + 0x28], rax
mov rcx, rbx
lea rax, [rbp + 0x30]
mov qword [rsp + 0x20], rax
call fcn.1400d8ad0
mov r8d, dword [rbp + 0x28]
lea rax, [rbp - 0x10]
mov edx, dword [rbp + 0x30]
mov r9b, 1
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.1400d87e0
test al, al
je 0x1400d9a43
mov rcx, qword [rbx]
lea rdx, [rbp - 0x10]
xor r8d, r8d
call qword [sym.imp.USER32.dll_InvalidateRect]
mov rcx, rbx
call fcn.1400dbca0
mov rsi, qword [rsp + 0x60]
mov al, 1
add rsp, 0x40
pop rdi
pop rbx
pop rbp
ret
mov rax, qword [rbx + 0xa0]
test byte [rax + 0x34], 1
jne 0x1400d9a89
test byte [rax], 4
je 0x1400d9a89
xor r8d, r8d
mov rdx, rax
mov rcx, rbx
call fcn.1400d8420
mov rsi, qword [rsp + 0x60]
mov al, 1
add rsp, 0x40
pop rdi
pop rbx
pop rbp
ret
mov ecx, dword [rax + 0x30]
test ecx, ecx
je 0x1400d9c45
mov edi, dword [rax + 0x2c]
dec ecx
test edi, edi
je 0x1400d9c45
mov rax, qword [rbx + 0x130]
mov rdx, qword [rax + 8]
nop dword [rax]
dec edi
mov eax, edi
mov rsi, qword [rdx + rdi*8]
cmp dword [rsi + 0x30], ecx
je 0x1400d9ad0
test edi, edi
jne 0x1400d9ab0
mov al, 1
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rbx
pop rbp
ret
mov qword [rbx + 0xa0], rsi
mov edx, edi
mov eax, dword [rsi + 0x2c]
mov rcx, rbx
mov dword [rbx + 0xac], eax
call fcn.1400d9060
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call fcn.1400d8c70
mov r8d, edi
mov edx, edi
jmp 0x1400d99f4
test sil, sil
je 0x1400d9bd2
mov rcx, qword [rbx + 0xa0]
mov r9d, 2
mov eax, dword [rcx + 0x2c]
mov dword [rbx + 0xac], eax
lea rax, [rbp + 0x28]
mov edx, dword [rcx + 0x2c]
mov r8d, edx
mov qword [rsp + 0x28], rax
mov rcx, rbx
lea rax, [rbp + 0x30]
mov qword [rsp + 0x20], rax
call fcn.1400d8ad0
mov rax, qword [rbx + 0x130]
mov edx, dword [rbp + 0x28]
cmp edx, dword [rax]
jae 0x1400d9c45
mov r8d, dword [rbp + 0x30]
cmp r8d, edx
ja 0x1400d9c45
mov eax, dword [rbx + 0x88]
xor r10d, r10d
mov r11d, dword [rbx + 0x78]
sub edx, eax
mov r9d, dword [rbx + 0xf8]
inc edx
imul edx, dword [rbx + 0x7c]
sub r8d, eax
imul r8d, dword [rbx + 0x7c]
sub r9d, dword [rbx + 0x8c]
add r9d, dword [rbx + 0x98]
mov dword [rbp - 0x10], r10d
add edx, r11d
add r8d, r11d
test byte [rbx + 0x40], 4
je 0x1400d9ba9
mov r10d, dword [rbx + 0x80]
mov eax, dword [rbx + 0x70]
sub eax, r10d
cmp r9d, eax
cmovg r9d, eax
mov eax, dword [rbx + 0x74]
cmp r8d, r11d
mov dword [rbp - 8], r9d
cmovl r8d, r11d
cmp edx, eax
mov dword [rbp - 0xc], r8d
cmovg edx, eax
mov dword [rbp - 4], edx
jmp 0x1400d9c35
test al, al
je 0x1400d9c45
mov rax, qword [rbx + 0xa0]
mov r8d, dword [rax + 0x2c]
mov eax, dword [rbx + 0xac]
cmp r8d, eax
jbe 0x1400d9bf0
mov edx, eax
jmp 0x1400d9bf6
mov edx, r8d
mov r8d, eax
lea rax, [rbp + 0x28]
mov r9d, 4
mov qword [rsp + 0x28], rax
mov rcx, rbx
lea rax, [rbp + 0x30]
mov qword [rsp + 0x20], rax
call fcn.1400d8ad0
mov r8d, dword [rbp + 0x28]
lea rax, [rbp - 0x10]
mov edx, dword [rbp + 0x30]
mov r9b, 1
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.1400d87e0
test al, al
je 0x1400d9c45
mov rcx, qword [rbx]
lea rdx, [rbp - 0x10]
xor r8d, r8d
call qword [sym.imp.USER32.dll_InvalidateRect]
mov al, 1
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rbx
pop rbp
ret
xor al, al
add rsp, 0x40
pop rdi
pop rbx
pop rbp
ret