Function at 0x140041310
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 0x140041333
cmp byte [0x1400540ba], 0
sete byte [0x1400540ba]
mov rax, qword [0x140054ae0]
xor edi, edi
test rax, rax
je 0x14004134a
mov rcx, qword [rax + 0xf0]
jmp 0x14004134d
mov rcx, rdi
cmp qword [rcx + 0x18], rdi
jne 0x14004136e
test rax, rax
je 0x14004136e
mov rcx, qword [rax + 0xf0]
test rcx, rcx
je 0x14004136e
cmp qword [rcx], rdi
je 0x14004136e
call fcn.140027840
call fcn.140027ec0
call fcn.140006070
call fcn.14003df00
movzx eax, byte [0x1400540ba]
mov rcx, qword [0x140054ae0]
mov byte [rcx + 0xc8], al
cmp al, 1
jne 0x1400413f9
mov dword [rcx + 0x130], edi
mov byte [rcx + 0x134], dil
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x1400413c0
mov rax, qword [0x140054ae0]
mov byte [rax + 0x130], 1
call fcn.14003ad60
mov rcx, qword [0x140054e70]
mov edx, 0xffffffec
mov r8d, 0x80
call qword [sym.imp.USER32.dll_SetWindowLongA]
mov rcx, qword [0x140054e70]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rcx, qword [0x140054e70]
call qword [sym.imp.USER32.dll_SetFocus]
jmp 0x14004141e
mov rcx, qword [0x140054e70]
mov edx, 0xffffffec
mov r8d, 0x800a0
call qword [sym.imp.USER32.dll_SetWindowLongA]
mov rcx, qword [0x140054e70]
call qword [sym.imp.USER32.dll_UpdateWindow]
call fcn.140008320
mov rcx, qword [0x1400540c8]
mov r9d, 1
movss xmm0, dword [0x14004c914]
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 [0x1400540c8]
mov rax, qword [rcx]
call qword [rax + 0x148]
test eax, eax
js 0x14004149e
call fcn.1400086a0
mov rax, qword [0x140054ae0]
mov rcx, qword [rax + 0x1e00]
mov rcx, qword [rcx]
add rcx, 0x40
cmp byte [rcx], dil
cmove rcx, rdi
call fcn.140027290
mov rcx, qword [0x1400540c8]
mov rax, qword [rcx]
call qword [rax + 0x150]
mov rcx, qword [0x1400540c8]
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 0x14004158e
mov rcx, qword [0x1400540c8]
mov rax, qword [rcx]
call qword [rax + 0x18]
cmp eax, 0x88760869
jne 0x14004158e
mov qword [rsp + 0x50], rbx
mov rbx, qword [0x140054ae0]
test rbx, rbx
je 0x14004154b
mov rbx, qword [rbx + 0xf0]
test rbx, rbx
je 0x14004154b
cmp qword [rbx], rdi
je 0x14004154b
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140041513
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rbx + 8], rdi
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140041526
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rbx + 0x10], rdi
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14004154b
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rax, qword [0x140054ae0]
mov qword [rbx + 0x18], rdi
mov rcx, qword [rax + 0xa8]
mov qword [rcx + 8], rdi
mov rcx, qword [0x1400540c8]
lea rdx, [0x1400540d0]
mov rax, qword [rcx]
call qword [rax + 0x80]
mov rax, qword [0x140054ae0]
mov rbx, qword [rsp + 0x50]
test rax, rax
je 0x14004158e
mov rax, qword [rax + 0xf0]
test rax, rax
je 0x14004158e
cmp qword [rax], rdi
je 0x14004158e
add rsp, 0x40
pop rdi
jmp fcn.140027840
add rsp, 0x40
pop rdi
ret