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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x577a16
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x5d3070]
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 - 0x258], ecx
mov eax, dword [ebp + 0xc]
xor esi, esi
xor ecx, ecx
mov dword [ebp - 0x25c], eax
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x24c], esi
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], esi
mov word [ebp - 0x248], cx
mov dword [ebp - 4], ecx
mov edi, 7
mov dword [ebp - 0x218], edi
mov dword [ebp - 0x21c], ecx
mov word [ebp - 0x22c], cx
push ecx
push 0x5a5260
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.00402b20
push 0x100
lea eax, [ebp - 0x110]
push esi
push eax
call fcn.005481a0
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x100
push esi
push eax
call fcn.005481a0
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
jne 0x495013
mov eax, dword [ebp - 0x234]
cmp eax, 8
jb 0x49500c
push 2
inc eax
push eax
push dword [ebp - 0x248]
call fcn.00403190
add esp, 0xc
xor al, al
jmp 0x495526
push 0
mov byte [ebp - 0xfc], 0
mov dword [ebp - 0x230], 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov dword [ebp - 0x250], eax
test eax, eax
jne 0x495053
lea ecx, [ebp - 0x22c]
call fcn.00403280
lea ecx, [ebp - 0x248]
call fcn.00403280
xor al, al
jmp 0x495526
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x254], 0
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x260], eax
test eax, eax
je 0x495507
mov eax, dword [ecx + 0x10]
lea ebx, [esi + 2]
cmp ebx, eax
jge 0x4954e8
cmp eax, esi
jbe 0x495544
cmp dword [ecx + 0x14], 8
jb 0x495091
mov eax, dword [ecx]
jmp 0x495093
mov eax, ecx
movzx eax, word [eax + esi*2]
lea ecx, [ebp - 0x22c]
push eax
call fcn.00425150
cmp dword [ebp - 0x218], 8
lea ecx, [ebp - 0x22c]
mov edi, dword [ebp - 0x21c]
mov esi, 1
cmovae ecx, dword [ebp - 0x22c]
cmp edi, esi
cmovb esi, edi
test esi, esi
je 0x4950e3
mov edx, 0x5a53c0
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x495102
add ecx, 2
add edx, 2
sub esi, 1
jne 0x4950d0
xor eax, eax
test eax, eax
jne 0x495110
cmp edi, 1
jb 0x495110
ja 0x495110
mov esi, dword [ebp - 0x24c]
inc esi
mov dword [ebp - 0x24c], esi
jmp 0x4954cc
movzx eax, word [ecx]
cmp ax, word [edx]
sbb eax, eax
and eax, 0xfffffffe
inc eax
jmp 0x4950e5
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 0x24c]
inc ecx
cmp dword [esi + 0x10], ecx
jbe 0x495544
cmp dword [esi + 0x14], 8
jb 0x49512d
mov eax, dword [esi]
jmp 0x49512f
mov eax, esi
movzx eax, word [eax + ecx*2]
lea ecx, [ebp - 0x248]
push eax
call fcn.00425150
cmp dword [esi + 0x10], ebx
jbe 0x495544
cmp dword [esi + 0x14], 8
jb 0x495152
mov eax, dword [esi]
jmp 0x495154
mov eax, esi
movzx eax, word [eax + ebx*2]
lea ecx, [ebp - 0x248]
push eax
push 1
call fcn.00408890
mov edx, dword [ebp - 0x218]
lea ecx, [ebp - 0x22c]
mov ebx, dword [ebp - 0x22c]
cmp edx, 8
mov esi, 1
cmovae ecx, ebx
cmp edi, esi
cmovb esi, edi
test esi, esi
je 0x4951aa
mov edx, 0x5a6590
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x4951cc
add ecx, 2
add edx, 2
sub esi, 1
jne 0x495191
mov edx, dword [ebp - 0x218]
xor eax, eax
test eax, eax
jne 0x4951e0
cmp edi, 1
jb 0x4951e0
ja 0x4951e0
mov word [ebp - 0x100], 0x101
mov byte [ebp - 0xfe], 1
jmp 0x4952b6
movzx eax, word [ecx]
cmp ax, word [edx]
mov edx, dword [ebp - 0x218]
sbb eax, eax
and eax, 0xfffffffe
inc eax
jmp 0x4951ac
cmp edx, 8
lea ecx, [ebp - 0x22c]
mov esi, 1
cmovae ecx, ebx
cmp edi, esi
cmovb esi, edi
test esi, esi
je 0x495219
mov edx, 0x5a6594
nop
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x495238
add ecx, 2
add edx, 2
sub esi, 1
jne 0x495200
mov edx, dword [ebp - 0x218]
xor eax, eax
test eax, eax
jne 0x49524c
cmp edi, 1
jb 0x49524c
ja 0x49524c
mov word [ebp - 0x100], 0x181
mov byte [ebp - 0xfe], 1
jmp 0x4952b6
movzx eax, word [ecx]
cmp ax, word [edx]
mov edx, dword [ebp - 0x218]
sbb eax, eax
and eax, 0xfffffffe
inc eax
jmp 0x49521b
cmp edx, 8
lea ecx, [ebp - 0x22c]
mov esi, 1
cmovae ecx, ebx
cmp edi, esi
cmovb esi, edi
test esi, esi
je 0x49528d
mov edx, 0x5a6598
nop dword [eax + eax]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x49538d
add ecx, 2
add edx, 2
sub esi, 1
jne 0x495270
mov edx, dword [ebp - 0x218]
xor eax, eax
test eax, eax
jne 0x4953a4
cmp edi, 1
jb 0x4953a4
ja 0x4953a4
mov word [ebp - 0x100], 0x8101
mov byte [ebp - 0xfe], 0x81
cmp dword [ebp - 0x234], 8
lea ecx, [ebp - 0x214]
push ecx
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push 0x5a65a4
push eax
call fcn.00497b50
add esp, 0xc
test eax, eax
je 0x4954c6
mov eax, dword [ebp - 0x258]
mov edx, dword [ebp - 0x214]
cmp dword [eax + 0x90], 0
je 0x495329
cmp edx, 0x39
je 0x495329
cmp edx, 0xf
je 0x495329
cmp edx, 0x1c
je 0x495329
cmp edx, 0x35
mov eax, 0x135
cmove edx, eax
mov ecx, edx
mov dword [ebp - 0x214], edx
call fcn.00515e20
mov esi, eax
test esi, esi
jne 0x49534b
push dword [ebp - 0x250]
movzx eax, dl
push 1
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov esi, eax
test esi, esi
je 0x4954c6
mov edx, dword [ebp - 0x214]
mov ebx, dword [ebp - 0x250]
lea ecx, [ebp - 0x230]
push ebx
push 0
push 1
push ecx
lea ecx, [ebp - 0x110]
movzx eax, dl
push ecx
push eax
push esi
call dword [sym.imp.USER32.dll_ToUnicodeEx]
mov edi, eax
test edi, edi
jne 0x49547b
mov esi, dword [ebp - 0x24c]
add esi, 3
mov dword [ebp - 0x24c], esi
jmp 0x4954cc
movzx eax, word [ecx]
cmp ax, word [edx]
mov edx, dword [ebp - 0x218]
sbb eax, eax
and eax, 0xfffffffe
inc eax
jmp 0x49528f
cmp edx, 8
lea ecx, [ebp - 0x22c]
mov esi, 1
cmovae ecx, ebx
cmp edi, esi
cmovb esi, edi
test esi, esi
je 0x4953dc
mov edx, 0x5a659c
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x4953f7
add ecx, 2
add edx, 2
sub esi, 1
jne 0x4953c3
mov edx, dword [ebp - 0x218]
xor eax, eax
test eax, eax
jne 0x49540b
cmp edi, 1
jb 0x49540b
ja 0x49540b
mov word [ebp - 0x100], 0x8181
jmp 0x4952af
movzx eax, word [ecx]
cmp ax, word [edx]
mov edx, dword [ebp - 0x218]
sbb eax, eax
and eax, 0xfffffffe
inc eax
jmp 0x4953de
cmp edx, 8
lea ecx, [ebp - 0x22c]
mov esi, 1
cmovae ecx, ebx
cmp edi, esi
cmovb esi, edi
test esi, esi
je 0x495443
mov edx, 0x5a65a0
nop word [eax + eax]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x49546d
add ecx, 2
add edx, 2
sub esi, 1
jne 0x495430
xor eax, eax
test eax, eax
jne 0x4952b6
cmp edi, 1
jb 0x4952b6
ja 0x4952b6
mov esi, dword [ebp - 0x24c]
add esi, 3
mov dword [ebp - 0x24c], esi
jmp 0x4954cc
movzx eax, word [ecx]
cmp ax, word [edx]
sbb eax, eax
and eax, 0xfffffffe
inc eax
jmp 0x495445
push dword [ebp - 0x230]
mov ecx, dword [ebp - 0x25c]
push 1
call fcn.00408890
cmp edi, 1
jge 0x4954b5
push ebx
push 1
push 1
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x210]
push eax
movzx eax, byte [ebp - 0x214]
push eax
push esi
call dword [sym.imp.USER32.dll_ToUnicodeEx]
mov esi, dword [ebp - 0x24c]
add esi, 3
mov dword [ebp - 0x24c], esi
jmp 0x4954cc
mov esi, dword [ebp - 0x24c]
mov edx, dword [ebp - 0x254]
mov ecx, dword [ebp + 8]
inc edx
mov dword [ebp - 0x254], edx
cmp edx, dword [ebp - 0x260]
jne 0x495071
mov edi, dword [ebp - 0x218]
cmp edi, 8
jb 0x495507
push 2
lea eax, [edi + 1]
push eax
push dword [ebp - 0x22c]
call fcn.00403190
add esp, 0xc
mov eax, dword [ebp - 0x234]
cmp eax, 8
jb 0x495524
push 2
inc eax
push eax
push dword [ebp - 0x248]
call fcn.00403190
add esp, 0xc
mov al, 1
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.0053f778
mov esp, ebp
pop ebp
ret 8
push 0x5966b8
call fcn.0052895d
int3