Function at 0x1400386d0
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 0x140038a54
mov eax, edi
movabs rcx, 0xa100000000
bt rcx, rax
jae 0x140038a54
cmp qword [rbx + 0xa0], 0
jne 0x140038713
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 0x140038902
cmp edi, 0x25
je 0x14003885a
cmp edi, 0x27
jne 0x140038a45
mov rax, qword [rbx + 0xa0]
test byte [rax + 0x34], 1
jne 0x140038a45
test byte [rax], 4
jne 0x140038789
mov r8b, 1
mov rdx, rax
mov rcx, rbx
call fcn.140037220
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 0x140038a45
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 0x140038a45
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.140037e60
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call fcn.140037a70
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.1400378d0
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.1400375e0
test al, al
je 0x140038843
mov rcx, qword [rbx]
lea rdx, [rbp - 0x10]
xor r8d, r8d
call qword [sym.imp.USER32.dll_InvalidateRect]
mov rcx, rbx
call fcn.14003aaa0
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 0x140038889
test byte [rax], 4
je 0x140038889
xor r8d, r8d
mov rdx, rax
mov rcx, rbx
call fcn.140037220
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 0x140038a45
mov edi, dword [rax + 0x2c]
dec ecx
test edi, edi
je 0x140038a45
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 0x1400388d0
test edi, edi
jne 0x1400388b0
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.140037e60
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call fcn.140037a70
mov r8d, edi
mov edx, edi
jmp 0x1400387f4
test sil, sil
je 0x1400389d2
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.1400378d0
mov rax, qword [rbx + 0x130]
mov edx, dword [rbp + 0x28]
cmp edx, dword [rax]
jae 0x140038a45
mov r8d, dword [rbp + 0x30]
cmp r8d, edx
ja 0x140038a45
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 0x1400389a9
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 0x140038a35
test al, al
je 0x140038a45
mov rax, qword [rbx + 0xa0]
mov r8d, dword [rax + 0x2c]
mov eax, dword [rbx + 0xac]
cmp r8d, eax
jbe 0x1400389f0
mov edx, eax
jmp 0x1400389f6
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.1400378d0
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.1400375e0
test al, al
je 0x140038a45
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