Function at 0x140054030
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x1400e3040]
xor rax, rsp
mov qword [rsp + 0x68], rax
cmp qword [0x140108438], 0
jne 0x140054058
call fcn.140025730
mov rcx, qword [0x140108458]
lea rdx, [rsp + 0x58]
mov rdi, qword [0x140107910]
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rsp + 0x60]
lea rcx, [rsp + 0x50]
sub eax, dword [rsp + 0x58]
movd xmm1, eax
mov eax, dword [rsp + 0x64]
sub eax, dword [rsp + 0x5c]
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 + 0x50]
xorps xmm1, xmm1
mov rax, rcx
xorps xmm0, xmm0
sub rax, qword [0x140108460]
cvtsi2ss xmm0, qword [0x140108468]
cvtsi2ss xmm1, rax
divss xmm1, xmm0
movss dword [rdi + 0x18], xmm1
mov qword [0x140108460], 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 rcx, qword [0x140107910]
shr eax, 0xf
and al, 1
mov byte [rdi + 0x133], 0
mov byte [rdi + 0x132], al
cmp byte [rcx + 0x3af], 0
lea rbx, [rcx + 0x118]
je 0x14005416b
cvttss2si eax, dword [rbx]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], eax
cvttss2si eax, dword [rcx + 0x11c]
mov rcx, qword [0x140108458]
mov dword [rsp + 0x44], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov dword [rbx], 0xff7fffff
mov dword [rbx + 4], 0xff7fffff
call qword [sym.imp.USER32.dll_GetActiveWindow]
cmp rax, qword [0x140108458]
jne 0x1400541c7
lea rcx, [rsp + 0x48]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x1400541c7
mov rcx, qword [0x140108458]
lea rdx, [rsp + 0x48]
call qword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x1400541c7
movd xmm0, dword [rsp + 0x48]
movd xmm1, dword [rsp + 0x4c]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movss dword [rbx], xmm0
movss dword [rbx + 4], xmm1
cmp byte [rdi + 0xd0], 0
je 0x1400541d7
mov eax, 0xffffffff
jmp 0x1400541e4
mov rax, qword [0x140107910]
mov eax, dword [rax + 0x1ec0]
cmp dword [0x140106c78], eax
je 0x1400541f7
mov dword [0x140106c78], eax
call fcn.140025880
call fcn.140006cb0
mov ecx, 0x70
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x14005421d
cmp byte [0x1400e50e8], 0
sete cl
mov byte [0x1400e50e8], cl
jmp 0x140054224
movzx ecx, byte [0x1400e50e8]
call fcn.140042140
test cl, cl
je 0x140054264
cmp byte [0x1401080cd], 0
je 0x140054272
mov rax, qword [0x140107910]
lea rcx, str.Menu
xor edx, edx
mov r8d, 0x28bb
mov byte [rax + 0xd0], 1
call fcn.14000a4e0
call fcn.140045fd0
call fcn.14000d320
jmp 0x140054272
mov rax, qword [0x140107910]
mov byte [rax + 0xd0], 0
call fcn.14004f730
mov rcx, qword [0x140108488]
xor r8d, r8d
mov rax, qword [rcx]
lea edx, [r8 + 7]
call qword [rax + 0x1c8]
mov rcx, qword [0x140108488]
xor r8d, r8d
mov rax, qword [rcx]
lea edx, [r8 + 0x1b]
call qword [rax + 0x1c8]
mov rcx, qword [0x140108488]
xor r8d, r8d
mov edx, 0xae
mov rax, qword [rcx]
call qword [rax + 0x1c8]
mov rcx, qword [0x140108488]
xor edi, edi
movss xmm0, dword [0x1400d7a5c]
xor r8d, r8d
mov dword [rsp + 0x30], edi
xor edx, edx
movss dword [rsp + 0x28], xmm0
mov rax, qword [rcx]
lea r9d, [rdi + 1]
mov dword [rsp + 0x20], edi
call qword [rax + 0x158]
mov rcx, qword [0x140108488]
mov rax, qword [rcx]
call qword [rax + 0x148]
test eax, eax
js 0x140054331
call fcn.1400082a0
mov rcx, qword [0x140107910]
add rcx, 0x1c70
cmp byte [rcx], dil
cmove rcx, rdi
call fcn.140024e50
mov rcx, qword [0x140108488]
mov rax, qword [rcx]
call qword [rax + 0x150]
mov rcx, qword [0x140108488]
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 0x1400543f3
mov rcx, qword [0x140108488]
mov rax, qword [rcx]
call qword [rax + 0x18]
cmp eax, 0x88760869
jne 0x1400543f3
cmp qword [0x140108448], rdi
je 0x1400543d7
mov rcx, qword [0x140108450]
test rcx, rcx
je 0x140054393
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x140108450], rdi
mov rcx, qword [0x140108440]
test rcx, rcx
je 0x1400543ac
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x140108440], rdi
mov rcx, qword [0x140108438]
mov rbx, qword [0x140107910]
test rcx, rcx
je 0x1400543c5
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x140108438], rdi
mov rax, qword [rbx + 0xa0]
mov qword [rax + 8], rdi
mov rcx, qword [0x140108488]
lea rdx, [0x140108010]
mov rax, qword [rcx]
call qword [rax + 0x80]
call fcn.140025730
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14005df00
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret