Function at 0x140040230
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x14024a908]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rax, qword [rcx]
mov esi, edx
mov rbx, rcx
mov rax, qword [rax + 0x390]
call qword [case.0x1400fc399.0]
xor r12d, r12d
mov rcx, rbx
mov rdi, rax
mov r15d, r12d
call fcn.140039288
mov r14d, eax
and r14d, 0x400000
je 0x140040299
cmp esi, 0x25
je 0x14004044c
cmp esi, 0x27
je 0x14004064b
cmp esi, 0x24
ja 0x1400403d4
je 0x1400402cf
mov eax, esi
sub eax, 0xd
je 0x1400402d5
sub eax, 0xe
je 0x1400403c0
sub eax, 6
je 0x14004039d
sub eax, 1
je 0x14004039d
cmp eax, 1
jne 0x1400403f2
mov r15d, 1
cmp dword [0x14025032c], r12d
jne 0x1400402f3
mov rax, qword [rdi]
mov edx, esi
mov rcx, rdi
mov rax, qword [rax + 0x800]
call qword [case.0x1400fc399.0]
test r15d, r15d
je 0x14004069a
cmp dword [rbx + 0x16a4], r12d
je 0x140040627
mov edx, dword [rdi + 0x1138]
test edx, edx
js 0x140040627
mov rcx, rdi
call fcn.14000a090
mov rsi, rax
test rax, rax
jne 0x140040342
mov rcx, qword [rdi]
mov rax, qword [rcx + 0x6a8]
mov rcx, rdi
call qword [case.0x1400fc399.0]
test eax, eax
je 0x140040627
mov rcx, qword [rdi + 0x40]
lea rdx, [rsp + 0x28]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
call qword [sym.imp.USER32.dll_GetClientRect]
mov ebp, dword [rdi + 0x1364]
test rsi, rsi
je 0x140040627
mov eax, dword [rsp + 0x2c]
cmp dword [rsi + 0x6c], eax
jge 0x140040548
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x6a8]
call qword [case.0x1400fc399.0]
mov ecx, eax
mov eax, dword [rsi + 0x6c]
sub eax, dword [rsp + 0x2c]
cdq
idiv ecx
lea esi, [rax - 1]
jmp 0x140040577
cmp dword [rbx + 0x16a8], r12d
je 0x1400403f2
mov rax, qword [rdi]
mov edx, esi
mov rcx, rdi
mov rax, qword [rax + 0x800]
call qword [case.0x1400fc399.0]
jmp 0x1400402fc
mov dword [rbx + 0x19ac], 1
mov edx, 1
jmp 0x140040692
mov eax, esi
sub eax, 0x25
je 0x14004064b
sub eax, 1
je 0x1400402cf
sub eax, 1
je 0x14004044c
cmp eax, 1
je 0x14004041c
mov rax, qword [rdi]
mov edx, esi
mov rcx, rdi
mov rax, qword [rax + 0x800]
call qword [case.0x1400fc399.0]
test eax, eax
jne 0x14004069a
mov rcx, rbx
call fcn.14001713c
jmp 0x14004069a
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x1400402cf
cmp dword [rdi + 0x1380], r12d
jne 0x1400402cf
mov rcx, rbx
call fcn.140042bf4
jmp 0x14004069a
xor ecx, ecx
call fcn.140009ee8
mov rcx, rbx
mov dword [0x140254834], r12d
mov esi, eax
call fcn.14003ef3c
mov rdi, rax
test rax, rax
je 0x1400404d8
mov ecx, dword [rax + 0x24]
dec ecx
cmp ecx, 0xfffffffd
ja 0x14004048d
mov rcx, qword [rax]
mov rax, qword [rcx + 0x1c0]
mov rcx, rdi
call qword [case.0x1400fc399.0]
test eax, eax
je 0x1400404d8
mov rax, qword [rdi]
xor edx, edx
mov rcx, rdi
mov rax, qword [rax + 0x198]
call qword [case.0x1400fc399.0]
test eax, eax
je 0x1400404d8
cmp qword [rdi + 0xc0], r12
je 0x14004053d
mov rcx, rbx
call fcn.14003ef3c
cmp rax, rdi
jne 0x14004053d
mov rcx, qword [rdi + 0xc0]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x24]
call fcn.140040230
jmp 0x14004053d
mov rcx, rbx
call fcn.14003eecc
mov rdi, rax
test rax, rax
je 0x140040510
lea rdx, str.CMFCPopupMenuBar
mov rcx, rax
call fcn.14002950c
test eax, eax
jne 0x140040510
mov rcx, qword [rdi]
mov rax, qword [rcx + 0x738]
mov rcx, rdi
call qword [case.0x1400fc399.0]
jmp 0x14004053d
mov rcx, rbx
call fcn.14003ee50
test rax, rax
je 0x14004053d
mov rcx, qword [rax + 0x40]
neg r14d
mov edx, 0x100
sbb r8, r8
xor r9d, r9d
and r8, 0xfffffffffffffffe
add r8, 0x27
call qword [sym.imp.USER32.dll_SendMessageW]
mov dword [0x140254834], esi
jmp 0x14004069a
mov eax, dword [rsp + 0x34]
cmp dword [rsi + 0x74], eax
jle 0x140040627
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x6a8]
call qword [case.0x1400fc399.0]
mov ecx, eax
mov eax, dword [rsi + 0x74]
sub eax, dword [rsp + 0x34]
cdq
idiv ecx
lea esi, [rax + 1]
test esi, esi
je 0x140040627
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x6a8]
call qword [case.0x1400fc399.0]
add ebp, esi
mov esi, dword [rdi + 0x11a0]
mov ecx, eax
mov eax, dword [rbx + 0x214]
cdq
idiv ecx
sub eax, 2
sub esi, eax
dec esi
test ebp, ebp
cmovs ebp, r12d
cmp ebp, esi
cmovl esi, ebp
cmp dword [rdi + 0x1364], esi
je 0x1400405d8
mov rax, qword [rdi]
mov rcx, rdi
mov dword [rdi + 0x1364], esi
mov rax, qword [rax + 0x7c8]
call qword [case.0x1400fc399.0]
xor edx, edx
mov rcx, rbx
call fcn.14003d190
cmp dword [rbx + 0x16a8], r12d
je 0x140040619
lea rcx, [rbx + 0x16e0]
test rcx, rcx
je 0x140040619
cmp qword [rcx + 0x40], r12
je 0x140040619
mov rcx, qword [rbx + 0x1720]
mov r9d, 1
mov r8d, esi
lea edx, [r9 + 1]
call qword [sym.imp.USER32.dll_SetScrollPos]
jmp 0x140040627
test eax, eax
je 0x140040627
xor edx, edx
mov rcx, rbx
call fcn.14003d190
cmp dword [rdi + 0x1398], r12d
je 0x14004069a
mov rax, qword [rbx]
mov rcx, rbx
mov edx, dword [rdi + 0x1138]
mov rax, qword [rax + 0x408]
call qword [case.0x1400fc399.0]
jmp 0x14004069a
mov rcx, rbx
call fcn.14003eecc
mov rdx, rax
test rax, rax
je 0x140040670
mov rcx, qword [rax]
mov rax, qword [rcx + 0x730]
mov rcx, rdx
call qword [case.0x1400fc399.0]
jmp 0x14004069a
mov rcx, qword [rbx + 0x228]
test rcx, rcx
je 0x14004069a
mov rax, qword [rcx]
mov rax, qword [rax + 0xe0]
call qword [case.0x1400fc399.0]
test eax, eax
je 0x14004069a
xor edx, edx
mov rcx, rbx
call fcn.14003d64c
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140195a10
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret