Function at 0x140048060
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x3f]
sub rsp, 0xe0
mov rax, qword [0x1400cd548]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov rbx, rdx
mov rdi, rcx
cmp r8d, 0xa
jne 0x1400481e3
lea ecx, [r8 + 7]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x1400481d8
xorps xmm0, xmm0
lea rdx, [rbp - 0x71]
mov rcx, rbx
movups xmmword [rbp - 0x71], xmm0
call qword [sym.imp.USER32.dll_GetWindowRect]
xorps xmm0, xmm0
lea rdx, [rbp - 0x61]
mov rcx, rbx
movups xmmword [rbp - 0x61], xmm0
call qword [sym.imp.USER32.dll_GetClientRect]
movaps xmm0, xmmword [rbp - 0x71]
mov r8, qword [rbp - 0x71]
mov r9, qword [rbp - 0x69]
mov eax, dword [rbp - 0x61]
sub eax, dword [rbp - 0x59]
sub eax, r8d
movdqa xmmword [rbp - 0x51], xmm0
add eax, r9d
movdqa xmmword [rbp - 0x41], xmm0
cdq
movdqa xmmword [rbp - 0x31], xmm0
sub eax, edx
movdqa xmmword [rbp - 0x21], xmm0
sar eax, 1
lea ecx, [r8 + rax]
shr r8, 0x20
mov dword [rbp - 0x49], ecx
add r8d, eax
mov ecx, r9d
mov dword [rbp - 0x25], r8d
sub ecx, eax
shr r9, 0x20
mov dword [rbp - 0x41], ecx
sub r9d, eax
lea rcx, [rsp + 0x20]
mov dword [rbp - 0x1d], r9d
call qword [sym.imp.USER32.dll_GetPhysicalCursorPos]
mov rdx, qword [rsp + 0x20]
lea rcx, [rbp - 0x51]
call qword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x14004817c
mov rdx, qword [rsp + 0x20]
lea rcx, [rbp - 0x41]
call qword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x14004817c
mov rdx, qword [rsp + 0x20]
lea rcx, [rbp - 0x31]
call qword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x14004817c
mov rdx, qword [rsp + 0x20]
lea rcx, [rbp - 0x21]
call qword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x1400481d8
mov rax, qword [rdi + 0x28]
mov rdx, rax
mov rcx, qword [rax + 8]
cmp byte [rcx + 0x19], 0
jne 0x1400481a8
nop dword [rax]
cmp qword [rcx + 0x20], rbx
jae 0x14004819c
mov rcx, qword [rcx + 0x10]
jmp 0x1400481a2
mov rdx, rcx
mov rcx, qword [rcx]
cmp byte [rcx + 0x19], 0
je 0x140048190
cmp byte [rdx + 0x19], 0
jne 0x14004837e
cmp rbx, qword [rdx + 0x20]
jb 0x14004837e
cmp rdx, rax
je 0x14004837e
mov rax, qword [0x1400d5758]
or dword [rax + 0x60], 0x80
jmp 0x14004837e
mov rdx, rbx
mov rcx, rdi
jmp 0x140048379
cmp r8d, 0xb
jne 0x140048248
mov rax, qword [rcx + 0x28]
mov rdx, rax
mov rcx, qword [rax + 8]
cmp byte [rcx + 0x19], 0
jne 0x140048218
nop word [rax + rax]
cmp qword [rcx + 0x20], rbx
jae 0x14004820c
mov rcx, qword [rcx + 0x10]
jmp 0x140048212
mov rdx, rcx
mov rcx, qword [rcx]
cmp byte [rcx + 0x19], 0
je 0x140048200
cmp byte [rdx + 0x19], 0
jne 0x14004837e
cmp rbx, qword [rdx + 0x20]
jb 0x14004837e
cmp rdx, rax
je 0x14004837e
mov rax, qword [0x1400d5758]
and dword [rax + 0x60], 0xffffff7f
jmp 0x14004837e
cmp r8d, 0x800b
jne 0x14004835d
mov rax, qword [rcx + 0x28]
mov rdx, rax
mov rcx, qword [rax + 8]
cmp byte [rcx + 0x19], 0
jne 0x14004827e
cmp qword [rcx + 0x20], rbx
jae 0x140048272
mov rcx, qword [rcx + 0x10]
jmp 0x140048278
mov rdx, rcx
mov rcx, qword [rcx]
cmp byte [rcx + 0x19], 0
je 0x140048266
cmp byte [rdx + 0x19], 0
jne 0x14004837e
cmp rbx, qword [rdx + 0x20]
jb 0x14004837e
cmp rdx, rax
je 0x14004837e
mov rcx, rbx
call qword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
je 0x14004837e
mov rax, qword [rdi + 0x28]
mov qword [rsp + 0x20], rbx
mov rdx, rax
mov rcx, qword [rax + 8]
cmp byte [rcx + 0x19], 0
jne 0x1400482da
cmp qword [rcx + 0x20], rbx
jae 0x1400482ce
mov rcx, qword [rcx + 0x10]
jmp 0x1400482d4
mov rdx, rcx
mov rcx, qword [rcx]
cmp byte [rcx + 0x19], 0
je 0x1400482c2
cmp byte [rdx + 0x19], 0
jne 0x140048355
cmp rbx, qword [rdx + 0x20]
jb 0x140048355
cmp rdx, rax
je 0x140048355
lea rdx, [rsp + 0x20]
movaps xmmword [rsp + 0xd0], xmm6
lea rcx, [rdi + 0x28]
call fcn.140047e90
mov rcx, qword [rsp + 0x20]
lea rdx, [rbp - 0x11]
xorps xmm0, xmm0
xorps xmm1, xmm1
movups xmm6, xmmword [rax + 0x20]
mov qword [rbp + 0x13], 0
movdqu xmmword [rbp - 0xd], xmm0
mov dword [rbp - 0x11], 0x2c
movdqu xmmword [rbp + 3], xmm1
call qword [sym.imp.USER32.dll_GetWindowPlacement]
mov rcx, qword [rsp + 0x20]
lea rdx, [rbp - 0x11]
movups xmmword [rbp + 0xb], xmm6
mov dword [rbp - 9], 8
call qword [sym.imp.USER32.dll_SetWindowPlacement]
movaps xmm6, xmmword [rsp + 0xd0]
mov rdx, rbx
mov rcx, rdi
jmp 0x140048379
cmp r9d, 3
jne 0x140048373
mov r8, qword [rbp + 0x7f]
test r8, r8
je 0x14004837e
call fcn.1400483b0
jmp 0x14004837e
cmp r9d, 2
jne 0x14004837e
call fcn.140047fb0
xor al, al
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.14006ed70
mov rbx, qword [rsp + 0x110]
add rsp, 0xe0
pop rdi
pop rsi
pop rbp
ret