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

Disassembly:
sub esp, 0x118
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x840]
xor esi, esi
cmp eax, esi
mov dword [esp + 0x1c], esi
jge 0x4bd0a8
xor ebp, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], esi
jmp 0x4bd0cf
push eax
lea ecx, [edi + 0x84c]
call fcn.0051ec55
cmp eax, esi
mov dword [esp + 0x10], eax
mov ebp, eax
jne 0x4bd0c4
mov dword [esp + 0x18], esi
jmp 0x4bd0cf
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 8]
mov dword [esp + 0x18], ecx
mov esi, dword [esp + 0x12c]
cmp esi, 9
mov ebx, dword [edi + 0x840]
mov dword [esp + 0x14], ebx
jne 0x4bd0fb
push 0x10
call dword [sym.imp.user32.dll_GetKeyState]
and al, 0x80
neg al
sbb eax, eax
and eax, 0xfffffffe
add eax, 0x28
mov esi, eax
lea eax, [esi - 0xd]
cmp eax, 0x1b
ja case.0x4bd10e.14
movzx edx, byte [eax + 0x4bd4dc]
jmp dword [edx*4 + 0x4bd4c4]
mov eax, dword [esp + 0x18]
push eax
push 0x5a4570
mov dword [esp + 0x24], 1
call fcn.00526a01
mov esi, eax
add esp, 8
test esi, esi
je 0x4bd418
mov edx, dword [esi]
push 0
mov ecx, esi
call dword [edx + 0xb8]
test eax, eax
jne 0x4bd418
mov ecx, edi
call fcn.0045b818
mov eax, dword [eax + 0x1c]
push 0
push 0xe001
push 0x362
push eax
call dword [sym.imp.user32.dll_SendMessageA]
mov edx, dword [edi]
push esi
mov ecx, edi
call dword [edx + 0x354]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret 4
mov dword [esp + 0x10], 0
mov ebp, dword [esp + 0x10]
mov eax, dword [edi + 0x858]
test eax, eax
mov dword [esp + 0x1c], 1
je 0x4bd418
test ebp, ebp
je 0x4bd1b3
mov esi, dword [ebp]
test esi, esi
jne 0x4bd1bd
mov esi, dword [edi + 0x850]
xor ebx, ebx
jmp 0x4bd1be
inc ebx
cmp esi, ebp
je 0x4bd418
test esi, esi
mov ebp, esi
mov eax, esi
je 0x4bd367
mov eax, dword [eax + 8]
test byte [eax + 0xc], 1
mov esi, dword [esi]
jne 0x4bd1eb
add eax, 0x30
push eax
call dword [sym.imp.user32.dll_IsRectEmpty]
test eax, eax
je 0x4bd1fe
inc ebx
test esi, esi
jne 0x4bd1f8
mov esi, dword [edi + 0x850]
xor ebx, ebx
cmp esi, dword [esp + 0x10]
jne 0x4bd1c6
test ebp, ebp
je 0x4bd418
mov ebp, dword [ebp + 8]
jmp 0x4bd3bb
mov dword [esp + 0x10], 0
mov ebp, dword [esp + 0x10]
mov eax, dword [edi + 0x858]
test eax, eax
mov dword [esp + 0x1c], 1
je 0x4bd418
test ebp, ebp
mov dword [esp + 0x14], ebp
je 0x4bd250
lea eax, [esp + 0x14]
push eax
lea ecx, [edi + 0x84c]
call fcn.00495e20
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x4bd25c
mov esi, dword [edi + 0x854]
mov ebx, dword [edi + 0x858]
dec ebx
cmp esi, ebp
je 0x4bd418
test esi, esi
mov ebp, esi
mov eax, esi
je 0x4bd367
mov eax, dword [eax + 8]
test byte [eax + 0xc], 1
mov esi, dword [esi + 4]
jne 0x4bd28f
add eax, 0x30
push eax
call dword [sym.imp.user32.dll_IsRectEmpty]
test eax, eax
je 0x4bd1fe
dec ebx
test esi, esi
jne 0x4bd2a1
mov ebx, dword [edi + 0x858]
mov esi, dword [edi + 0x854]
dec ebx
cmp esi, dword [esp + 0x10]
jne 0x4bd265
jmp 0x4bd1fe
mov eax, dword [0x5a7ec4]
xor ebp, ebp
cmp eax, ebp
jne 0x4bd418
push 0x11
call dword [sym.imp.user32.dll_GetAsyncKeyState]
test ah, ah
js 0x4bd418
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x14], ebp
call dword [sym.imp.user32.dll_GetKeyboardState]
call fcn.00525e10
mov edx, dword [eax + 0x2c]
push edx
call dword [sym.imp.user32.dll_GetKeyboardLayout]
push eax
push 1
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x34]
push ecx
push ebp
push esi
call dword [sym.imp.user32.dll_MapVirtualKeyA]
push eax
push esi
call dword [sym.imp.user32.dll_ToAsciiEx]
xor edx, edx
test eax, eax
setg dl
mov eax, edx
cmp eax, ebp
je 0x4bd475
push esi
call fcn.004a7760
mov esi, eax
add esp, 4
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x24]
push ecx
lea ecx, [edi + 0x9c4]
mov dword [esp + 0x28], esi
call fcn.00542210
test eax, eax
je 0x4bd475
mov eax, dword [edi + 0x850]
mov ebp, dword [esp + 0x24]
xor edx, edx
test eax, eax
je 0x4bd372
test eax, eax
mov ecx, eax
je 0x4bd367
cmp dword [ecx + 8], ebp
mov eax, dword [eax]
je 0x4bd36c
inc edx
test eax, eax
jne 0x4bd353
jmp 0x4bd372
call fcn.0051c508
mov ebx, edx
mov dword [esp + 0x14], ebx
push ebp
push 0x5a4570
call fcn.00526a01
mov esi, eax
add esp, 8
test esi, esi
je 0x4bd3bb
mov edx, dword [esi]
push 0
mov ecx, esi
call dword [edx + 0xb8]
test eax, eax
je 0x4bd429
mov esi, dword [esi + 0x8c]
test esi, esi
je 0x4bd3b7
mov eax, dword [esi + 0x1c]
push 0
push 0x24
push 0x100
push eax
call dword [sym.imp.user32.dll_SendMessageA]
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
cmp ebp, eax
je 0x4bd418
mov ecx, dword [0x5a7ec4]
test ecx, ecx
je 0x4bd3d3
mov dword [edi + 0x844], ebx
test eax, eax
mov esi, dword [sym.imp.user32.dll_InvalidateRect]
mov dword [edi + 0x840], ebx
je 0x4bd3ef
mov edx, dword [edi + 0x1c]
push 1
add eax, 0x30
push eax
push edx
call esi
mov ecx, dword [edi + 0x1c]
push 1
lea eax, [ebp + 0x30]
push eax
push ecx
call esi
mov edx, dword [edi + 0x1c]
push edx
call dword [sym.imp.user32.dll_UpdateWindow]
mov eax, dword [ebp + 8]
cmp eax, 0xffffffff
je 0x4bd418
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x37c]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret 4
test dword [ebp + 0xc], 0x40000
mov ecx, edi
je 0x4bd44e
push ebp
push 0
call fcn.004bbff0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x118
ret 4
mov edx, dword [edi]
push esi
call dword [edx + 0x354]
test eax, eax
mov dword [esp + 0x1c], eax
je 0x4bd3b7
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x118
ret 4
cmp dword [0x5a465c], ebp
je 0x4bd418
cmp dword [edi + 0xa30], ebp
jne 0x4bd418
lea eax, [esp + 0x18]
push eax
push esi
lea ecx, [edi + 0xa4c]
mov dword [esp + 0x20], ebp
call fcn.004bca30
test eax, eax
je 0x4bd418
mov ecx, dword [esp + 0x18]
push ebp
push ecx
mov ecx, edi
call fcn.004bbff0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x118
ret 4