Function at 0x140046590
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140057010]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov ecx, 0x2d
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x1400465cb
cmp byte [0x14005705c], 0
sete byte [0x14005705c]
cmp qword [0x140057ba0], 0
jne 0x1400465e4
cmp qword [0x140057bb0], 0
je 0x1400465e4
call fcn.140029340
mov rcx, qword [0x140057be0]
lea rdx, [rsp + 0x48]
mov rdi, qword [0x140057970]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rsp + 0x50]
lea rcx, [rsp + 0x60]
sub eax, dword [rsp + 0x48]
xor esi, esi
mov qword [rsp + 0x60], rsi
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 [0x140057be8]
cvtsi2ss xmm0, qword [0x140057bf0]
cvtsi2ss xmm1, rax
divss xmm1, xmm0
movss dword [rdi + 0x18], xmm1
mov qword [0x140057be8], rcx
lea ecx, [rsi + 0x11]
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
lea ecx, [rsi + 0x10]
and al, 1
mov byte [rdi + 0x140], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
lea ecx, [rsi + 0x12]
and al, 1
mov byte [rdi + 0x141], al
call qword [sym.imp.USER32.dll_GetKeyState]
mov rbx, qword [0x140057970]
shr eax, 0xf
and al, 1
mov byte [rdi + 0x143], sil
mov byte [rdi + 0x142], al
cmp byte [rbx + 0x39b], sil
je 0x140046702
cvttss2si eax, dword [rbx + 0x128]
mov rcx, qword [0x140057be0]
lea rdx, [rsp + 0x58]
mov dword [rsp + 0x58], eax
cvttss2si eax, dword [rbx + 0x12c]
mov dword [rsp + 0x5c], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
test eax, eax
je 0x140046702
mov edx, dword [rsp + 0x5c]
mov ecx, dword [rsp + 0x58]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov dword [rbx + 0x128], 0xff7fffff
mov dword [rbx + 0x12c], 0xff7fffff
call qword [sym.imp.USER32.dll_GetActiveWindow]
cmp rax, qword [0x140057be0]
jne 0x14004676c
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x14004676c
mov rcx, qword [0x140057be0]
lea rdx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x14004676c
movd xmm0, dword [rsp + 0x40]
movd xmm1, dword [rsp + 0x44]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movss dword [rbx + 0x128], xmm0
movss dword [rbx + 0x12c], xmm1
cmp byte [rdi + 0xc8], sil
je 0x14004677c
mov eax, 0xffffffff
jmp 0x140046789
mov rax, qword [0x140057970]
mov eax, dword [rax + 0x1f48]
cmp dword [0x140057244], eax
je 0x14004679c
mov dword [0x140057244], eax
call fcn.1400295e0
call fcn.140029760
call fcn.140006ec0
call fcn.140045080
movzx ecx, byte [0x14005705c]
mov rax, qword [0x140057970]
mov byte [rax + 0xc8], cl
test cl, cl
je 0x1400467c8
call fcn.140040cf0
call fcn.140008f90
mov rcx, qword [0x140057a08]
xor r8d, r8d
mov rax, qword [rcx]
lea edx, [r8 + 7]
call qword [rax + 0x1c8]
mov rcx, qword [0x140057a08]
xor r8d, r8d
mov rax, qword [rcx]
lea edx, [r8 + 0x1b]
call qword [rax + 0x1c8]
mov rcx, qword [0x140057a08]
xor r8d, r8d
mov edx, 0xae
mov rax, qword [rcx]
call qword [rax + 0x1c8]
mov rcx, qword [0x140057a08]
mov r9d, 1
movss xmm0, dword [0x14004f758]
xor r8d, r8d
mov dword [rsp + 0x30], esi
xor edx, edx
movss dword [rsp + 0x28], xmm0
mov rax, qword [rcx]
mov dword [rsp + 0x20], esi
call qword [rax + 0x158]
mov rcx, qword [0x140057a08]
mov rax, qword [rcx]
call qword [rax + 0x148]
test eax, eax
js 0x14004688e
call fcn.140009310
mov rax, qword [0x140057970]
mov rcx, qword [rax + 0x1dc0]
mov rcx, qword [rcx]
add rcx, 0x40
cmp byte [rcx], sil
cmove rcx, rsi
call fcn.140028d70
mov rcx, qword [0x140057a08]
mov rax, qword [rcx]
call qword [rax + 0x150]
mov rcx, qword [0x140057a08]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rsi
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x88]
cmp eax, 0x88760868
jne 0x140046959
mov rcx, qword [0x140057a08]
mov rax, qword [rcx]
call qword [rax + 0x18]
cmp eax, 0x88760869
jne 0x140046959
cmp qword [0x140057bb0], rsi
je 0x140046934
mov rcx, qword [0x140057bb8]
test rcx, rcx
je 0x1400468f0
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x140057bb8], rsi
mov rcx, qword [0x140057ba8]
test rcx, rcx
je 0x140046909
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x140057ba8], rsi
mov rcx, qword [0x140057ba0]
test rcx, rcx
je 0x140046934
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rax, qword [0x140057970]
mov qword [0x140057ba0], rsi
mov rcx, qword [rax + 0xa8]
mov qword [rcx + 8], rsi
mov rcx, qword [0x140057a08]
lea rdx, [0x140057990]
mov rax, qword [rcx]
call qword [rax + 0x80]
cmp qword [0x140057bb0], rsi
je 0x140046959
call fcn.140029340
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400488a0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret