Function at 0x140052420
Capabilities:
Log keystrokes via polling

Disassembly:
mov r11, rsp
sub rsp, 0x78
mov rax, qword [0x140126010]
xor rax, rsp
mov qword [rsp + 0x68], rax
cmp byte [0x1401261f0], 0
je 0x14005268a
mov qword [r11 + 0x10], rbp
xor ebp, ebp
mov qword [r11 - 8], rdi
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rsi
nop word [rax + rax]
lea rdx, [0x1401261a8]
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowA]
mov rdi, rax
test rax, rax
je 0x140052666
mov rcx, qword [0x140126180]
lea rdx, [rsp + 0x48]
mov dword [rsp + 0x48], ebp
call qword [sym.imp.USER32.dll_GetWindowDisplayAffinity]
cmp byte [0x140126245], bpl
je 0x1400524a7
cmp dword [rsp + 0x48], ebp
jne 0x1400524bd
mov edx, 0x11
jmp 0x1400524b0
cmp dword [rsp + 0x48], 0x11
jne 0x1400524bd
xor edx, edx
mov rcx, qword [0x140126180]
call qword [sym.imp.USER32.dll_SetWindowDisplayAffinity]
mov rcx, qword [0x140126180]
mov edx, 0xffffffec
call qword [sym.imp.USER32.dll_GetWindowLongA]
mov ebx, eax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
cmp byte [0x14012620c], bpl
mov rsi, rax
je 0x140052511
cmp ebx, 0x80080
je 0x14005253f
mov rcx, qword [0x140126180]
mov edx, 0xffffffec
mov r8d, 0x80080
call qword [sym.imp.USER32.dll_SetWindowLongA]
mov rcx, qword [0x140126180]
cmp rsi, rcx
je 0x14005253f
jmp 0x140052539
cmp ebx, 0x800a0
je 0x14005253f
mov rcx, qword [0x140126180]
mov edx, 0xffffffec
mov r8d, 0x800a0
call qword [sym.imp.USER32.dll_SetWindowLongA]
cmp rsi, rdi
je 0x14005253f
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetForegroundWindow]
mov ecx, dword [0x140126258]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
test al, 1
je 0x140052572
cmp byte [0x140130000], bpl
jne 0x140052572
cmp byte [0x14012620c], bpl
mov byte [0x140130000], 1
sete byte [0x14012620c]
jmp 0x140052595
mov ecx, dword [0x140126258]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
test al, 1
jne 0x140052595
cmp byte [0x140130000], bpl
je 0x140052595
mov byte [0x140130000], bpl
xorps xmm0, xmm0
mov qword [rsp + 0x50], rbp
lea rdx, [rsp + 0x58]
mov rcx, rdi
movups xmmword [rsp + 0x58], xmm0
call qword [sym.imp.USER32.dll_GetClientRect]
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.USER32.dll_ClientToScreen]
mov eax, dword [0x1401261f4]
mov rcx, qword [rsp + 0x60]
mov r8, qword [rsp + 0x50]
mov r9d, dword [rsp + 0x54]
cmp dword [rsp + 0x58], eax
jne 0x14005260b
mov eax, dword [0x140126200]
cmp dword [rsp + 0x64], eax
jne 0x14005260b
mov eax, dword [0x1401261f8]
cmp dword [rsp + 0x5c], eax
jne 0x14005260b
cmp ecx, dword [0x1401261fc]
jne 0x14005260b
cmp r8d, dword [0x140126204]
jne 0x14005260b
cmp r9d, dword [0x140126208]
je 0x140052644
movups xmm0, xmmword [rsp + 0x58]
mov rax, rcx
mov dword [rsp + 0x30], 8
shr rax, 0x20
xor edx, edx
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
mov rcx, qword [0x140126180]
movups xmmword [0x1401261f4], xmm0
mov qword [0x140126204], r8
call qword [sym.imp.USER32.dll_SetWindowPos]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], 1
call fcn.1400081e0
cmp byte [0x1401261f0], bpl
jne 0x140052460
jmp 0x14005266d
mov byte [0x1401261f0], bpl
mov rsi, qword [rsp + 0x90]
mov rbx, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400ce140
add rsp, 0x78
ret