Function at 0x5f8660
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x5f8ade
push dword fs:[edx]
mov dword fs:[edx], esp
cmp byte [0x64ef70], 0
je 0x5f8696
mov dword [ebp - 0xc], 1
call fcn.0050451c
jmp 0x5f8ae5
cmp dword [ebp + 0xc], 0xe5
jne 0x5f86a9
call fcn.0050451c
jmp 0x5f8ae5
cmp dword [ebp + 8], 0
jl 0x5f8aa0
cmp byte [0x64efac], 0
je 0x5f86e9
mov eax, dword [ebp + 0xc]
cmp eax, dword [0x64efb0]
jne 0x5f86e9
mov eax, dword [ebp + 0x10]
shr eax, 0x1f
test al, 1
je 0x5f86e9
mov byte [0x64efac], 0
mov dword [ebp - 0xc], 1
call fcn.0050451c
jmp 0x5f8ae5
call fcn.005f1a4c
test eax, eax
je 0x5f87e6
call fcn.005f1a4c
call fcn.0060b0f4
cmp byte [eax + 0x4e], 0
jne 0x5f87e6
call fcn.005f1a4c
mov edx, dword [eax]
call dword [edx + 0xf4]
test al, al
jne 0x5f87b5
call fcn.005f1a4c
mov edi, eax
mov esi, dword [edi + 0x25c]
mov eax, esi
mov edx, dword [0x5efba4]
call fcn.00503d64
test al, al
je 0x5f8747
cmp byte [esi + 0x2c], 0
jne 0x5f87e6
mov eax, dword [ebp + 0x10]
shr eax, 0x1f
test al, 1
sete bl
test bl, bl
je 0x5f8765
mov byte [0x64efac], 1
mov eax, dword [ebp + 0xc]
mov dword [0x64efb0], eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
xor eax, eax
mov al, bl
mov eax, dword [eax*4 + 0x64987c]
push eax
mov eax, edi
call fcn.0056ef90
push eax
call sub.user32.dll_SendMessageA
call fcn.005f1a4c
test eax, eax
jne 0x5f879d
mov eax, dword [ebp + 0xc]
push eax
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jl 0x5f87a4
mov byte [0x64efac], 0
mov dword [ebp - 0xc], 1
call fcn.0050451c
jmp 0x5f8ae5
cmp dword [ebp + 0xc], 0x1b
jne 0x5f87e6
call fcn.005f1a4c
call fcn.0056ef90
mov ebx, eax
call sub.user32.dll_GetCapture
cmp ebx, eax
jne 0x5f87e6
call sub.user32.dll_ReleaseCapture
mov dword [ebp - 0xc], 1
call fcn.0050451c
jmp 0x5f8ae5
call sub.user32.dll_GetCapture
test eax, eax
jne 0x5f8aa0
cmp dword [ebp + 0xc], 0x5d
jne 0x5f8803
mov eax, dword [ebp + 0x10]
shr eax, 0x1f
test al, 1
jne 0x5f8822
cmp dword [ebp + 0xc], 0x79
jne 0x5f8868
mov eax, dword [ebp + 0x10]
shr eax, 0x1f
test al, 1
jne 0x5f8868
call fcn.005f82a4
mov dl, byte [0x5f8af4]
cmp dl, al
jne 0x5f8868
lea eax, [ebp - 0x10]
call fcn.005f823c
mov ebx, eax
test ebx, ebx
je 0x5f8868
lea ecx, [ebp - 0x18]
or edx, 0xffffffff
or eax, 0xffffffff
call fcn.0051bc50
lea eax, [ebp - 0x18]
push eax
call sub.user32.dll_GetFocus
mov ecx, eax
mov edx, dword [ebp - 0x10]
mov eax, ebx
call fcn.005f7fc0
test al, al
je 0x5f8868
mov dword [ebp - 0xc], 1
call fcn.0050451c
jmp 0x5f8ae5
call sub.user32.dll_GetActiveWindow
call fcn.005654e0
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [0x57e788]
call fcn.00503d64
test al, al
je 0x5f889e
mov eax, dword [ebp - 0x10]
call fcn.0056ef90
push eax
call sub.user32.dll_IsWindowEnabled
test eax, eax
je 0x5f889e
mov ebx, dword [ebp - 0x10]
jmp 0x5f88a0
xor ebx, ebx
test ebx, ebx
je 0x5f89c9
test byte [ebx + 0x1c], 0x10
jne 0x5f89c9
mov esi, ebx
cmp byte [esi + 0x22f], 2
jne 0x5f88d1
mov eax, esi
call fcn.00582fa8
test eax, eax
je 0x5f88d1
mov eax, esi
call fcn.00582fa8
mov ebx, eax
mov eax, ebx
call fcn.005f1a60
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x5f8925
test byte [ebx + 0x2f4], 8
jne 0x5f8925
mov eax, ebx
call fcn.0056ef90
push eax
call sub.user32.dll_GetParent
call fcn.005654e0
mov edx, dword [0x57e788]
call fcn.00503d64
test al, al
je 0x5f8925
mov eax, ebx
call fcn.0056ef90
push eax
call sub.user32.dll_GetParent
call fcn.005654e0
call fcn.005f1a60
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
cmp byte [ebx + 0x22f], 1
je 0x5f8986
mov al, byte [ebx + 0x22f]
dec eax
sub al, 2
jb 0x5f8998
cmp dword [ebp - 4], 0
jne 0x5f8998
mov eax, dword [0x64a274]
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
call fcn.005f1a60
test eax, eax
je 0x5f8998
mov eax, dword [0x64a274]
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
call fcn.005f1a60
cmp byte [eax + 0x30], 0
je 0x5f8998
mov eax, dword [0x64a274]
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
call fcn.0056ef90
push eax
call sub.user32.dll_IsWindowEnabled
test eax, eax
je 0x5f8998
mov eax, dword [0x64a274]
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
call fcn.005f1a60
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
jne 0x5f89a6
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
jmp 0x5f89d3
cmp byte [ebx + 0x22f], 1
jne 0x5f89d3
mov eax, dword [ebp - 8]
call fcn.005fa234
test eax, eax
je 0x5f89d3
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
jmp 0x5f89d3
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
je 0x5f8aa0
mov eax, dword [ebp - 4]
call fcn.005f9d90
test al, al
jne 0x5f8aa0
mov eax, dword [ebp - 4]
call fcn.005f9b80
test al, al
jne 0x5f8aa0
mov eax, dword [ebp + 0x10]
shr eax, 0x1f
test al, 1
je 0x5f8a7c
mov eax, dword [ebp - 4]
call fcn.005fa234
test eax, eax
je 0x5f8a73
cmp dword [ebp + 0xc], 0x12
sete al
and al, byte [0x64efad]
je 0x5f8a2b
call fcn.005f8270
test al, al
je 0x5f8a4c
mov eax, dword [ebp - 4]
cmp byte [eax + 0x141], 0
je 0x5f8a73
cmp dword [ebp + 0xc], 0x79
jne 0x5f8a73
call fcn.005f82a4
mov dl, byte [0x5f8af8]
cmp dl, al
jne 0x5f8a73
mov byte [0x64efad], 0
mov eax, dword [ebp - 4]
call fcn.005fa234
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x190]
mov dword [ebp - 0xc], 1
call fcn.0050451c
jmp 0x5f8ae5
mov byte [0x64efad], 0
jmp 0x5f8aa0
cmp dword [ebp + 0xc], 0x12
jne 0x5f8a8b
mov byte [0x64efad], 1
jmp 0x5f8aa0
mov byte [0x64efad], 0
push ebp
call fcn.005f8558
pop ecx
call fcn.0050451c
jmp 0x5f8ae5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f8ae5
cmp byte [0x64efae], 0
je 0x5f8abd
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x5f8add
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [0x64efa0]
push eax
call sub.user32.dll_CallNextHookEx
cmp dword [ebp - 0xc], 0
jne 0x5f8add
mov dword [ebp - 0xc], eax
ret
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc