Function at 0x4b7c80
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [edi + 0x48]
xor ebp, ebp
cmp esi, 8
mov ebx, eax
je 0x4b7c98
mov dword [ebx + 0xa68], ebp
mov eax, dword [ebx + 0x20]
push eax
mov dword [ebx + 0x9d0], ebp
call dword [sym.imp.user32.dll_IsWindow]
test eax, eax
je 0x4b7cbd
mov eax, dword [ebx + 0x20]
push 0x101
push ebp
push ebp
push eax
call dword [sym.imp.user32.dll_RedrawWindow]
cmp esi, 0xffffffff
jne 0x4b7d24
mov edx, dword [ebx]
mov eax, dword [edx + 0x150]
push ebp
mov ecx, ebx
call eax
mov eax, edi
call fcn.004c7400
mov edx, dword [ebx]
mov esi, eax
mov eax, dword [edx + 0x158]
push ebp
mov ecx, ebx
call eax
cmp esi, ebp
mov dword [ebx + 0x68], ebp
je 0x4b7d11
mov edx, dword [edi + 8]
lea eax, [edi + 8]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
push ebx
mov dword [ecx + 0xc], eax
call fcn.004b79b0
mov eax, esi
mov dword [ebx + 0x9d0], 1
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
cmp esi, 8
mov dword [ebx + 0x68], ebp
jne 0x4b7eca
cmp dword [ebx + 0xa68], ebp
je 0x4b7d89
mov ecx, dword [ebx + 0xaa8]
mov edx, dword [ebx + 0xaac]
mov eax, dword [ebx + 0xab0]
mov ebp, dword [ebx + 0xaa4]
mov esi, ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
call fcn.004b6690
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [ebx + 0xaa4], ebp
mov dword [ebx + 0xaa8], ecx
mov dword [ebx + 0xaac], edx
mov dword [ebx + 0xab0], eax
jmp 0x4b7d9f
push 0x11
call dword [sym.imp.user32.dll_GetKeyState]
shr eax, 0xf
not eax
and eax, 1
mov dword [ebx + 0xa7c], eax
mov ebp, dword [ebx + 0x9b0]
mov esi, 2
xor ecx, ecx
mov edx, ebx
mov dword [ebx + 0x9b0], esi
call fcn.004b6db0
cmp dword [ebx + 0xa7c], 0
je 0x4b7dd1
lea ecx, [ebx + 0xa6c]
push ecx
push ebx
xor eax, eax
call fcn.004b5f10
mov edx, dword [ebx + 0xaa4]
mov ecx, dword [ebx + 0xaa8]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [ebx + 0xaac]
mov dword [eax + 4], ecx
mov ecx, dword [ebx + 0xab0]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
call fcn.004b7b30
mov edx, dword [ebx]
mov eax, dword [edx + 0x150]
push 1
mov ecx, ebx
call eax
mov ecx, dword [ebx + 0xaa4]
mov dword [edi + 8], ecx
mov edx, dword [ebx + 0xaa8]
mov dword [edi + 0xc], edx
mov eax, dword [ebx + 0xaac]
mov dword [edi + 0x10], eax
mov ecx, dword [ebx + 0xab0]
mov dword [edi + 0x14], ecx
mov edx, dword [ebx]
mov eax, dword [edx + 0x158]
push 1
mov ecx, ebx
mov dword [ebx + 0x9b0], esi
call eax
push 1
xor eax, eax
call fcn.004b6fc0
test eax, eax
je 0x4b7eaa
cmp dword [ebx + 0x9b0], esi
jne 0x4b7eaa
mov edx, dword [ebx]
mov eax, dword [edx + 0x168]
mov ecx, ebx
call eax
cmp dword [ebx + 0xa7c], 0
je 0x4b7e7d
lea ecx, [ebx + 0xa6c]
push ecx
push ebx
xor eax, eax
call fcn.004b5f10
mov edx, dword [edi + 8]
mov ecx, dword [edi + 0xc]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [edi + 0x10]
mov dword [eax + 4], ecx
mov ecx, dword [edi + 0x14]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
call fcn.004b7b30
mov eax, 1
mov ecx, ebx
call fcn.004b6b10
mov ecx, 1
mov dword [ebx + 0x9b0], ebp
mov dword [ebx + 0xa68], ecx
xor eax, eax
mov dword [ebx + 0x9d0], ecx
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov edx, dword [ebx]
mov eax, dword [edx + 0x150]
push ebp
mov ecx, ebx
call eax
mov eax, edi
call fcn.004c73c0
mov ecx, dword [edi + 8]
mov dword [ebx + 0xaa4], ecx
mov edx, dword [edi + 0xc]
mov dword [ebx + 0xaa8], edx
mov edx, dword [ebx]
mov esi, eax
mov eax, dword [edi + 0x10]
mov dword [ebx + 0xaac], eax
mov ecx, dword [edi + 0x14]
mov eax, dword [edx + 0x158]
mov dword [ebx + 0xab0], ecx
push 2
mov ecx, ebx
call eax
test esi, eax
je 0x4b7f38
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0xc]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [edi + 0x10]
mov dword [eax + 4], edx
mov edx, dword [edi + 0x14]
mov dword [eax + 8], ecx
push ebx
mov dword [eax + 0xc], edx
call fcn.004b79b0
pop esi
pop ebp
mov dword [ebx + 0x9d0], 1
xor eax, eax
pop ebx
add esp, 0x10
ret