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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52428e
mov eax, dword fs:[0]
push eax
sub esp, 0x2ac
mov eax, dword [0x55d184]
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, ecx
mov dword [ebp - 0x230], ebx
mov edi, dword [ebp + 8]
push 0x84
push 0
mov dword [ebp - 0x234], edi
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x224], 0
call fcn.004cbbe0
add esp, 0xc
mov ecx, edi
call fcn.004349c0
mov eax, dword [0x5374b8]
push 0
push 0
push 0x402
push dword [ebx + 4]
mov dword [ebp - 0x18], eax
mov eax, dword [0x5374bc]
mov dword [ebp - 4], 0
mov dword [ebp - 0x224], 1
mov dword [ebp - 0x14], eax
call dword [sym.imp.USER32.dll_SendMessageW]
movzx ebx, ax
mov cx, bx
mov dword [ebp - 0x22c], eax
shr cx, 8
movzx ecx, cx
mov dword [ebp - 0x228], ecx
test al, al
jne 0x4986c0
test cx, cx
je 0x4988ce
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov eax, dword [sym.imp.USER32.dll_GetKeyboardLayout]
test ebx, 0x200
je 0x498768
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.004cbbe0
add esp, 0xc
shl esi, 0x10
lea eax, [ebp - 0x220]
push 0x104
push eax
push esi
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
push 0xffffffffffffffff
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x2b8]
call fcn.00434990
mov dword [ebp - 0x224], 3
lea eax, [ebp - 0x2b8]
mov dword [ebp - 4], 1
push eax
mov ecx, edi
call fcn.00434ed0
lea ecx, [ebp - 0x2b8]
mov byte [ebp - 4], 0
call fcn.00434b40
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.00434ef0
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov eax, dword [sym.imp.USER32.dll_GetKeyboardLayout]
test ebx, 0x100
je 0x4987f7
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.004cbbe0
add esp, 0xc
shl esi, 0x10
lea eax, [ebp - 0x220]
push 0x104
push eax
push esi
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
push 0xffffffffffffffff
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x2b8]
call fcn.00434990
or dword [ebp - 0x224], 4
lea eax, [ebp - 0x2b8]
mov dword [ebp - 4], 2
push eax
mov ecx, edi
call fcn.00434ed0
lea ecx, [ebp - 0x2b8]
mov byte [ebp - 4], 0
call fcn.00434b40
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.00434ef0
test ebx, 0x400
je 0x49888e
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.004cbbe0
add esp, 0xc
shl esi, 0x10
lea eax, [ebp - 0x220]
push 0x104
push eax
push esi
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
push 0xffffffffffffffff
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x2b8]
call fcn.00434990
or dword [ebp - 0x224], 8
lea eax, [ebp - 0x2b8]
mov dword [ebp - 4], 3
push eax
mov ecx, edi
call fcn.00434ed0
lea ecx, [ebp - 0x2b8]
mov byte [ebp - 4], 0
call fcn.00434b40
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.00434ef0
mov eax, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x230]
and eax, 8
push eax
mov eax, dword [ebp - 0x22c]
movzx eax, al
push eax
lea eax, [ebp - 0x2b8]
push eax
call fcn.00498950
push eax
mov ecx, edi
mov dword [ebp - 4], 4
call fcn.00434ed0
lea ecx, [ebp - 0x2b8]
call fcn.00434b40
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.0049be04
mov esp, ebp
pop ebp
ret 4