Function at 0x14004a5c0
Capabilities:
Log keystrokes via polling

Disassembly:
push rdi
sub rsp, 0x50
mov ecx, dword [0x1400f03c0]
movaps xmmword [rsp + 0x40], xmm6
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x14004a5e9
cmp byte [reloc.WS2_32.dll_accept], 0
sete byte [0x1400f0150]
cmp byte [0x1400f1485], 0
jne 0x14004a5fe
call fcn.140047890
mov byte [0x1400f1485], 1
mov rax, qword [0x1400f1340]
xor edi, edi
test rax, rax
je 0x14004a615
mov rcx, qword [rax + 0xf0]
jmp 0x14004a618
mov rcx, rdi
cmp qword [rcx + 0x18], rdi
jne 0x14004a639
test rax, rax
je 0x14004a639
mov rcx, qword [rax + 0xf0]
test rcx, rcx
je 0x14004a639
cmp qword [rcx], rdi
je 0x14004a639
call fcn.1400275d0
call fcn.140027c50
call fcn.1400069b0
movzx eax, byte [reloc.WS2_32.dll_accept]
mov rdx, qword [0x1400f1340]
mov byte [rdx + 0xc8], al
call fcn.140047440
movss xmm5, dword [0x1400f14a8]
xorps xmm0, xmm0
addss xmm5, dword [0x1400deca4]
movss xmm6, dword [0x1400deb5c]
comiss xmm5, xmm0
movss dword [0x1400f14a8], xmm5
jae 0x14004a68e
mov dword [0x1400f14a8], 0x3f800000
cmp byte [0x1400f03fc], dil
jne 0x14004a6a3
call fcn.140048d00
mov rdx, qword [0x1400f1340]
mov eax, dword [0x1400f1480]
inc eax
cmp eax, 0x32
cmovg eax, edi
cmp byte [reloc.WS2_32.dll_accept], 1
mov dword [0x1400f1480], eax
jne 0x14004a748
mov dword [rdx + 0x130], edi
mov ecx, 1
mov byte [rdx + 0x134], dil
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x14004a70f
mov rcx, qword [0x1400f1340]
cmp byte [rcx + 0x130], dil
je 0x14004a708
movss xmm0, dword [rcx + 0x38]
mulss xmm0, xmm0
comiss xmm0, dword [rcx + 0x4a0]
setbe al
test al, al
jne 0x14004a70f
mov byte [rcx + 0x130], 1
call fcn.1400457c0
mov rcx, qword [0x1400f13a0]
mov edx, 0xffffffec
mov r8d, 0x80
call qword [sym.imp.USER32.dll_SetWindowLongA]
mov rcx, qword [0x1400f13a0]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rcx, qword [0x1400f13a0]
call qword [sym.imp.USER32.dll_SetFocus]
jmp 0x14004a76d
mov rcx, qword [0x1400f13a0]
mov edx, 0xffffffec
mov r8d, 0x800a0
call qword [sym.imp.USER32.dll_SetWindowLongA]
mov rcx, qword [0x1400f13a0]
call qword [sym.imp.USER32.dll_UpdateWindow]
call fcn.140008be0
mov rcx, qword [0x1400f00c8]
mov r9d, 1
mov dword [rsp + 0x30], edi
xor r8d, r8d
movss dword [rsp + 0x28], xmm6
xor edx, edx
mov dword [rsp + 0x20], edi
mov rax, qword [rcx]
call qword [rax + 0x158]
mov rcx, qword [0x1400f00c8]
mov rax, qword [rcx]
call qword [rax + 0x148]
movaps xmm6, xmmword [rsp + 0x40]
test eax, eax
js 0x14004a7ea
call fcn.140008fa0
mov rax, qword [0x1400f1340]
mov rcx, qword [rax + 0x1e10]
mov rcx, qword [rcx]
add rcx, 0x40
cmp byte [rcx], dil
cmove rcx, rdi
call fcn.140027020
mov rcx, qword [0x1400f00c8]
mov rax, qword [rcx]
call qword [rax + 0x150]
mov rcx, qword [0x1400f00c8]
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 0x14004a8da
mov rcx, qword [0x1400f00c8]
mov rax, qword [rcx]
call qword [rax + Ordinal_26]
cmp eax, 0x88760869
jne 0x14004a8da
mov qword [rsp + 0x60], rbx
mov rbx, qword [0x1400f1340]
test rbx, rbx
je 0x14004a897
mov rbx, qword [rbx + 0xf0]
test rbx, rbx
je 0x14004a897
cmp qword [rbx], rdi
je 0x14004a897
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14004a85f
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [rbx + 8], rdi
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14004a872
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [rbx + 0x10], rdi
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14004a897
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rax, qword [0x1400f1340]
mov qword [rbx + 0x18], rdi
mov rcx, qword [rax + 0xa8]
mov qword [rcx + 8], rdi
mov rcx, qword [0x1400f00c8]
lea rdx, [0x1400f00d0]
mov rax, qword [rcx]
call qword [rax + 0x80]
mov rax, qword [0x1400f1340]
mov rbx, qword [rsp + 0x60]
test rax, rax
je 0x14004a8da
mov rax, qword [rax + 0xf0]
test rax, rax
je 0x14004a8da
cmp qword [rax], rdi
je 0x14004a8da
add rsp, 0x50
pop rdi
jmp fcn.1400275d0
add rsp, 0x50
pop rdi
ret