Function at 0x5cf0f0
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 0x5cf542
push dword fs:[edx]
mov dword fs:[edx], esp
cmp byte [0x6c2628], 0
je 0x5cf126
mov dword [ebp - 0xc], 1
call fcn.004046e8
jmp 0x5cf549
cmp dword [ebp + 0xc], 0xe5
jne 0x5cf139
call fcn.004046e8
jmp 0x5cf549
cmp dword [ebp + 8], 0
jl 0x5cf504
cmp byte [0x6c2660], 0
je 0x5cf179
mov eax, dword [ebp + 0xc]
cmp eax, dword [0x6c2664]
jne 0x5cf179
mov eax, dword [ebp + 0x10]
shr eax, 0x1f
test al, 1
je 0x5cf179
mov byte [0x6c2660], 0
mov dword [ebp - 0xc], 1
call fcn.004046e8
jmp 0x5cf549
call fcn.005c89a4
test eax, eax
je 0x5cf276
call fcn.005c89a4
call fcn.005e1734
cmp byte [eax + 0x4e], 0
jne 0x5cf276
call fcn.005c89a4
mov edx, dword [eax]
call dword [edx + 0xf4]
test al, al
jne 0x5cf245
call fcn.005c89a4
mov edi, eax
mov esi, dword [edi + 0x25c]
mov eax, esi
mov edx, dword [0x5c6b60]
call fcn.00403f38
test al, al
je 0x5cf1d7
cmp byte [esi + 0x2c], 0
jne 0x5cf276
mov eax, dword [ebp + 0x10]
shr eax, 0x1f
test al, 1
sete bl
test bl, bl
je 0x5cf1f5
mov byte [0x6c2660], 1
mov eax, dword [ebp + 0xc]
mov dword [0x6c2664], 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 + 0x6bdb48]
push eax
mov eax, edi
call fcn.0046fb3c
push eax
call sub.user32.dll_SendMessageA
call fcn.005c89a4
test eax, eax
jne 0x5cf22d
mov eax, dword [ebp + 0xc]
push eax
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jl 0x5cf234
mov byte [0x6c2660], 0
mov dword [ebp - 0xc], 1
call fcn.004046e8
jmp 0x5cf549
cmp dword [ebp + 0xc], 0x1b
jne 0x5cf276
call fcn.005c89a4
call fcn.0046fb3c
mov ebx, eax
call sub.user32.dll_GetCapture
cmp ebx, eax
jne 0x5cf276
call sub.user32.dll_ReleaseCapture
mov dword [ebp - 0xc], 1
call fcn.004046e8
jmp 0x5cf549
call sub.user32.dll_GetCapture
test eax, eax
jne 0x5cf504
cmp dword [ebp + 0xc], 0x5d
jne 0x5cf293
mov eax, dword [ebp + 0x10]
shr eax, 0x1f
test al, 1
jne 0x5cf2b2
cmp dword [ebp + 0xc], 0x79
jne 0x5cf2f8
mov eax, dword [ebp + 0x10]
shr eax, 0x1f
test al, 1
jne 0x5cf2f8
call fcn.005ced34
mov dl, byte [0x5cf558]
cmp dl, al
jne 0x5cf2f8
lea eax, [ebp - 0x10]
call fcn.005ceccc
mov ebx, eax
test ebx, ebx
je 0x5cf2f8
lea ecx, [ebp - 0x18]
or edx, 0xffffffff
or eax, 0xffffffff
call fcn.0041e758
lea eax, [ebp - 0x18]
push eax
call sub.user32.dll_GetFocus
mov ecx, eax
mov edx, dword [ebp - 0x10]
mov eax, ebx
call fcn.005cea50
test al, al
je 0x5cf2f8
mov dword [ebp - 0xc], 1
call fcn.004046e8
jmp 0x5cf549
call sub.user32.dll_GetActiveWindow
call fcn.00465f68
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [0x47ead8]
call fcn.00403f38
test al, al
je 0x5cf32e
mov eax, dword [ebp - 0x10]
call fcn.0046fb3c
push eax
call sub.user32.dll_IsWindowEnabled
test eax, eax
je 0x5cf32e
mov ebx, dword [ebp - 0x10]
jmp 0x5cf330
xor ebx, ebx
test ebx, ebx
je 0x5cf42d
test byte [ebx + 0x1c], 0x10
jne 0x5cf42d
mov esi, ebx
cmp byte [esi + 0x22f], 2
jne 0x5cf361
mov eax, esi
call fcn.0048315c
test eax, eax
je 0x5cf361
mov eax, esi
call fcn.0048315c
mov ebx, eax
mov eax, ebx
call fcn.005c89b8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x5cf3ac
mov eax, ebx
call fcn.0046fb3c
push eax
call sub.user32.dll_GetParent
call fcn.00465f68
mov edx, dword [0x47ead8]
call fcn.00403f38
test al, al
je 0x5cf3ac
mov eax, ebx
call fcn.0046fb3c
push eax
call sub.user32.dll_GetParent
call fcn.00465f68
call fcn.005c89b8
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
cmp byte [ebx + 0x22f], 1
je 0x5cf40d
mov al, byte [ebx + 0x22f]
dec eax
sub al, 2
jb 0x5cf41f
cmp dword [ebp - 4], 0
jne 0x5cf41f
mov eax, dword [0x6bfd90]
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
call fcn.005c89b8
test eax, eax
je 0x5cf41f
mov eax, dword [0x6bfd90]
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
call fcn.005c89b8
cmp byte [eax + 0x30], 0
je 0x5cf41f
mov eax, dword [0x6bfd90]
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
call fcn.0046fb3c
push eax
call sub.user32.dll_IsWindowEnabled
test eax, eax
je 0x5cf41f
mov eax, dword [0x6bfd90]
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
call fcn.005c89b8
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
jne 0x5cf437
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
jmp 0x5cf437
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
je 0x5cf504
mov eax, dword [ebp - 4]
call fcn.005d0828
test al, al
jne 0x5cf504
mov eax, dword [ebp - 4]
call fcn.005d0618
test al, al
jne 0x5cf504
mov eax, dword [ebp + 0x10]
shr eax, 0x1f
test al, 1
je 0x5cf4e0
mov eax, dword [ebp - 4]
call fcn.005d0cc4
test eax, eax
je 0x5cf4d7
cmp dword [ebp + 0xc], 0x12
sete al
and al, byte [0x6c2661]
je 0x5cf48f
call fcn.005ced00
test al, al
je 0x5cf4b0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x141], 0
je 0x5cf4d7
cmp dword [ebp + 0xc], 0x79
jne 0x5cf4d7
call fcn.005ced34
mov dl, byte [0x5cf55c]
cmp dl, al
jne 0x5cf4d7
mov byte [0x6c2661], 0
mov eax, dword [ebp - 4]
call fcn.005d0cc4
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x190]
mov dword [ebp - 0xc], 1
call fcn.004046e8
jmp 0x5cf549
mov byte [0x6c2661], 0
jmp 0x5cf504
cmp dword [ebp + 0xc], 0x12
jne 0x5cf4ef
mov byte [0x6c2661], 1
jmp 0x5cf504
mov byte [0x6c2661], 0
push ebp
call fcn.005cefe8
pop ecx
call fcn.004046e8
jmp 0x5cf549
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5cf549
cmp byte [0x6c2662], 0
je 0x5cf521
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x5cf541
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [0x6c2654]
push eax
call sub.user32.dll_CallNextHookEx
cmp dword [ebp - 0xc], 0
jne 0x5cf541
mov dword [ebp - 0xc], eax
ret
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc