Function at 0x140051e44
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140271920]
xor rax, rsp
mov qword [rbp - 8], rax
mov r14, rcx
mov qword [rbp - 0x38], r9
mov rcx, qword [rcx + 0x180]
mov rbx, r8
mov qword [rbp - 0x30], rbx
mov r13, r9
mov r12d, edx
test rcx, rcx
je 0x140051ed1
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x140051ed1
mov rcx, qword [r14 + 0x180]
lea rdx, [rbp - 0x28]
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetWindowRect]
mov rdx, rbx
lea rcx, [rbp - 0x28]
call qword [sym.imp.USER32.dll_PtInRect]
mov rcx, qword [r14 + 0x180]
mov edx, eax
call fcn.1400fba64
mov r15d, 0x201
cmp r12d, r15d
jne 0x140051fcd
cmp dword [0x14027baac], 0
jne 0x140051eff
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x140051fcd
mov rdi, qword [0x14027bb08]
test rdi, rdi
je 0x140051fcd
mov rsi, qword [rdi + 0x10]
mov rdi, qword [rdi]
test rsi, rsi
je 0x1400524d0
mov rcx, qword [rsi + 0x40]
call fcn.14002987c
test rax, rax
je 0x140051f06
mov rcx, qword [rsi + 0x40]
lea rdx, [rbp - 0x40]
mov qword [rbp - 0x40], rbx
call qword [sym.imp.USER32.dll_ScreenToClient]
mov rax, qword [rsi]
mov rcx, rsi
mov rdx, qword [rbp - 0x40]
mov rax, qword [rax + 0x720]
call qword [case.0x14004bf9e.0]
test eax, eax
js 0x140051f06
mov edx, eax
mov rcx, rsi
call fcn.1400444f0
mov rdi, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x70]
mov rcx, rdi
call qword [case.0x14004bf9e.0]
test rax, rax
je 0x140051fcd
mov rcx, qword [rdi]
mov rax, qword [rcx + 0x70]
mov rcx, rdi
call qword [case.0x14004bf9e.0]
cmp rax, r13
jne 0x140051fcd
mov rdx, qword [rbp - 0x40]
lea rcx, [rdi + 0x68]
call qword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x140051fcd
movzx r9d, word [rbp - 0x3c]
mov edx, r15d
movzx eax, word [rbp - 0x40]
shl r9d, 0x10
or r9, rax
mov rcx, qword [rsi + 0x40]
xor r8d, r8d
call qword [sym.imp.USER32.dll_SendMessageW]
mov eax, 1
jmp 0x1400524a9
xor r15d, r15d
call fcn.1400d42c8
cmp dword [0x14027baac], r15d
mov rsi, rax
jne 0x1400522f3
test rax, rax
je 0x1400522f3
lea rdx, [rbp - 0x40]
mov qword [rbp - 0x40], rbx
mov rcx, rax
call fcn.1400d2900
cmp eax, 4
jne 0x140052333
call fcn.1400d40e0
mov rdi, rax
test rax, rax
je 0x140052099
mov rcx, qword [rax + 0x19c0]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x140052099
mov rcx, qword [rdi + 0x19c0]
lea rdx, [rbp - 0x28]
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
call qword [sym.imp.USER32.dll_GetWindowRect]
mov rdx, rbx
lea rcx, [rbp - 0x28]
call qword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x140052099
mov rcx, qword [rdi + 0x19c0]
call fcn.14002987c
mov rdx, rax
lea rcx, str.CMFCPopupMenu
call fcn.140025fe4
mov rcx, qword [rdi + 0x40]
lea edx, [r15 + 0x10]
and qword [rdi + 0x19c0], r15
xor r9d, r9d
xor r8d, r8d
mov rbx, rax
call qword [sym.imp.USER32.dll_SendMessageW]
mov qword [0x14027dde0], rbx
xor eax, eax
jmp 0x1400524a9
cmp qword [0x14027dde0], r15
xorps xmm0, xmm0
movups xmmword [rbp - 0x18], xmm0
je 0x140052234
mov rdi, qword [rsi + 0x40]
xor ecx, ecx
call fcn.14002e60c
mov rdx, rdi
lea rcx, [rax + 0x30]
call fcn.140098a4c
test rax, rax
jne 0x1400520e9
mov rdi, qword [rsi + 0x40]
xor ecx, ecx
call fcn.14002e60c
mov rdx, rdi
lea rcx, [rax + 0x68]
call fcn.140098a4c
test rax, rax
je 0x140052234
mov rax, qword [rsi]
lea rdx, [rbp - 0x18]
mov rcx, rsi
mov rax, qword [rax + 0x3a8]
call qword [case.0x14004bf9e.0]
mov r13, rax
test rax, rax
je 0x140052230
mov rdx, rax
lea rcx, str.CMFCPopupMenuBar
call fcn.140025fe4
mov rcx, qword [r13 + 0x40]
lea rdx, [rbp - 0x40]
mov rdi, rax
mov qword [rbp - 0x40], rbx
call qword [sym.imp.USER32.dll_ScreenToClient]
mov rdx, qword [rbp - 0x40]
lea rcx, [rbp - 0x18]
call qword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x1400521a3
test rdi, rdi
je 0x14005215e
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x898]
call qword [case.0x14004bf9e.0]
test eax, eax
je 0x140052180
mov rax, qword [rsi]
mov rcx, rsi
mov rax, qword [rax + 0x398]
call qword [case.0x14004bf9e.0]
test eax, eax
jne 0x140052180
xor r9d, r9d
lea edx, [rax + 0x10]
jmp 0x140051fb6
lea eax, [r12 - 0x204]
cmp eax, 1
ja 0x140051fc3
cmp qword [rsi + 0x19b8], r15
jne 0x140052092
jmp 0x140051fc3
test rdi, rdi
je 0x140052230
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x898]
call qword [case.0x14004bf9e.0]
test eax, eax
jne 0x140052230
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x880]
call qword [case.0x14004bf9e.0]
mov rcx, qword [rdi + 0x40]
call qword [sym.imp.USER32.dll_GetParent]
mov rcx, rax
call fcn.140029838
mov rdx, rax
lea rcx, str.CMFCPopupMenu
call fcn.140025fe4
mov rdi, rax
test rax, rax
je 0x140052230
lea rdx, [rbp - 0x28]
mov qword [rbp - 0x28], rbx
mov rcx, rax
call fcn.1400d2900
test eax, eax
je 0x140052092
jle 0x140052230
cmp eax, 2
jle 0x14005230e
add eax, 0xfffffffd
test eax, 0xfffffffd
je 0x140052092
mov r13, qword [rbp - 0x38]
call fcn.1400d42c8
mov rdi, rax
test rax, rax
je 0x1400522f3
mov rcx, qword [rax]
mov rax, qword [rcx + 0x398]
mov rcx, rdi
call qword [case.0x14004bf9e.0]
test eax, eax
jne 0x1400522f3
mov rcx, qword [rdi]
mov rax, qword [rcx + 0x3b8]
mov rcx, rdi
call qword [case.0x14004bf9e.0]
mov rcx, qword [rdi + 0x40]
test eax, eax
sete r15b
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x10]
call qword [sym.imp.USER32.dll_SendMessageW]
call qword [sym.imp.USER32.dll_GetFocus]
mov rcx, rax
call fcn.140029838
test rax, rax
je 0x1400522bf
lea rdx, str.CMFCToolBar
mov rcx, rax
call fcn.140026084
test eax, eax
je 0x1400522bf
mov rcx, qword [r14 + 0x118]
call fcn.14006aa98
test r15d, r15d
je 0x1400522f3
mov rcx, rbx
call qword [sym.imp.USER32.dll_WindowFromPoint]
mov rcx, rax
call fcn.140029838
mov rdx, rax
lea rcx, str.CView
call fcn.140025fe4
test rax, rax
je 0x1400522f0
cmp qword [rax + 0x40], 0
jne 0x1400522f3
xor r15d, r15d
cmp r12d, 0xa5
jne 0x1400524a6
mov rax, qword [r14 + 0x118]
test rax, rax
jne 0x140052340
jmp 0x140052344
mov rcx, qword [rdi + 0x40]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x10]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [r14 + 0x118]
call fcn.14006aa98
jmp 0x140051fc3
dec eax
cmp eax, 1
ja 0x1400522f3
mov rcx, qword [rsi + 0x40]
jmp 0x140052312
mov rax, qword [rax + 0x40]
cmp r13, rax
jne 0x1400524a6
call fcn.1400229a0
mov rdx, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x3e8]
mov rcx, rdx
call qword [case.0x14004bf9e.0]
test eax, eax
je 0x1400524a6
cmp dword [r14 + 0x30], 0
jne 0x1400524a6
mov rdx, rbx
mov rcx, r14
call fcn.1400512a0
cmp eax, 0x14
ja 0x1400524a6
mov ecx, 0x10030c
bt ecx, eax
jae 0x1400524a6
mov rcx, qword [r14 + 0x118]
xor edx, edx
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetSystemMenu]
mov rcx, rax
call fcn.140099690
mov rdi, rax
test rax, rax
je 0x1400524a6
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x1400524a6
call qword [sym.imp.USER32.dll_IsMenu]
test eax, eax
je 0x1400524a6
mov rcx, qword [rdi + 8]
mov esi, 0xf030
mov edx, esi
xor r8d, r8d
call qword [sym.imp.USER32.dll_EnableMenuItem]
mov rcx, qword [rdi + 8]
mov r12d, 0xf120
mov edx, r12d
xor r8d, r8d
call qword [sym.imp.USER32.dll_EnableMenuItem]
mov rcx, qword [r14 + 0x118]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
je 0x140052422
mov edx, esi
jmp 0x14005243a
mov rcx, qword [r14 + 0x118]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x14005244a
mov edx, r12d
mov rcx, qword [rdi + 8]
mov r8d, 3
call qword [sym.imp.USER32.dll_EnableMenuItem]
mov rax, qword [r14 + 0x118]
test rax, rax
je 0x14005245a
mov rax, qword [rax + 0x40]
and qword [rsp + 0x30], 0
mov r8d, ebx
mov r9d, dword [rbp - 0x2c]
mov edx, 0x100
mov rcx, qword [rdi + 8]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
call qword [sym.imp.USER32.dll_TrackPopupMenu]
test eax, eax
je 0x1400524a6
mov rcx, qword [r14 + 0x118]
xor r9d, r9d
mov r8d, eax
mov edx, 0x112
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
mov r15d, 1
mov eax, r15d
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1401b4f70
mov rbx, qword [rsp + 0xc8]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1400250f4
int3