Function at 0x4a08aa
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x5c2f60]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x1c]
push ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x28], eax
call dword [sym.imp.USER32.dll_SetRectEmpty]
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x4a0ba5
and dword [ebp - 0x30], 0
and dword [ebp - 0x20], 0
mov esi, dword [esi]
push 1
push edi
push 0x5c2854
call fcn.00409c20
pop ecx
pop ecx
mov ecx, dword [esi + 0x14]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.005417cc
mov ecx, dword [ebp - 0x18]
call dword [esi + 0x14]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x4a0955
push dword [ebp - 0x28]
mov esi, dword [eax]
push dword [ebp - 0x2c]
push ebx
push dword [ebp + 0x10]
mov esi, dword [esi + 0x1c0]
mov ecx, esi
push dword [ebp + 0xc]
push edi
call fcn.005417cc
mov ecx, dword [ebp - 0x24]
call esi
push ebx
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x4a0ba5
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x1b8]
test ecx, ecx
je 0x4a09a7
cmp dword [ecx + 8], 0
je 0x4a09a7
cmp dword [ecx + 4], 0
je 0x4a09a7
push edi
push 0x5c2854
call fcn.00409c20
mov edi, eax
pop ecx
pop ecx
mov ecx, dword [edi]
mov esi, dword [ecx + 0x1a8]
mov ecx, esi
call fcn.005417cc
mov ecx, edi
call esi
push eax
push 0x57dd64
call fcn.00409c20
mov edi, dword [ebp - 0x1c]
pop ecx
pop ecx
mov ecx, eax
mov eax, dword [ebp - 0x18]
jmp 0x4a09a9
xor ecx, ecx
mov esi, dword [eax]
push ecx
push 1
push 0
mov ecx, dword [esi + 0x10]
push 1
push dword [0x5c287c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.005417cc
mov ecx, dword [ebp - 0x18]
call dword [esi + 0x10]
push eax
push 0x5c2b14
call fcn.00409c20
mov esi, eax
mov dword [ebp - 0x24], esi
pop ecx
pop ecx
test esi, esi
je 0x4a0a5b
mov ecx, esi
call fcn.004eaa29
test eax, eax
je 0x4a0a5b
push 0x5c2854
mov ecx, edi
call fcn.00409cb9
test eax, eax
je 0x4a0a2a
push edi
push 0x5c2854
call fcn.00409c20
pop ecx
pop ecx
mov ecx, dword [esi]
push eax
mov esi, dword [ecx + 0x338]
mov ecx, esi
call fcn.005417cc
mov ecx, dword [ebp - 0x24]
call esi
test eax, eax
je 0x4a0ba5
mov esi, dword [ebp - 0x24]
mov ecx, esi
call fcn.004eaa29
push dword [ebp - 0x28]
mov edi, eax
push dword [ebp - 0x2c]
push ebx
push dword [ebp + 0x10]
mov esi, dword [edi]
push dword [ebp + 0xc]
push dword [ebp - 0x1c]
mov esi, dword [esi + 0x29c]
mov ecx, esi
call fcn.005417cc
mov ecx, edi
call esi
jmp 0x4a0ba5
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004a1a70
mov ecx, dword [ebp - 0x28]
and dword [ecx], 0
test eax, eax
je 0x4a0ba5
mov esi, 0x5c2854
mov ecx, edi
push esi
call fcn.00409cb9
test eax, eax
je 0x4a0ac3
push edi
push esi
call fcn.00409c20
mov edi, eax
pop ecx
pop ecx
mov ecx, dword [edi]
mov esi, dword [ecx + 0x1a8]
mov ecx, esi
call fcn.005417cc
mov ecx, edi
call esi
push eax
push 0x57e194
call fcn.00409c20
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4a0afb
jmp 0x4a0adf
mov esi, 0x5c2b14
mov ecx, edi
push esi
call fcn.00409cb9
test eax, eax
je 0x4a0afe
push edi
push esi
call fcn.00409c20
pop ecx
pop ecx
mov edi, eax
mov ecx, dword [edi]
mov esi, dword [ecx + 0x198]
mov ecx, esi
call fcn.005417cc
mov ecx, edi
call esi
test dword [ebp - 0x20], eax
je 0x4a0ba5
mov edi, dword [ebp - 0x1c]
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x30]
mov edi, ebx
mov esi, dword [ebp - 0x18]
neg eax
sbb eax, eax
and eax, 0x10
add eax, 0xf8
lea esi, [esi + eax]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x18]
mov ecx, dword [edi + 0xe4]
call fcn.0041168a
mov ecx, dword [ebp - 0x20]
and eax, 0x400000
cmp ecx, 0x1000
je 0x4a0bc6
cmp ecx, 0x2000
je 0x4a0bb8
cmp ecx, 0x4000
je 0x4a0b78
cmp ecx, 0x8000
jne 0x4a0b87
mov eax, dword [ebx + 0xc]
sub eax, dword [ebp - 8]
add eax, dword [ebp - 0x10]
mov dword [ebx + 4], eax
jmp 0x4a0b87
test eax, eax
je 0x4a0bca
mov eax, dword [ebx]
sub eax, dword [ebp - 0x14]
add eax, dword [ebp - 0xc]
mov dword [ebx + 8], eax
mov eax, dword [edi]
push ecx
push ebx
mov esi, dword [eax + 0x5c]
mov ecx, esi
call fcn.005417cc
mov ecx, edi
call esi
mov ecx, dword [edi + 0xe4]
push ebx
call fcn.0040e6fe
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00540fa1
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [ebx + 4]
sub eax, dword [ebp - 0x10]
add eax, dword [ebp - 8]
mov dword [ebx + 0xc], eax
jmp 0x4a0b87
test eax, eax
je 0x4a0b7c
mov eax, dword [ebx + 8]
sub eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x14]
mov dword [ebx], eax
jmp 0x4a0b87