Function at 0x140040d90
Capabilities:
Log keystrokes via polling

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0xa0
movaps xmmword [rax - 0x18], xmm6
movaps xmmword [rax - 0x28], xmm7
mov rax, qword [0x140059040]
xor rax, rsp
mov qword [rsp + 0x78], rax
cmp qword [0x140059c70], 0
jne 0x140040dc5
call fcn.140029990
mov rcx, qword [0x140059c90]
lea rdx, [rsp + 0x48]
mov rdi, qword [0x140059bc0]
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rsp + 0x50]
lea rcx, [rsp + 0x68]
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 + 0x68]
xorps xmm1, xmm1
mov rax, rcx
xorps xmm0, xmm0
sub rax, qword [0x140059c98]
cvtsi2ss xmm0, qword [0x140059ca0]
cvtsi2ss xmm1, rax
divss xmm1, xmm0
movss dword [rdi + 0x18], xmm1
mov qword [0x140059c98], rcx
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, 0x10
and al, 1
mov byte [rdi + 0x130], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, 0x12
and al, 1
mov byte [rdi + 0x131], al
call qword [sym.imp.USER32.dll_GetKeyState]
mov rcx, qword [0x140059bc0]
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 0x140040ed8
cvttss2si eax, dword [rbx]
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x60], eax
cvttss2si eax, dword [rcx + 0x11c]
mov rcx, qword [0x140059c90]
mov dword [rsp + 0x64], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [rsp + 0x64]
mov ecx, dword [rsp + 0x60]
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 [0x140059c90]
jne 0x140040f34
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x140040f34
mov rcx, qword [0x140059c90]
lea rdx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x140040f34
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 0x140040f44
mov eax, 0xffffffff
jmp 0x140040f51
mov rax, qword [0x140059bc0]
mov eax, dword [rax + 0x1d70]
cmp dword [0x1400594e0], eax
je 0x140040f64
mov dword [0x1400594e0], eax
call fcn.140029b00
call fcn.14000be90
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor edi, edi
cmp rax, qword [0x140059188]
jne 0x140040fae
mov edx, 3
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindow]
mov rcx, qword [0x140059180]
xor r9d, r9d
mov dword [rsp + 0x30], 3
mov rdx, rax
mov dword [rsp + 0x28], edi
xor r8d, r8d
mov dword [rsp + 0x20], edi
call qword [sym.imp.USER32.dll_SetWindowPos]
xorps xmm1, xmm1
mov ecx, 3
xorps xmm7, xmm7
call fcn.140012670
mov rbx, qword [0x140059bc0]
lea rdx, [rsp + 0x68]
mov dword [rsp + 0x68], 1
movss xmm1, dword [rbx + 0x1554]
lea rcx, [rbx + 0x1a88]
movss xmm0, dword [rbx + 0x1558]
movss dword [rsp + 0x6c], xmm1
movss dword [rsp + 0x70], xmm0
call fcn.1400196e0
mov qword [rbx + 0x1554], rdi
lea rdx, [rsp + 0x48]
mov rbx, qword [0x140059bc0]
xorps xmm6, xmm6
mov dword [rsp + 0x48], 2
mov qword [rbx + 0x1ae4], rdi
lea rcx, [rbx + 0x1a78]
mov qword [rbx + 0x1aec], rdi
mov dword [rbx + 0x1ac8], 1
movups xmm0, xmmword [rbx + 0x1610]
movups xmmword [rsp + 0x4c], xmm0
call fcn.1400197d0
mov rax, qword [0x140059bc0]
movups xmmword [rbx + 0x1610], xmm6
mov rcx, qword [rax + 0x19f8]
movss xmm0, dword [rax + 0x10]
movss xmm1, dword [rax + 0x14]
mov eax, dword [rcx + 0xb0]
test al, 1
je 0x1400410d9
and eax, 0xfffffff1
mov r8, rcx
comiss xmm0, xmm7
mov dword [rcx + 0xb0], eax
jbe 0x140041096
cvttss2si eax, xmm0
mov edx, edi
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rcx + 0x20], xmm0
jmp 0x1400410a2
mov byte [rcx + 0x98], dil
mov edx, 2
comiss xmm1, xmm7
mov eax, 0x90
mov dword [rax + r8], edx
jbe 0x1400410c8
cvttss2si eax, xmm1
mov dword [rcx + 0x94], edi
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rcx + 0x24], xmm0
jmp 0x1400410d9
mov dword [rcx + 0x94], 2
mov byte [rcx + 0x98], dil
xor edx, edx
lea rcx, [0x1400510c8]
mov r8d, 0xc0201
call fcn.14000f170
call fcn.140004360
mov rcx, qword [0x140059bc0]
mov rax, qword [rcx + 0x19f8]
mov byte [rax + 0x7c], 1
mov rcx, qword [rcx + 0x19f8]
mov rcx, qword [rcx + 0x2a0]
call fcn.140021cd0
call fcn.1400120e0
mov r8, qword [0x140059bc0]
lea r10, [0x140043c10]
mov rcx, qword [r8 + 0x1a80]
movsxd rax, dword [r8 + 0x1a78]
lea rdx, [rax + rax*4]
movsxd rax, dword [rcx + rdx*4 - 0x14]
movups xmm0, xmmword [rcx + rdx*4 - 0x10]
add rax, 0x15f
add rax, rax
movups xmmword [r8 + rax*8], xmm0
dec dword [r8 + 0x1a78]
movsxd rax, dword [r8 + 0x1a88]
mov rdx, qword [r8 + 0x1a90]
lea rcx, [rax + rax*2]
movsxd rax, dword [rdx + rcx*4 - 0xc]
lea rax, [rax + rax*2]
cmp dword [r10 + rax*4], 4
mov r9d, dword [r10 + rax*4 + 8]
jne 0x1400411b7
mov eax, dword [r10 + rax*4 + 4]
cmp eax, 1
jne 0x14004119a
mov eax, dword [rdx + rcx*4 - 8]
mov dword [r9 + r8 + 0x1550], eax
jmp 0x1400411b7
cmp eax, 2
jne 0x1400411b7
mov eax, dword [rdx + rcx*4 - 8]
mov dword [r9 + r8 + 0x1550], eax
mov eax, dword [rdx + rcx*4 - 4]
mov dword [r9 + r8 + 0x1554], eax
movsxd rcx, dword [r8 + 0x1a88]
lea eax, [rcx - 1]
mov dword [r8 + 0x1a88], eax
lea rax, [rcx - 2]
mov rdx, qword [r8 + 0x1a90]
lea rcx, [rax + rax*2]
movsxd rax, dword [rdx + rcx*4]
lea rax, [rax + rax*2]
cmp dword [r10 + rax*4], 4
mov r9d, dword [r10 + rax*4 + 8]
jne 0x140041220
mov eax, dword [r10 + rax*4 + 4]
cmp eax, 1
jne 0x140041203
mov eax, dword [rdx + rcx*4 + 4]
mov dword [r9 + r8 + 0x1550], eax
jmp 0x140041220
cmp eax, 2
jne 0x140041220
mov eax, dword [rdx + rcx*4 + 4]
mov dword [r9 + r8 + 0x1550], eax
mov eax, dword [rdx + rcx*4 + 8]
mov dword [r9 + r8 + 0x1554], eax
dec dword [r8 + 0x1a88]
call fcn.14000ca30
mov rcx, qword [0x140059c10]
xor r8d, r8d
mov edx, 7
mov rax, qword [rcx]
call qword [rax + 0x1c8]
mov rcx, qword [0x140059c10]
xor r8d, r8d
mov edx, 0x1b
mov rax, qword [rcx]
call qword [rax + 0x1c8]
mov rcx, qword [0x140059c10]
xor r8d, r8d
mov edx, 0xae
mov rax, qword [rcx]
call qword [rax + 0x1c8]
mov rcx, qword [0x140059c10]
mov r9d, 1
movss xmm0, dword [0x14005115c]
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 [0x140059c10]
mov rax, qword [rcx]
call qword [rax + 0x148]
test eax, eax
js 0x1400412e8
call fcn.14000cee0
mov rcx, qword [0x140059bc0]
add rcx, 0x1c70
cmp byte [rcx], dil
cmove rcx, rdi
call fcn.140029090
mov rcx, qword [0x140059c10]
mov rax, qword [rcx]
call qword [rax + 0x150]
mov rcx, qword [0x140059c10]
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 0x1400413aa
mov rcx, qword [0x140059c10]
mov rax, qword [rcx]
call qword [rax + 0x18]
cmp eax, 0x88760869
jne 0x1400413aa
cmp qword [0x140059c80], rdi
je 0x14004138e
mov rcx, qword [0x140059c88]
test rcx, rcx
je 0x14004134a
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x140059c88], rdi
mov rcx, qword [0x140059c78]
test rcx, rcx
je 0x140041363
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x140059c78], rdi
mov rcx, qword [0x140059c70]
mov rbx, qword [0x140059bc0]
test rcx, rcx
je 0x14004137c
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x140059c70], rdi
mov rax, qword [rbx + 0xa0]
mov qword [rax + 8], rdi
mov rcx, qword [0x140059c10]
lea rdx, [0x140059bd0]
mov rax, qword [rcx]
call qword [rax + 0x80]
call fcn.140029990
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400414a0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x10]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop rdi
ret