Function at 0x4ba6d0
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 0x4ba6e8
mov dword [ebx + 0xa60], ebp
mov eax, dword [ebx + 0x20]
push eax
mov dword [ebx + 0x9c8], ebp
call dword [sym.imp.user32.dll_IsWindow]
test eax, eax
je 0x4ba70d
mov eax, dword [ebx + 0x20]
push 0x101
push ebp
push ebp
push eax
call dword [sym.imp.user32.dll_RedrawWindow]
cmp esi, 0xffffffff
jne 0x4ba774
mov edx, dword [ebx]
mov eax, dword [edx + 0x150]
push ebp
mov ecx, ebx
call eax
mov eax, edi
call fcn.004cb390
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 0x4ba761
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.004ba400
mov eax, esi
mov dword [ebx + 0x9c8], 1
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
cmp esi, 8
mov dword [ebx + 0x68], ebp
jne 0x4ba92b
cmp dword [ebx + 0xa60], ebp
je 0x4ba7d9
mov ecx, dword [ebx + 0xaa0]
mov edx, dword [ebx + 0xaa4]
mov eax, dword [ebx + 0xaa8]
mov ebp, dword [ebx + 0xa9c]
mov esi, ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
call fcn.004b90b0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [ebx + 0xa9c], ebp
mov dword [ebx + 0xaa0], ecx
mov dword [ebx + 0xaa4], edx
mov dword [ebx + 0xaa8], eax
jmp 0x4ba7ef
push 0x11
call dword [sym.imp.user32.dll_GetKeyState]
shr eax, 0xf
not eax
and eax, 1
mov dword [ebx + 0xa74], eax
mov ebp, dword [ebx + 0x9b0]
mov esi, 2
xor ecx, ecx
mov edx, ebx
mov dword [ebx + 0x9b0], esi
call fcn.004b97d0
cmp dword [ebx + 0xa74], 0
je 0x4ba821
lea ecx, [ebx + 0xa64]
push ecx
push ebx
xor eax, eax
call fcn.004b8930
mov edx, dword [ebx + 0xa9c]
mov ecx, dword [ebx + 0xaa0]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [ebx + 0xaa4]
mov dword [eax + 4], ecx
mov ecx, dword [ebx + 0xaa8]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
call fcn.004ba580
mov edx, dword [ebx]
mov eax, dword [edx + 0x150]
push 1
mov ecx, ebx
call eax
mov ecx, dword [ebx + 0xa9c]
mov dword [edi + 8], ecx
mov edx, dword [ebx + 0xaa0]
mov dword [edi + 0xc], edx
mov eax, dword [ebx + 0xaa4]
mov dword [edi + 0x10], eax
mov ecx, dword [ebx + 0xaa8]
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.004b99e0
test eax, eax
je 0x4ba90b
cmp dword [ebx + 0x9b0], esi
jne 0x4ba90b
mov edx, dword [ebx]
mov eax, dword [edx + 0x178]
push edi
mov ecx, ebx
call eax
test eax, eax
jne 0x4ba90b
mov edx, dword [ebx]
mov eax, dword [edx + 0x168]
mov ecx, ebx
call eax
cmp dword [ebx + 0xa74], 0
je 0x4ba8de
lea ecx, [ebx + 0xa64]
push ecx
push ebx
xor eax, eax
call fcn.004b8930
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.004ba580
mov eax, 1
mov ecx, ebx
call fcn.004b9530
mov ecx, 1
mov dword [ebx + 0x9b0], ebp
mov dword [ebx + 0xa60], ecx
xor eax, eax
mov dword [ebx + 0x9c8], 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.004cb350
mov ecx, dword [edi + 8]
mov dword [ebx + 0xa9c], ecx
mov edx, dword [edi + 0xc]
mov dword [ebx + 0xaa0], edx
mov edx, dword [ebx]
mov esi, eax
mov eax, dword [edi + 0x10]
mov dword [ebx + 0xaa4], eax
mov ecx, dword [edi + 0x14]
mov eax, dword [edx + 0x158]
mov dword [ebx + 0xaa8], ecx
push 2
mov ecx, ebx
call eax
test esi, eax
je 0x4ba999
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.004ba400
pop esi
pop ebp
mov dword [ebx + 0x9c8], 1
xor eax, eax
pop ebx
add esp, 0x10
ret