Function at 0x4b9e7c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
add esi, 0xfffffffc
lea edx, [ebp - 0x14]
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0xfc]
mov eax, dword [esi]
test byte [eax + 0x44], 0x80
je 0x4b9eaf
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0xd4]
mov byte [ebp - 1], al
jmp 0x4b9eba
mov eax, dword [esi]
mov al, byte [eax + 0x1fa]
mov byte [ebp - 1], al
cmp byte [ebp - 1], 1
jne 0x4b9ec4
xor edi, edi
jmp 0x4b9ec9
mov edi, 8
mov eax, dword [esi]
test byte [eax + 0x44], 1
je 0x4b9f21
mov eax, dword [esi]
mov bx, 0xffb9
call fcn.004031a4
test al, al
je 0x4b9f21
mov eax, dword [esi]
test byte [eax + 0x44], 0x80
jne 0x4b9f21
mov eax, dword [esi]
call fcn.00514318
test al, al
je 0x4b9f0b
mov eax, dword [esi]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0xcc]
test al, al
je 0x4b9f21
or edi, 0x200
jmp 0x4b9f21
mov eax, dword [esi]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0xcc]
test al, al
je 0x4b9f21
or edi, 0x200
mov eax, dword [esi]
cmp byte [eax + 0x234], 0
je 0x4b9f4d
push 0x20
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4b9f4d
mov eax, dword [esi]
mov bx, 0xffb9
call fcn.004031a4
test al, al
je 0x4b9f4d
or edi, 0x200
cmp byte [ebp - 1], 1
jne 0x4b9f5b
or edi, 0x400
jmp 0x4b9f67
cmp byte [ebp - 1], 2
jne 0x4b9f67
or edi, 0x400
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0xec]
test eax, eax
je 0x4ba071
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0xec]
call fcn.00440414
test eax, eax
jle 0x4ba071
mov ebx, 0x10
test edi, 0x200
je 0x4b9fa3
or ebx, 0x200
mov eax, dword [esi]
cmp byte [eax + 0x221], 0
je 0x4ba01b
push esi
push edi
lea esi, [ebp - 0x14]
lea edi, [ebp - 0x24]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
push 1
push 1
lea eax, [ebp - 0x24]
push eax
call sub.user32.dll_InflateRect
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0xe0]
mov eax, dword [eax + 0x14]
mov edx, 0xffffff
call fcn.0041c0cc
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0xe0]
lea edx, [ebp - 0x24]
call fcn.0041c764
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0xe0]
mov eax, dword [eax + 0x14]
xor edx, edx
call fcn.0041c0cc
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0xe0]
lea edx, [ebp - 0x24]
call fcn.0041c7a0
mov eax, dword [esi]
cmp byte [eax + 0x248], 0
je 0x4ba071
push esi
push edi
lea esi, [ebp - 0x14]
lea edi, [ebp - 0x24]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
push 2
push 2
lea eax, [ebp - 0x24]
push eax
call sub.user32.dll_InflateRect
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
jne 0x4ba055
add ebx, 0x100
push ebx
push 4
lea eax, [ebp - 0x24]
push eax
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0xe0]
call fcn.0041cc90
push eax
call sub.user32.dll_DrawFrameControl
cmp byte [ebp - 1], 1
jne 0x4ba0ca
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0xec]
test eax, eax
je 0x4ba16a
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0xec]
call fcn.00440414
dec eax
jle 0x4ba16a
mov eax, dword [ebp - 0x10]
push eax
push 1
push 1
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0xe0]
push eax
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0xec]
mov ecx, dword [ebp - 0x14]
pop edx
call fcn.00440930
jmp 0x4ba1e5
cmp byte [ebp - 1], 0
jne 0x4ba120
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0xec]
test eax, eax
je 0x4ba16a
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0xec]
call fcn.00440414
test eax, eax
jle 0x4ba16a
mov eax, dword [ebp - 0x10]
push eax
push 0
push 1
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0xe0]
push eax
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0xec]
mov ecx, dword [ebp - 0x14]
pop edx
call fcn.00440930
jmp 0x4ba1e5
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0xec]
test eax, eax
je 0x4ba16a
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0xec]
call fcn.00440414
cmp eax, 2
jle 0x4ba16a
mov eax, dword [ebp - 0x10]
push eax
push 2
push 1
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0xe0]
push eax
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0xec]
mov ecx, dword [ebp - 0x14]
pop edx
call fcn.00440930
jmp 0x4ba1e5
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0xe0]
mov eax, dword [eax + 0x14]
mov edx, 0x8000000f
call fcn.0041c0cc
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0xe0]
lea edx, [ebp - 0x14]
call fcn.0041c764
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0xe0]
mov eax, dword [eax + 0x14]
mov edx, 0x80000010
call fcn.0041c0cc
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0xec]
test eax, eax
jne 0x4ba1e5
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
jne 0x4ba1c9
add edi, 0x100
push edi
push 4
lea eax, [ebp - 0x14]
push eax
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0xe0]
call fcn.0041cc90
push eax
call sub.user32.dll_DrawFrameControl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret