Function at 0x40dd30
Capabilities:
Log keystrokes via polling
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aba78
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4fb128]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x3c]
push eax
push esi
mov dword [ebp - 0x44], esi
call dword [sym.imp.USER32.dll_ClientToScreen]
mov eax, dword [edi + 0x1c]
cmp dword [eax], 0
je 0x40dd97
cmp dword [edi + 0x24], 0
je 0x40dd97
cmp dword [edi + 0x20], 0
je 0x40dd97
mov dword [ebp - 0x40], 2
jmp 0x40dda2
xor eax, eax
cmp dword [edi + 0x24], eax
setne al
mov dword [ebp - 0x40], eax
push dword [ebp - 0x38]
mov eax, dword [edi + 0x20]
push dword [ebp - 0x3c]
mov dword [ebp - 0x30], eax
call dword [sym.imp.USER32.dll_WindowFromPoint]
mov ebx, eax
cmp ebx, esi
jne 0x40ddda
mov edx, dword [ebp + 0x10]
add edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
add eax, dword [ebp + 0xc]
push edx
push eax
push edi
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x40ddda
mov eax, 1
jmp 0x40dddc
xor eax, eax
push 1
mov dword [edi + 0x24], eax
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and eax, 1
mov dword [edi + 0x20], eax
jne 0x40defe
cmp dword [edi + 0x24], 0
mov ecx, dword [edi + 0x1c]
je 0x40dee5
cmp dword [ecx], 0
jne 0x40de19
mov eax, dword [edi + 0x10]
push esi
mov dword [ecx], eax
call dword [sym.imp.USER32.dll_SetCapture]
jmp 0x40defe
cmp dword [ebp - 0x30], 0
je 0x40defe
mov eax, dword [edi + 0x10]
cmp eax, 0x53
jne 0x40de52
push str.m_uiMsg__WM_HELP
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x7f8b
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov dword [edi + 0x28], eax
jmp 0x40defe
cmp eax, 0x46e
jne 0x40de7c
push str.m_uiMsg__WM_MINFRAME
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0
push 0xf020
push 0x112
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x40defe
cmp eax, 0x478
jne 0x40ded7
cmp dword [edi + 0x2c], 0
jne 0x40deb0
push str.m_uiMsg__WM_MAXRESFRAME___m_bMaximize_FALSE
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0
push 0xf030
push 0x112
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
mov dword [edi + 0x2c], 1
jmp 0x40defe
push str.m_uiMsg__WM_MAXRESFRAME___m_bMaximize_TRUE
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0
push 0xf160
push 0x112
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
mov dword [edi + 0x2c], 0
jmp 0x40defe
push 0
push 0
push eax
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x40defe
mov eax, dword [ecx]
cmp eax, dword [edi + 0x10]
jne 0x40defe
cmp dword [edi + 0x28], 0
jne 0x40defe
mov dword [ecx], 0
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [edi + 0x1c]
cmp dword [eax], 0
je 0x40df19
cmp dword [edi + 0x24], 0
je 0x40df19
cmp dword [edi + 0x20], 0
je 0x40df19
mov eax, 2
jmp 0x40df21
xor eax, eax
cmp dword [edi + 0x24], eax
setne al
cmp dword [ebp - 0x40], eax
je 0x40df75
push esi
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], esi
call dword [sym.imp.USER32.dll_GetWindowDC]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.0040a4d0
mov eax, dword [ebp - 0x34]
push eax
push dword [ebp - 0x30]
mov dword [ebp - 0x34], 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x40df75
push eax
mov dword [ebp - 0x34], 0
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp dword [edi + 0x28], 0
je 0x40e0ca
push 4
call dword [sym.imp.USER32.dll_GetKeyState]
push 2
mov si, ax
call dword [sym.imp.USER32.dll_GetKeyState]
or si, ax
cmp dword [edi + 0x20], 0
movzx eax, si
jne 0x40dfa5
test eax, 0x8000
je 0x40dfc4
push dword [edi + 0x28]
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, dword [edi + 0x1c]
mov dword [edi + 0x28], 0
mov dword [eax], 0
call dword [sym.imp.USER32.dll_ReleaseCapture]
cmp dword [edi + 0x20], 0
je 0x40e0ca
mov edi, dword [sym.imp.USER32.dll_GetDlgCtrlID]
push ebx
call edi
test eax, eax
jne 0x40e06d
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x34]
push eax
push ebx
call dword [sym.imp.USER32.dll_ScreenToClient]
push 1
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push ebx
call dword [sym.imp.USER32.dll_ChildWindowFromPointEx]
test eax, eax
je 0x40e06d
cmp eax, ebx
je 0x40e06d
mov edi, dword [sym.imp.USER32.dll_GetWindow]
push 2
push eax
mov ebx, eax
call edi
mov esi, eax
test esi, esi
je 0x40e067
lea eax, [ebp - 0x20]
push eax
push esi
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call dword [sym.imp.USER32.dll_GetWindowRect]
push dword [ebp - 0x38]
lea eax, [ebp - 0x20]
push dword [ebp - 0x3c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
push 2
test eax, eax
push esi
cmovne ebx, esi
call edi
mov esi, eax
test esi, esi
jne 0x40e020
mov edi, dword [sym.imp.USER32.dll_GetDlgCtrlID]
test ebx, ebx
je 0x40e0ca
push ebx
mov dword [ebp - 0x2c], 0x1c
call edi
push ebx
mov dword [ebp - 0x24], eax
call dword [sym.imp.USER32.dll_GetParent]
mov esi, eax
test esi, esi
je 0x40e09c
cmp dword [ebp - 0x24], 0
je 0x40e09c
push esi
call edi
mov dword [ebp - 0x20], esi
cmp eax, dword [ebp - 0x24]
je 0x40e09f
mov dword [ebp - 0x20], ebx
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x2c]
push eax
push 0
push 0x53
push dword [ebp - 0x44]
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x1c], 0
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047232c
mov esp, ebp
pop ebp
ret 0x14