Function at 0x14011a510
Capabilities:
Log keystrokes via polling

Disassembly:
push rdi
sub rsp, 0x40
mov ecx, 0xa1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x14011a533
cmp byte [reloc.WS2_32.dll_accept], 0
sete byte [0x14021b58b]
cmp byte [0x14021d866], 0
jne 0x14011a548
call fcn.14003dab0
mov byte [0x14021d866], 1
mov rax, qword [0x14021d850]
xor edi, edi
test rax, rax
je 0x14011a55f
mov rcx, qword [rax + 0xf0]
jmp 0x14011a562
mov rcx, rdi
cmp qword [rcx + 0x18], rdi
jne 0x14011a583
test rax, rax
je 0x14011a583
mov rcx, qword [rax + 0xf0]
test rcx, rcx
je 0x14011a583
cmp qword [rcx], rdi
je 0x14011a583
call fcn.140028060
call fcn.1400286e0
call fcn.140007940
mov rax, qword [0x14021d850]
movzx ecx, byte [reloc.WS2_32.dll_accept]
mov byte [rax + 0xc8], cl
call fcn.14003d6c0
cmp byte [0x14021c6cc], dil
jne 0x14011a5b4
call fcn.140118a90
mov ecx, dword [0x14021d9ac]
mov eax, 0xa0a0a0a1
inc ecx
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x33
sub ecx, eax
cmp byte [reloc.WS2_32.dll_accept], dil
mov dword [0x14021d9ac], ecx
je 0x14011a689
mov rax, qword [0x14021d850]
mov ecx, 1
mov dword [rax + 0x130], edi
mov byte [rax + 0x134], dil
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x14011a639
mov rcx, qword [0x14021d850]
cmp byte [rcx + 0x130], dil
je 0x14011a632
movss xmm0, dword [rcx + 0x38]
mulss xmm0, xmm0
comiss xmm0, dword [rcx + 0x4a0]
setbe al
test al, al
jne 0x14011a639
mov byte [rcx + 0x130], 1
call fcn.14003a100
cmp byte [0x14021de98], dil
jne 0x14011a6c5
mov rcx, qword [0x14021d8c0]
mov edx, 0xffffffec
mov r8d, 0x80
call qword [sym.imp.USER32.dll_SetWindowLongA]
mov rcx, qword [0x14021d8c0]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rcx, qword [0x14021d8c0]
call qword [sym.imp.USER32.dll_SetFocus]
mov byte [0x14021de98], 1
mov byte [0x14021de99], dil
jmp 0x14011a6c5
cmp byte [0x14021de99], dil
jne 0x14011a6c5
mov rcx, qword [0x14021d8c0]
mov edx, 0xffffffec
mov r8d, 0x800a0
call qword [sym.imp.USER32.dll_SetWindowLongA]
mov rcx, qword [0x14021d8c0]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov byte [0x14021de99], 1
mov byte [0x14021de98], dil
call fcn.140009bb0
mov rcx, qword [0x14021c3f8]
mov r9d, 1
movss xmm0, dword [0x1401f6c04]
xor r8d, r8d
mov dword [rsp + 0x30], edi
xor edx, edx
movss dword [rsp + 0x28], xmm0
mov rax, qword [rcx]
mov dword [rsp + 0x20], edi
call qword [rax + 0x158]
mov rcx, qword [0x14021c3f8]
mov rax, qword [rcx]
call qword [rax + 0x148]
test eax, eax
js 0x14011a745
call fcn.140009f80
mov rax, qword [0x14021d850]
mov rcx, qword [rax + 0x1e20]
mov rcx, qword [rcx]
add rcx, 0x40
cmp byte [rcx], dil
cmove rcx, rdi
call fcn.140027aa0
mov rcx, qword [0x14021c3f8]
mov rax, qword [rcx]
call qword [rax + 0x150]
mov rcx, qword [0x14021c3f8]
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 0x14011a835
mov rcx, qword [0x14021c3f8]
mov rax, qword [rcx]
call qword [rax + 0x18]
cmp eax, 0x88760869
jne 0x14011a835
mov qword [rsp + 0x50], rbx
mov rbx, qword [0x14021d850]
test rbx, rbx
je 0x14011a7f2
mov rbx, qword [rbx + 0xf0]
test rbx, rbx
je 0x14011a7f2
cmp qword [rbx], rdi
je 0x14011a7f2
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14011a7ba
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 0x14011a7cd
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 0x14011a7f2
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rax, qword [0x14021d850]
mov qword [rbx + 0x18], rdi
mov rcx, qword [rax + 0xa8]
mov qword [rcx + 8], rdi
mov rcx, qword [0x14021c3f8]
lea rdx, [0x14021c400]
mov rax, qword [rcx]
call qword [rax + 0x80]
mov rax, qword [0x14021d850]
mov rbx, qword [rsp + 0x50]
test rax, rax
je 0x14011a835
mov rax, qword [rax + 0xf0]
test rax, rax
je 0x14011a835
cmp qword [rax], rdi
je 0x14011a835
add rsp, 0x40
pop rdi
jmp fcn.140028060
add rsp, 0x40
pop rdi
ret