Function at 0x5c4968
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 0x5c4df6
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [ebp + 8], 3
jne 0x5c4994
call fcn.004042ec
jmp 0x5c4dfd
cmp byte [0x744d50], 0
je 0x5c49ae
mov dword [ebp - 0xc], 1
call fcn.004042ec
jmp 0x5c4dfd
cmp dword [ebp + 0xc], 0xe5
jne 0x5c49c1
call fcn.004042ec
jmp 0x5c4dfd
cmp dword [ebp + 8], 0
jl 0x5c4db8
cmp byte [0x744d88], 0
je 0x5c4a01
mov eax, dword [ebp + 0xc]
cmp eax, dword [0x744d8c]
jne 0x5c4a01
mov eax, dword [ebp + 0x10]
shr eax, 0x1f
test al, 1
je 0x5c4a01
mov byte [0x744d88], 0
mov dword [ebp - 0xc], 1
call fcn.004042ec
jmp 0x5c4dfd
call fcn.005bde28
test eax, eax
je 0x5c4afe
call fcn.005bde28
call fcn.005d7474
cmp byte [eax + 0x4e], 0
jne 0x5c4afe
call fcn.005bde28
mov edx, dword [eax]
call dword [edx + 0xf4]
test al, al
jne 0x5c4acd
call fcn.005bde28
mov edi, eax
mov esi, dword [edi + 0x25c]
mov eax, esi
mov edx, dword [0x5bbf18]
call fcn.00403b34
test al, al
je 0x5c4a5f
cmp byte [esi + 0x2c], 0
jne 0x5c4afe
mov eax, dword [ebp + 0x10]
shr eax, 0x1f
test al, 1
sete bl
test bl, bl
je 0x5c4a7d
mov byte [0x744d88], 1
mov eax, dword [ebp + 0xc]
mov dword [0x744d8c], 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 + 0x73ae60]
push eax
mov eax, edi
call fcn.00476d64
push eax
call sub.USER32.DLL_SendMessageA
call fcn.005bde28
test eax, eax
jne 0x5c4ab5
mov eax, dword [ebp + 0xc]
push eax
call sub.USER32.DLL_GetAsyncKeyState
test ax, ax
jl 0x5c4abc
mov byte [0x744d88], 0
mov dword [ebp - 0xc], 1
call fcn.004042ec
jmp 0x5c4dfd
cmp dword [ebp + 0xc], 0x1b
jne 0x5c4afe
call fcn.005bde28
call fcn.00476d64
mov ebx, eax
call sub.USER32.DLL_GetCapture
cmp ebx, eax
jne 0x5c4afe
call sub.USER32.DLL_ReleaseCapture
mov dword [ebp - 0xc], 1
call fcn.004042ec
jmp 0x5c4dfd
call sub.USER32.DLL_GetCapture
test eax, eax
jne 0x5c4db8
cmp dword [ebp + 0xc], 0x5d
jne 0x5c4b1b
mov eax, dword [ebp + 0x10]
shr eax, 0x1f
test al, 1
jne 0x5c4b3a
cmp dword [ebp + 0xc], 0x79
jne 0x5c4b80
mov eax, dword [ebp + 0x10]
shr eax, 0x1f
test al, 1
jne 0x5c4b80
call fcn.005c45ac
mov dl, byte [0x5c4e0c]
cmp dl, al
jne 0x5c4b80
lea eax, [ebp - 0x10]
call fcn.005c4544
mov ebx, eax
test ebx, ebx
je 0x5c4b80
lea ecx, [ebp - 0x18]
or edx, 0xffffffff
or eax, 0xffffffff
call fcn.0041ddec
lea eax, [ebp - 0x18]
push eax
call sub.USER32.DLL_GetFocus
mov ecx, eax
mov edx, dword [ebp - 0x10]
mov eax, ebx
call fcn.005c42c8
test al, al
je 0x5c4b80
mov dword [ebp - 0xc], 1
call fcn.004042ec
jmp 0x5c4dfd
call sub.USER32.DLL_GetActiveWindow
call fcn.0046d270
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [0x485f58]
call fcn.00403b34
test al, al
je 0x5c4bb6
mov eax, dword [ebp - 0x10]
call fcn.00476d64
push eax
call sub.USER32.DLL_IsWindowEnabled
test eax, eax
je 0x5c4bb6
mov ebx, dword [ebp - 0x10]
jmp 0x5c4bb8
xor ebx, ebx
test ebx, ebx
je 0x5c4ce1
test byte [ebx + 0x1c], 0x10
jne 0x5c4ce1
mov esi, ebx
cmp byte [esi + 0x22f], 2
jne 0x5c4be9
mov eax, esi
call fcn.0048a65c
test eax, eax
je 0x5c4be9
mov eax, esi
call fcn.0048a65c
mov ebx, eax
mov eax, ebx
call fcn.005bde3c
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x5c4c3d
test byte [ebx + 0x2f4], 8
jne 0x5c4c3d
mov eax, ebx
call fcn.00476d64
push eax
call sub.USER32.DLL_GetParent
call fcn.0046d270
mov edx, dword [0x485f58]
call fcn.00403b34
test al, al
je 0x5c4c3d
mov eax, ebx
call fcn.00476d64
push eax
call sub.USER32.DLL_GetParent
call fcn.0046d270
call fcn.005bde3c
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
cmp byte [ebx + 0x22f], 1
je 0x5c4c9e
mov al, byte [ebx + 0x22f]
dec eax
sub al, 2
jb 0x5c4cb0
cmp dword [ebp - 4], 0
jne 0x5c4cb0
mov eax, dword [0x73e390]
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
call fcn.005bde3c
test eax, eax
je 0x5c4cb0
mov eax, dword [0x73e390]
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
call fcn.005bde3c
cmp byte [eax + 0x30], 0
je 0x5c4cb0
mov eax, dword [0x73e390]
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
call fcn.00476d64
push eax
call sub.USER32.DLL_IsWindowEnabled
test eax, eax
je 0x5c4cb0
mov eax, dword [0x73e390]
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
call fcn.005bde3c
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
jne 0x5c4cbe
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
jmp 0x5c4ceb
cmp byte [ebx + 0x22f], 1
jne 0x5c4ceb
mov eax, dword [ebp - 8]
call fcn.005c6684
test eax, eax
je 0x5c4ceb
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
jmp 0x5c4ceb
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
je 0x5c4db8
mov eax, dword [ebp - 4]
call fcn.005c61d0
test al, al
jne 0x5c4db8
mov eax, dword [ebp - 4]
call fcn.005c5fc0
test al, al
jne 0x5c4db8
mov eax, dword [ebp + 0x10]
shr eax, 0x1f
test al, 1
je 0x5c4d94
mov eax, dword [ebp - 4]
call fcn.005c6684
test eax, eax
je 0x5c4d8b
cmp dword [ebp + 0xc], 0x12
sete al
and al, byte [0x744d89]
je 0x5c4d43
call fcn.005c4578
test al, al
je 0x5c4d64
mov eax, dword [ebp - 4]
cmp byte [eax + 0x141], 0
je 0x5c4d8b
cmp dword [ebp + 0xc], 0x79
jne 0x5c4d8b
call fcn.005c45ac
mov dl, byte [0x5c4e10]
cmp dl, al
jne 0x5c4d8b
mov byte [0x744d89], 0
mov eax, dword [ebp - 4]
call fcn.005c6684
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x190]
mov dword [ebp - 0xc], 1
call fcn.004042ec
jmp 0x5c4dfd
mov byte [0x744d89], 0
jmp 0x5c4db8
cmp dword [ebp + 0xc], 0x12
jne 0x5c4da3
mov byte [0x744d89], 1
jmp 0x5c4db8
mov byte [0x744d89], 0
push ebp
call fcn.005c4860
pop ecx
call fcn.004042ec
jmp 0x5c4dfd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5c4dfd
cmp byte [0x744d8a], 0
je 0x5c4dd5
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x5c4df5
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [0x744d7c]
push eax
call sub.USER32.DLL_CallNextHookEx
cmp dword [ebp - 0xc], 0
jne 0x5c4df5
mov dword [ebp - 0xc], eax
ret
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc