Function at 0x4f1a90
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x748068]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0xf0], 0
je case.0x4f1b4c.9
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
lea eax, [edi - 8]
cmp eax, 0x52
ja case.0x4f1ad1.9
movzx eax, byte [eax + 0x4f1d64]
jmp dword [eax*4 + 0x4f1d44]
mov eax, ebx
and al, 2
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x7ed
jmp 0x4f1b30
mov eax, ebx
and al, 2
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x7ea
jmp 0x4f1b30
mov eax, ebx
and al, 2
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x7eb
jmp 0x4f1b30
mov eax, ebx
and al, 2
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x7e9
jmp 0x4f1b30
mov eax, ebx
and al, 2
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x7e8
test eax, eax
jne 0x4f1b7c
lea eax, [edi - 9]
mov byte [esp + 0x13], 1
cmp eax, 0x1e
ja case.0x4f1b4c.10
movzx eax, byte [eax + 0x4f1dc8]
jmp dword [eax*4 + 0x4f1db8]
mov eax, 0x7ec
push eax
call fcn.004f2dd0
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.0064fb08
mov esp, ebp
pop ebp
ret 0xc
mov eax, 0x7ee
push eax
call fcn.004f2dd0
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.0064fb08
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esi + 0xc0]
test ecx, ecx
je case.0x4f1bf4.38
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [esi + 0xc0]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.0064fb08
mov esp, ebp
pop ebp
ret 0xc
cmp byte [esi + 0xe8], 0
jne case.0x4f1bf4.38
mov eax, dword [esi]
mov eax, dword [eax + 0x40]
call eax
test al, al
je case.0x4f1bf4.38
and bl, 1
lea eax, [edi - 0x23]
mov byte [esp + 0x18], bl
cmp eax, 4
ja case.0x4f1bf4.38
jmp dword [eax*4 + 0x4f1de8]
mov byte [esp + 0x14], 0
cmp edi, 0x25
jmp 0x4f1c0d
mov byte [esp + 0x14], 1
cmp edi, 0x24
push dword [esp + 0x18]
mov ecx, dword [esi + 0xf0]
sete byte [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x1c]
call fcn.0050be20
mov ecx, esi
call fcn.004f3300
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xa0]
jmp case.0x4f1bf4.38
cmp byte [esi + 0xe8], 0
jne case.0x4f1b4c.9
mov eax, dword [esi]
mov eax, dword [eax + 0x40]
call eax
test al, al
je case.0x4f1b4c.9
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0xe0]
call eax
test al, al
jne case.0x4f1b4c.9
push 0x200
lea eax, [esp + 0x24]
push 0
push eax
call fcn.00652810
add esp, 0xc
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
cmp eax, 1
jne case.0x4f1bf4.38
push 0
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
push eax
lea eax, [esp + 0x28]
push eax
movzx eax, word [ebp + 0xc]
push eax
push edi
call dword [sym.imp.USER32.dll_ToAscii]
cmp byte [esi + 0xea], 0
movzx eax, word [esp + 0x1c]
push eax
je 0x4f1ce6
call fcn.00662203
add esp, 4
test eax, eax
je case.0x4f1bf4.38
push dword [esp + 0x1c]
mov ecx, esi
call fcn.004f2020
jmp case.0x4f1bf4.38
call fcn.00662203
add esp, 4
test eax, eax
jne 0x4f1cd6
movzx eax, word [esp + 0x1c]
push eax
call fcn.006621d4
add esp, 4
test eax, eax
jne 0x4f1cd6
movzx eax, word [esp + 0x1c]
push eax
call fcn.0066228a
add esp, 4
test eax, eax
jne 0x4f1cd6
movzx eax, word [esp + 0x1c]
push eax
call fcn.0066225d
add esp, 4
test eax, eax
jne 0x4f1cd6
mov ecx, dword [esp + 0x224]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0064fb08
mov esp, ebp
pop ebp
ret 0xc