Function at 0x140035b60
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1400d5080]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rcx, qword [0x1400d6790]
lea rdx, [rsp + 0x30]
mov rbp, qword [0x1400d6410]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rsp + 0x38]
sub eax, dword [rsp + 0x30]
movd xmm1, eax
mov eax, dword [rsp + 0x3c]
sub eax, dword [rsp + 0x34]
cmp byte [reloc.WS2_32.dll_accept], 0
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rbp + 0x10], xmm1
movss dword [rbp + 0x14], xmm0
je 0x140035bdb
call fcn.140035b00
xor edi, edi
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rsp + 0x40]
xorps xmm1, xmm1
mov rax, rcx
xorps xmm0, xmm0
sub rax, qword [0x1400d6798]
cvtsi2ss xmm0, qword [0x1400d67a0]
cvtsi2ss xmm1, rax
divss xmm1, xmm0
movss dword [rbp + 0x18], xmm1
mov qword [0x1400d6798], rcx
lea ecx, [rdi + 0x11]
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
lea ecx, [rdi + 0x10]
and al, 1
mov byte [rbp + 0x13c], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
lea ecx, [rdi + 0x12]
and al, 1
mov byte [rbp + 0x13d], al
call qword [sym.imp.USER32.dll_GetKeyState]
mov rsi, qword [0x1400d6410]
shr eax, 0xf
and al, 1
mov byte [rbp + 0x13f], dil
mov byte [rbp + 0x13e], al
lea rbx, [rsi + 0x120]
cmp byte [rsi + 0x397], dil
je 0x140035cb7
test dword [rsi + 8], 0x400
cvttss2si ecx, dword [rbx]
cvttss2si edx, dword [rsi + 0x124]
mov dword [rsp + 0x20], ecx
mov dword [rsp + 0x24], edx
jne 0x140035cb1
mov rcx, qword [0x1400d6790]
lea rdx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x20]
call qword [sym.imp.USER32.dll_SetCursorPos]
lea rcx, [rsp + 0x28]
mov dword [rbx], 0xff7fffff
mov dword [rbx + 4], 0xff7fffff
mov dword [rsi + 0x138], edi
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x140035d8f
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rdi, rax
test rax, rax
je 0x140035d64
mov rdx, qword [0x1400d6790]
mov rcx, rax
call qword [sym.imp.USER32.dll_IsChild]
mov rcx, qword [0x1400d6790]
test eax, eax
cmovne rdi, rcx
test dword [rsi + 8], 0x400
je 0x140035d2c
mov rcx, rdi
call fcn.140018350
test rax, rax
je 0x140035d64
movd xmm0, dword [rsp + 0x28]
movd xmm1, dword [rsp + 0x2c]
jmp 0x140035d55
cmp rdi, rcx
jne 0x140035d64
mov rax, qword [rsp + 0x28]
lea rdx, [rsp + 0x20]
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_ScreenToClient]
movd xmm0, dword [rsp + 0x20]
movd xmm1, dword [rsp + 0x24]
cvtdq2ps xmm1, xmm1
cvtdq2ps xmm0, xmm0
movss dword [rbx + 4], xmm1
movss dword [rbx], xmm0
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.USER32.dll_WindowFromPoint]
test rax, rax
je 0x140035d8f
mov rcx, rax
call fcn.140018350
test rax, rax
je 0x140035d8f
test byte [rax + 4], 0x80
jne 0x140035d8f
mov eax, dword [rax]
mov dword [rsi + 0x138], eax
cmp byte [rbp + 0xcf], 0
je 0x140035d9f
mov eax, 0xffffffff
jmp 0x140035dac
mov rax, qword [0x1400d6410]
mov eax, dword [rax + 0x20d0]
cmp dword [reloc.WS2_32.dll_htons], eax
je 0x140035dbf
mov dword [reloc.WS2_32.dll_htons], eax
call fcn.1400354b0
call fcn.140035630
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400abf20
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret