Function at 0x4a77d8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x4a77e0
push ecx
push ebx
push esi
push edi
mov byte [ebp - 1], dl
mov esi, eax
xor eax, eax
push ebp
push 0x4a7b7e
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [esi + 0x300]
mov edx, dword [eax]
call dword [edx + 0xcc]
inc eax
jle 0x4a7aab
mov eax, dword [esi + 0x300]
mov edx, dword [eax]
call dword [edx + 0xcc]
mov edi, eax
mov eax, dword [esi + 0x300]
mov eax, dword [eax + 0x218]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
cmp edi, eax
jg 0x4a7aab
mov bl, 1
mov edx, dword [0x4d9330]
mov edx, dword [edx]
mov eax, dword [0x4d9408]
mov eax, dword [eax]
mov eax, dword [eax + 0x310]
mov eax, dword [eax + 0x68]
call fcn.00426624
mov eax, dword [esi + 0x300]
mov edx, dword [eax]
call dword [edx + 0xcc]
mov edx, eax
lea ecx, [ebp - 0xc]
mov eax, dword [esi + 0x300]
mov eax, dword [eax + 0x218]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0xc]
mov eax, dword [0x4d9588]
call fcn.00404854
mov eax, dword [esi + 0x300]
mov edx, dword [eax]
call dword [edx + 0xcc]
mov edx, eax
lea ecx, [ebp - 0x10]
mov eax, dword [esi + 0x300]
mov eax, dword [eax + 0x218]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 8]
call fcn.004b7878
mov eax, dword [ebp - 8]
call fcn.0049b964
test al, al
je 0x4a78f4
mov edx, dword [0x4d950c]
mov edx, dword [edx]
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 8]
call fcn.00404b0c
mov edx, dword [ebp - 0x14]
mov eax, dword [0x4d9408]
mov eax, dword [eax]
mov eax, dword [eax + 0x310]
call fcn.00461850
jmp 0x4a7935
mov eax, dword [0x4d950c]
push dword [eax]
push dword [ebp - 8]
lea ecx, [ebp - 0x1c]
mov eax, dword [0x4d9408]
mov eax, dword [eax]
mov edx, dword [ebp - 8]
call fcn.004b8c7c
push dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404b80
mov edx, dword [ebp - 0x18]
mov eax, dword [0x4d9408]
mov eax, dword [eax]
mov eax, dword [eax + 0x310]
call fcn.00461850
cmp byte [ebp - 1], 0
je 0x4a796d
lea edx, [ebp - 0x20]
mov eax, dword [0x4d9408]
mov eax, dword [eax]
mov edi, dword [eax + 0x310]
mov eax, edi
call fcn.00461820
mov eax, dword [ebp - 0x20]
call fcn.00404ac0
mov edx, eax
mov eax, dword [0x4d9408]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0xdc]
jmp 0x4a79ce
mov eax, dword [0x4d96ac]
cmp dword [eax], 0xffffffff
jle 0x4a79bc
mov edx, dword [0x4d96ac]
mov edx, dword [edx]
mov eax, dword [0x4d96a8]
add edx, dword [eax]
mov eax, dword [0x4d9408]
mov eax, dword [eax]
mov eax, dword [eax + 0x310]
mov ecx, dword [eax]
call dword [ecx + 0xdc]
mov eax, dword [ebp - 8]
call fcn.00404ac0
mov edx, eax
mov eax, dword [0x4d9408]
mov eax, dword [eax]
mov eax, dword [eax + 0x310]
mov ecx, dword [eax]
call dword [ecx + 0xd8]
jmp 0x4a79ce
mov eax, dword [0x4d9408]
mov eax, dword [eax]
mov eax, dword [eax + 0x310]
call fcn.004559b0
mov eax, dword [0x4d96b4]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x4d93bc]
mov byte [eax], 1
lea edx, [ebp - 0x28]
mov eax, dword [0x4d9408]
mov eax, dword [eax]
mov eax, dword [eax + 0x310]
call fcn.00461820
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x24]
call fcn.00408d80
mov edx, dword [ebp - 0x24]
mov eax, dword [0x4d95c4]
call fcn.00404854
lea edx, [ebp - 0x2c]
mov eax, dword [0x4d9408]
mov eax, dword [eax]
mov eax, dword [eax + 0x310]
call fcn.00461820
mov edx, dword [ebp - 0x2c]
mov eax, dword [0x4d9398]
call fcn.00404854
mov al, 1
call fcn.004b61ac
mov eax, dword [esi + 0x300]
mov edx, dword [eax]
call dword [edx + 0xcc]
mov edx, eax
mov eax, dword [esi + 0x314]
mov ecx, dword [eax]
call dword [ecx + 0x18]
call fcn.004b62bc
mov edx, dword [0x4d94f0]
mov dword [edx], eax
lea edx, [ebp - 0x30]
mov eax, dword [0x4d9408]
mov eax, dword [eax]
mov eax, dword [eax + 0x310]
call fcn.00461820
mov edx, dword [ebp - 0x30]
mov ecx, dword [0x4d94f0]
mov ecx, dword [ecx]
mov eax, dword [0x4d9408]
mov eax, dword [eax]
call fcn.004c5950
mov eax, dword [0x4d94f0]
cmp dword [eax], 0
je 0x4a7aab
cmp byte [ebp - 1], 0
jne 0x4a7aab
mov eax, dword [0x4d9408]
mov eax, dword [eax]
mov eax, dword [eax + 0x310]
call fcn.004559b0
mov eax, esi
call fcn.004a68c0
cmp byte [ebp - 1], 0
jne 0x4a7acf
test bl, bl
je 0x4a7acf
mov eax, dword [0x4d94c4]
cmp byte [eax], 0
je 0x4a7acf
cmp byte [esi + 0x310], 0
je 0x4a7aec
cmp byte [ebp - 1], 0
jne 0x4a7b46
test bl, bl
je 0x4a7b46
mov eax, dword [0x4d94c4]
cmp byte [eax], 0
jne 0x4a7b46
cmp byte [esi + 0x310], 1
jne 0x4a7b46
mov eax, dword [0x4d96c0]
mov eax, dword [eax]
call fcn.0048159c
mov byte [esi + 0x310], 0
lea edx, [ebp - 0x34]
mov eax, dword [0x4d9408]
mov eax, dword [eax]
mov eax, dword [eax + 0x310]
call fcn.00461820
mov eax, dword [ebp - 0x34]
push eax
push 0x10
call sub.user32.dll_GetKeyState
movsx eax, ax
call fcn.00407764
test ax, ax
setne al
push eax
push 0
push 0
push 0
push 0
mov eax, dword [0x4d9408]
mov eax, dword [eax]
xor ecx, ecx
xor edx, edx
call fcn.004be834
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a7b85
lea eax, [ebp - 0x34]
mov edx, 4
call fcn.00404824
lea eax, [ebp - 0x24]
call fcn.00404800
lea eax, [ebp - 0x20]
call fcn.00404800
lea eax, [ebp - 0x1c]
mov edx, 6
call fcn.00404824
ret