Function at 0x4ec0fa
Capabilities:
Log keystrokes via polling

Disassembly:
push 0x20
mov eax, 0x646ec5
call fcn.0060eb69
mov ebx, dword [ebp + 8]
xor edi, edi
test ebx, ebx
jne 0x4ec114
mov dword [ebp - 0x24], edi
jmp 0x4ec11a
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
call dword [sym.imp.USER32.dll_GetFocus]
push eax
mov dword [ebp - 0x28], eax
call fcn.004c741b
mov esi, eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], esi
cmp eax, 0x100
jb 0x4ec148
cmp eax, 0x109
jbe 0x4ec156
add eax, 0xfffffe00
cmp eax, 9
ja 0x4ec270
test esi, esi
je 0x4ec270
cmp dword [esi + 0x74], edi
jne 0x4ec18b
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.004c741b
cmp eax, ebx
je 0x4ec18b
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.004c741b
mov esi, eax
test esi, esi
jne 0x4ec15e
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x4ec1c0
mov ecx, dword [esi + 0x74]
test ecx, ecx
je 0x4ec1c0
mov ecx, dword [ecx + 0x58]
test ecx, ecx
je 0x4ec1c0
mov eax, dword [ecx]
push dword [ebp + 0xc]
push ecx
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x658b20]
call esi
test eax, eax
jne 0x4ec1bd
inc eax
jmp 0x4ec31e
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
cmp eax, 0x101
je 0x4ec1d8
cmp eax, 0x100
je 0x4ec1d8
cmp eax, 0x102
jne 0x4ec213
test esi, esi
je 0x4ec213
mov edx, dword [esi + 0x74]
test edx, edx
je 0x4ec213
mov eax, dword [ebp + 0xc]
push 0xd
pop ecx
movzx esi, word [eax + 8]
cmp si, cx
jne 0x4ec1fb
test byte [edx + 0x84], 1
jne 0x4ec20c
push 0x1b
pop ecx
cmp si, cx
jne 0x4ec216
test byte [edx + 0x84], 2
je 0x4ec216
xor eax, eax
jmp 0x4ec31e
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp - 0x14]
push dword [eax]
call fcn.004c741b
mov ecx, dword [ebp - 0x18]
mov edx, eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edi
sub ecx, 0x100
je 0x4ec326
dec ecx
sub ecx, 1
je 0x4ec275
sub ecx, 4
jne 0x4ec36d
test esi, esi
jne 0x4ec25e
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4ec36d
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp + 0xc]
push 0x20
pop eax
cmp word [esi + 8], ax
je 0x4ec370
jmp 0x4ec278
mov eax, dword [ebp + 0xc]
jmp 0x4ec219
mov esi, dword [ebp + 0xc]
push esi
push edx
call fcn.004ecb8c
cmp dword [ebp - 0x18], 0x102
jne 0x4ec290
test al, 0x84
jne 0x4ec370
movzx ecx, word [esi + 8]
push 9
pop edx
cmp cx, dx
jne 0x4ec2a4
test al, 2
jne 0x4ec370
push 0x20
pop eax
cmp cx, ax
je 0x4ec20c
push esi
push dword [ebp - 0x1c]
push ebx
call fcn.004ecbbc
test eax, eax
je 0x4ec370
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4ec370
push esi
call fcn.004eaad5
xor edi, edi
inc edi
mov esi, dword [ebp - 0x14]
push dword [ebp - 0x28]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4ec31c
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call fcn.004c741b
push eax
push esi
call fcn.004ec76b
pop ecx
pop ecx
push dword [ebp - 0x24]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4ec31c
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call fcn.004c741b
push eax
push esi
push ebx
call fcn.004ec7f8
mov eax, edi
call fcn.0060eac7
ret 8
push dword [ebp + 0xc]
push edx
call fcn.004ecb8c
mov edx, eax
mov eax, dword [ebp + 0xc]
push 0x1b
movzx ecx, word [eax + 8]
movzx esi, cx
mov dword [ebp - 0x18], ecx
pop ecx
cmp si, cx
ja 0x4ec44f
je 0x4ec4ad
cmp esi, 3
je 0x4ec4ad
push 9
pop eax
cmp si, ax
je 0x4ec3c0
push 0xd
pop eax
cmp si, ax
je 0x4ec478
mov esi, dword [ebp + 0xc]
test dword [ebx + 0x60], 0x1000
jne 0x4ec2d6
push esi
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_IsDialogMessageW]
mov edi, eax
test edi, edi
je 0x4ec2d6
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call fcn.004c741b
mov esi, dword [ebp - 0x14]
cmp eax, esi
je 0x4ec2d9
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call fcn.004c741b
push eax
call fcn.004ec6f0
pop ecx
jmp 0x4ec2d9
test dl, 2
jne 0x4ec36d
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
xor ecx, ecx
test ax, ax
sets cl
push ecx
mov dword [ebp - 0x18], ecx
mov ecx, ebx
push edi
call fcn.004ccb73
mov ecx, eax
test ecx, ecx
je 0x4ec36d
mov eax, dword [ecx + 4]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x4ec40e
mov eax, dword [eax]
push dword [ebp + 0xc]
mov esi, dword [eax + 0xac]
mov ecx, esi
call dword [0x658b20]
mov ecx, dword [ebp - 0x20]
call esi
jmp 0x4ec2d3
cmp dword [ecx], 0
je 0x4ec41c
push dword [ecx]
call fcn.004c741b
jmp 0x4ec429
push dword [ebp - 0x18]
mov ecx, ebx
push dword [ebp - 0x1c]
call fcn.004cdca5
mov esi, eax
test esi, esi
je 0x4ec2d3
mov eax, dword [ebx + 0x70]
push esi
mov dword [eax + 0x70], edi
call fcn.004ec8d6
push esi
push dword [ebp - 0x14]
call fcn.004ec76b
pop ecx
pop ecx
jmp 0x4ec2d3
cmp esi, 0x25
jb 0x4ec619
push 0x26
pop ecx
cmp cx, si
jae 0x4ec522
cmp esi, 0x28
jbe 0x4ec51f
cmp word [ebp - 0x18], 0x2b
jne 0x4ec619
test dl, 4
jne 0x4ec36d
mov esi, dword [ebp - 0x14]
push esi
call fcn.004ec0b0
pop ecx
test al, 0x10
je 0x4ec49e
mov ecx, esi
mov dword [ebp - 0x20], esi
call fcn.004cc97a
mov dword [ebp - 0x1c], eax
jmp 0x4ec4a4
push ebx
call fcn.004ecda1
mov esi, dword [ebp - 0x20]
test esi, esi
jne 0x4ec4c1
jmp 0x4ec4b0
push 2
pop eax
push eax
push ebx
call fcn.004ec907
mov esi, eax
test esi, esi
je 0x4ec36d
mov ecx, esi
call fcn.004ccf46
test eax, eax
jne 0x4ec4d8
push edi
call dword [sym.imp.USER32.dll_MessageBeep]
jmp 0x4ec36d
cmp dword [esi + 0x74], edi
je 0x4ec36d
push edi
push edi
push edi
mov dword [ebp - 4], edi
xor edi, edi
inc edi
push edi
push 0xfffffdd9
push esi
call fcn.004cce90
add esp, 0x18
or dword [ebp - 4], 0xffffffff
jmp 0x4ec2d6
cmp cx, si
sbb ecx, ecx
push eax
push dword [ebp - 0x14]
inc ecx
mov dword [ebp - 0x1c], ecx
call fcn.004ecb8c
test al, 1
jne 0x4ec36d
push 0x26
pop eax
mov ecx, ebx
push edi
cmp si, ax
ja 0x4ec54b
call fcn.004ccd38
jmp 0x4ec550
call fcn.004ccb23
mov esi, eax
test esi, esi
je 0x4ec36d
cmp dword [esi + 8], edi
je 0x4ec567
push esi
mov ecx, ebx
call fcn.004cd190
mov eax, dword [esi + 4]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x4ec58c
mov eax, dword [eax]
push dword [ebp + 0xc]
mov esi, dword [eax + 0xac]
mov ecx, esi
call dword [0x658b20]
mov ecx, dword [ebp - 0x20]
jmp 0x4ec407
cmp dword [esi], 0
je 0x4ec59f
push dword [esi]
call fcn.004c741b
mov ecx, eax
mov dword [ebp - 0x18], ecx
jmp 0x4ec5b1
push dword [ebp - 0x1c]
mov ecx, ebx
push dword [ebp - 0x14]
call fcn.004ec0d6
mov ecx, eax
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4ec36d
mov eax, dword [ebx + 0x70]
push ecx
mov dword [eax + 0x70], edi
call fcn.004ec8d6
cmp dword [esi + 8], edi
je 0x4ec2d3
mov eax, dword [ebp - 0x18]
push 0xfffffffffffffff4
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push edi
xor edi, edi
mov esi, eax
mov eax, dword [ebp - 0x18]
inc edi
push edi
push 0xf1
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x18]
push dword [eax + 0x20]
movzx eax, si
push eax
push 0x111
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [ebp - 0x18]
call fcn.004ec8d6
jmp 0x4ec2d6
mov esi, eax
jmp 0x4ec370