Function at 0x140040540
Capabilities:
Log keystrokes via polling

Disassembly:
push rdi
sub rsp, 0x40
mov ecx, 0x2d
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x140040563
cmp byte [0x14005312a], 0
sete byte [0x14005312a]
mov rax, qword [0x140053b20]
xor edi, edi
test rax, rax
je 0x14004057a
mov rcx, qword [rax + 0xf0]
jmp 0x14004057d
mov rcx, rdi
cmp qword [rcx + 0x18], rdi
jne 0x14004059e
test rax, rax
je 0x14004059e
mov rcx, qword [rax + 0xf0]
test rcx, rcx
je 0x14004059e
cmp qword [rcx], rdi
je 0x14004059e
call fcn.140027940
call fcn.140027fc0
call fcn.1400060e0
call fcn.14003d360
movzx eax, byte [0x14005312a]
mov rcx, qword [0x140053b20]
mov byte [rcx + 0xc8], al
cmp al, 1
jne 0x140040629
mov dword [rcx + 0x130], edi
mov byte [rcx + 0x134], dil
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x1400405f0
mov rax, qword [0x140053b20]
mov byte [rax + 0x130], 1
call fcn.14003a790
mov rcx, qword [0x140053eb0]
mov edx, 0xffffffec
mov r8d, 0x80
call qword [sym.imp.USER32.dll_SetWindowLongA]
mov rcx, qword [0x140053eb0]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rcx, qword [0x140053eb0]
call qword [sym.imp.USER32.dll_SetFocus]
jmp 0x14004064e
mov rcx, qword [0x140053eb0]
mov edx, 0xffffffec
mov r8d, 0x800a0
call qword [sym.imp.USER32.dll_SetWindowLongA]
mov rcx, qword [0x140053eb0]
call qword [sym.imp.USER32.dll_UpdateWindow]
call fcn.1400083e0
mov rcx, qword [0x140053138]
mov r9d, 1
movss xmm0, dword [0x14004b934]
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 [0x140053138]
mov rax, qword [rcx]
call qword [rax + 0x148]
test eax, eax
js 0x1400406ce
call fcn.140008770
mov rax, qword [0x140053b20]
mov rcx, qword [rax + 0x1e00]
mov rcx, qword [rcx]
add rcx, 0x40
cmp byte [rcx], dil
cmove rcx, rdi
call fcn.140027380
mov rcx, qword [0x140053138]
mov rax, qword [rcx]
call qword [rax + 0x150]
mov rcx, qword [0x140053138]
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 0x1400407be
mov rcx, qword [0x140053138]
mov rax, qword [rcx]
call qword [rax + 0x18]
cmp eax, 0x88760869
jne 0x1400407be
mov qword [rsp + 0x50], rbx
mov rbx, qword [0x140053b20]
test rbx, rbx
je 0x14004077b
mov rbx, qword [rbx + 0xf0]
test rbx, rbx
je 0x14004077b
cmp qword [rbx], rdi
je 0x14004077b
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140040743
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rbx + 8], rdi
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140040756
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rbx + 0x10], rdi
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14004077b
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rax, qword [0x140053b20]
mov qword [rbx + 0x18], rdi
mov rcx, qword [rax + 0xa8]
mov qword [rcx + 8], rdi
mov rcx, qword [0x140053138]
lea rdx, [0x140053140]
mov rax, qword [rcx]
call qword [rax + 0x80]
mov rax, qword [0x140053b20]
mov rbx, qword [rsp + 0x50]
test rax, rax
je 0x1400407be
mov rax, qword [rax + 0xf0]
test rax, rax
je 0x1400407be
cmp qword [rax], rdi
je 0x1400407be
add rsp, 0x40
pop rdi
jmp fcn.140027940
add rsp, 0x40
pop rdi
ret