Function at 0x140042020
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x140173500]
xor rax, rsp
mov qword [rsp + 0x80], rax
cmp qword [0x1401f3a20], 0
jne 0x14004204e
call fcn.140023810
mov rcx, qword [0x1401f3a40]
lea rdx, [rsp + 0x48]
mov rdi, qword [0x1401f3850]
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 [0x1401f3a48]
cvtsi2ss xmm0, qword [0x1401f3a50]
cvtsi2ss xmm1, rax
divss xmm1, xmm0
movss dword [rdi + 0x18], xmm1
mov qword [0x1401f3a48], rcx
mov ecx, reloc.WS2_32.dll_recvfrom
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, reloc.WS2_32.dll_recv
and al, 1
mov byte [rdi + 0x130], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, reloc.WS2_32.dll_select
and al, 1
mov byte [rdi + 0x131], al
call qword [sym.imp.USER32.dll_GetKeyState]
mov rcx, qword [0x1401f3850]
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 0x140042161
cvttss2si eax, dword [rbx]
lea rdx, [rsp + 0x58]
mov dword [rsp + 0x58], eax
cvttss2si eax, dword [rcx + 0x11c]
mov rcx, qword [0x1401f3a40]
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], 0xff7fffff
mov dword [rbx + 4], 0xff7fffff
call qword [sym.imp.USER32.dll_GetActiveWindow]
cmp rax, qword [0x1401f3a40]
jne 0x1400421bd
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x1400421bd
mov rcx, qword [0x1401f3a40]
lea rdx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x1400421bd
movd xmm0, dword [rsp + 0x40]
movd xmm1, dword [rsp + 0x44]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movss dword [rbx], xmm0
movss dword [rbx + 4], xmm1
cmp byte [rdi + 0xd0], 0
je 0x1400421cd
mov eax, 0xffffffff
jmp 0x1400421da
mov rax, qword [0x1401f3850]
mov eax, dword [rax + 0x1d70]
cmp dword [reloc.WS2_32.dll_htonl], eax
je 0x1400421ed
mov dword [reloc.WS2_32.dll_htonl], eax
call fcn.140023980
call fcn.140006760
mov rcx, qword [0x1401f3950]
lea rdx, [rsp + 0x68]
mov rax, qword [rcx]
call qword [rax + 0x48]
cmp byte [reloc.WS2_32.dll_accept], 0
mov rcx, qword [0x1401f38d0]
je 0x14004221b
mov edx, reloc.WS2_32.dll_recvfrom
jmp 0x14004221d
xor edx, edx
call qword [sym.imp.USER32.dll_SetWindowDisplayAffinity]
call fcn.14003e9e0
call fcn.1400335f0
call fcn.140007850
mov rcx, qword [0x1401f3950]
xor r8d, r8d
mov rax, qword [rcx]
lea edx, [r8 + 7]
call qword [rax + 0x1c8]
mov rcx, qword [0x1401f3950]
xor r8d, r8d
mov rax, qword [rcx]
lea edx, [r8 + 0x1b]
call qword [rax + 0x1c8]
mov rcx, qword [0x1401f3950]
xor r8d, r8d
mov edx, 0xae
mov rax, qword [rcx]
call qword [rax + 0x1c8]
mov rcx, qword [0x1401f3950]
xor edi, edi
movss xmm0, dword [0x14015184c]
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 [0x1401f3950]
mov rax, qword [rcx]
call qword [rax + 0x148]
test eax, eax
js 0x1400422ec
call fcn.140007d00
mov rcx, qword [0x1401f3850]
add rcx, 0x1c70
cmp byte [rcx], dil
cmove rcx, rdi
call fcn.140022f30
mov rcx, qword [0x1401f3950]
mov rax, qword [rcx]
call qword [rax + 0x150]
mov rcx, qword [0x1401f3950]
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 0x1400423ae
mov rcx, qword [0x1401f3950]
mov rax, qword [rcx]
call qword [rax + Ordinal_26]
cmp eax, 0x88760869
jne 0x1400423ae
cmp qword [0x1401f3a30], rdi
je 0x140042392
mov rcx, qword [0x1401f3a38]
test rcx, rcx
je 0x14004234e
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [0x1401f3a38], rdi
mov rcx, qword [0x1401f3a28]
test rcx, rcx
je 0x140042367
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [0x1401f3a28], rdi
mov rcx, qword [0x1401f3a20]
mov rbx, qword [0x1401f3850]
test rcx, rcx
je 0x140042380
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [0x1401f3a20], rdi
mov rax, qword [rbx + 0xa0]
mov qword [rax + 8], rdi
mov rcx, qword [0x1401f3950]
lea rdx, [0x1401f3900]
mov rax, qword [rcx]
call qword [rax + 0x80]
call fcn.140023810
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400f0360
mov rbx, qword [rsp + 0xa0]
add rsp, 0x90
pop rdi
ret