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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5bc684]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x214], eax
mov eax, dword [ebp + 8]
push ebx
shr eax, 0x10
xor ebx, ebx
push esi
push edi
mov byte [ebp - 0x20c], bl
mov dword [ebp - 0x210], eax
test al, 2
je 0x4c63cc
push ebx
push 0x11
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
push 0x104
or eax, 0x200
lea ecx, [ebp - 0x108]
shl eax, 0x10
push ecx
push eax
mov byte [ebp - 0x108], bl
call dword [sym.imp.USER32.dll_GetKeyNameTextA]
cmp byte [ebp - 0x108], bl
je 0x4c638f
lea eax, [ebp - 0x108]
mov edx, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4c6365
lea edi, [ebp - 0x20c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x4c6375
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4c63af
lea eax, [ebp - 0x20c]
dec eax
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x4c6396
mov edx, dword [str.Ctrl]
mov cl, byte [0x5773e0]
mov dword [eax], edx
mov byte [eax + 4], cl
lea edi, [ebp - 0x20c]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x4c63b6
mov edx, dword [0x562cb8]
mov eax, dword [ebp - 0x210]
mov dword [edi], edx
test al, 4
je 0x4c646d
push ebx
push 0x12
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
push 0x104
or eax, 0x200
lea ecx, [ebp - 0x108]
shl eax, 0x10
push ecx
push eax
mov byte [ebp - 0x108], bl
call dword [sym.imp.USER32.dll_GetKeyNameTextA]
cmp byte [ebp - 0x108], bl
je 0x4c643a
lea eax, [ebp - 0x108]
mov edx, eax
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4c6410
lea edi, [ebp - 0x20c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x4c6420
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4c6451
lea edi, [ebp - 0x20c]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x4c6441
mov edx, dword [0x5773d8]
mov dword [edi], edx
lea edi, [ebp - 0x20c]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x4c6458
mov eax, dword [0x562cb8]
mov dword [edi], eax
mov eax, dword [ebp - 0x210]
test al, 1
je 0x4c6519
push ebx
push 0x10
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
push 0x104
or eax, 0x200
lea ecx, [ebp - 0x108]
shl eax, 0x10
push ecx
push eax
mov byte [ebp - 0x108], bl
call dword [sym.imp.USER32.dll_GetKeyNameTextA]
cmp byte [ebp - 0x108], bl
je 0x4c64da
lea eax, [ebp - 0x108]
mov edx, eax
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4c64b0
lea edi, [ebp - 0x20c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x4c64c0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4c64fc
lea eax, [ebp - 0x20c]
dec eax
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x4c64e1
mov edx, dword [str.Shift]
mov cx, word [0x5773d4]
mov dword [eax], edx
mov word [eax + 4], cx
lea edi, [ebp - 0x20c]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x4c6503
mov edx, dword [0x562cb8]
mov eax, dword [ebp - 0x210]
mov dword [edi], edx
test al, 8
je 0x4c65b7
push ebx
push 0x5b
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
push 0x104
or eax, 0x200
lea ecx, [ebp - 0x108]
shl eax, 0x10
push ecx
push eax
mov byte [ebp - 0x108], bl
call dword [sym.imp.USER32.dll_GetKeyNameTextA]
cmp byte [ebp - 0x108], bl
je 0x4c658a
lea eax, [ebp - 0x108]
mov edx, eax
jmp 0x4c6560
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4c6560
lea edi, [ebp - 0x20c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x4c6570
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4c65a1
lea edi, [ebp - 0x20c]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x4c6591
mov edx, dword [0x56eae4]
mov dword [edi], edx
lea edi, [ebp - 0x20c]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x4c65a8
mov eax, dword [0x562cb8]
mov dword [edi], eax
push ebx
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
movzx ecx, word [ebp + 8]
push eax
push ebx
push ecx
call dword [sym.imp.USER32.dll_MapVirtualKeyExA]
push 0x104
or eax, 0x200
lea edx, [ebp - 0x108]
shl eax, 0x10
push edx
push eax
call dword [sym.imp.USER32.dll_GetKeyNameTextA]
lea eax, [ebp - 0x108]
mov ecx, eax
mov edi, edi
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4c65f0
lea edi, [ebp - 0x20c]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x4c6602
mov edx, dword [ebp - 0x214]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
lea ecx, [ebp - 0x20c]
push ecx
push edx
call fcn.004bf0a0
mov ecx, dword [ebp - 4]
add esp, 0xc
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret