Function at 0x4f7470
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x57fe73
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
push ebx
push esi
push edi
mov eax, dword [0x5eabd8]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x20]
push 0
push eax
call dword [sym.imp.USER32.dll_GetSystemMenu]
push eax
call fcn.00490865
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetMenuItemCount]
test eax, eax
je 0x4f7947
push edi
lea edx, [esp + 0x64]
push edx
mov ecx, esi
call fcn.004f57d0
mov edi, dword [esp + 0x64]
mov ebx, dword [esp + 0x68]
mov esi, edi
sub esi, dword [esp + 0x6c]
lea eax, [esp + 0x3c]
push eax
add esi, ebx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x20]
lea ecx, [esp + 0x3c]
push ecx
push eax
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x40]
add dword [esp + 0x3c], 4
sub eax, edi
lea edx, [ecx + eax + 4]
push 1
mov dword [esp + 0x84], eax
mov dword [esp + 0x44], edx
call dword [sym.imp.USER32.dll_GetKeyState]
mov edx, dword [esp + 0x40]
test ax, ax
mov eax, dword [esp + 0x6c]
setl byte [esp + 0x13]
dec eax
lea ecx, [ebx - 1]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x3c]
push edx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x94], ecx
push eax
lea ecx, [esp + 0x90]
push ecx
mov dword [esp + 0x94], esi
mov dword [esp + 0x98], edi
call dword [sym.imp.USER32.dll_PtInRect]
mov dword [esp + 0x58], vtable.CBrush.0
xor ecx, ecx
mov dword [esp + 0xc0], ecx
mov dword [esp + 0x5c], ecx
cmp eax, ecx
je 0x4f75e1
cmp byte [esp + 0x13], cl
je 0x4f75b5
push 0xe
call dword [sym.imp.USER32.dll_GetSysColor]
mov edx, dword [esp + 0x14]
mov ecx, dword [edx + 4]
mov dword [esp + 0x18], eax
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
jmp 0x4f75ce
push 0x12
call dword [sym.imp.USER32.dll_GetSysColor]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 4]
mov edx, dword [ecx]
mov eax, dword [edx]
call eax
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x5c]
call fcn.0047fbcf
jmp 0x4f75f3
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x34]
call eax
mov dword [esp + 0x18], eax
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [esp + 0x9c]
call fcn.0047fa24
lea ecx, [esp + 0x1c]
mov byte [esp + 0xc0], 1
call fcn.0047f24e
mov edx, dword [esp + 0x9c]
push edx
mov byte [esp + 0xc4], 2
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x20]
call fcn.0047f8fd
mov dword [esp + 0x7c], 0
mov dword [esp + 0x78], vtable.CBitmap.0
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x38], eax
mov eax, edi
neg eax
mov ecx, esi
neg ecx
push eax
push ecx
lea ecx, [esp + 0x34]
push ecx
mov byte [esp + 0xcc], 3
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], ebx
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
sub ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x9c]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x7c]
call fcn.0047fbcf
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x20]
push eax
push ecx
call fcn.0047fcae
cmp dword [esp + 0x5c], 0
mov dword [esp + 0x84], eax
je 0x4f7775
lea edx, [esp + 0x58]
push edx
lea ecx, [esp + 0x20]
call fcn.0047fd0a
mov dword [esp + 0x54], eax
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], vtable.CPen.0
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
mov byte [esp + 0xc0], 4
call eax
push eax
push 1
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x64]
call fcn.0047fbcf
lea ecx, [esp + 0x60]
push ecx
lea ecx, [esp + 0x20]
call fcn.0047fd0a
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x28]
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_Rectangle]
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x20]
call fcn.0047fd0a
mov edx, dword [esp + 0x54]
push edx
lea ecx, [esp + 0x20]
call fcn.0047fd0a
lea ecx, [esp + 0x60]
mov byte [esp + 0xc0], 3
mov dword [esp + 0x60], vtable.CPen.0
call fcn.0041e040
jmp 0x4f7792
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x30]
call eax
push eax
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x24]
call fcn.004870e6
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x44], eax
add eax, 4
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x44], eax
mov eax, 5
sub dword [esp + 0x4c], eax
add ecx, 4
sub edx, eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x74], 0
mov dword [esp + 0x70], vtable.CPen.0
mov byte [esp + 0xc0], al
mov eax, dword [esp + 0x18]
push eax
push 1
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x74]
call fcn.0047fbcf
lea ecx, [esp + 0x70]
push ecx
lea ecx, [esp + 0x20]
call fcn.0047fd0a
mov dword [esp + 0x54], eax
mov dword [esp + 0x18], 2
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
push edx
push eax
lea ecx, [esp + 0x68]
push ecx
lea ecx, [esp + 0x28]
call fcn.0047f5fb
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
inc edx
push edx
inc eax
push eax
lea ecx, [esp + 0x24]
call fcn.0047f05d
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
push ecx
push edx
lea eax, [esp + 0xb4]
push eax
lea ecx, [esp + 0x28]
call fcn.0047f5fb
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x44]
inc ecx
push ecx
dec edx
push edx
lea ecx, [esp + 0x24]
call fcn.0047f05d
push 0
push 1
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
sub dword [esp + 0x18], 1
jne 0x4f7811
mov ecx, dword [esp + 0x54]
push ecx
lea ecx, [esp + 0x20]
call fcn.0047fd0a
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x9c]
push 0xcc0020
push 0
push 0
push edx
push eax
sub ebx, esi
push ebx
push edi
push esi
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x84]
test eax, eax
je 0x4f78c9
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x20]
push eax
push edx
call fcn.0047fcae
lea ecx, [esp + 0x70]
mov byte [esp + 0xc0], 3
mov dword [esp + 0x70], vtable.CPen.0
call fcn.0041e040
lea ecx, [esp + 0x78]
mov byte [esp + 0xc0], 2
mov dword [esp + 0x78], vtable.CBitmap.0
call fcn.0041e040
lea ecx, [esp + 0x1c]
mov byte [esp + 0xc0], 1
call fcn.0047f97c
lea ecx, [esp + 0x98]
mov byte [esp + 0xc0], 0
call fcn.0047fa78
lea ecx, [esp + 0x58]
mov dword [esp + 0xc0], 0xffffffff
mov dword [esp + 0x58], vtable.CBrush.0
call fcn.0041e040
mov eax, 1
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4