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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ca81e
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 [0x6056d8]
mov dword [ebp - 0x18], ecx
mov ecx, dword [0x6056dc]
mov dword [ebp - 0x240], 1
mov dword [ebp - 0x14], ecx
test ax, ax
jne 0x4f4d78
test bx, bx
je 0x4f4fcb
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov eax, dword [sym.imp.USER32.dll_GetKeyboardLayout]
test bl, 2
je 0x4f4e35
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.0058dad0
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.004173e6
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 0
call fcn.00405f7b
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.004f46c0
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov eax, dword [sym.imp.USER32.dll_GetKeyboardLayout]
test bl, 1
je 0x4f4ed9
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.0058dad0
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.004173e6
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 0
call fcn.00405f7b
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.004f46c0
test bl, 4
je 0x4f4f85
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.0058dad0
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.004173e6
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 0
call fcn.00405f7b
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.004f46c0
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.004f5040
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
mov dword [ebp - 4], 4
jb 0x4f4fb7
mov eax, dword [eax]
push ecx
push eax
mov ecx, edi
call fcn.004173e6
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.0053a175
mov esp, ebp
pop ebp
ret 0xc