Function at 0x140042210
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x60
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm6
movss xmm6, dword [0x1401287b4]
xor edi, edi
movups xmmword [0x14015efc8], xmm0
movups xmmword [0x14015efd8], xmm0
movups xmmword [0x14015efe8], xmm0
mov rdx, qword [0x14015f530]
lea rcx, [0x14015efc8]
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x140042281
lea rcx, [0x14015efc8]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [0x14015efc8]
call qword [sym.imp.USER32.dll_DispatchMessageW]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, qword [0x14015f008]
cmp rax, rcx
jne 0x1400422d9
mov edx, 3
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindow]
mov rcx, qword [0x14015f530]
mov r9d, 2
mov dword [rsp + 0x30], 3
mov r8d, r9d
mov dword [rsp + 0x28], 0xfffffffd
mov rdx, rax
mov dword [rsp + 0x20], 0xfffffffd
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rcx, qword [0x14015f008]
xorps xmm0, xmm0
mov qword [rsp + 0x70], rdi
lea rdx, [rsp + 0x40]
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.USER32.dll_GetClientRect]
mov rcx, qword [0x14015f008]
lea rdx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_ClientToScreen]
mov eax, dword [rsp + 0x70]
lea rcx, [rsp + 0x78]
mov rbx, qword [0x14015ef10]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x74]
mov dword [rsp + 0x44], eax
mov rax, qword [0x14015f008]
mov qword [rbx + 0x108], rax
mov dword [rbx + 0x18], 0x3c888889
call qword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [rsp + 0x78]
mov ecx, 1
sub eax, dword [rsp + 0x70]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0x118], xmm0
mov eax, dword [rsp + 0x7c]
sub eax, dword [rsp + 0x74]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0x11c], xmm0
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x140042394
mov byte [rbx + 0x120], 1
mov eax, dword [rbx + 0x11c]
mov dword [rbx + 0x3dc], eax
mov byte [rbx + 0x430], 1
jmp 0x14004239b
mov byte [rbx + 0x120], dil
mov eax, dword [0x14015f9a8]
mov ecx, dword [rsp + 0x4c]
mov edx, dword [rsp + 0x48]
cmp dword [rsp + 0x40], eax
jne 0x1400423cf
cmp edx, dword [0x14015f9b0]
jne 0x1400423cf
mov eax, dword [0x14015f9ac]
cmp dword [rsp + 0x44], eax
jne 0x1400423cf
cmp ecx, dword [0x14015f9b4]
je 0x140042467
movups xmm0, xmmword [rsp + 0x40]
mov r9d, dword [rsp + 0x74]
mov r8d, dword [rsp + 0x70]
add r9d, 2
movups xmmword [0x14015f9a8], xmm0
add r8d, 2
mov dword [rsp + 0x30], 8
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
movd xmm1, edx
xor edx, edx
cvtdq2ps xmm1, xmm1
movss dword [0x14015ef30], xmm0
cvttss2si rax, xmm1
movss dword [0x14015f010], xmm1
subss xmm1, xmm6
mov dword [0x14015ef80], eax
cvttss2si rax, xmm0
subss xmm0, xmm6
mov dword [0x14015ef84], eax
cvttss2si eax, xmm1
cvttss2si ecx, xmm0
mov dword [rsp + 0x28], ecx
mov rcx, qword [0x14015f530]
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rcx, qword [0x14015f538]
lea rdx, [0x14015ef80]
mov rax, qword [rcx]
call qword [rax + 0x80]
call fcn.140041ac0
cmp dword [0x14015efd0], 0x12
jne 0x140042241
cmp qword [0x14015f498], rdi
je 0x1400424df
mov rcx, qword [0x14015f4a0]
test rcx, rcx
je 0x14004249b
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [0x14015f4a0], rdi
mov rcx, qword [0x14015f490]
test rcx, rcx
je 0x1400424b4
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [0x14015f490], rdi
mov rcx, qword [0x14015f488]
mov rbx, qword [0x14015ef10]
test rcx, rcx
je 0x1400424cd
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [0x14015f488], rdi
mov rax, qword [rbx + 0xa0]
mov qword [rax + 8], rdi
mov rbx, qword [0x14015ef10]
mov rcx, rbx
mov qword [0x14015f498], rdi
mov qword [0x14015f4a8], rdi
call fcn.140007250
mov rax, qword [0x14015ef10]
cmp rax, rbx
cmove rax, rdi
mov qword [0x14015ef10], rax
test rbx, rbx
je 0x14004253f
mov rcx, rbx
call fcn.140014ac0
mov rax, qword [0x14015ef10]
test rax, rax
je 0x140042530
dec dword [rax + 0x3c8]
mov rdx, qword [0x14015ef00]
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rcx, qword [0x14015f530]
mov rbx, qword [rsp + 0x80]
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x60
pop rdi
jmp qword [sym.imp.USER32.dll_DestroyWindow]