Function at 0x40a80b
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov edi, 0x202
cmp dword [esi + 0x74], ebx
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], 0x205
mov dword [ebp - 0xc], edi
jne 0x40a845
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [esi + 0x74], eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
cmp dword [0x420864], 0x200
jl 0x40a862
mov dword [ebp - 8], 0x7b
cmp dword [esi + 0x4c], ebx
je 0x40a870
mov eax, dword [ebp - 8]
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], 0x32
jne 0x40ab06
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 8]
je 0x40a88b
cmp eax, dword [ebp - 0xc]
jne 0x40ab06
cmp eax, dword [ebp - 0xc]
jne 0x40a895
mov dword [ebp - 0x10], ebx
jmp 0x40a8b5
cmp dword [esi + 0x88], ebx
lea eax, [esi + 0x88]
jne 0x40a8af
mov edx, dword [ebp - 4]
mov ecx, esi
call fcn.004105e4
jmp 0x40a8b5
mov dword [eax], 0x14
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x11
call edi
and ax, 0x8000
push 0x10
mov dword [ebp + 8], eax
call edi
test ax, 0x8000
je 0x40a8d9
mov dword [ebp - 0x14], 1
jmp 0x40a8e6
cmp word [ebp + 8], bx
je 0x40a8e6
mov dword [ebp - 0x14], 2
push 0x190
push dword [esi + 4]
call dword [sym.imp.USER32.dll_LoadMenuA]
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x40ab06
push ebx
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
mov edi, eax
mov ecx, esi
mov edx, edi
mov dword [ebp + 8], edi
call fcn.0040a746
mov eax, dword [esi + 0x44]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x40a955
mov eax, dword [0x420b6c]
mov edi, 0x300
cmp eax, ebx
jne 0x40a939
push edi
call fcn.0041101e
pop ecx
mov dword [0x420b6c], eax
push edi
push ebx
push eax
call fcn.00410c20
mov ecx, dword [0x420b6c]
add esp, 0xc
lea edx, [ebp - 0x18]
call fcn.0040a1dd
mov edi, dword [ebp + 8]
cmp dword [esi + 0x48], ebx
je 0x40a968
cmp dword [ebp - 0x10], ebx
je 0x40a968
mov edx, esi
mov ecx, edi
call fcn.0040a209
cmp dword [esi + 0x40], ebx
je 0x40a99d
cmp dword [ebp - 0x10], ebx
je 0x40a99d
push dword [ebp - 0x14]
lea eax, [ebp - 0x18]
mov edx, edi
mov ecx, esi
push dword [ebp + 0xc]
push eax
push dword [0x420b6c]
call fcn.0040a346
cmp dword [esi + 0xb0], 1
jbe 0x40a99d
mov edx, edi
mov ecx, esi
call fcn.0040a57d
mov ecx, esi
call fcn.004081a6
cmp dword [esi + 0x90], ebx
je 0x40a9b7
mov edx, dword [ebp - 4]
push edi
mov ecx, esi
call fcn.00409156
push ebx
push 0x25e
push edi
mov edi, dword [sym.imp.USER32.dll_DeleteMenu]
call edi
cmp dword [esi + 0x50], ebx
jne 0x40a9ef
push ebx
push 0x259
push dword [ebp + 8]
call edi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetMenuItemCount]
cmp eax, ebx
jle 0x40a9ef
dec eax
push 0x400
push eax
push dword [ebp + 8]
call edi
cmp dword [esi + 0x64], ebx
mov edi, dword [sym.imp.USER32.dll_EnableMenuItem]
je 0x40aa06
push 1
push 0x259
push dword [ebp + 8]
call edi
cmp dword [esi + 0xe70], ebx
je 0x40aa1a
push 1
push 0x25c
push dword [ebp + 8]
call edi
cmp dword [ebp + 0xc], ebx
je 0x40aa38
push dword [0x420b6c]
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1c]
mov ecx, esi
push 1
push dword [ebp + 8]
push eax
call fcn.0040a678
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x14], eax
push ebx
push edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, dword [sym.imp.USER32.dll_AttachThreadInput]
mov dword [ebp - 0x10], eax
push 1
push eax
push dword [ebp - 0x14]
call edi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push ebx
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call edi
cmp dword [esi + 0x18b0], ebx
je 0x40aa84
mov edi, dword [esi + 0x18b4]
jmp 0x40aaa6
push ebx
mov dword [esi + 0x38], 1
push dword [ebp - 4]
push ebx
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push 0x108
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_TrackPopupMenu]
mov edi, eax
push ebx
push ebx
push ebx
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_PostMessageA]
cmp edi, ebx
mov dword [esi + 0x38], ebx
je 0x40aad0
push dword [ebp + 8]
movzx eax, di
push eax
push 0x111
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x40aad3
mov dword [esi + 0x74], ebx
cmp dword [ebp + 0xc], ebx
je 0x40aae0
mov ecx, dword [ebp - 0x1c]
call fcn.004043a2
push dword [ebp + 8]
mov edi, dword [sym.imp.USER32.dll_DestroyMenu]
call edi
push dword [ebp - 0xc]
call edi
mov eax, dword [esi + 0x74]
cmp eax, ebx
je 0x40ab01
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov dword [esi + 0x74], ebx
push 1
pop eax
jmp 0x40ab08
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8