Function at 0x180129b60
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x58], 0xfffffffffffffffe
mov rax, qword [0x1804e0010]
xor rax, rsp
mov qword [rbp - 0x10], rax
movsxd r15, r9d
mov r12, r8
mov rdi, rcx
cmp dword [rcx + 0xf4], 2
je 0x180129e0d
cmp qword [rcx + 0x58], 0
je 0x180129e0d
lea rbx, [rcx - 0x88]
xor edx, edx
mov rcx, rbx
call fcn.180126730
xor edx, edx
mov rcx, rbx
call fcn.180126a50
xor edx, edx
mov rcx, rbx
call fcn.18012ccc0
movzx eax, byte [rdi + 0x388]
test al, al
jne 0x180129e0d
xor eax, eax
mov qword [rbp - 0x60], rax
lea rcx, [rbp - 0x60]
call qword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
movzx r14d, ax
shr r14d, 0xf
and r14b, 1
je 0x180129c36
cmp byte [rdi + 0x120], 0
jne 0x180129c43
mov rcx, qword [rdi + 0x58]
mov rax, qword [rcx]
mov rdx, r12
call qword [rax + 0xe8]
test al, al
je 0x180129de5
mov rcx, qword [rdi + 0x98]
jmp 0x180129dec
cmp byte [rdi + 0x120], 0
je 0x180129e0d
mov rcx, rbx
call fcn.180124ed0
mov esi, dword [rdi + 0x11c]
test r14b, r14b
je 0x180129cf9
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x40], xmm0
movdqa xmm1, xmmword [0x1803f7250]
movdqu xmmword [rbp - 0x40], xmm1
mov byte [rbp - 0x50], 0
mov r8d, 3
lea rdx, [0x1803d89fc]
lea rcx, [rbp - 0x50]
call fcn.180006050
nop
lea rcx, [rbp - 0x50]
call fcn.1800086c0
nop
mov rdx, qword [rbp - 0x38]
cmp rdx, 0x10
jb 0x180129cd2
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180129ccd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180129ccd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180393fb0
movdqa xmm0, xmmword [0x1803f7250]
movdqu xmmword [rbp - 0x40], xmm0
mov byte [rbp - 0x50], 0
test esi, esi
je 0x180129d9b
cmp esi, 2
je 0x180129d12
cmp esi, 1
je 0x180129db7
cmp esi, 2
jne 0x180129db3
mov r8d, r15d
mov rcx, rbx
call fcn.180129e30
jmp 0x180129e0d
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x20], xmm0
movdqa xmm1, xmmword [0x1803f7250]
movdqu xmmword [rbp - 0x20], xmm1
mov byte [rbp - 0x30], 0
mov r8d, 3
lea rdx, [0x1803d89f0]
lea rcx, [rbp - 0x30]
call fcn.180006050
nop
lea rcx, [rbp - 0x30]
call fcn.1800086c0
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
jb 0x180129d8a
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180129d85
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180129d85
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180393fb0
movdqa xmm0, xmmword [0x1803f7250]
movdqu xmmword [rbp - 0x20], xmm0
mov byte [rbp - 0x30], 0
movzx eax, byte [rdi + 0x140]
test al, al
jne 0x180129e0d
mov rcx, rbx
call fcn.18012a8e0
jmp 0x180129c12
test esi, esi
jne 0x180129d9b
mov rbx, r15
sar rbx, 0x3f
and ebx, 1
mov rcx, qword [rdi - 0x80]
call qword [sym.imp.USER32.dll_GetParent]
mov rcx, rax
xor r9d, r9d
lea r8, [rbx + 0x11ca]
mov edx, VarUI4FromDisp
call qword [sym.imp.USER32.dll_PostMessageW]
jmp 0x180129e0d
mov rcx, qword [rdi + 0x90]
call qword [sym.imp.USER32.dll_SetCursor]
movzx r8d, word [rbp - 0x5c]
movzx eax, word [rbp - 0x60]
shl r8d, 0x10
or r8, rax
mov edx, r15d
mov rcx, rbx
call fcn.180126d10
xor al, al
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.180393f50
add rsp, 0x80
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret