Function at 0x140040a20
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x50
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm6
movss xmm6, dword [0x1400b2164]
xor edi, edi
movups xmmword [0x1400e0f20], xmm0
movups xmmword [0x1400e0f30], xmm0
movups xmmword [0x1400e0f40], xmm0
mov rdx, qword [0x1400e1408]
lea rcx, [0x1400e0f20]
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x140040a91
lea rcx, [0x1400e0f20]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [0x1400e0f20]
call qword [sym.imp.USER32.dll_DispatchMessageW]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, qword [0x1400e0f88]
cmp rax, rcx
jne 0x140040ae9
mov edx, 3
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindow]
mov rcx, qword [0x1400e1408]
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 [0x1400e0f88]
xorps xmm0, xmm0
mov qword [rsp + 0x60], rdi
lea rdx, [0x1400e0e70]
movups xmmword [0x1400e0e70], xmm0
call qword [sym.imp.USER32.dll_GetClientRect]
mov rcx, qword [0x1400e0f88]
lea rdx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_ClientToScreen]
mov eax, dword [rsp + 0x60]
lea rcx, [rsp + 0x68]
mov rbx, qword [0x1400e0e50]
mov dword [0x1400e0e70], eax
mov eax, dword [rsp + 0x64]
mov dword [0x1400e0e74], eax
mov rax, qword [0x1400e0f88]
mov qword [rbx + 0x108], rax
mov dword [rbx + 0x18], 0x3c888889
call qword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [rsp + 0x68]
mov ecx, 1
sub eax, dword [rsp + 0x60]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0x118], xmm0
mov eax, dword [rsp + 0x6c]
sub eax, dword [rsp + 0x64]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0x11c], xmm0
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x140040bac
mov byte [rbx + 0x120], 1
mov eax, dword [rbx + 0x11c]
mov dword [rbx + 0x3dc], eax
mov byte [rbx + 0x430], 1
jmp 0x140040bb3
mov byte [rbx + 0x120], dil
mov eax, dword [0x1400e1d68]
cmp dword [0x1400e0e70], eax
mov ecx, dword [0x1400e0e7c]
mov edx, dword [0x1400e0e78]
jne 0x140040bef
cmp edx, dword [0x1400e1d70]
jne 0x140040bef
mov eax, dword [0x1400e1d6c]
cmp dword [0x1400e0e74], eax
jne 0x140040bef
cmp ecx, dword [0x1400e1d74]
je 0x140040c89
movups xmm0, xmmword [0x1400e0e70]
mov r9d, dword [rsp + 0x64]
mov r8d, dword [rsp + 0x60]
add r9d, 2
movups xmmword [0x1400e1d68], 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 [0x1400e0f68], xmm0
cvttss2si rax, xmm1
movss dword [0x1400e0e90], xmm1
subss xmm1, xmm6
mov dword [0x1400e0eb0], eax
cvttss2si rax, xmm0
subss xmm0, xmm6
mov dword [0x1400e0eb4], eax
cvttss2si eax, xmm1
cvttss2si ecx, xmm0
mov dword [rsp + 0x28], ecx
mov rcx, qword [0x1400e1408]
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rcx, qword [0x1400e1410]
lea rdx, [0x1400e0eb0]
mov rax, qword [rcx]
call qword [rax + 0x80]
call fcn.140040470
cmp dword [0x1400e0f28], 0x12
jne 0x140040a51
cmp qword [0x1400e13b0], rdi
je 0x140040d01
mov rcx, qword [0x1400e13b8]
test rcx, rcx
je 0x140040cbd
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x1400e13b8], rdi
mov rcx, qword [0x1400e13a8]
test rcx, rcx
je 0x140040cd6
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x1400e13a8], rdi
mov rcx, qword [0x1400e13a0]
mov rbx, qword [0x1400e0e50]
test rcx, rcx
je 0x140040cef
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x1400e13a0], rdi
mov rax, qword [rbx + 0xa0]
mov qword [rax + 8], rdi
mov rbx, qword [0x1400e0e50]
mov rcx, rbx
mov qword [0x1400e13b0], rdi
mov qword [0x1400e13c0], rdi
call fcn.1400085b0
cmp qword [0x1400e0e50], rbx
jne 0x140040d2e
mov qword [0x1400e0e50], rdi
test rbx, rbx
je 0x140040d56
mov rcx, rbx
call fcn.140015f40
mov rax, qword [0x1400e0e50]
test rax, rax
je 0x140040d4d
dec dword [rax + 0x3c8]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [0x1400e1408]
mov rbx, qword [rsp + 0x70]
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rdi
jmp qword [sym.imp.USER32.dll_DestroyWindow]