Function at 0x14004e580
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x58
cmp byte [0x1400fbcb1], 0
je 0x14004e945
cmp byte [0x1400fbcb5], 0
je 0x14004e945
cmp qword [0x1400fbc78], 0
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x50], rdi
jne 0x14004e5b7
call fcn.140027730
mov rcx, qword [0x1400fbc98]
lea rdx, [rsp + 0x40]
mov rdi, qword [0x1400fb680]
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rsp + 0x48]
lea rcx, [rsp + 0x70]
sub eax, dword [rsp + 0x40]
movd xmm1, eax
mov eax, dword [rsp + 0x4c]
sub eax, dword [rsp + 0x44]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rdi + 0x10], xmm1
movss dword [rdi + 0x14], xmm0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rsp + 0x70]
xorps xmm1, xmm1
mov rax, rcx
xorps xmm0, xmm0
sub rax, qword [0x1400fbca0]
cvtsi2ss xmm0, qword [0x1400fbca8]
cvtsi2ss xmm1, rax
divss xmm1, xmm0
movss dword [rdi + 0x18], xmm1
mov qword [0x1400fbca0], rcx
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, 0x10
and al, 1
mov byte [rdi + 0x130], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, 0x12
and al, 1
mov byte [rdi + 0x131], al
call qword [sym.imp.USER32.dll_GetKeyState]
mov rbx, qword [0x1400fb680]
shr eax, 0xf
and al, 1
mov byte [rdi + 0x133], 0
mov byte [rdi + 0x132], al
cmp byte [rbx + 0x3af], 0
je 0x14004e6c7
cvttss2si eax, dword [rbx + 0x118]
mov rcx, qword [0x1400fbc98]
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x60], eax
cvttss2si eax, dword [rbx + 0x11c]
mov dword [rsp + 0x64], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [rsp + 0x64]
mov ecx, dword [rsp + 0x60]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov dword [rbx + 0x118], 0xff7fffff
mov dword [rbx + 0x11c], 0xff7fffff
call qword [sym.imp.USER32.dll_GetActiveWindow]
cmp rax, qword [0x1400fbc98]
jne 0x14004e731
lea rcx, [rsp + 0x68]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x14004e731
mov rcx, qword [0x1400fbc98]
lea rdx, [rsp + 0x68]
call qword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x14004e731
movd xmm0, dword [rsp + 0x68]
movd xmm1, dword [rsp + 0x6c]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movss dword [rbx + 0x118], xmm0
movss dword [rbx + 0x11c], xmm1
cmp byte [rdi + 0xd0], 0
je 0x14004e741
mov eax, 0xffffffff
jmp 0x14004e74e
mov rax, qword [0x1400fb680]
mov eax, dword [rax + 0x1d70]
cmp dword [0x1400fa9d8], eax
je 0x14004e761
mov dword [0x1400fa9d8], eax
call fcn.140027880
call fcn.140008f10
mov ecx, 0x2d
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x14004e787
cmp byte [0x1400d7051], 0
sete dl
mov byte [0x1400d7051], dl
jmp 0x14004e78e
movzx edx, byte [0x1400d7051]
mov rcx, qword [0x1400fb680]
call fcn.14001ebb0
xor edi, edi
mov dword [rcx + 0x156c], 0x3f000000
mov dword [rcx + 0x1560], edi
mov dword [rcx + 0x1570], 0x3f000000
mov dword [rcx + 0x1564], 0x44160000
mov dword [rcx + 0x1568], 0x43938000
test dl, dl
je 0x14004e7f9
mov byte [rcx + 0xd0], 1
xor edx, edx
lea rcx, [0x140057dc6]
mov r8d, 0x122
call fcn.14000c940
test al, al
je 0x14004e7f2
call fcn.140044170
call fcn.14000f710
jmp 0x14004e800
mov byte [rcx + 0xd0], dil
call fcn.14004b090
mov rcx, qword [0x1400fbcf0]
mov r9d, 1
movss xmm0, dword [0x1400cbdd0]
xor r8d, r8d
mov dword [rsp + 0x30], edi
xor edx, edx
movss dword [rsp + 0x28], xmm0
mov rax, qword [rcx]
mov dword [rsp + 0x20], edi
call qword [rax + 0x158]
mov rcx, qword [0x1400fbcf0]
mov rax, qword [rcx]
call qword [rax + 0x148]
test eax, eax
js 0x14004e879
call fcn.14000a680
mov rcx, qword [0x1400fb680]
add rcx, 0x1c70
cmp byte [rcx], dil
cmove rcx, rdi
call fcn.140026e50
mov rcx, qword [0x1400fbcf0]
mov rax, qword [rcx]
call qword [rax + 0x150]
mov rcx, qword [0x1400fbcf0]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x88]
cmp eax, 0x88760868
jne 0x14004e93b
mov rcx, qword [0x1400fbcf0]
mov rax, qword [rcx]
call qword [rax + 0x18]
cmp eax, 0x88760869
jne 0x14004e93b
cmp qword [0x1400fbc88], rdi
je 0x14004e91f
mov rcx, qword [0x1400fbc90]
test rcx, rcx
je 0x14004e8db
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x1400fbc90], rdi
mov rcx, qword [0x1400fbc80]
test rcx, rcx
je 0x14004e8f4
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x1400fbc80], rdi
mov rcx, qword [0x1400fbc78]
mov rbx, qword [0x1400fb680]
test rcx, rcx
je 0x14004e90d
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x1400fbc78], rdi
mov rax, qword [rbx + 0xa0]
mov qword [rax + 8], rdi
mov rcx, qword [0x1400fbcf0]
lea rdx, [0x1400fb750]
mov rax, qword [rcx]
call qword [rax + 0x80]
call fcn.140027730
mov rbx, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x50]
add rsp, 0x58
ret