Function at 0x1005cff6
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
xor edi, edi
mov ebx, ecx
mov dword [ebp - 0x10], ebx
cmp eax, edi
je 0x1005d015
mov dword [eax], 1
mov eax, dword [0x1016293c]
cmp eax, edi
je 0x1005d11d
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1005d11d
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call fcn.10011d03
mov ecx, dword [0x1016293c]
mov esi, eax
mov eax, dword [ecx]
call dword [eax + 0x1dc]
test eax, eax
je 0x1005d0a3
cmp esi, edi
je 0x1005d08c
cmp dword [esi + 0x20], edi
je 0x1005d08c
mov ecx, dword [0x1016293c]
push esi
call fcn.1004cb0f
test eax, eax
jne 0x1005d293
mov eax, dword [0x1016293c]
mov esi, dword [esi + 0x20]
cmp eax, edi
jne 0x1005d080
xor ecx, ecx
jmp 0x1005d083
mov ecx, dword [eax + 0x20]
cmp esi, ecx
jne 0x1005d091
jmp 0x1005d293
mov eax, dword [0x1016293c]
push edi
push edi
push 0x10
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x1005d293
cmp esi, edi
je 0x1005d0c0
cmp dword [esi + 0x20], edi
je 0x1005d0c0
mov ecx, dword [0x1016293c]
push esi
call fcn.1004cb0f
test eax, eax
jne 0x1005d293
mov ecx, dword [0x1016293c]
mov eax, dword [ecx]
call dword [eax + 0x19c]
mov esi, dword [eax + 0xc44]
mov eax, dword [0x1016293c]
push edi
push dword [ebp + 8]
push 0x100
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp esi, edi
jne 0x1005d0f7
xor eax, eax
inc eax
jmp 0x1005d295
push dword [0x1016293c]
push 0x10134a60
call fcn.1000ab4d
pop ecx
pop ecx
cmp eax, edi
je 0x1005d0ef
mov ecx, eax
call fcn.1005cc3f
test eax, eax
je 0x1005d0ef
jmp 0x1005d293
mov eax, dword [ebx + 0xb0]
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x1005d0ef
cmp dword [0x10161704], edi
jne 0x1005d293
mov eax, dword [0x1016176c]
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], edi
je 0x1005d1ad
lea eax, [ebp - 0xc]
push eax
mov ecx, 0x10161768
call fcn.1008d611
mov esi, dword [eax]
cmp esi, edi
je 0x1005d26a
push dword [esi + 0x20]
call fcn.10011d2f
test eax, eax
je 0x1005d1a8
mov ecx, esi
call fcn.1002a33d
test eax, eax
jle 0x1005d1a6
push edi
mov ecx, esi
call fcn.10029c31
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xa4]
test eax, eax
jne 0x1005d19f
mov ecx, esi
inc edi
call fcn.1002a33d
cmp edi, eax
jl 0x1005d17b
jmp 0x1005d1a6
mov dword [ebp - 8], 1
xor edi, edi
cmp dword [ebp - 8], edi
je 0x1005d147
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x11
mov byte [ebp - 1], 0
call esi
mov edi, 0x8000
mov ecx, edi
test cx, ax
je 0x1005d1cb
mov byte [ebp - 1], 8
push 0x12
call esi
mov ecx, edi
test cx, ax
je 0x1005d1da
or byte [ebp - 1], 0x10
push 0x10
call esi
test di, ax
je 0x1005d1e7
or byte [ebp - 1], 4
cmp dword [ebp - 8], 0
mov edi, dword [ebp + 8]
jne 0x1005d22e
movzx ebx, byte [ebp - 1]
mov esi, dword [ebp - 0x10]
push 1
push dword [esi + 0xb0]
or ebx, 1
push ebx
push edi
call fcn.1004b337
test eax, eax
jne 0x1005d293
mov ecx, dword [esi + 0xb0]
push eax
mov eax, dword [ecx]
call dword [eax + 0x148]
push eax
push ebx
push edi
call fcn.1004b337
test eax, eax
jne 0x1005d293
mov ebx, esi
mov eax, dword [ebx + 0xfc]
xor esi, esi
cmp eax, esi
je 0x1005d26f
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x1005d26f
cmp byte [ebp - 1], 8
jne 0x1005d26f
cmp edi, 0x70
jne 0x1005d285
mov ecx, dword [ebx + 0xfc]
cmp dword [ecx + 0x6a4], esi
je 0x1005d285
call fcn.1006908e
jmp 0x1005d0ef
call fcn.100088f6
cmp byte [ebp - 1], 0x10
jne 0x1005d285
push edi
mov ecx, ebx
call fcn.1005c8fe
test eax, eax
jne 0x1005d0ef
cmp dword [ebp - 8], esi
je 0x1005d293
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x1005d293
mov dword [eax], esi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8