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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47b12e
mov eax, dword fs:[0]
push eax
sub esp, 0x2ac
mov eax, dword [0x49a324]
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.004619b0
add esp, 0xc
mov ecx, edi
call fcn.0040ba40
mov eax, dword [0x4875f0]
push 0
push 0
push 0x402
push dword [ebx + 4]
mov dword [ebp - 0x18], eax
mov eax, dword [0x4875f4]
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 0x45ae10
test cx, cx
je 0x45b01e
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov eax, dword [sym.imp.USER32.dll_GetKeyboardLayout]
test ebx, 0x200
je 0x45aeb8
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.004619b0
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.0040ba10
mov dword [ebp - 0x224], 3
lea eax, [ebp - 0x2b8]
mov dword [ebp - 4], 1
push eax
mov ecx, edi
call fcn.0040bf40
lea ecx, [ebp - 0x2b8]
mov byte [ebp - 4], 0
call fcn.0040bba0
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.0040bf60
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov eax, dword [sym.imp.USER32.dll_GetKeyboardLayout]
test ebx, 0x100
je 0x45af47
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.004619b0
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.0040ba10
or dword [ebp - 0x224], 4
lea eax, [ebp - 0x2b8]
mov dword [ebp - 4], 2
push eax
mov ecx, edi
call fcn.0040bf40
lea ecx, [ebp - 0x2b8]
mov byte [ebp - 4], 0
call fcn.0040bba0
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.0040bf60
test ebx, 0x400
je 0x45afde
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.004619b0
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.0040ba10
or dword [ebp - 0x224], 8
lea eax, [ebp - 0x2b8]
mov dword [ebp - 4], 3
push eax
mov ecx, edi
call fcn.0040bf40
lea ecx, [ebp - 0x2b8]
mov byte [ebp - 4], 0
call fcn.0040bba0
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.0040bf60
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.0045b0a0
push eax
mov ecx, edi
mov dword [ebp - 4], 4
call fcn.0040bf40
lea ecx, [ebp - 0x2b8]
call fcn.0040bba0
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.0045ecfc
mov esp, ebp
pop ebp
ret 4