Function at 0x140041980
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x50
mov r10, qword [0x14024ad10]
mov rsi, r9
movaps xmmword [rsp + 0x40], xmm6
mov rbx, r8
mov r11, rcx
test r10, r10
je case.0x140041e2b.527
mov r8, qword [r10 + 0x90]
lea rbp, [r10 + 8]
cmp edx, 0x200
ja 0x140041dff
je 0x140041dcc
lea eax, [rdx - 7]
cmp eax, 0xfe
ja case.0x140041e2b.527
lea r9, [0x140000000]
movzx eax, byte [r9 + rax + 0x42000]
mov ecx, dword [r9 + rax*4 + 0x41fec]
add rcx, r9
jmp rcx
lea eax, [rdx - 0x100]
mov r14d, 0x100
test eax, 0xfffffffb
sete dil
cmp rbx, r14
jae case.0x140041e2b.527
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
movss xmm6, dword [0x1400b5284]
shr eax, 0xf
and al, 1
je 0x140041a3d
movaps xmm3, xmm6
jmp 0x140041a40
xorps xmm3, xmm3
movzx r8d, al
mov edx, 0x281
mov rcx, rbp
call fcn.140019920
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
je 0x140041a68
movaps xmm3, xmm6
jmp 0x140041a6b
xorps xmm3, xmm3
movzx r8d, al
mov edx, 0x282
mov rcx, rbp
call fcn.140019920
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
je 0x140041a93
movaps xmm3, xmm6
jmp 0x140041a96
xorps xmm3, xmm3
movzx r8d, al
mov edx, 0x283
mov rcx, rbp
call fcn.140019920
mov ecx, 0x5d
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
je 0x140041abe
movaps xmm3, xmm6
jmp 0x140041ac1
xorps xmm3, xmm3
movzx r8d, al
mov edx, 0x284
mov rcx, rbp
call fcn.140019920
cmp rbx, 0xd
jne 0x140041ae8
shr rsi, 0x10
mov eax, 0x10d
test r14w, si
cmovne ebx, eax
movsxd r14, ebx
mov rcx, r14
call fcn.140041430
movsxd rsi, eax
test eax, eax
je 0x140041b34
mov rbp, qword [0x14024ad10]
test dil, dil
je 0x140041b0b
movaps xmm3, xmm6
jmp 0x140041b0e
xorps xmm3, xmm3
movzx r8d, dil
lea rcx, [rbp + 8]
mov edx, esi
call fcn.140019920
cmp ebx, 0x1ff
ja 0x140041b34
mov dword [rbp + r14*4 + 0xf8], esi
mov dword [rbp + rsi*4 + 0xf8], ebx
cmp ebx, 0x10
jne 0x140041be2
mov ecx, 0xa0
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, dil
jne 0x140041b8c
mov rbx, qword [0x14024ad10]
test dil, dil
je 0x140041b63
movaps xmm3, xmm6
jmp 0x140041b66
xorps xmm3, xmm3
movzx r8d, dil
lea rcx, [rbx + 8]
mov edx, 0x210
call fcn.140019920
mov dword [rbx + 0x378], 0x210
mov dword [rbx + 0x938], 0xa0
mov ecx, 0xa1
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, dil
jne case.0x140041e2b.527
mov rbx, qword [0x14024ad10]
test dil, dil
jne 0x140041bb4
xorps xmm6, xmm6
movaps xmm3, xmm6
lea rcx, [rbx + 8]
movzx r8d, dil
mov edx, 0x214
call fcn.140019920
mov dword [rbx + 0x37c], 0x214
mov dword [rbx + 0x948], 0xa1
jmp case.0x140041e2b.527
cmp ebx, 0x11
jne 0x140041c90
mov ecx, 0xa2
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, dil
jne 0x140041c3a
mov rbx, qword [0x14024ad10]
test dil, dil
je 0x140041c11
movaps xmm3, xmm6
jmp 0x140041c14
xorps xmm3, xmm3
movzx r8d, dil
lea rcx, [rbx + 8]
mov edx, 0x20f
call fcn.140019920
mov dword [rbx + 0x380], 0x20f
mov dword [rbx + 0x934], 0xa2
mov ecx, 0xa3
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, dil
jne case.0x140041e2b.527
mov rbx, qword [0x14024ad10]
test dil, dil
jne 0x140041c62
xorps xmm6, xmm6
movaps xmm3, xmm6
lea rcx, [rbx + 8]
movzx r8d, dil
mov edx, 0x213
call fcn.140019920
mov dword [rbx + 0x384], 0x213
mov dword [rbx + 0x944], 0xa3
jmp case.0x140041e2b.527
cmp ebx, 0x12
jne case.0x140041e2b.527
mov ecx, 0xa4
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, dil
jne 0x140041ce8
mov rbx, qword [0x14024ad10]
test dil, dil
je 0x140041cbf
movaps xmm3, xmm6
jmp 0x140041cc2
xorps xmm3, xmm3
movzx r8d, dil
lea rcx, [rbx + 8]
mov edx, 0x211
call fcn.140019920
mov dword [rbx + 0x388], 0x211
mov dword [rbx + 0x93c], 0xa4
mov ecx, 0xa5
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, dil
jne case.0x140041e2b.527
mov rbx, qword [0x14024ad10]
test dil, dil
jne 0x140041d10
xorps xmm6, xmm6
movaps xmm3, xmm6
lea rcx, [rbx + 8]
movzx r8d, dil
mov edx, 0x215
call fcn.140019920
mov dword [rbx + 0x38c], 0x215
mov dword [rbx + 0x94c], 0xa5
jmp case.0x140041e2b.527
xor eax, eax
lea rbx, [r10 + 0x37d8]
mov ecx, dword [rbx + 4]
cmp edx, 7
xorps xmm0, xmm0
mov qword [rsp + 0x30], rax
mov eax, dword [rbx]
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x20], 6
sete byte [rsp + 0x28]
cmp eax, ecx
jne 0x140041e9e
lea r8d, [rax + 1]
test ecx, ecx
je 0x140041e85
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x140041e8a
lea rax, [rbx - 1]
cmp rax, 0xfffe
ja case.0x140041e2b.527
movzx edx, bx
mov rcx, rbp
call fcn.140019760
jmp case.0x140041e2b.527
cmp si, 1
jne case.0x140041e2b.527
call fcn.140040a70
test al, al
je case.0x140041e2b.527
mov eax, 1
jmp 0x140041fc9
cmp byte [r8 + 0x10], 0
mov qword [r8 + 8], r11
jne 0x140041ddc
mov byte [r8 + 0x10], 1
mov rax, rsi
shr rax, 0x10
cwde
movd xmm2, eax
movsx eax, si
cvtdq2ps xmm2, xmm2
movd xmm1, eax
cvtdq2ps xmm1, xmm1
call fcn.140019a90
jmp case.0x140041e2b.527
lea eax, [rdx - 0x201]
cmp eax, 0xa2
ja case.0x140041e2b.527
lea r9, [0x140000000]
movzx eax, byte [r9 + rax + 0x4211c]
mov ecx, dword [r9 + rax*4 + 0x42100]
add rcx, r9
jmp rcx
xor ecx, ecx
cmp qword [r8 + 8], r11
jne 0x140041e39
mov qword [r8 + 8], rcx
lea rbx, [r10 + 0x37d8]
mov byte [r8 + 0x10], cl
mov eax, dword [rbx]
mov r9d, 1
mov qword [rsp + 0x30], rcx
mov ecx, dword [rbx + 4]
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x24], r9d
mov dword [rsp + 0x28], 0xff7fffff
mov dword [rsp + 0x2c], 0xff7fffff
cmp eax, ecx
jne 0x140041e9e
lea r8d, [rax + 1]
test ecx, ecx
je 0x140041e85
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x140041e8a
mov eax, 8
cmp eax, r8d
mov rcx, rbx
cmovg r8d, eax
mov edx, r8d
call fcn.14002f4c0
mov eax, dword [rbx]
movups xmm0, xmmword [rsp + 0x20]
cdqe
movsd xmm1, qword [rsp + 0x30]
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 8]
movups xmmword [rax + rcx*8], xmm0
movsd qword [rax + rcx*8 + 0x10], xmm1
inc dword [rbx]
jmp case.0x140041e2b.527
xor ecx, ecx
cmp edx, 0x204
je 0x140041ed9
mov r9d, ecx
cmp edx, 0x206
jne 0x140041edf
mov r9d, 1
lea eax, [rdx - 0x207]
mov r10d, 2
test eax, 0xfffffffd
lea eax, [rdx - 0x20b]
cmove r9d, r10d
test eax, 0xfffffffd
jne 0x140041f10
shr rbx, 0x10
cmp bx, 1
setne cl
lea r9d, [rcx + 3]
mov eax, dword [r8 + 0x14]
mov edx, r9d
bts eax, r9d
mov dword [r8 + 0x14], eax
mov r8b, 1
call fcn.140019b30
jmp case.0x140041e2b.527
xor ecx, ecx
cmp edx, 0x205
mov r10d, ecx
sete r10b
cmp edx, 0x208
jne 0x140041f49
lea r10d, [rcx + 2]
jmp 0x140041f64
cmp edx, 0x20c
jne 0x140041f64
shr rbx, 0x10
mov r10d, ecx
cmp bx, 1
setne r10b
add r10d, 3
mov eax, dword [r8 + 0x14]
mov edx, r10d
btr eax, r10d
mov dword [r8 + 0x14], eax
xor r8d, r8d
call fcn.140019b30
jmp case.0x140041e2b.527
shr rbx, 0x10
xorps xmm1, xmm1
movsx eax, bx
movd xmm2, eax
cvtdq2ps xmm2, xmm2
divss xmm2, dword [0x1400b5344]
call fcn.140019bd0
jmp case.0x140041e2b.527
shr rbx, 0x10
xorps xmm2, xmm2
movsx eax, bx
movd xmm1, eax
cvtdq2ps xmm1, xmm1
divss xmm1, dword [0x1400b5344]
call fcn.140019bd0
jmp case.0x140041e2b.527
cmp ebx, 7
jne case.0x140041e2b.527
mov byte [r8 + 0x2d], 1
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop r14
ret