Function at 0x4f41b0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push ebp
push esi
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
mov esi, dword [esp + 0x10]
mov ebx, dword [esi + 0xa170]
movzx ebp, ax
and ebp, 0x8000
test ebx, 0x4000000
je 0x4f41df
xor eax, eax
test ebp, ebp
sete al
mov ebp, eax
mov eax, dword [esi + 0x10]
test eax, eax
jle 0x4f4202
cmp dword [esi + 0x5e4], eax
jl 0x4f4202
push str.Carriage_Return
push 0x58
push esi
call fcn.004e26e0
add esp, 0xc
pop esi
pop ebp
pop ebx
ret
cmp dword [esi + 0x14], 0
mov ecx, dword [esi + 0x138]
push edi
je 0x4f4422
mov edx, dword [esi + 0x5d8]
mov eax, dword [ecx + edx*4]
lea ecx, [ecx + edx*4]
mov edi, 1
cmp dword [eax + 0xc], edi
jne 0x4f4284
test byte [eax + 0x38], 4
je 0x4f4284
mov edx, dword [eax + 0x14]
mov eax, dword [esi + 0x2b38]
imul edx, edx, 0x58
test bl, bl
mov eax, dword [edx + eax + 0x20]
js 0x4f42f0
test eax, eax
je 0x4f42f0
mov edx, dword [esi + 0x2b50]
mov ecx, eax
shl ecx, 4
sub ecx, eax
cmp dword [edx + ecx*4 + 0x2c], 0
je 0x4f42f0
mov eax, dword [esi + 0x39c]
push 0
push 0x5da43c
push 0x5da43c
push 0
push 0
push 0
push 0
push eax
jmp 0x4f42eb
test edx, edx
jle 0x4f42f0
mov ecx, dword [ecx - 4]
cmp dword [ecx + 0xc], edi
jne 0x4f42f0
mov eax, dword [ecx + 0x38]
test al, 4
je 0x4f42f0
test al, 2
jne 0x4f42f0
mov ecx, dword [ecx + 0x14]
mov eax, dword [esi + 0x2b38]
imul ecx, ecx, 0x58
test bl, bl
mov eax, dword [ecx + eax + 0x20]
js 0x4f42f0
test eax, eax
je 0x4f42f0
mov ecx, eax
shl ecx, 4
sub ecx, eax
mov eax, dword [esi + 0x2b50]
cmp dword [eax + ecx*4 + 0x2c], 0
je 0x4f42f0
mov ecx, dword [esi + 0x39c]
push 0
push 0x5da43c
push 0x5da43c
push 0
push 0
push 0
add edx, 0xffffffff
push 0
mov dword [esi + 0x5d8], edx
push ecx
call fcn.004c7c30
cmp dword [esi + 0x47c], 0
jne 0x4f43f5
mov edi, dword [esi + 0x5d8]
mov edx, dword [esi + 0x138]
mov ebx, dword [edx + edi*4]
mov ecx, dword [ebx + 0x2c]
test ecx, ecx
lea edx, [edx + edi*4]
jle 0x4f43f5
test ebp, ebp
jne 0x4f43f9
test byte [esi + 0xa164], 0x20
jne 0x4f43ff
cmp dword [esi + 0x648], ebp
je 0x4f436a
mov ebp, dword [esi + 0x588c]
mov eax, ecx
imul eax, eax, 0x84
add eax, ebp
cmp dword [eax + 0xc], 0
jg 0x4f436a
mov eax, dword [eax + 4]
mov ebp, dword [esi + 0x5884]
imul eax, eax, 0x68
test dword [eax + ebp + 0x24], 0x8000
je 0x4f436a
mov eax, 1
jmp 0x4f436c
xor eax, eax
test edi, edi
je 0x4f43a0
test eax, eax
je 0x4f4382
mov eax, dword [edx - 4]
mov eax, dword [eax + 0x2c]
test eax, eax
jle 0x4f4382
cmp eax, ecx
jne 0x4f43a0
mov eax, dword [edx - 4]
test dword [eax + 0x38], 0x1e0000
jne 0x4f43a0
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4f43ff
test byte [ecx], 0xe
je 0x4f43ff
cmp dword [eax + 0x2c], 0
jne 0x4f43ff
mov ecx, dword [ebx + 0x14]
movzx edx, byte [esi + 0xb50]
push 0
push 0
push ecx
push 0
push edx
push edi
push esi
call fcn.004b2f80
push 0
push 0
push 1
push 0
push 0
push esi
call fcn.004d9160
add esp, 0x34
cmp eax, 0xffffffff
jle 0x4f4500
push 1
push 0
push esi
call fcn.004d56b0
add esp, 0xc
push esi
call fcn.004de3e0
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
test ebp, ebp
je 0x4f43ff
push 0
push 0xf
jmp 0x4f4409
movzx eax, byte [esi + 0xb50]
push 0
push eax
push esi
call fcn.004f05d0
add esp, 0xc
pop edi
mov eax, 1
mov dword [esi + 0x6c4], eax
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esi + 0x5d8]
mov eax, dword [ecx + eax*4]
mov edx, dword [eax + 0xc]
xor edi, edi
test edx, edx
jle 0x4f4472
mov ecx, dword [eax]
xor eax, eax
test edx, edx
jle 0x4f445e
lea esp, [esp]
cmp byte [eax + ecx], 0x20
jne 0x4f4464
mov ebx, dword [esi + 0x5d8]
mov ebp, dword [esi + 0x138]
mov ebx, dword [ebp + ebx*4]
add eax, 1
cmp eax, dword [ebx + 0xc]
jl 0x4f4440
cmp byte [eax + ecx], 0x20
je 0x4f4466
mov edi, eax
mov eax, dword [esi + 0x47c]
cmp eax, edi
jge 0x4f4472
mov edi, eax
xor ebx, ebx
cmp dword [esi + 0x614], ebx
je 0x4f4494
push 1
push 1
push edi
push esi
call fcn.004f3f10
add esp, 0x10
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
cmp dword [esi + 0x610], ebx
je 0x4f44a4
cmp edx, dword [esi + 0x47c]
jle 0x4f447c
mov eax, dword [esi + 0x5d8]
add eax, 1
cmp eax, dword [esi + 0x5e4]
jge 0x4f4509
add dword [esi + 0x5d4], 1
push ebx
push ebx
push 1
push ebx
push ebx
push esi
mov dword [esi + 0x47c], ebx
mov dword [esi + 0x5d8], eax
call fcn.004d9160
add esp, 0x18
cmp eax, 0xffffffff
jle 0x4f44e8
push 1
push ebx
push esi
call fcn.004d56b0
add esp, 0xc
cmp dword [esi + 0x4b48], ebx
je 0x4f4500
mov dword [esi + 0x4b48], ebx
mov dword [esi + 0x498], 4
push esi
call fcn.004de3e0
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret