Function at 0x18003fa30
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x180150040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x58], rdi
mov rdi, qword [0x180152bd0]
test rdi, rdi
je 0x18003fa5f
mov rbx, qword [rdi + 0x98]
jmp 0x18003fa61
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 0x18003faab
call fcn.18003f9c0
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.18003eea0
mov rax, qword [0x180152bd0]
cmp byte [rax + 0x2228], 0
je 0x18003fb56
cmp byte [rax + 0x432c], 0
jne 0x18003fb56
mov ecx, 0xa0
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x18003fb56
mov rsi, qword [0x180152bd0]
cmp byte [rsi + 0x2bc1], 0
je 0x18003fb42
xorps xmm3, xmm3
lea rcx, [rsi + 8]
xor r8d, r8d
mov edx, 0x210
call fcn.180005000
mov dword [rsi + 0x2e58], 0x210
mov dword [rsi + 0x3418], 0xa0
mov rax, qword [0x180152bd0]
cmp byte [rax + 0x2268], 0
je 0x18003fbb9
cmp byte [rax + 0x435c], 0
jne 0x18003fbb9
mov ecx, 0xa1
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x18003fbb9
mov rsi, qword [0x180152bd0]
cmp byte [rsi + 0x2bc1], 0
je 0x18003fba5
xorps xmm3, xmm3
lea rcx, [rsi + 8]
xor r8d, r8d
mov edx, 0x214
call fcn.180005000
mov dword [rsi + 0x2e5c], 0x214
mov dword [rsi + 0x3428], 0xa1
mov rax, qword [0x180152bd0]
cmp byte [rax + 0x2248], 0
je 0x18003fc1c
cmp byte [rax + 0x4344], 0
jne 0x18003fc1c
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x18003fc1c
mov rsi, qword [0x180152bd0]
cmp byte [rsi + 0x2bc1], 0
je 0x18003fc08
xorps xmm3, xmm3
lea rcx, [rsi + 8]
xor r8d, r8d
mov edx, 0x212
call fcn.180005000
mov dword [rsi + 0x2d44], 0x212
mov dword [rsi + 0x3420], 0x5b
mov rax, qword [0x180152bd0]
cmp byte [rax + 0x2288], 0
je 0x18003fc7f
cmp byte [rax + 0x4374], 0
jne 0x18003fc7f
mov ecx, 0x5c
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x18003fc7f
mov rsi, qword [0x180152bd0]
cmp byte [rsi + 0x2bc1], 0
je 0x18003fc6b
xorps xmm3, xmm3
lea rcx, [rsi + 8]
xor r8d, r8d
mov edx, 0x216
call fcn.180005000
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 0x18003fc96
mov eax, 0xffffffff
jmp 0x18003fca3
mov rax, qword [0x180152bd0]
mov eax, dword [rax + 0x50f0]
cmp dword [rbx + 0x28], eax
je 0x18003fcb0
mov dword [rbx + 0x28], eax
call fcn.18003ecc0
call fcn.18003f160
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1800d11c0
add rsp, 0x40
pop rbx
ret