Function at 0x4ca930
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
push edi
mov edi, dword [ebx + 0x48]
cmp edi, 8
mov esi, ecx
je 0x4ca94f
xor ebp, ebp
mov dword [esi + 0xa50], ebp
jmp 0x4ca951
xor ebp, ebp
cmp esi, ebp
mov dword [esi + 0x9b8], ebp
jne 0x4ca95f
xor eax, eax
jmp 0x4ca962
mov eax, dword [esi + 0x1c]
push eax
call dword [sym.imp.user32.dll_IsWindow]
test eax, eax
je 0x4ca97e
mov eax, dword [esi + 0x1c]
push 0x101
push ebp
push ebp
push eax
call dword [sym.imp.user32.dll_RedrawWindow]
cmp edi, 0xffffffff
jne 0x4ca9e6
mov edx, dword [esi]
push ebp
mov ecx, esi
call dword [edx + 0xd4]
push 1
mov ecx, ebx
call fcn.004d94b0
mov edi, eax
mov eax, dword [esi]
push ebp
mov ecx, esi
call dword [eax + 0xdc]
cmp edi, ebp
mov dword [esi + 0x50], ebp
je 0x4ca9d0
add ebx, 8
sub esp, 0x10
mov ecx, esp
mov edx, dword [ebx]
mov dword [ecx], edx
mov eax, dword [ebx + 4]
mov dword [ecx + 4], eax
mov edx, dword [ebx + 8]
mov dword [ecx + 8], edx
mov eax, dword [ebx + 0xc]
mov dword [ecx + 0xc], eax
mov ecx, esi
call fcn.004ca630
mov dword [esi + 0x9b8], 1
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
cmp edi, 8
mov dword [esi + 0x50], ebp
jne 0x4cab74
cmp dword [esi + 0xa50], ebp
je 0x4caa39
lea edi, [esi + 0xa8c]
mov ecx, edi
mov ebp, dword [ecx]
mov edx, dword [ecx + 4]
mov dword [esp + 0x14], edx
mov eax, dword [ecx + 8]
mov dword [esp + 0x18], eax
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x1c], ecx
mov ecx, esi
call fcn.004c9390
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [edi], ebp
mov dword [edi + 4], edx
mov dword [edi + 8], eax
mov dword [edi + 0xc], ecx
jmp 0x4caa4f
push 0x11
call dword [sym.imp.user32.dll_GetKeyState]
not eax
shr eax, 0xf
and eax, 1
mov dword [esi + 0xa64], eax
mov edx, dword [esi + 0x998]
mov ebp, 2
push 0
mov ecx, esi
mov dword [esp + 0x28], edx
mov dword [esi + 0x998], ebp
call fcn.004c9a80
mov eax, dword [esi + 0xa64]
test eax, eax
je 0x4caa87
lea eax, [esi + 0xa54]
push 0
push eax
mov ecx, esi
call fcn.004c8960
lea edi, [esi + 0xa8c]
sub esp, 0x10
mov ecx, edi
mov edx, esp
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
mov ecx, dword [ecx + 0xc]
mov dword [edx + 0xc], ecx
mov ecx, esi
call fcn.004ca7d0
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 0xd4]
mov ecx, dword [edi]
add ebx, 8
mov eax, ebx
mov dword [eax], ecx
mov edx, dword [edi + 4]
mov dword [eax + 4], edx
mov ecx, dword [edi + 8]
mov dword [eax + 8], ecx
mov edx, dword [edi + 0xc]
mov edi, 1
mov ecx, esi
mov dword [eax + 0xc], edx
mov eax, dword [esi]
push edi
mov dword [esi + 0x998], ebp
call dword [eax + 0xdc]
push 0
push edi
mov ecx, esi
call fcn.004c9c70
test eax, eax
je 0x4cab52
cmp dword [esi + 0x998], ebp
jne 0x4cab52
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xec]
mov eax, dword [esi + 0xa64]
test eax, eax
je 0x4cab28
lea eax, [esi + 0xa54]
push 0
push eax
mov ecx, esi
call fcn.004c8960
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [ebx + 8]
mov dword [ecx + 4], eax
mov eax, dword [ebx + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, esi
call fcn.004ca7d0
push edi
mov ecx, esi
call fcn.004c9860
mov ecx, dword [esp + 0x24]
mov dword [esi + 0xa50], edi
mov dword [esi + 0x998], ecx
xor eax, eax
mov dword [esi + 0x9b8], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
mov edx, dword [esi]
push ebp
mov ecx, esi
call dword [edx + 0xd4]
push 1
mov ecx, ebx
call fcn.004d9470
lea edi, [ebx + 8]
mov ebp, eax
mov ecx, edi
lea eax, [esi + 0xa8c]
push 2
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov edx, dword [esi]
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
mov ecx, esi
call dword [edx + 0xdc]
test ebp, eax
je 0x4cabdd
mov ecx, dword [edi]
mov edx, dword [edi + 4]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [edi + 8]
mov dword [eax + 4], edx
mov edx, dword [edi + 0xc]
mov dword [eax + 8], ecx
mov ecx, esi
mov dword [eax + 0xc], edx
call fcn.004ca630
mov dword [esi + 0x9b8], 1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 4