Function at 0x440f90
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d9055
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x51a3c4]
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 - 0x58], ebx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x5c], edi
cmp dword [edi + 0x18], 0xd
jne 0x44103c
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x10
call esi
test ax, ax
js 0x44103c
cmp byte [ebx + 0x32e], 0
je 0x441305
cmp byte [ebx + 0x32f], 0
je 0x441007
push 0x11
call esi
test ax, ax
js 0x441014
cmp byte [ebx + 0x32f], 0
jne 0x441305
push 0x11
call esi
test ax, ax
js 0x441305
mov ecx, dword [ebx + 0x27c]
test ecx, ecx
je 0x44131c
lea eax, [ebx + 4]
neg ebx
push 0
push 0
sbb ebx, ebx
push 0x29
and ebx, eax
push ebx
call fcn.0040f2d0
jmp 0x44131c
cmp byte [ebx + 0x334], 0
je 0x441305
cmp dword [edi + 0x18], 0x56
jne 0x441305
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x441305
xor eax, eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], eax
call fcn.00442c70
cmp dword [ebp - 0x30], 0
je 0x4412a8
xor edx, edx
mov dword [ebp - 0x28], 0
mov edi, 7
mov dword [ebp - 0x18], edx
xor eax, eax
mov dword [ebp - 0x14], edi
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 1
lea esi, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
mov ebx, dword [ebp - 0x28]
cmovae esi, dword [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
mov eax, dword [ebp - 0x30]
cmovae ecx, dword [ebp - 0x40]
lea eax, [ecx + eax*2]
cmp esi, eax
je 0x44121e
movzx ecx, word [esi]
lea eax, [ecx - 0x30]
cmp ax, 9
ja 0x441216
mov dword [ebp - 0x50], ecx
cmp edx, edi
jae 0x441118
lea eax, [edx + 1]
cmp edi, 8
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
cmovae eax, ebx
mov word [eax + edx*2], cx
xor ecx, ecx
mov word [eax + edx*2 + 2], cx
add esi, 2
mov edi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x28]
jmp 0x4410c0
mov ecx, edx
mov eax, 0x7ffffffe
sub eax, ecx
mov dword [ebp - 0x44], ecx
cmp eax, 1
jb 0x44133a
lea eax, [ecx + 1]
mov edx, edi
mov edi, eax
mov dword [ebp - 0x48], eax
or edi, 7
mov dword [ebp - 0x4c], edx
cmp edi, 0x7ffffffe
jbe 0x44114c
mov edi, 0x7ffffffe
jmp 0x44116a
mov ecx, edx
mov eax, 0x7ffffffe
shr ecx, 1
sub eax, ecx
cmp edx, eax
jbe 0x441162
mov edi, 0x7ffffffe
jmp 0x44116a
lea eax, [edx + ecx]
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 0x28]
call fcn.00408cb0
cmp dword [ebp - 0x4c], 8
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x14], edi
lea edx, [ecx + ecx]
lea ecx, [edx + eax]
mov dword [ebp - 0x44], ecx
push edx
jb 0x4411f1
push ebx
push eax
call fcn.004a88a0
mov eax, dword [ebp - 0x44]
add esp, 0xc
mov ecx, dword [ebp - 0x50]
mov word [eax], cx
xor ecx, ecx
mov word [eax + 2], cx
mov eax, dword [ebp - 0x4c]
lea ecx, [eax*2 + 2]
mov eax, ebx
cmp ecx, 0x1000
jb 0x4411d6
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44133f
push ecx
push ebx
call fcn.004a42a7
mov ebx, dword [ebp - 0x54]
add esp, 8
mov edx, dword [ebp - 0x48]
add esi, 2
mov dword [ebp - 0x28], ebx
jmp 0x4410c0
lea ecx, [ebp - 0x28]
push ecx
push eax
call fcn.004a88a0
mov eax, dword [ebp - 0x44]
add esp, 0xc
mov ecx, dword [ebp - 0x50]
mov ebx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x48]
mov word [eax], cx
xor ecx, ecx
mov word [eax + 2], cx
mov dword [ebp - 0x28], ebx
add esi, 2
jmp 0x4410c0
test edx, edx
jne 0x44125c
cmp edi, 8
jb 0x4412cd
lea edi, [edi*2 + 2]
mov eax, ebx
cmp edi, 0x1000
jb 0x441250
mov ebx, dword [ebx - 4]
add edi, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44133f
push edi
push ebx
call fcn.004a42a7
add esp, 8
jmp 0x4412cd
lea ecx, [ebp - 0x28]
call fcn.00442e10
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4412a2
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x441298
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44133f
push edx
push ecx
call fcn.004a42a7
add esp, 8
mov edi, dword [ebp - 0x5c]
mov ebx, dword [ebp - 0x58]
mov eax, dword [ebx]
mov ecx, ebx
push 0
push dword [edi + 0x1c]
push dword [edi + 0x18]
push 0x100
call dword [eax + 0x17c]
cmp dword [ebp - 0x30], 0
je 0x4412cd
lea ecx, [ebp - 0x40]
call fcn.00442e10
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x44131c
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4412f9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44133f
push edx
push ecx
call fcn.004a42a7
add esp, 8
jmp 0x44131c
mov eax, dword [ebx]
mov ecx, ebx
push 0
push dword [edi + 0x1c]
push dword [edi + 0x18]
push 0x100
call dword [eax + 0x17c]
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.004a44be
mov esp, ebp
pop ebp
ret 4
call fcn.00408b50
call fcn.004aba7f
int3