Function at 0x4b6d03
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x10824], ebx
je 0x4b70f8
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call edi
test ah, 0x80
je 0x4b6e52
call dword [sym.imp.USER32.dll_CreatePopupMenu]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x4b70f8
mov eax, dword [0x4cfce8]
cmp dword [esi + 0x107bc], ebx
mov dword [ebp - 8], eax
jle 0x4b6dfe
lea eax, [esi + 0x103ba]
mov dword [ebp - 0xc], eax
jmp 0x4b6d6c
mov eax, dword [ebp - 0xc]
movsx ecx, word [eax + 2]
test ebx, ebx
lea edi, [ecx + esi + 0x1ec]
lea ecx, [esi + 0x1ec]
mov dword [ebp - 0x18], ecx
je 0x4b6d8c
movsx eax, word [eax]
add ecx, eax
mov dword [ebp - 0x18], ecx
mov al, byte [edi]
and byte [edi], 0
test ecx, ecx
mov byte [ebp - 1], al
jne 0x4b6d9c
xor eax, eax
jmp 0x4b6da3
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push dword [ebp - 0x18]
lea ecx, [ebp - 8]
push eax
call fcn.00402d62
push 0x4d1c70
push 0x4d1c6c
lea ecx, [ebp - 8]
call fcn.004033b6
lea eax, [ebp - 8]
push 0x80
push eax
call fcn.00414327
pop ecx
lea eax, [ebx + 0x2328]
pop ecx
push dword [ebp - 8]
push eax
push 0
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_AppendMenuA]
mov al, byte [ebp - 1]
add dword [ebp - 0xc], 2
inc ebx
mov byte [edi], al
cmp ebx, dword [esi + 0x107bc]
jl 0x4b6d69
xor ebx, ebx
mov eax, dword [esi + 0x160]
push ebx
push eax
push ebx
push dword [ebp - 0x1c]
mov dword [esi + 0x1081c], ebx
push dword [ebp - 0x20]
push 0x182
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_TrackPopupMenu]
cmp eax, ebx
mov dword [esi + 0x1081c], 1
je 0x4b6e3c
add eax, 0xffffdcd8
mov ecx, esi
push eax
call fcn.004b6c29
lea ecx, [ebp - 8]
call fcn.004010b4
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_DestroyMenu]
jmp 0x4b70f8
push 0x11
call edi
test ah, 0x80
jne 0x4b70e1
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esi + 0x10804]
sub eax, dword [esi + 0x10838]
cmp dword [ebp - 0x20], eax
jge 0x4b6eb3
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push ebx
add esi, 0x160
push 0x8023
push 0x111
push dword [esi]
call edi
mov esi, dword [esi]
push 0xffffffffffffffff
push esi
push 0x7b
push esi
call edi
jmp 0x4b70f8
cmp dword [esi + 0x107cc], 0xffffffff
jne 0x4b6ed7
movzx ecx, word [ebp - 0x20]
lea eax, [ebp - 0x18]
push eax
movzx eax, word [ebp - 0x1c]
shl eax, 0x10
or eax, ecx
mov ecx, esi
push eax
push ebx
push ebx
call fcn.004b68d9
mov ecx, dword [esi + 0x107cc]
cmp ecx, 0xffffffff
jne 0x4b6ef1
mov eax, dword [ebp - 0x20]
cmp eax, dword [esi + 0x10804]
jge 0x4b70e1
mov eax, dword [0x4cfce8]
cmp ecx, 0xffffffff
mov dword [ebp - 8], eax
je 0x4b6f39
mov eax, dword [esi + 0x107d0]
cmp eax, dword [esi + 0x107bc]
jge 0x4b6f1c
cmp ecx, eax
jl 0x4b6f1c
mov edx, dword [esi + 0x107d4]
sub edx, eax
lea ecx, [ecx + edx + 1]
lea eax, [ebp - 0x18]
push ecx
push eax
mov ecx, esi
call fcn.004b6b3a
push eax
lea ecx, [ebp - 8]
call fcn.00402dbe
lea ecx, [ebp - 0x18]
call fcn.004010b4
mov eax, dword [ebp - 8]
cmp dword [eax - 8], ebx
je 0x4b70d9
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x18], edi
je 0x4b70d9
push ebx
push ebx
push 0x800
push edi
call dword [sym.imp.USER32.dll_AppendMenuA]
lea ecx, [ebp - 0x6c]
call fcn.004b75f6
mov eax, dword [esi + 0x1e0]
lea ecx, [ebp - 0x6c]
mov eax, dword [eax]
and eax, 0x4000
push eax
push edi
push dword [esi + 4]
lea eax, [ebp - 8]
push 0x2328
push eax
call fcn.004b7101
test eax, eax
je 0x4b70ca
cmp dword [0x4d826c], ebx
je 0x4b6fdd
cmp dword [0x4d801c], ebx
je 0x4b6fdd
mov eax, dword [esi + 0x10820]
push ebx
add eax, 4
push ebx
push 0x8048
mov dword [ebp - 0x3c], 0x1c
mov dword [ebp - 0x38], reloc.OLEAUT32.dll_SysReAllocString
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x3c]
push eax
push edi
call dword [0x4d801c]
mov eax, dword [esi + 4]
push ebx
push eax
push ebx
push dword [ebp - 0x10]
mov dword [esi + 0x1081c], ebx
push dword [ebp - 0x14]
push 0x102
push edi
call dword [sym.imp.USER32.dll_TrackPopupMenu]
push 1
cmp eax, ebx
pop edi
mov dword [esi + 0x1081c], edi
jne 0x4b7013
mov eax, dword [ebp - 0x5c]
cmp eax, ebx
je 0x4b70af
push ebx
push 0x4cfe1c
push eax
lea eax, [ebp - 0x10]
push dword [ebp - 0x18]
push eax
call fcn.0046fc5a
mov eax, dword [ebp - 8]
add esp, 0x14
cmp dword [eax - 8], ebx
je 0x4b7058
push edi
lea eax, [ebp - 8]
push dword [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0046bc0b
add esp, 0x10
lea ecx, [ebp - 8]
push eax
call fcn.00402dbe
lea ecx, [ebp - 0xc]
call fcn.004010b4
jmp 0x4b7082
lea eax, [ebp - 0x10]
lea ecx, [ebp - 8]
push eax
call fcn.00402dbe
mov eax, dword [ebp - 8]
mov ecx, dword [eax - 8]
cmp byte [ecx + eax - 1], 0x3a
jne 0x4b7082
lea eax, [ebp - 1]
lea ecx, [ebp - 8]
push eax
push edi
mov byte [ebp - 1], 0x5c
call fcn.00402f96
push dword [esi + 0x160]
call dword [sym.imp.USER32.dll_SetFocus]
lea eax, [ebp - 8]
push edi
push eax
mov eax, dword [esi + 0x10820]
push 0x8008
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [ebp - 0x10]
call fcn.004010b4
lea ecx, [ebp - 0x6c]
call fcn.004b783e
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_DestroyMenu]
lea ecx, [ebp - 8]
call fcn.004010b4
jmp 0x4b70f8
lea ecx, [ebp - 0x6c]
call fcn.004b783e
push edi
call dword [sym.imp.USER32.dll_DestroyMenu]
lea ecx, [ebp - 8]
call fcn.004010b4
push ebx
push 0x80b1
push 0x111
push dword [esi + 0x160]
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10