Function at 0x140041800
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x90
movaps xmmword [rsp + 0x80], xmm6
movaps xmmword [rsp + 0x70], xmm7
mov rax, qword [0x140053010]
xor rax, rsp
mov qword [rsp + 0x68], rax
cmp qword [0x140077740], 0
jne 0x140041838
call fcn.1400250c0
mov rcx, qword [0x140077760]
lea rdx, [rsp + 0x48]
mov rdi, qword [0x140077570]
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rsp + 0x50]
lea rcx, [rsp + 0x60]
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 + 0x60]
xorps xmm1, xmm1
mov rax, rcx
xorps xmm0, xmm0
sub rax, qword [0x140077768]
cvtsi2ss xmm0, qword [0x140077770]
cvtsi2ss xmm1, rax
divss xmm1, xmm0
movss dword [rdi + 0x18], xmm1
mov qword [0x140077768], 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 [0x140077570]
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 0x14004194b
cvttss2si eax, dword [rbx]
lea rdx, [rsp + 0x58]
mov dword [rsp + 0x58], eax
cvttss2si eax, dword [rcx + 0x11c]
mov rcx, qword [0x140077760]
mov dword [rsp + 0x5c], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [rsp + 0x5c]
mov ecx, dword [rsp + 0x58]
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 [0x140077760]
jne 0x1400419a7
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x1400419a7
mov rcx, qword [0x140077760]
lea rdx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x1400419a7
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 0x1400419b7
mov eax, 0xffffffff
jmp 0x1400419c4
mov rax, qword [0x140077570]
mov eax, dword [rax + 0x1ec0]
cmp dword [0x140076e00], eax
je 0x1400419d7
mov dword [0x140076e00], eax
call fcn.140025230
call fcn.140006590
mov ecx, 0x2d
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x1400419fd
cmp byte [0x14007756a], 0
sete dl
mov byte [0x14007756a], dl
jmp 0x140041a04
movzx edx, byte [0x14007756a]
call fcn.140038080
mov rax, qword [0x140077570]
test dl, dl
je 0x140041a3f
xor edx, edx
mov byte [rax + 0xd0], 1
mov r8d, 0x10b
lea rcx, str.shit
call fcn.140009dd0
test al, al
je 0x140041a38
call fcn.140038240
call fcn.14000cd20
jmp 0x140041a46
mov byte [rax + 0xd0], 0
movss xmm1, dword [0x140076ea0]
xorps xmm4, xmm4
movss xmm3, dword [0x14004bfb4]
ucomiss xmm1, xmm3
movss xmm2, dword [0x140077be4]
jp 0x140041a85
jne 0x140041a85
ucomiss xmm2, xmm4
jp 0x140041a85
jne 0x140041a85
movss xmm0, dword [0x140077bf0]
addss xmm0, xmm3
movss dword [0x140077bf0], xmm0
jmp 0x140041a8d
movss xmm0, dword [0x140077bf0]
movss xmm5, dword [0x14004c020]
comiss xmm0, xmm5
movss xmm6, dword [0x14004c024]
jbe 0x140041ac0
ucomiss xmm2, xmm4
jp 0x140041ac0
jne 0x140041ac0
addss xmm1, xmm3
movss dword [0x140077bf0], xmm6
movaps xmm0, xmm6
movss dword [0x140076ea0], xmm1
comiss xmm1, xmm5
movss xmm7, dword [0x14004c160]
jbe 0x140041aeb
ucomiss xmm2, xmm4
jp 0x140041aeb
jne 0x140041aeb
addss xmm0, xmm7
movss dword [0x140076ea0], xmm6
movaps xmm1, xmm6
movss dword [0x140077bf0], xmm0
comiss xmm3, xmm0
jbe 0x140041b0e
ucomiss xmm1, xmm6
jp 0x140041b0e
jne 0x140041b0e
addss xmm2, xmm3
xorps xmm0, xmm0
movss dword [0x140077bf0], xmm0
movss dword [0x140077be4], xmm2
comiss xmm2, xmm5
jbe 0x140041b31
ucomiss xmm0, xmm4
jp 0x140041b31
jne 0x140041b31
addss xmm1, xmm7
movss dword [0x140077be4], xmm6
movaps xmm2, xmm6
movss dword [0x140076ea0], xmm1
comiss xmm3, xmm1
jbe 0x140041b54
ucomiss xmm2, xmm6
jp 0x140041b54
jne 0x140041b54
addss xmm0, xmm3
xorps xmm1, xmm1
movss dword [0x140076ea0], xmm1
movss dword [0x140077bf0], xmm0
comiss xmm0, xmm5
jbe 0x140041b77
ucomiss xmm1, xmm4
jp 0x140041b77
jne 0x140041b77
addss xmm2, xmm7
movss dword [0x140077bf0], xmm6
movaps xmm0, xmm6
movss dword [0x140077be4], xmm2
comiss xmm3, xmm2
jbe 0x140041ba8
ucomiss xmm1, xmm4
jp 0x140041ba8
jne 0x140041ba8
addss xmm0, xmm7
mov dword [0x140077be4], 0
comiss xmm3, xmm0
movss dword [0x140077bf0], xmm0
jbe 0x140041ba8
mov dword [0x140076ea0], 0x3c23d70a
call fcn.14003d440
mov rcx, qword [0x140077790]
xor r8d, r8d
mov rax, qword [rcx]
lea edx, [r8 + 7]
call qword [rax + 0x1c8]
mov rcx, qword [0x140077790]
xor r8d, r8d
mov rax, qword [rcx]
lea edx, [r8 + 0x1b]
call qword [rax + 0x1c8]
mov rcx, qword [0x140077790]
xor r8d, r8d
mov edx, 0xae
mov rax, qword [rcx]
call qword [rax + 0x1c8]
mov rcx, qword [0x140077790]
xor edi, edi
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]
lea r9d, [rdi + 1]
call qword [rax + 0x158]
mov rcx, qword [0x140077790]
mov rax, qword [rcx]
call qword [rax + 0x148]
test eax, eax
js 0x140041c5f
call fcn.140007bb0
mov rcx, qword [0x140077570]
add rcx, 0x1c70
cmp byte [rcx], dil
cmove rcx, rdi
call fcn.1400247f0
mov rcx, qword [0x140077790]
mov rax, qword [rcx]
call qword [rax + 0x150]
mov rcx, qword [0x140077790]
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 0x140041d21
mov rcx, qword [0x140077790]
mov rax, qword [rcx]
call qword [rax + 0x18]
cmp eax, 0x88760869
jne 0x140041d21
cmp qword [0x140077750], rdi
je 0x140041d05
mov rcx, qword [0x140077758]
test rcx, rcx
je 0x140041cc1
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x140077758], rdi
mov rcx, qword [0x140077748]
test rcx, rcx
je 0x140041cda
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x140077748], rdi
mov rcx, qword [0x140077740]
mov rbx, qword [0x140077570]
test rcx, rcx
je 0x140041cf3
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x140077740], rdi
mov rax, qword [rbx + 0xa0]
mov qword [rax + 8], rdi
mov rcx, qword [0x140077790]
lea rdx, [0x140077650]
mov rax, qword [rcx]
call qword [rax + 0x80]
call fcn.1400250c0
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140045190
mov rbx, qword [rsp + 0xa0]
movaps xmm6, xmmword [rsp + 0x80]
movaps xmm7, xmmword [rsp + 0x70]
add rsp, 0x90
pop rdi
ret