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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bc940
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x634b28]
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 ebx, dword [ebp + 8]
lea eax, [ebp - 0x78]
push 0x32
push 0
push eax
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x84], ebx
call fcn.0057e5f0
mov esi, dword [ebp + 0xc]
add esp, 0xc
cmp esi, 3
jne 0x49c4b6
call fcn.0054671f
mov ecx, eax
test ecx, ecx
je 0x49c673
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
push 0x5ca050
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.00404da4
test al, al
jne 0x49c5ff
push 0
push 0x5ca050
mov ecx, ebx
call fcn.004055f4
jmp 0x49c5ff
push 0x32
lea eax, [ebp - 0x78]
push eax
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 0
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov ecx, eax
mov edx, 0xe
shl ecx, 0x10
lea eax, [esi - 0x21]
cmp edx, eax
sbb eax, eax
and eax, 0xff000000
add eax, 0x1000001
or ecx, eax
push ecx
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
call fcn.0054671f
mov ecx, eax
test ecx, ecx
je 0x49c673
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x78]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x7c]
call fcn.00404da4
test al, al
jne 0x49c54c
lea ecx, [ebp - 0x78]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49c530
sub ecx, edx
lea eax, [ebp - 0x78]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x7c]
call fcn.004055f4
mov esi, dword [ebp - 0x7c]
mov dword [ebp - 4], 2
mov edi, dword [esi - 0xc]
test edi, edi
je 0x49c5d2
js 0x49c669
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x49c580
push edi
lea ecx, [ebp - 0x7c]
call fcn.004054e8
mov esi, dword [ebp - 0x7c]
lea eax, [edi + 1]
push eax
push esi
call fcn.00588d03
add esp, 8
cmp edi, dword [esi - 8]
jg 0x49c669
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
xor edi, edi
mov eax, dword [esi - 0xc]
test eax, eax
jle 0x49c5d2
test edi, edi
js 0x49c669
cmp edi, eax
jg 0x49c669
movzx ebx, word [esi + edi*2]
push ebx
call dword [sym.imp.USER32.dll_IsCharLowerW]
test eax, eax
jne 0x49c61d
mov eax, dword [esi - 0xc]
inc edi
cmp edi, eax
jl 0x49c5a8
mov ebx, dword [ebp - 0x80]
add esi, 0xfffffff0
push esi
call fcn.00405ecf
add eax, 0x10
mov dword [ebp - 4], 0xffffffff
mov dword [ebx], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x49c5ff
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
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.0057b6ac
mov esp, ebp
pop ebp
ret
push ebx
call fcn.0049d580
mov ebx, dword [esi - 0xc]
add esp, 4
movzx eax, ax
mov dword [ebp - 0x84], eax
cmp edi, ebx
jge 0x49c669
cmp dword [esi - 4], 1
jle 0x49c64e
push ebx
lea ecx, [ebp - 0x7c]
call fcn.00404f17
mov esi, dword [ebp - 0x7c]
mov eax, dword [ebp - 0x84]
mov word [esi + edi*2], ax
test ebx, ebx
js 0x49c669
cmp ebx, dword [esi - 8]
jg 0x49c669
xor eax, eax
mov dword [esi - 0xc], ebx
mov word [esi + ebx*2], ax
jmp 0x49c5cf
push 0x80070057
call fcn.00404d7e
push 0x80004005
call fcn.00404d7e
int3