Function at 0x40ad20
Capabilities:
Log keystrokes via polling

Disassembly:
push 0xffffffffffffffff
push 0x4d1700
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov ebx, ecx
push 0x10
mov dword [esp + 0x24], ebx
call dword [0x4d686c]
test ah, 0x80
je 0x40ad69
mov ecx, ebx
call fcn.0040b4f0
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
add esp, 0x58
ret
mov eax, dword [ebx + 0xd0]
mov edi, dword [0x4d67a0]
xor ebp, ebp
push ebp
push ebp
push 0x1032
push eax
call edi
mov esi, eax
cmp esi, 1
jl 0x40b22e
push 0x20
lea ecx, [esp + 0x28]
call fcn.004196c0
mov dword [esp + 0x24], vtable.DirTable.0
cmp esi, 1
mov dword [esp + 0x64], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x18], ebp
jne 0x40afa9
lea esi, [ebx + 0x1b88]
mov ecx, esi
call fcn.0042d8d0
mov ecx, dword [ebx + 0xd0]
push 1
push 0xffffffffffffffff
push 0x100c
push ecx
mov ebp, eax
call edi
mov edx, dword fs:[0x2c]
mov dword [esp + 0x14], eax
mov eax, dword [0x4f83ec]
mov ecx, dword [edx + eax*4]
mov al, byte [ecx + 0x224]
test al, al
je 0x40aef4
mov ecx, ebp
call fcn.00425d40
test eax, eax
jne 0x40aef4
mov edx, dword [ebx + 0xd0]
push eax
push eax
push 0x1004
push edx
call edi
mov ebp, eax
xor edi, edi
test ebp, ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x10], edi
jle 0x40b0f5
push edi
lea ecx, [ebx + 0x1b88]
call fcn.0042d830
mov esi, eax
test esi, esi
mov dword [esp + 0x1c], esi
je 0x40aee2
push 1
mov ecx, esi
call fcn.004263f0
test eax, eax
je 0x40aee2
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
cmp edi, eax
jne 0x40ae64
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x30]
lea edx, [eax + 1]
cmp ecx, edx
jne 0x40aed2
mov ecx, dword [esp + 0x38]
add ecx, eax
lea edx, [ecx*4 + 4]
push edx
call fcn.004bd49b
mov ebp, eax
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x2c]
mov edi, ebp
lea ecx, [eax*4 + 4]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x2c]
push eax
call fcn.004bd4c4
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x18]
add esp, 8
add eax, ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x28], ebp
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x30], eax
mov edx, dword [esp + 0x28]
mov dword [edx + ecx*4], esi
mov eax, dword [esp + 0x2c]
inc eax
mov dword [esp + 0x2c], eax
inc edi
cmp edi, ebp
mov dword [esp + 0x10], edi
jl 0x40ae29
jmp 0x40b0f5
mov eax, dword [esp + 0x14]
mov ecx, esi
push eax
call fcn.0042d830
mov esi, eax
test esi, esi
mov dword [esp + 0x20], esi
je 0x40b0f5
push 1
mov ecx, esi
call fcn.004263f0
test eax, eax
jne 0x40af2a
mov ecx, esi
call fcn.00425d40
test eax, eax
je 0x40b0f5
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
lea ecx, [eax + 1]
cmp edx, ecx
jne 0x40af90
mov edx, dword [esp + 0x38]
add edx, eax
lea eax, [edx*4 + 4]
push eax
call fcn.004bd49b
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x2c]
mov ebp, eax
lea ecx, [ecx*4 + 4]
mov edi, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x2c]
push eax
call fcn.004bd4c4
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x28]
add esp, 8
add eax, ecx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x30], eax
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov dword [edx + eax*4], esi
mov eax, dword [esp + 0x2c]
inc eax
mov dword [esp + 0x2c], eax
jmp 0x40b0f5
push 0x80
mov dword [esp + 0x44], vtable.Table_char_.0
call fcn.004bd49b
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], 0x1f
mov dword [esp + 0x54], 0x40
or ebp, 0xffffffff
mov byte [esp + 0x64], 1
test esi, esi
mov dword [esp + 0x50], 1
jle 0x40b0e7
mov dword [esp + 0x14], esi
mov ecx, dword [ebx + 0xd0]
push 2
push ebp
push 0x100c
push ecx
call edi
mov edx, dword [ebx + 0xd0]
mov ebp, eax
push 1
push ebp
push 0x102c
push edx
call edi
push ebp
lea ecx, [ebx + 0x1b88]
call fcn.0042d830
mov esi, eax
test esi, esi
mov dword [esp + 0x1c], esi
je 0x40b0d4
push 1
mov ecx, esi
call fcn.004263f0
test eax, eax
jne 0x40b050
mov ecx, esi
call fcn.00425d40
test eax, eax
je 0x40b0d4
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
lea ecx, [eax + 1]
cmp edx, ecx
jne 0x40b0c0
mov edx, dword [esp + 0x38]
add edx, eax
lea eax, [edx*4 + 4]
push eax
call fcn.004bd49b
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x2c]
mov ebx, eax
lea ecx, [ecx*4 + 4]
mov edi, ebx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x2c]
push eax
call fcn.004bd4c4
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x24]
mov edi, dword [0x4d67a0]
add esp, 8
add eax, ecx
mov dword [esp + 0x28], ebx
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x30], eax
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov dword [edx + eax*4], esi
mov eax, dword [esp + 0x2c]
inc eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x14]
dec eax
mov dword [esp + 0x14], eax
jne 0x40aff6
mov eax, dword [esp + 0x10]
push eax
mov byte [esp + 0x68], 0
call fcn.004bd4c4
add esp, 4
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x40b172
mov ecx, dword [0x4ed220]
mov edx, dword [ebx + 0xcc]
mov eax, dword [ebx + 0x144]
push 0
push ecx
push 0x208
push edx
push eax
call fcn.00471450
mov eax, dword [esp + 0x48]
add esp, 0x14
test eax, eax
mov dword [esp + 0x64], 0xffffffff
mov dword [esp + 0x24], vtable.Table_class_DirEntry_.0
je 0x40b221
mov eax, dword [esp + 0x2c]
xor esi, esi
test eax, eax
jle 0x40b221
cmp esi, eax
jge 0x40b168
test esi, esi
jl 0x40b168
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx + esi*4]
test ecx, ecx
je 0x40b168
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, dword [esp + 0x2c]
inc esi
cmp esi, eax
jl 0x40b14f
jmp 0x40b221
lea esi, [ebx + 0x1b88]
mov ecx, esi
call fcn.0042d420
mov ecx, dword fs:[0x2c]
mov edx, dword [0x4f83ec]
mov eax, dword [ecx + edx*4]
xor ecx, ecx
mov edx, dword [eax + 0x290]
lea eax, [esp + 0x24]
cmp edx, 2
mov edx, dword [esp + 0x18]
sete cl
push ecx
push edx
push eax
mov ecx, ebx
call fcn.00417260
test eax, eax
jne 0x40b1dd
mov ecx, dword [0x4ed220]
mov edx, dword [ebx + 0xcc]
push eax
mov eax, dword [ebx + 0x144]
push ecx
push 0x207
push edx
push eax
call fcn.00471450
add esp, 0x14
mov ecx, esi
call fcn.0042d4d0
mov eax, dword [esp + 0x34]
mov dword [esp + 0x64], 0xffffffff
test eax, eax
mov dword [esp + 0x24], vtable.Table_class_DirEntry_.0
je 0x40b221
mov eax, dword [esp + 0x2c]
xor esi, esi
test eax, eax
jle 0x40b221
cmp esi, eax
jge 0x40b21c
test esi, esi
jl 0x40b21c
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx + esi*4]
test ecx, ecx
je 0x40b21c
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, dword [esp + 0x2c]
inc esi
cmp esi, eax
jl 0x40b203
mov eax, dword [esp + 0x28]
push eax
call fcn.004bd4c4
add esp, 4
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret