Function at 0x67879e10
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x18]
push esi
cmp ebx, 0x112
push edi
mov esi, ecx
ja 0x67879f10
cmp ebx, 0x112
je 0x67879e67
cmp ebx, 5
je 0x67879e40
cmp ebx, 0x47
jne 0x6787a018
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x160]
cmp eax, ecx
jne 0x6787a018
mov ecx, dword [esi - 0x20]
push 0
push 0x2fbf
push 0x113
push ecx
jmp 0x6787a012
lea edi, [esi - 0x40]
mov ecx, edi
call sym.MfcHlpr520.dll_public:_int___thiscall_CMHPToolBar::IsWindowVisible_void_const
test eax, eax
je 0x6787a018
push 0x678399d0
mov ecx, sym.MfcHlpr520.dll_class_CThreadLocal_class_CMHPMouseManager__CMHPMouseManager::_mhpMouseThreadState
call sub.MFC42.DLL_CThreadLocalObject::GetData
mov ecx, dword [eax + 4]
test ecx, ecx
jg 0x6787a018
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x6787a018
mov ecx, edi
call sym.MfcHlpr520.dll_public:_int___thiscall_CMHPCommandBar::IsCustomizeMode_void_const
test eax, eax
jne 0x6787a018
mov edx, dword [esp + 0x1c]
mov eax, dword [edx]
and eax, 0xfff0
cmp eax, 0xf100
jne 0x6787a018
cmp dword [ebp], 0
jne 0x6787a018
mov edx, dword [edi]
push 0x12
mov ecx, edi
call dword [edx + 0x174]
test eax, eax
je 0x67879eef
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0x14
mov ecx, edi
call sym.MfcHlpr520.dll_public:_class_CMHPCommandBars____thiscall_CMHPCommandBar::GetCommandBars_void_const
test eax, eax
je 0x67879f04
push 0
push edi
mov ecx, eax
call sym.MfcHlpr520.dll_public:_int___thiscall_CMHPCommandBars::SetToolBarFocus_class_CMHPToolBar___int_
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0x14
cmp ebx, 0x220
jb 0x6787a018
cmp ebx, 0x222
jbe 0x6787a002
cmp ebx, 0x230
jne 0x6787a018
mov eax, dword [esi - 0x40]
lea edi, [esi - 0x40]
mov ecx, edi
call dword [eax + 0xe4]
test eax, eax
mov ecx, edi
je 0x67879fd7
call sym.MfcHlpr520.dll_public:_int___thiscall_CMHPCommandBar::IsCustomizeMode_void_const
test eax, eax
je 0x67879f7e
mov ecx, edi
call sym.MfcHlpr520.dll_public:_class_CWnd____thiscall_CMHPCommandBar::GetSite_void_const
mov ecx, dword [eax + 0x20]
push 0
push ecx
call dword [sym.imp.USER32.dll_SetMenu]
mov edx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov dword [edx], 0
mov eax, 1
pop ebx
ret 0x14
mov eax, dword [esi + 0x98]
mov ebx, dword [esp + 0x1c]
test ah, 4
jne 0x67879fab
mov eax, dword [ebx]
test eax, eax
jne 0x67879fa3
mov ecx, dword [esi + 0x164]
test ecx, ecx
je 0x67879fab
test eax, eax
jne 0x67879fa3
mov eax, ecx
push eax
mov ecx, edi
call sym.MfcHlpr520.dll_protected:_void___thiscall_CMHPMenuBar::SwitchMDIMenu_struct_HMENU____
mov ecx, edi
call sym.MfcHlpr520.dll_public:_class_CWnd____thiscall_CMHPCommandBar::GetSite_void_const
mov eax, dword [eax + 0x20]
push 0
push eax
call dword [sym.imp.USER32.dll_SetMenu]
mov ecx, edi
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPMenuBar::RefreshMenu_void_
pop edi
pop esi
mov dword [ebx], 0
pop ebp
mov eax, 1
pop ebx
ret 0x14
call sym.MfcHlpr520.dll_public:_class_CWnd____thiscall_CMHPCommandBar::GetSite_void_const
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_GetMenu]
push eax
call sub.MFC42.DLL_CMenu::FromHandle
test eax, eax
jne 0x6787a018
mov edx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov dword [edx], eax
mov eax, 1
pop ebx
ret 0x14
mov eax, dword [esi - 0x20]
push 0
push 0x2fbf
push 0x113
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
push ecx
push ebp
push edx
push ebx
push eax
mov ecx, esi
call sym.MfcHlpr520.dll_public_virtual:_int___thiscall_CMHPCommandBar::OnHookMessage_struct_HWND_____unsigned_int__unsigned_int___long_int___long_int__
pop edi
pop esi
pop ebp
pop ebx
ret 0x14