Function at 0x5e40c0
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov ebx, ecx
mov edi, dword [esi + 4]
mov ebp, 0x100
cmp edi, 0x102
je 0x5e40e7
cmp edi, ebp
je 0x5e40e7
cmp edi, 0x104
jne 0x5e4101
mov eax, dword [esi]
mov ecx, dword [0x89fb2c]
cmp eax, ecx
jne 0x5e4101
mov eax, dword [ebx + 0x3932]
test eax, eax
jne 0x5e45b1
cmp edi, ebp
jne 0x5e41b9
cmp dword [esi + 8], 0x77
jne 0x5e418c
mov eax, dword [ebx + 0x3936]
test eax, eax
jl 0x5e418c
mov ecx, dword [ebx + eax*4 + 0x4a]
test ecx, ecx
je 0x5e414e
cmp word [ebx + eax*2 + 0x4fa], 0
jne 0x5e414e
cmp word [ebx + eax*2 + 0x112], 1
jne 0x5e414e
mov edx, dword [ecx]
push 0
push 0x77
push ebp
call dword [edx + 4]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 4
test eax, eax
jl 0x5e418c
mov ecx, dword [ebx + eax*4 + 0x4a]
test ecx, ecx
je 0x5e418c
cmp word [ebx + eax*2 + 0x4fa], 0
jne 0x5e418c
mov ax, word [ebx + eax*2 + 0x112]
test ax, ax
je 0x5e4178
cmp ax, 0x13
jne 0x5e418c
mov ecx, ebx
call fcn.005e3740
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 4
cmp edi, ebp
jne 0x5e41b9
cmp dword [esi + 8], 8
jne 0x5e41b9
mov eax, dword [ebx + 0x20]
push 0
push 0x84e3
push 0x111
push eax
call dword [fcn.0065f4a0]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 4
cmp edi, 0x104
jne 0x5e4299
mov ecx, dword [esi + 8]
cmp ecx, 0x31
jb 0x5e41d2
cmp ecx, 0x39
jbe 0x5e41db
cmp ecx, 0x30
jne 0x5e4299
mov eax, dword [ebx + 0x3936]
mov dx, word [ebx + eax*2 + 0x112]
test dx, dx
jne 0x5e4240
cmp dword [ebx + eax*4 + 0x4a], 0
je 0x5e4240
cmp ecx, 0x30
push 0
jne 0x5e421d
mov ecx, dword [ebx + 0x20]
push 0x13d7
push 0x111
push ecx
call dword [fcn.0065f4a0]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 4
mov edx, dword [ebx + 0x20]
add ecx, 0x139d
push ecx
push 0x111
push edx
call dword [fcn.0065f4a0]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 4
cmp dx, 0x13
jne 0x5e4299
mov edx, dword [ebx + eax*4 + 0x4a]
test edx, edx
je 0x5e4299
cmp ecx, 0x30
push 0
jne 0x5e4276
mov eax, dword [ebx + 0x20]
push 0x86d0
push 0x111
push eax
call dword [fcn.0065f4a0]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 4
add ecx, 0x8696
push ecx
mov ecx, dword [ebx + 0x20]
push 0x111
push ecx
call dword [fcn.0065f4a0]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 4
cmp edi, 0x102
jne 0x5e42ef
cmp dword [esi + 8], 0x2d
jne 0x5e42bb
mov ecx, ebx
call fcn.005e37b0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 4
cmp edi, 0x102
jne 0x5e42ef
mov ecx, dword [ebx + 0x3916]
lea eax, [ebx + 0x3916]
test ecx, ecx
jne 0x5e42ef
push eax
push ebx
push esi
call fcn.0047f180
add esp, 0xc
test eax, eax
je 0x5e42ef
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 4
mov eax, dword [esi + 4]
mov edi, dword [fcn.0065f5e8]
cmp eax, ebp
jne 0x5e435f
mov eax, dword [esi + 8]
cmp eax, 0x7a
je 0x5e4309
cmp eax, 0x5a
jne 0x5e435f
push 0x11
call edi
test ax, ax
jge 0x5e435f
push 0x10
call edi
test ax, ax
push 0
jge 0x5e433e
mov edx, dword [ebx + 0x20]
push 0x801d
push 0x111
push edx
call dword [fcn.0065f4a0]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 4
mov eax, dword [ebx + 0x20]
push 0x801b
push 0x111
push eax
call dword [fcn.0065f4a0]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 4
cmp dword [esi + 4], ebp
jne 0x5e439d
mov eax, dword [esi + 8]
cmp eax, 0x76
je 0x5e4371
cmp eax, 0x56
jne 0x5e439d
push 0x11
call edi
test ax, ax
jge 0x5e439d
mov ecx, dword [ebx + 0x20]
push 0
push 0x8149
push 0x111
push ecx
call dword [fcn.0065f4a0]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 4
mov eax, dword [esi + 4]
cmp eax, 0xfea
jb 0x5e44b6
cmp eax, 0x101c
ja 0x5e44b6
xor ebp, ebp
cmp word [ebx + 0x48], bp
jle 0x5e44a9
lea edx, [ebx + 0x112]
lea edi, [ebx + 0x4a]
mov dword [esp + 0x18], edx
cmp dword [edi], 0
je 0x5e44a9
mov eax, dword [esp + 0x18]
mov ax, word [eax]
cmp ax, 8
je 0x5e4407
cmp ax, 0x19
je 0x5e4407
cmp ax, 0x16
je 0x5e4407
cmp ax, 0x2c
je 0x5e4407
cmp ax, 0x2d
je 0x5e4407
cmp ax, 0x2f
jne 0x5e448e
mov edx, dword [ebx]
push 0x15
push ebp
mov ecx, ebx
call dword [edx + 0x114]
test eax, eax
je 0x5e448e
mov eax, dword [esp + 0x18]
mov ax, word [eax]
cmp ax, 0x19
jne 0x5e4441
cmp dword [esi + 4], 0xfed
jne 0x5e4441
mov eax, dword [esi + 0xc]
mov ecx, dword [edi]
push eax
mov eax, dword [esi + 8]
mov edx, dword [ecx]
push eax
push 0xfed
jmp 0x5e448b
cmp ax, 0x16
jne 0x5e4463
cmp dword [esi + 4], 0xff1
jne 0x5e4463
mov eax, dword [esi + 0xc]
mov ecx, dword [edi]
push eax
mov eax, dword [esi + 8]
mov edx, dword [ecx]
push eax
push 0xff1
jmp 0x5e448b
cmp ax, 8
je 0x5e447b
cmp ax, 0x2c
je 0x5e447b
cmp ax, 0x2d
je 0x5e447b
cmp ax, 0x2f
jne 0x5e448e
mov eax, dword [esi + 0xc]
mov ecx, dword [edi]
push eax
mov eax, dword [esi + 8]
mov edx, dword [ecx]
push eax
mov eax, dword [esi + 4]
push eax
call dword [edx + 4]
movsx ecx, word [ebx + 0x48]
mov edx, dword [esp + 0x18]
inc ebp
add edx, 2
add edi, 4
cmp ebp, ecx
mov dword [esp + 0x18], edx
jl 0x5e43cf
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 4
mov ecx, dword [0x828a9c]
test ecx, ecx
je 0x5e44c6
push esi
call fcn.0058d160
cmp word [ebx + 0x48], 0
mov dword [esp + 0x10], 0
jle 0x5e45b1
mov edi, dword [fcn.0065f498]
lea edx, [ebx + 0x112]
lea ebp, [ebx + 0x4a]
mov dword [esp + 0x18], edx
mov eax, dword [ebp]
test eax, eax
je 0x5e45b1
mov ecx, dword [esp + 0x18]
mov cx, word [ecx]
cmp cx, 1
jne 0x5e4514
mov edx, dword [eax + 0x21c]
push esi
push 0
push 0x407
jmp 0x5e458b
test cx, cx
jne 0x5e453d
mov eax, dword [eax + 0x161096]
push esi
push 0
push 0x407
push eax
call edi
mov ecx, dword [ebp]
push esi
push 0
push 0x407
mov edx, dword [ecx + 0x16113e]
jmp 0x5e458b
cmp cx, 0x14
jne 0x5e4554
mov eax, dword [eax + 0x1308]
push esi
push 0
push 0x407
push eax
jmp 0x5e458c
cmp cx, 2
je 0x5e4560
cmp cx, 0x10
jne 0x5e4571
mov ecx, dword [eax + 0x6855e]
push esi
push 0
push 0x407
push ecx
jmp 0x5e458c
cmp cx, 0x28
je 0x5e457d
cmp cx, 0x27
jne 0x5e458e
mov edx, dword [eax + 0x1d04]
push esi
push 0
push 0x407
push edx
call edi
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
movsx ecx, word [ebx + 0x48]
inc eax
add edx, 2
add ebp, 4
cmp eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], edx
jl 0x5e44ec
push esi
mov ecx, ebx
call fcn.00643b8e
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4