Function at 0x415e15
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_LoadAcceleratorsA]
push edi
xor ebx, ebx
mov edi, ecx
cmp dword [0x41d558], ebx
mov dword [ebp - 0x1c], edi
jne 0x415e4b
call sub.MFC42.DLL_AfxGetModuleState
movzx ecx, word [edi + 0x140]
mov eax, dword [eax + 0xc]
push ecx
push eax
call esi
mov dword [0x41d558], eax
cmp dword [0x41d55c], ebx
jne 0x415e6b
call sub.MFC42.DLL_AfxGetModuleState
movzx ecx, word [edi + 0x144]
mov eax, dword [eax + 0xc]
push ecx
push eax
call esi
mov dword [0x41d55c], eax
cmp dword [edi + 0x124], ebx
je 0x4163ec
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x20]
test eax, eax
mov dword [ebp - 0xc], eax
je 0x4163ec
mov edi, dword [ebp - 0x1c]
mov esi, dword [edi + 0x148]
mov dword [ebp - 8], esi
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call sub.MFC42.DLL_CWnd::FromHandle
mov ebx, dword [sym.imp.USER32.dll_GetNextDlgTabItem]
mov dword [ebp - 4], eax
xor eax, eax
cmp esi, eax
je 0x415ebc
push eax
push eax
push dword [esi + 0x20]
call ebx
push eax
call sub.MFC42.DLL_CWnd::FromHandle
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xc]
mov esi, dword [eax + 0x20]
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, esi
je 0x415ed9
push dword [ebp + 8]
mov ecx, edi
jmp 0x4163f2
mov eax, dword [0x41d558]
test eax, eax
je 0x415ef5
push dword [ebp + 8]
push eax
push esi
call dword [sym.imp.USER32.dll_TranslateAcceleratorA]
test eax, eax
jne 0x4163e7
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov esi, dword [sym.imp.MSVCRT.dll__mbsicmp]
cmp dword [eax + 4], 0x100
jne 0x415fff
cmp dword [eax + 8], 0xd
jne 0x415fff
lea eax, [ebp - 0x44]
push 0x1f
push eax
mov eax, dword [ebp - 4]
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_GetClassNameA]
and byte [ebp + eax - 0x44], 0
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x14]
call fcn.00418aaa
push 0x404ba8
push dword [ebp - 0x14]
call esi
pop ecx
test eax, eax
pop ecx
jne 0x415fa1
mov eax, dword [ebp - 4]
push dword [eax + 0x20]
call sub.MFC42.DLL_CWnd::FromHandle
test eax, eax
je 0x415fa1
push 0xfffffffffffffff0
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_GetWindowLongA]
and eax, 0xf
cmp al, 2
jae 0x415fa1
mov edi, dword [ebp - 4]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 1
push 0x201
push dword [edi + 0x20]
call esi
push 0
push 1
push 0x202
push dword [edi + 0x20]
call esi
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
jmp 0x4163e7
mov eax, dword [ebp - 0xc]
push 0
push 0
push 0x400
push dword [eax + 0x20]
call edi
mov ecx, eax
shr ecx, 0x10
cmp cx, 0x534b
jne 0x415ff4
mov ecx, dword [ebp - 0xc]
movzx eax, ax
push eax
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ebx, eax
test ebx, ebx
je 0x415fee
push 0
push 1
push 0x201
push dword [ebx + 0x20]
call edi
push 0
push 1
push 0x202
push dword [ebx + 0x20]
call edi
jmp 0x415f94
mov ebx, dword [sym.imp.USER32.dll_GetNextDlgTabItem]
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x41607b
mov ecx, dword [ecx + 0x20]
test ecx, ecx
je 0x41607b
cmp dword [eax + 4], 0x100
jne 0x41607b
cmp dword [eax + 8], 0x20
jne 0x41607b
lea eax, [ebp - 0x44]
push 0x1f
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClassNameA]
and byte [ebp + eax - 0x44], 0
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x14]
call fcn.00418aaa
push 0x404ba8
push dword [ebp - 0x14]
call esi
pop ecx
test eax, eax
pop ecx
jne 0x416070
mov esi, dword [ebp - 4]
push eax
push 1
push 0x201
push dword [esi + 0x20]
call edi
push 0
push 1
push 0x202
push dword [esi + 0x20]
call edi
lea ecx, [ebp - 0x14]
jmp 0x415f97
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 8]
cmp dword [0x41d55c], 0
je 0x41624f
cmp dword [ebp - 4], 0
je 0x41624f
cmp dword [eax + 4], 0x100
jne 0x41624f
mov eax, dword [eax + 8]
cmp eax, 9
je 0x41624f
cmp eax, 0x25
je 0x41624f
cmp eax, 0x27
je 0x41624f
cmp eax, 0x26
je 0x41624f
cmp eax, 0x28
je 0x41624f
lea eax, [ebp - 0x44]
push 0x1f
push eax
mov eax, dword [ebp - 4]
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_GetClassNameA]
and byte [ebp + eax - 0x44], 0
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x10]
call fcn.00418aaa
push 0x404ba0
push dword [ebp - 0x10]
call esi
pop ecx
test eax, eax
pop ecx
je 0x416247
push 0x404b98
push dword [ebp - 0x10]
call esi
pop ecx
test eax, eax
pop ecx
je 0x416247
push 0x404b90
push dword [ebp - 0x10]
call esi
pop ecx
test eax, eax
pop ecx
je 0x416247
push 8
push 0x404b84
push dword [ebp - 0x10]
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x416247
push dword [ebp + 8]
mov eax, dword [ebp - 0xc]
push dword [0x41d55c]
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_TranslateAcceleratorA]
test eax, eax
jne 0x41623f
push eax
push eax
mov eax, dword [ebp - 8]
push dword [eax + 0x20]
call ebx
push eax
call sub.MFC42.DLL_CWnd::FromHandle
and dword [ebp - 0x20], 0
mov edi, eax
mov dword [ebp - 0x18], edi
lea eax, [ebp - 0x64]
push 0x1f
push eax
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetClassNameA]
and byte [ebp + eax - 0x64], 0
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x14]
call fcn.00418aaa
push 0x404ba0
push dword [ebp - 0x14]
call esi
pop ecx
test eax, eax
pop ecx
je 0x4161f2
push 0x404b98
push dword [ebp - 0x14]
call esi
pop ecx
test eax, eax
pop ecx
je 0x4161f2
push 0x404b90
push dword [ebp - 0x14]
call esi
pop ecx
test eax, eax
pop ecx
je 0x4161f2
push 8
push 0x404b84
push dword [ebp - 0x14]
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x4161f2
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], 1
jmp 0x41620c
test edi, edi
je 0x4161f9
mov edi, dword [edi + 0x20]
mov eax, dword [ebp - 8]
push 0
push edi
push dword [eax + 0x20]
call ebx
push eax
call sub.MFC42.DLL_CWnd::FromHandle
mov edi, eax
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
cmp dword [ebp - 0x18], edi
jne 0x41617f
cmp dword [ebp - 0x20], 0
je 0x416247
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp + 8]
mov ecx, dword [ebp - 8]
push edi
mov eax, dword [eax + 0x20]
mov esi, dword [edi]
mov dword [edi], eax
call sub.MFC42.DLL_CWnd::IsDialogMessageA
test eax, eax
mov dword [edi], esi
je 0x416247
lea ecx, [ebp - 0x10]
jmp 0x415f97
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
cmp dword [ebp - 8], 0
je 0x4163b5
cmp dword [ebp - 4], 0
je 0x4163a6
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0x100
jne 0x4163a6
cmp dword [eax + 8], 9
jne 0x4163a6
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
mov esi, dword [ebp - 0xc]
push 0
push 0
and eax, 0x8000
push dword [esi + 0x20]
mov dword [ebp - 0x14], eax
call ebx
push eax
call sub.MFC42.DLL_CWnd::FromHandle
mov edi, eax
test edi, edi
je 0x4162ba
push 1
push dword [edi + 0x20]
push dword [esi + 0x20]
call ebx
push eax
call sub.MFC42.DLL_CWnd::FromHandle
mov dword [ebp - 0x18], eax
jmp 0x4162be
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 8]
push 0
push 0
push dword [eax + 0x20]
call ebx
push eax
call sub.MFC42.DLL_CWnd::FromHandle
mov esi, eax
test esi, esi
je 0x4162ed
mov eax, dword [ebp - 8]
push 1
push dword [esi + 0x20]
push dword [eax + 0x20]
call ebx
push eax
call sub.MFC42.DLL_CWnd::FromHandle
mov ebx, eax
jmp 0x4162ef
xor ebx, ebx
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
test ecx, ecx
je 0x41632b
mov edx, dword [eax + 0x20]
cmp edx, dword [ecx + 0x20]
jne 0x41632b
cmp dword [ebp - 0x14], 0
jne 0x41632b
test esi, esi
je 0x416317
mov ecx, dword [ebp - 8]
call sub.MFC42.DLL_CWnd::SetFocus
mov ecx, esi
jmp 0x416321
test edi, edi
je 0x4163e7
mov ecx, edi
call sub.MFC42.DLL_CWnd::SetFocus
jmp 0x4163e7
test ebx, ebx
je 0x416355
mov edx, dword [eax + 0x20]
cmp edx, dword [ebx + 0x20]
jne 0x416355
cmp dword [ebp - 0x14], 0
jne 0x416355
test edi, edi
je 0x41634b
mov ecx, dword [ebp - 0xc]
call sub.MFC42.DLL_CWnd::SetFocus
jmp 0x41631f
test esi, esi
je 0x4163e7
jmp 0x416313
test edi, edi
je 0x41637d
mov edx, dword [eax + 0x20]
cmp edx, dword [edi + 0x20]
jne 0x41637d
cmp dword [ebp - 0x14], 0
je 0x41637d
test ebx, ebx
je 0x416377
mov ecx, dword [ebp - 8]
call sub.MFC42.DLL_CWnd::SetFocus
mov ecx, ebx
jmp 0x416321
test ecx, ecx
je 0x4163e7
jmp 0x416321
test esi, esi
je 0x4163a6
mov eax, dword [eax + 0x20]
cmp eax, dword [esi + 0x20]
jne 0x4163a6
cmp dword [ebp - 0x14], 0
je 0x4163a6
test ecx, ecx
je 0x4163a0
mov ecx, dword [ebp - 0xc]
call sub.MFC42.DLL_CWnd::SetFocus
mov ecx, dword [ebp - 0x18]
jmp 0x416321
test ebx, ebx
je 0x4163e7
jmp 0x416373
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call sub.MFC42.DLL_CWnd::IsDialogMessageA
test eax, eax
jne 0x4163e7
mov edi, dword [ebp + 8]
cmp dword [edi + 4], 0x106
jne 0x4163da
mov eax, dword [ebp - 0x24]
mov esi, dword [edi]
mov ecx, dword [ebp - 8]
push edi
mov eax, dword [eax + 0x20]
mov dword [edi], eax
call sub.MFC42.DLL_CWnd::IsDialogMessageA
test eax, eax
mov dword [edi], esi
jne 0x4163e7
mov ecx, dword [ebp - 0xc]
push edi
call sub.MFC42.DLL_CWnd::IsDialogMessageA
test eax, eax
je 0x4163ec
push 1
pop eax
jmp 0x4163f7
push dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
call sub.MFC42.DLL_CWinThread::PreTranslateMessage
pop edi
pop esi
pop ebx
leave
ret 4