Function at 0x140035610
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140056010]
xor rax, rsp
mov qword [rsp + 0x68], rax
cmp byte [0x14013b571], 0
mov esi, 1
je 0x14003564e
cmp byte [0x14013b573], 0
je 0x140035662
mov byte [0x14013b573], 0
jmp 0x140035662
movzx eax, byte [0x14013b573]
test al, al
mov ecx, eax
cmove ecx, esi
mov byte [0x14013b573], cl
cmp qword [0x14015ede0], 0
jne 0x14003567b
cmp qword [0x14015edf0], 0
je 0x14003567b
call fcn.140022610
mov rcx, qword [0x14015ee00]
lea rdx, [rsp + 0x48]
mov rdi, qword [0x14015eb90]
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rsp + 0x50]
lea rcx, [rsp + 0x60]
sub eax, dword [rsp + 0x48]
movd xmm1, eax
mov eax, dword [rsp + 0x54]
sub eax, dword [rsp + 0x4c]
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 + 0x60]
xorps xmm1, xmm1
mov rax, rcx
xorps xmm0, xmm0
sub rax, qword [0x14015ee08]
cvtsi2ss xmm0, qword [0x14015ee10]
cvtsi2ss xmm1, rax
divss xmm1, xmm0
movss dword [rdi + 0x18], xmm1
mov qword [0x14015ee08], rcx
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, 0x10
and al, sil
mov byte [rdi + 0x130], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, 0x12
and al, sil
mov byte [rdi + 0x131], al
call qword [sym.imp.USER32.dll_GetKeyState]
mov rbx, qword [0x14015eb90]
shr eax, 0xf
and al, sil
mov byte [rdi + 0x133], 0
mov byte [rdi + 0x132], al
cmp byte [rbx + 0x3af], 0
je 0x14003578e
cvttss2si eax, dword [rbx + 0x118]
mov rcx, qword [0x14015ee00]
lea rdx, [rsp + 0x58]
mov dword [rsp + 0x58], eax
cvttss2si eax, dword [rbx + 0x11c]
mov dword [rsp + 0x5c], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [rsp + 0x5c]
mov ecx, dword [rsp + 0x58]
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 [0x14015ee00]
jne 0x1400357f8
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x1400357f8
mov rcx, qword [0x14015ee00]
lea rdx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x1400357f8
movd xmm0, dword [rsp + 0x40]
movd xmm1, dword [rsp + 0x44]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movss dword [rbx + 0x118], xmm0
movss dword [rbx + 0x11c], xmm1
cmp byte [rdi + 0xd0], 0
je 0x140035808
mov eax, 0xffffffff
jmp 0x140035815
mov rax, qword [0x14015eb90]
mov eax, dword [rax + 0x1d70]
cmp dword [0x14015dff8], eax
je 0x140035828
mov dword [0x14015dff8], eax
call fcn.140022a50
call fcn.140005ae0
cmp byte [0x14013b572], 0
je 0x14003583b
call fcn.14003a620
call fcn.14003b8f0
call fcn.140006e30
mov rcx, qword [0x14015ee20]
xor r8d, r8d
mov rax, qword [rcx]
lea edx, [r8 + 7]
call qword [rax + 0x1c8]
mov rcx, qword [0x14015ee20]
xor r8d, r8d
mov rax, qword [rcx]
lea edx, [r8 + 0x1b]
call qword [rax + 0x1c8]
mov rcx, qword [0x14015ee20]
xor r8d, r8d
mov edx, 0xae
mov rax, qword [rcx]
call qword [rax + 0x1c8]
mov rcx, qword [0x14015ee20]
xor edi, edi
movss xmm0, dword [0x14004bfd4]
mov r9d, esi
mov dword [rsp + 0x30], edi
xor r8d, r8d
movss dword [rsp + 0x28], xmm0
xor edx, edx
mov rax, qword [rcx]
mov dword [rsp + 0x20], edi
call qword [rax + 0x158]
mov rcx, qword [0x14015ee20]
mov rax, qword [rcx]
call qword [rax + 0x148]
test eax, eax
js 0x1400358fe
call fcn.1400073a0
mov rcx, qword [0x14015eb90]
add rcx, 0x1c70
cmp byte [rcx], dil
cmove rcx, rdi
call fcn.140021d40
mov rcx, qword [0x14015ee20]
mov rax, qword [rcx]
call qword [rax + 0x150]
mov rcx, qword [0x14015ee20]
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 0x1400359c9
mov rcx, qword [0x14015ee20]
mov rax, qword [rcx]
call qword [rax + 0x18]
cmp eax, 0x88760869
jne 0x1400359c9
cmp qword [0x14015edf0], rdi
je 0x1400359a4
mov rcx, qword [0x14015edf8]
test rcx, rcx
je 0x140035960
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x14015edf8], rdi
mov rcx, qword [0x14015ede8]
test rcx, rcx
je 0x140035979
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x14015ede8], rdi
mov rcx, qword [0x14015ede0]
mov rbx, qword [0x14015eb90]
test rcx, rcx
je 0x140035992
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x14015ede0], rdi
mov rax, qword [rbx + 0xa0]
mov qword [rax + 8], rdi
mov rcx, qword [0x14015ee20]
lea rdx, [0x14015ece0]
mov rax, qword [rcx]
call qword [rax + 0x80]
cmp qword [0x14015edf0], rdi
je 0x1400359c9
call fcn.140022610
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140043b20
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret