Function at 0x4bf2fd
Capabilities:
Log keystrokes via polling

Disassembly:
push 0x24
mov eax, 0x511b5a
call fcn.004f41e2
mov ebx, ecx
test ebx, ebx
je 0x4bf5d4
mov ecx, dword [ebx + 4]
push dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push edi
mov eax, dword [ecx]
call dword [eax + 0x2c]
test al, al
je 0x4bf5d4
mov eax, dword [0x5a23ec]
cmp byte [eax + 0x1119b], 0
je 0x4bf5d4
xor esi, esi
inc esi
cmp edi, esi
jne 0x4bf35e
push esi
push esi
push str.ToolBar:_TID_ACTIVE_NUMBER
call fcn.00421c79
add esp, 0xc
mov ecx, ebx
call fcn.004bf2b6
jmp 0x4bf5d4
cmp edi, 2
jne 0x4bf403
mov eax, dword [0x5a22a0]
lea ecx, [eax + 0x114]
call fcn.00447803
push esi
push esi
test al, al
je 0x4bf3b5
push str.ToolBar:_TID_CREATE_CON_gesture
call fcn.00421c79
add esp, 0xc
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, dword [0x5a22a0]
shr eax, 0xf
and al, 1
movzx eax, al
mov ecx, dword [ecx + 0x3e60]
push eax
push 0
push 0
call fcn.0045a4cf
jmp 0x4bf5d4
push str.ToolBar:_TID_CREATE_CON_mouse
call fcn.00421c79
mov eax, dword [0x5a23ec]
add esp, 0xc
cmp byte [eax + 0x111af], 0
jne 0x4bf3e4
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x4bf3e4
xor esi, esi
mov ecx, dword [0x5a23f0]
push 0
push esi
call fcn.0046aa38
mov ecx, dword [0x5a22a0]
push eax
call fcn.0041897c
jmp 0x4bf5d4
push esi
push esi
cmp edi, 3
jne 0x4bf46d
push str.ToolBar:_TID_ALTERNATIVE
call fcn.00421c79
add esp, 0xc
lea ecx, [ebp - 0x30]
call fcn.004d840a
mov ecx, dword [0x5a22a0]
lea eax, [ebp - 0x30]
and dword [ebp - 4], 0
push 0
push eax
call fcn.0040ef51
xor ecx, ecx
test eax, eax
cmovns ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x4bf450
call fcn.004de78b
mov ecx, eax
call fcn.00496ec5
mov dl, al
jmp 0x4bf452
xor dl, dl
mov ecx, dword [ebx + 4]
push edx
push 3
mov eax, dword [ecx]
call dword [eax + 0x84]
mov ecx, dword [0x5a22a0]
call fcn.0040b358
jmp 0x4bf4d2
cmp edi, 4
jne 0x4bf4df
push str.ToolBar:_TID_SCROLL
call fcn.00421c79
add esp, 0xc
lea ecx, [ebp - 0x30]
call fcn.004d840a
mov ecx, dword [0x5a22a0]
lea eax, [ebp - 0x30]
push 0
push eax
mov dword [ebp - 4], esi
call fcn.0040ef51
xor ecx, ecx
test eax, eax
cmovns ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x4bf4b7
call fcn.004de78b
mov ecx, eax
call fcn.00496ee8
mov dl, al
jmp 0x4bf4b9
xor dl, dl
mov ecx, dword [ebx + 4]
push edx
push 4
mov eax, dword [ecx]
call dword [eax + 0x84]
mov ecx, dword [0x5a22a0]
call fcn.0040b3de
lea ecx, [ebp - 0x30]
call fcn.004d84a5
jmp 0x4bf5d4
cmp edi, 5
jne 0x4bf509
push str.ToolBar:_TID_MINIMIZE
call fcn.00421c79
mov ecx, dword [0x5a22a0]
add esp, 0xc
push 6
lea ecx, [ecx + 0x180]
call fcn.0042a232
jmp 0x4bf5d4
cmp edi, 6
jne 0x4bf542
push str.ToolBar:_TID_MAXIMIZE
call fcn.00421c79
mov eax, dword [0x5a22a0]
mov ecx, 0x200
add esp, 0xc
or word [eax + 0x3ebc], cx
mov ecx, dword [0x5a22a0]
lea ecx, [ecx + 0x180]
call fcn.0042a1e6
jmp 0x4bf5d4
cmp edi, 7
jne 0x4bf561
push str.ToolBar:_TID_APPCLOSE
call fcn.00421c79
mov ecx, dword [0x5a22a0]
add esp, 0xc
call fcn.0041861d
jmp 0x4bf5d4
cmp edi, 8
jne 0x4bf5c7
push str.ToolBar:_TID_SYSMENU
call fcn.00421c79
mov ecx, dword [ebx + 4]
lea edi, [ebp - 0x20]
xor eax, eax
lea edx, [ebp - 0x20]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
push edx
push 8
pop ebx
stosd dword es:[edi], eax
push ebx
stosd dword es:[edi], eax
mov eax, dword [ecx]
call dword [eax + 0x50]
mov eax, dword [0x5a23ec]
push 0x28
pop ecx
push esi
cmp byte [eax + 0x110b2], 1
push esi
push str.ShowSysmenu_called_from__ToolBar_
cmove ebx, ecx
call fcn.00421c79
mov ecx, dword [0x5a22a0]
add esp, 0xc
mov ecx, dword [ecx + 0x3e60]
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.0045c4b0
jmp 0x4bf5d4
push str.ToolBar:_click_was_not_processed
call fcn.00421c79
add esp, 0xc
call fcn.004f418c
ret 8