Function at 0x18003fa10
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x18014a040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x58], rdi
mov rdi, qword [0x18014d0c0]
test rdi, rdi
je 0x18003fa3f
mov rbx, qword [rdi + 0x98]
jmp 0x18003fa41
xor ebx, ebx
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
movdqu xmmword [rsp + 0x20], xmm0
mov rcx, qword [rbx]
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rsp + 0x28]
sub eax, dword [rsp + 0x20]
movd xmm1, eax
mov eax, dword [rsp + 0x2c]
sub eax, dword [rsp + 0x24]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rdi + 0x10], xmm1
movss dword [rdi + 0x14], xmm0
cmp byte [rbx + 0x30], 0
je 0x18003fa8b
call fcn.18003f9a0
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rsp + 0x30]
xorps xmm1, xmm1
mov rax, rcx
xorps xmm0, xmm0
sub rax, qword [rbx + 0x18]
cvtsi2ss xmm0, qword [rbx + 0x20]
cvtsi2ss xmm1, rax
divss xmm1, xmm0
movss dword [rdi + 0x18], xmm1
mov qword [rbx + 0x18], rcx
call fcn.18003ee80
mov rax, qword [0x18014d0c0]
cmp byte [rax + 0x2228], 0
je 0x18003fb36
cmp byte [rax + 0x432c], 0
jne 0x18003fb36
mov ecx, 0xa0
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x18003fb36
mov rsi, qword [0x18014d0c0]
cmp byte [rsi + 0x2bc1], 0
je 0x18003fb22
xorps xmm3, xmm3
lea rcx, [rsi + 8]
xor r8d, r8d
mov edx, 0x210
call fcn.180004fe0
mov dword [rsi + 0x2e58], 0x210
mov dword [rsi + 0x3418], 0xa0
mov rax, qword [0x18014d0c0]
cmp byte [rax + 0x2268], 0
je 0x18003fb99
cmp byte [rax + 0x435c], 0
jne 0x18003fb99
mov ecx, 0xa1
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x18003fb99
mov rsi, qword [0x18014d0c0]
cmp byte [rsi + 0x2bc1], 0
je 0x18003fb85
xorps xmm3, xmm3
lea rcx, [rsi + 8]
xor r8d, r8d
mov edx, 0x214
call fcn.180004fe0
mov dword [rsi + 0x2e5c], 0x214
mov dword [rsi + 0x3428], 0xa1
mov rax, qword [0x18014d0c0]
cmp byte [rax + 0x2248], 0
je 0x18003fbfc
cmp byte [rax + 0x4344], 0
jne 0x18003fbfc
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x18003fbfc
mov rsi, qword [0x18014d0c0]
cmp byte [rsi + 0x2bc1], 0
je 0x18003fbe8
xorps xmm3, xmm3
lea rcx, [rsi + 8]
xor r8d, r8d
mov edx, 0x212
call fcn.180004fe0
mov dword [rsi + 0x2d44], 0x212
mov dword [rsi + 0x3420], 0x5b
mov rax, qword [0x18014d0c0]
cmp byte [rax + 0x2288], 0
je 0x18003fc5f
cmp byte [rax + 0x4374], 0
jne 0x18003fc5f
mov ecx, 0x5c
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x18003fc5f
mov rsi, qword [0x18014d0c0]
cmp byte [rsi + 0x2bc1], 0
je 0x18003fc4b
xorps xmm3, xmm3
lea rcx, [rsi + 8]
xor r8d, r8d
mov edx, 0x216
call fcn.180004fe0
mov dword [rsi + 0x2d48], 0x216
mov dword [rsi + 0x3430], 0x5c
cmp byte [rdi + 0x60], 0
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
je 0x18003fc76
mov eax, 0xffffffff
jmp 0x18003fc83
mov rax, qword [0x18014d0c0]
mov eax, dword [rax + 0x50f0]
cmp dword [rbx + 0x28], eax
je 0x18003fc90
mov dword [rbx + 0x28], eax
call fcn.18003eca0
call fcn.18003f140
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1800cc250
add rsp, 0x40
pop rbx
ret