Function at 0x45a1f1
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
cmp dword [ecx + 0x18], 3
jne 0x45a200
pop ebp
jmp 0x45b101
pop ebp
ret 8
push 0x4dc
mov eax, 0x50f177
call fcn.004f41e2
mov esi, ecx
cmp byte [esi], 0
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x4a8], ebx
je 0x45b474
cmp byte [esi + 1], 0
jne 0x45b474
xor eax, eax
mov dword [ebp - 0x4e8], 0x30
push 0x2c
push eax
lea eax, [ebp - 0x4e4]
push eax
call fcn.004f5a90
add esp, 0xc
mov dword [ebp - 0x4e4], 0x106
lea eax, [ebp - 0x4e8]
push eax
push 1
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
test eax, eax
je 0x45b474
push 0x100
xor ebx, ebx
lea eax, [ebp - 0x1d8]
push ebx
push eax
call fcn.004f5a90
add esp, 0xc
mov dword [ebp - 0x4b4], ebx
lea eax, [ebp - 0x4b4]
mov dword [ebp - 0x4b0], ebx
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
push dword [ebp - 0x4b0]
push dword [ebp - 0x4b4]
call dword [sym.imp.USER32.dll_WindowFromPoint]
mov ebx, eax
lea eax, [ebp - 0x1d8]
push 0x80
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
push str.32768
lea eax, [ebp - 0x1d8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
xor ecx, ecx
test eax, eax
mov edx, ecx
cmovne ebx, ecx
cmp dword [esi + 0x24], ecx
jle 0x45b474
mov al, byte [esi + 0x1c]
mov byte [ebp - 0x4a1], al
cmp byte [ebp - 0x4a1], 0
mov eax, dword [esi + 0x30]
je 0x45b214
mov edi, dword [ecx + eax + 0x90]
test edi, edi
je 0x45b220
cmp edi, dword [ebp - 0x4d4]
jmp 0x45b21e
mov edi, dword [ebp - 0x4d8]
cmp dword [ecx + eax + 4], edi
je 0x45b231
inc edx
add ecx, 0x9c
cmp edx, dword [esi + 0x24]
jl 0x45b1f5
jmp 0x45b474
imul edi, edx, 0x9c
add edi, eax
je 0x45b474
cmp dword [edi], 1
jne 0x45b474
cmp byte [ebp - 0x4a1], 0
je 0x45b285
test ebx, ebx
je 0x45b474
push ebx
call dword [sym.imp.USER32.dll_GetParent]
push 0x64
lea ecx, [ebp - 0xd8]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetClassNameW]
xor eax, eax
mov dword [esi + 0x38], edi
push eax
push eax
push 0x10
push ebx
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x45b474
mov eax, dword [edi + 8]
mov dword [ebp - 0x4b8], eax
test eax, eax
je 0x45b474
mov eax, dword [eax + 0x14]
test eax, eax
je 0x45b474
xor ecx, ecx
cmp word [eax], cx
je 0x45b474
call dword [sym.imp.USER32.dll_CreatePopupMenu]
push edi
push eax
mov ecx, esi
mov dword [ebp - 0x4ac], eax
call fcn.00459b7f
or edi, 0xffffffff
test eax, eax
jle 0x45b328
xor eax, eax
lea edi, [ebp - 0x1e8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x1e8]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x4a8]
push dword [0x5a22a4]
call dword [sym.imp.USER32.dll_GetMenuItemRect]
lea eax, [ebp - 0x1e8]
mov byte [esi + 1], 1
push eax
push dword [0x5a22a4]
mov ecx, esi
push dword [ebp - 0x1e4]
push dword [ebp - 0x1e0]
push 0x181
push dword [ebp - 0x4ac]
push 4
call fcn.0045ccbd
mov edi, eax
xor eax, eax
mov byte [esi + 1], al
push dword [ebp - 0x4ac]
call dword [sym.imp.USER32.dll_DestroyMenu]
xor eax, eax
push 0x98
push eax
mov dword [ebp - 0xac], eax
lea eax, [ebp - 0xa8]
push eax
call fcn.004f5a90
add esp, 0xc
xor ecx, ecx
test edi, edi
jle 0x45b396
mov edx, dword [esi + 0x24]
mov eax, ecx
test edx, edx
jle 0x45b396
mov ecx, dword [esi + 0x30]
mov dword [ebp - 0x4a8], ecx
add ecx, 4
cmp dword [ecx], edi
je 0x45b37d
inc eax
add ecx, 0x9c
cmp eax, edx
jl 0x45b36c
jmp 0x45b394
imul esi, eax, 0x9c
lea edi, [ebp - 0xac]
push 0x27
pop ecx
add esi, dword [ebp - 0x4a8]
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
cmp dword [ebp - 0xac], 3
jne 0x45b474
test ebx, ebx
je 0x45b3b2
push ecx
push ecx
push 0x10
push ebx
call dword [sym.imp.USER32.dll_PostMessageW]
lea ecx, [ebp - 0x4a0]
call fcn.004ea5ed
mov ecx, dword [ebp - 0x4b8]
lea eax, [ebp - 0x4a0]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.004a2d7b
mov ecx, dword [0x5a22a0]
lea eax, [ebp - 0x4a0]
push eax
push ebx
push dword [ebp - 0xa0]
call fcn.0041796e
push ebx
push eax
call fcn.004e230a
mov dword [ebp - 0x488], eax
pop ecx
pop ecx
test eax, eax
je 0x45b469
push ebx
lea ecx, [ebp - 0x4a0]
call fcn.004e87cc
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x45b43d
mov ecx, dword [0x5a22a0]
lea eax, [ebp - 0x4a0]
push ebx
push eax
call fcn.00418d0d
cmp eax, 0x5f4
jne 0x45b469
call fcn.004d6822
mov ecx, dword [0x5a23f0]
call fcn.0046b57d
mov ecx, dword [0x5a22a0]
test al, al
lea eax, [ebp - 0x4a0]
je 0x45b463
push ebx
push 1
push eax
call fcn.0040cfc8
jmp 0x45b469
push eax
call fcn.0040df95
lea ecx, [ebp - 0x4a0]
call fcn.004ea61b
call fcn.004f418c
ret 8