Function at 0x4f4a20
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ca4ee
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x624500]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x248], ecx
mov edi, dword [ebp + 8]
xor ecx, ecx
movzx eax, word [ebp + 0xc]
movzx ebx, word [ebp + 0x10]
mov dword [ebp - 0x24c], edi
mov dword [ebp - 0x240], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], cx
mov dword [ebp - 0x244], eax
mov dword [edi + 0x18], ecx
mov dword [ebp - 4], ecx
mov ecx, dword [0x605578]
mov dword [ebp - 0x18], ecx
mov ecx, dword [0x60557c]
mov dword [ebp - 0x240], 1
mov dword [ebp - 0x14], ecx
test ax, ax
jne 0x4f4ab8
test bx, bx
je 0x4f4d0b
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov eax, dword [sym.imp.USER32.dll_GetKeyboardLayout]
test bl, 2
je 0x4f4b75
push 0
call eax
push eax
push 0
push 0x11
call esi
push 0x208
mov esi, eax
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.0058d810
add esp, 0xc
shl esi, 0x10
lea eax, [ebp - 0x220]
push 0x104
push eax
push esi
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
push dword [0x625120]
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x23c]
call fcn.0040625b
mov dword [ebp - 0x240], 3
cmp dword [ebp - 0x228], 8
lea eax, [ebp - 0x23c]
push dword [ebp - 0x22c]
cmovae eax, dword [ebp - 0x23c]
mov ecx, edi
push eax
mov dword [ebp - 4], 1
call fcn.004172c6
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 0
call fcn.00405f7b
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.004f4400
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov eax, dword [sym.imp.USER32.dll_GetKeyboardLayout]
test bl, 1
je 0x4f4c19
push 0
call eax
push eax
push 0
push 0x10
call esi
push 0x208
mov esi, eax
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.0058d810
add esp, 0xc
shl esi, 0x10
lea eax, [ebp - 0x220]
push 0x104
push eax
push esi
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
push dword [0x625120]
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x23c]
call fcn.0040625b
or dword [ebp - 0x240], 4
cmp dword [ebp - 0x228], 8
lea eax, [ebp - 0x23c]
push dword [ebp - 0x22c]
cmovae eax, dword [ebp - 0x23c]
mov ecx, edi
push eax
mov dword [ebp - 4], 2
call fcn.004172c6
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 0
call fcn.00405f7b
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.004f4400
test bl, 4
je 0x4f4cc5
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 0
push 0x12
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
push 0x208
mov esi, eax
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.0058d810
add esp, 0xc
shl esi, 0x10
lea eax, [ebp - 0x220]
push 0x104
push eax
push esi
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
push dword [0x625120]
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x23c]
call fcn.0040625b
or dword [ebp - 0x240], 8
cmp dword [ebp - 0x228], 8
lea eax, [ebp - 0x23c]
push dword [ebp - 0x22c]
cmovae eax, dword [ebp - 0x23c]
mov ecx, edi
push eax
mov dword [ebp - 4], 3
call fcn.004172c6
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 0
call fcn.00405f7b
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.004f4400
mov eax, dword [ebp - 0x244]
and ebx, 8
mov ecx, dword [ebp - 0x248]
push ebx
movzx eax, ax
push eax
lea eax, [ebp - 0x23c]
push eax
call fcn.004f4d70
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
mov dword [ebp - 4], 4
jb 0x4f4cf7
mov eax, dword [eax]
push ecx
push eax
mov ecx, edi
call fcn.004172c6
lea ecx, [ebp - 0x23c]
call fcn.00405f7b
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00539e65
mov esp, ebp
pop ebp
ret 0xc