Function at 0x4fe610
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov ecx, dword [0x5f3a64]
test ecx, ecx
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ebx, ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esi
je 0x4fe6ec
call fcn.0051d0d0
mov edi, eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], esi
mov edx, dword [edi + 0x68]
push ecx
push edx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
sub esi, dword [edi + 0x118]
push 0x17
mov dword [ebp - 0xc], eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x4fe672
push 2
jmp 0x4fe674
push 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx eax, ax
shr eax, 0xf
test al, 1
je 0x4fe833
mov edx, dword [ebx]
mov eax, dword [ebp - 0x18]
mov edx, dword [edx + 0x34]
push esi
push eax
mov ecx, ebx
call edx
cmp ebx, dword [0x5f3a64]
jne 0x4fe833
call fcn.0051e080
test al, al
jne 0x4fe833
call fcn.004feca0
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
lea esi, [ebp - 0x10]
mov ecx, ebx
mov dword [ebp - 0x10], edx
call fcn.0051e160
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebx]
mov edx, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push ecx
push edx
mov ecx, ebx
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, dword [0x5faab0]
jne 0x4fe700
cmp esi, dword [0x5faab4]
je 0x4fe833
push esi
push eax
mov dword [0x5faab0], eax
mov dword [0x5faab4], esi
mov dword [ebp - 8], eax
mov dword [ebp - 4], esi
call dword [sym.imp.USER32.dll_WindowFromPoint]
mov esi, dword [sym.imp.USER32.dll_GetParent]
mov ebx, dword [sym.imp.USER32.dll_GetWindowLongW]
mov edi, eax
call fcn.0041a360
test al, al
push 0xfffffffffffffff0
push edi
je 0x4fe737
call ebx
jmp 0x4fe73d
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x40000000
je 0x4fe750
push edi
call esi
test eax, eax
je 0x4fe750
push edi
call esi
jmp 0x4fe725
mov ecx, dword [0x5f3a6c]
xor edx, edx
cmp edi, edx
je 0x4fe814
cmp ecx, edx
je 0x4fe783
cmp edi, ecx
je 0x4fe783
call fcn.0055af30
cmp eax, edx
mov dword [0x5f3a6c], edx
je 0x4fe783
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x200]
call eax
mov esi, dword [0x5f4894]
test esi, esi
je 0x4fe833
cmp dword [esi + 0x68], edi
je 0x4fe7a7
mov esi, dword [esi + 0x90]
test esi, esi
jne 0x4fe791
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00486d80
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 4]
sub ebx, dword [esi + 0x118]
test eax, eax
mov dword [ebp - 0xc], eax
jl 0x4fe833
cmp eax, dword [esi + 0x1c]
jge 0x4fe833
test ebx, ebx
jl 0x4fe833
cmp ebx, dword [esi + 0x20]
jge 0x4fe833
cmp dword [0x5f3a6c], 0
jne 0x4fe7ff
mov edx, dword [esi]
mov eax, dword [edx + 0x1fc]
mov ecx, esi
mov dword [0x5f3a6c], edi
call eax
mov edx, dword [esi]
mov eax, dword [ebp - 0xc]
mov edx, dword [edx + 0x38]
push ebx
push eax
mov ecx, esi
call edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ecx, edx
je 0x4fe833
call fcn.0055af30
cmp eax, edx
mov dword [0x5f3a6c], edx
je 0x4fe833
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x200]
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret