Function at 0x4e9920
Capabilities:
Log keystrokes via polling

Disassembly:
push 0xffffffffffffffff
push 0x566127
mov eax, dword fs:[0]
push eax
sub esp, 0x104
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f168c]
xor eax, esp
push eax
lea eax, [esp + 0x118]
mov dword fs:[0], eax
mov ebp, ecx
mov eax, dword [ebp + 0xcc]
mov edx, dword [esp + 0x128]
shr eax, 5
xor ebx, ebx
and al, 1
mov byte [esp + 0x14], 0
mov dword [esp + 0x30], ebx
mov byte [esp + 0x18], al
cmp edx, 0x7b
jne 0x4e9aea
mov ecx, dword [esp + 0x130]
movsx eax, cx
shr ecx, 0x10
xor esi, esi
xor edi, edi
movsx ecx, cx
mov dword [esp + 0x1c], ebx
cmp eax, 0xffffffff
je 0x4e99e7
cmp ecx, 0xffffffff
je 0x4e99e7
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x44]
push ecx
mov ecx, ebp
call fcn.0049dd80
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov eax, dword [ebp + 0x114]
lea edx, [esp + 0x20]
push edx
push ebx
push 0x1111
push eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], edi
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x4e9a40
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x1c], eax
jmp 0x4e9a40
mov eax, dword [ebp + 0x114]
push ebx
push 9
push 0x110a
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x1c], eax
cmp eax, ebx
je 0x4e9a40
mov edx, dword [ebp]
mov edx, dword [edx + 0x3a4]
push 1
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, ebp
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call edx
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x20]
cdq
sub eax, edx
sar eax, 1
add eax, dword [esp + 0x24]
mov edi, eax
mov ecx, dword [0x5fe638]
lea eax, [esp + 0x1c]
push eax
push ebp
push ecx
lea ecx, [esp + 0x90]
call fcn.004fb5a0
mov ecx, dword [ebp + 0x5c]
mov dword [esp + 0x108], esi
mov dword [esp + 0x10c], edi
mov edx, dword [ecx]
mov edx, dword [edx + 0x10]
lea eax, [esp + 0x84]
push eax
mov dword [esp + 0x124], ebx
call edx
test al, al
je 0x4e9a89
mov byte [esp + 0x14], 1
lea ecx, [esp + 0x84]
mov dword [esp + 0x120], 0xffffffff
call fcn.004e97a0
cmp byte [esp + 0x14], 0
jne 0x4e9aca
mov eax, dword [esp + 0x130]
mov ecx, dword [esp + 0x12c]
mov edx, dword [esp + 0x128]
push eax
push ecx
push edx
mov ecx, ebp
call fcn.004a3d30
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x118]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 0xc
lea ecx, [edx - 0x200]
cmp ecx, 0xe
ja 0x4ea0cf
mov eax, dword [esp + 0x130]
movsx edi, ax
lea ecx, [esp + 0x4c]
push ecx
shr eax, 0x10
movsx esi, ax
mov eax, dword [ebp + 0x114]
push ebx
push 0x1111
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, eax
mov eax, dword [esp + 0x128]
add eax, 0xfffffe00
cmp eax, 5
ja case.0x4ea1da.37
jmp dword [eax*4 + 0x4ea360]
test ebx, ebx
je case.0x4ea1da.37
cmp byte [esp + 0x18], 0
je case.0x4ea1da.37
test byte [esp + 0x54], 0x46
je case.0x4ea1da.37
mov eax, dword [esp + 0x12c]
mov dword [ebp + 0x18c], ebx
mov dword [ebp + 0x190], edi
mov dword [ebp + 0x194], esi
test al, 8
je 0x4e9bbe
mov edx, dword [ebp]
mov eax, dword [edx + 0xc8]
mov ecx, ebp
call eax
mov edi, dword [ebp + 0x114]
mov esi, ebx
call fcn.004e78d0
mov esi, dword [ebp + 0x114]
push ebx
call fcn.004e7a10
add esp, 4
mov dword [ebp + 0x188], 0
jmp 0x4e9aca
test al, 4
je 0x4e9c52
cmp dword [ebp + 0x188], 0
jne 0x4e9bf2
mov eax, dword [ebp + 0x114]
push 0
push 9
push 0x110a
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp + 0x188], eax
mov eax, dword [esp + 0x12c]
mov ecx, dword [ebp + 0x188]
test ecx, ecx
je 0x4e9c2b
mov edi, dword [ebp + 0x114]
shr eax, 3
not al
and al, 1
movzx edx, al
push edx
push ebx
push ecx
call fcn.004e78f0
mov esi, dword [ebp + 0x114]
add esp, 0xc
push ebx
call fcn.004e7a10
add esp, 4
jmp 0x4e9aca
mov eax, dword [ebp + 0x114]
push eax
mov cl, 1
mov eax, ebx
call fcn.004e7870
mov esi, dword [ebp + 0x114]
add esp, 4
push ebx
call fcn.004e7a10
add esp, 4
jmp 0x4e9aca
mov edx, dword [ebp]
mov eax, dword [edx + 0xc8]
mov ecx, ebp
call eax
lea ecx, [esp + 0x20]
call fcn.00461400
mov edx, dword [ebp]
mov edx, dword [edx + 0x334]
lea eax, [esp + 0x20]
push eax
mov ecx, ebp
mov dword [esp + 0x124], 1
call edx
test eax, eax
je 0x4e9ca2
cmp eax, 1
ja 0x4e9ca2
mov eax, dword [esp + 0x28]
cmp dword [eax], ebx
jne 0x4e9ca2
mov dword [ebp + 0x18c], 0
jmp 0x4e9cfd
mov ecx, dword [ebp + 0x114]
mov eax, ebx
call fcn.004e7820
test al, al
jne 0x4e9ce9
mov edx, dword [ebp]
mov eax, dword [edx + 0x380]
mov ecx, ebp
call eax
mov eax, dword [ebp + 0x114]
push 0
push 9
push 0x110b
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp + 0x114]
push eax
mov cl, 1
mov eax, ebx
call fcn.004e7870
add esp, 4
mov esi, dword [ebp + 0x114]
push ebx
call fcn.004e7a10
add esp, 4
mov byte [esp + 0x14], 1
lea ecx, [esp + 0x20]
mov dword [ebp + 0x188], 0
mov dword [esp + 0x120], 0xffffffff
call fcn.00461590
jmp 0x4e9aa0
cmp byte [esp + 0x18], 0
je case.0x4ea1da.37
mov ecx, dword [ebp + 0x114]
mov eax, ebx
call fcn.004e7820
test al, al
jne 0x4e9d74
mov edx, dword [ebp]
mov eax, dword [edx + 0x380]
mov ecx, ebp
call eax
mov edx, dword [ebp]
mov edx, dword [edx + 0x384]
push 1
lea eax, [esp + 0x40]
push eax
mov ecx, ebp
mov dword [esp + 0x44], ebx
call edx
mov esi, dword [ebp + 0x114]
push ebx
call fcn.004e7a10
mov esi, dword [esp + 0x20]
add esp, 4
mov eax, dword [esp + 0x12c]
mov ecx, dword [esp + 0x128]
push eax
push esi
push edi
push ecx
mov ecx, ebp
call fcn.004a1240
mov eax, dword [ebp + 0x114]
push 0xfffffffffffffff4
push eax
mov dword [esp + 0x28], eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ebp, dword [ebp + 0x114]
lea edx, [esp + 0x20]
push edx
push eax
push 0x4e
push ebp
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], 0xfffffffb
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4e9aca
cmp dword [ebp + 0x18c], 0
je 0x4e9f22
mov eax, dword [ebp + 0x190]
sub eax, edi
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x194]
sub eax, esi
cdq
xor eax, edx
sub eax, edx
push 0x44
mov dword [esp + 0x1c], eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cmp dword [esp + 0x1c], eax
jg 0x4e9e1c
push 0x45
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cmp dword [esp + 0x18], eax
jle 0x4e9f22
push 0x68
lea eax, [esp + 0x88]
push 0
push eax
call fcn.00507370
mov eax, dword [ebp + 0x114]
add esp, 0xc
push 0xfffffffffffffff4
push eax
mov dword [esp + 0x8c], eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, dword [ebp + 0x18c]
mov edx, dword [ebp + 0x114]
mov dword [esp + 0x88], eax
xor eax, eax
mov dword [esp + 0x60], eax
mov dword [esp + 0xc0], ecx
mov dword [esp + 0x60], ecx
lea ecx, [esp + 0x5c]
push ecx
push eax
push 0x113e
mov dword [esp + 0x68], eax
mov dword [esp + 0x74], eax
push edx
mov dword [esp + 0x9c], 0xfffffe38
mov dword [esp + 0x74], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x6c], 0xc
mov dword [esp + 0x78], 0xffffffff
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x80]
mov dword [esp + 0xc4], eax
mov eax, dword [esp + 0x88]
lea edx, [esp + 0x84]
push edx
mov dword [esp + 0xe4], ecx
mov ecx, dword [ebp + 0x2c]
push eax
mov dword [esp + 0xec], edi
mov dword [esp + 0xf0], esi
mov dword [ebp + 0x18c], 0
mov edx, dword [ecx + 0x114]
push 0x4e
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov byte [esp + 0x14], 1
mov ecx, dword [ebp + 0x180]
test ecx, ecx
je 0x4e9aa0
lea eax, [esp + 0x40]
push eax
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], esi
call fcn.004fb9a0
test ebx, ebx
je 0x4e9aa0
mov ecx, dword [ebp + 0x180]
call fcn.004fba90
mov ecx, dword [ebp + 0x114]
push ebx
push 8
push 0x110b
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp + 0x180]
call fcn.004fba60
jmp 0x4e9aa0
test ebx, ebx
je case.0x4e9b44.517
cmp byte [esp + 0x18], 0
je case.0x4e9b44.517
lea ecx, [esp + 0x20]
call fcn.00461400
mov edx, dword [ebp]
mov edx, dword [edx + 0x334]
lea eax, [esp + 0x20]
push eax
mov ecx, ebp
mov dword [esp + 0x124], 2
call edx
cmp eax, 1
jbe 0x4ea007
test byte [esp + 0x12c], 0xc
jne 0x4ea007
mov eax, dword [ebp]
mov edx, dword [eax + 0x380]
mov ecx, ebp
call edx
mov eax, dword [ebp + 0x114]
push ebx
push 9
push 0x110b
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp + 0x114]
push eax
mov cl, 1
mov eax, ebx
call fcn.004e7870
mov esi, dword [ebp + 0x114]
push ebx
call fcn.004e7a10
mov esi, dword [esp + 0x24]
add esp, 8
lea ecx, [esp + 0x20]
mov dword [ebp + 0x18c], 0
mov dword [esp + 0x120], 0xffffffff
call fcn.00461590
mov ecx, dword [ebp + 0x180]
test ecx, ecx
je case.0x4ea1da.37
call fcn.004fb970
mov ecx, dword [ebp + 0x180]
test ecx, ecx
je 0x4ea04b
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 1
call edx
lea eax, [esp + 0x34]
push eax
mov dword [ebp + 0x180], 0
mov ecx, dword [0x5fe62c]
push ebp
push ecx
lea ecx, [esp + 0x90]
mov dword [esp + 0x40], ebx
call fcn.004fb5a0
mov ecx, dword [ebp + 0x5c]
mov dword [esp + 0x108], edi
mov dword [esp + 0x10c], esi
mov edx, dword [ecx]
mov edx, dword [edx + 0x10]
lea eax, [esp + 0x84]
push eax
mov dword [esp + 0x124], 3
call edx
mov eax, dword [ebp + 0x114]
push 0
push 8
push 0x110b
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [esp + 0x84]
mov dword [esp + 0x120], 0xffffffff
call fcn.004e97a0
jmp case.0x4ea1da.37
cmp edx, 7
je 0x4ea0dd
cmp edx, 8
jne 0x4ea176
test al, al
je 0x4ea176
lea ecx, [esp + 0x20]
call fcn.00461400
mov eax, dword [ebp]
mov edx, dword [eax + 0x334]
lea ecx, [esp + 0x20]
push ecx
mov ecx, ebp
mov dword [esp + 0x124], 4
call edx
mov ebx, eax
xor esi, esi
test ebx, ebx
jbe 0x4ea15d
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
lea esp, [esp]
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + esi*4]
mov eax, dword [ebp + 0x114]
lea edx, [esp + 0x4c]
push edx
push 1
push 0x1104
push eax
mov dword [esp + 0x5c], ecx
call edi
test eax, eax
je 0x4ea158
mov eax, dword [ebp + 0x114]
push 0
lea ecx, [esp + 0x50]
push ecx
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
inc esi
cmp esi, ebx
jb 0x4ea120
lea ecx, [esp + 0x20]
mov dword [esp + 0x120], 0xffffffff
call fcn.00461590
jmp case.0x4ea1da.37
cmp edx, 0x100
jne 0x4ea2ee
test al, al
je case.0x4ea1da.37
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call esi
test ax, ax
push 0x10
setl bl
call esi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 9
test ax, ax
mov eax, dword [ebp + 0x114]
push 0x110a
push eax
setl byte [esp + 0x28]
call edi
mov ecx, dword [esp + 0x12c]
mov esi, eax
lea eax, [ecx - 0x20]
cmp eax, 8
ja case.0x4ea1da.37
movzx edx, byte [eax + 0x4ea388]
jmp dword [edx*4 + 0x4ea378]
test bl, bl
je 0x4ea1f5
mov edi, dword [ebp + 0x114]
call fcn.004e78d0
jmp 0x4e9aca
mov eax, dword [ebp]
mov edx, dword [eax + 0x380]
mov ecx, ebp
call edx
mov eax, dword [ebp + 0x114]
push eax
mov cl, 1
mov eax, esi
call fcn.004e7870
add esp, 4
jmp 0x4e9aca
test bl, bl
jne 0x4ea236
cmp byte [esp + 0x18], bl
jne 0x4ea236
mov edx, dword [ebp]
mov eax, dword [edx + 0x380]
mov ecx, ebp
call eax
jmp case.0x4ea1da.37
test esi, esi
je case.0x4ea1da.37
mov edx, dword [esp + 0x130]
push edx
push ecx
push 0x100
mov ecx, ebp
call fcn.004a3d30
mov eax, dword [ebp + 0x114]
xor ecx, ecx
cmp dword [esp + 0x12c], 0x26
push esi
sete cl
add ecx, 6
push ecx
push 0x110a
push eax
call edi
test eax, eax
jne 0x4ea279
mov eax, esi
cmp byte [esp + 0x18], 0
je 0x4ea2ac
cmp dword [ebp + 0x188], 0
jne 0x4ea28f
mov dword [ebp + 0x188], esi
mov edx, dword [ebp + 0x188]
mov edi, dword [ebp + 0x114]
push 1
push eax
push edx
call fcn.004e78f0
add esp, 0xc
jmp 0x4e9aca
mov esi, dword [ebp + 0x114]
push eax
call fcn.004e7a10
add esp, 4
jmp 0x4e9aca
test bl, bl
jne case.0x4ea1da.37
cmp byte [esp + 0x18], bl
jne case.0x4ea1da.37
mov eax, dword [ebp]
mov edx, dword [eax + 0x380]
mov ecx, ebp
call edx
mov dword [ebp + 0x188], 0
jmp case.0x4ea1da.37
cmp edx, 0x111
jne case.0x4ea1da.37
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x134]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x134]
lea edx, [esp + 0x1c]
push edx
push eax
push ecx
mov ecx, ebp
call fcn.0049d480
mov edx, 0x200
cmp word [esp + 0x18], dx
jne case.0x4ea1da.37
mov ecx, dword [ebp + 0x164]
cmp ecx, ebx
je case.0x4ea1da.37
mov eax, dword [ecx]
mov edx, dword [eax + 0x1d8]
call edx
cmp eax, dword [esp + 0x48]
jne case.0x4ea1da.37
push ebx
mov ecx, ebp
call fcn.004e8c80
jmp 0x4e9aca