Function at 0x4fa6f0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51fd48
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x158]
mov ecx, 0x53
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x540cac]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 8]
and eax, 1
je 0x4fa9a4
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x30]
call fcn.0046035f
mov dword [ebp - 4], 0
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.0046205b
push 0xa
lea ecx, [ebp - 0x30]
call fcn.00461ac0
mov eax, dword [ebp - 0x14]
movzx ecx, byte [eax + 0x1c]
test ecx, ecx
je 0x4fa7b2
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x8c]
push ecx
mov edx, dword [eax + 0x88]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xbc]
push ecx
mov edx, dword [eax + 0xb8]
push edx
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp + 0x14]
call fcn.004627f4
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.0046139a
jmp 0x4fa7b9
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x1c], 1
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0xd4], 0
jle 0x4fa802
call fcn.004611dd
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax]
mov esi, esp
mov ecx, dword [ebp - 0x3c]
mov eax, dword [edx + 0x170]
call eax
cmp esi, esp
call fcn.00462114
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
add eax, 0x12c
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x38
call fcn.0045f59f
jmp 0x4fa816
mov ecx, dword [ebp - 0x14]
call fcn.0045eeb5
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x38
call fcn.0045f59f
mov esi, esp
lea ecx, [ebp - 0x58]
call dword [0x543c18]
cmp esi, esp
call fcn.00462114
mov esi, esp
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
cmp esi, esp
call fcn.00462114
cwde
test eax, eax
jge 0x4fa862
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x154]
push edx
mov ecx, dword [ebp + 0x14]
call fcn.0045fecd
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], edx
jmp 0x4fa8bf
push 0
push ecx
fld dword [0x530204]
fstp dword [esp]
call fcn.0045ef1e
fstp dword [esp]
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x144]
push edx
mov ecx, dword [ebp + 0x14]
call fcn.0045fecd
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xbc]
push ecx
mov edx, dword [eax + 0xb8]
push edx
lea eax, [ebp - 0x134]
push eax
mov ecx, dword [ebp + 0x14]
call fcn.0046181d
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x58]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0xb4]
push eax
mov ecx, dword [edx + 0xb0]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0xbc]
push eax
mov ecx, dword [edx + 0xb8]
push ecx
call fcn.00461750
add esp, 0x18
fstp dword [ebp - 0x64]
push ecx
fld dword [ebp - 0x64]
fstp dword [esp]
mov eax, dword [ebp - 0x14]
add eax, 0xc4
sub esp, 0xc
mov ecx, esp
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
mov ecx, dword [ebp + 0x14]
call fcn.00462777
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x38
call fcn.0046164c
push ecx
fld dword [ebp - 0x64]
fstp dword [esp]
call fcn.0046047c
fstp dword [esp]
mov ecx, dword [ebp - 0x14]
call fcn.0045fc1b
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.0046139a
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x58]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0xbc]
push eax
mov ecx, dword [edx + 0xb8]
push ecx
lea edx, [ebp - 0x30]
push edx
mov ecx, dword [ebp + 0x14]
call fcn.004627f4
mov eax, dword [ebp - 0x14]
fld dword [ebp - 0x64]
fstp dword [eax + 0xc0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x58]
mov dword [eax + 0x88], ecx
mov edx, dword [ebp - 0x54]
mov dword [eax + 0x8c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004627db
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.0045f5db
push edx
mov ecx, ebp
push eax
lea edx, [0x4fa9f0]
call fcn.0045eab4
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x158
cmp ebp, esp
call fcn.00462114
mov esp, ebp
pop ebp
ret 0x10