Function at 0x5c7c60
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
push ebx
push esi
mov esi, ecx
push edi
mov byte [esp + 0x11], 0
mov eax, dword [esi + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.005d9ca3
push 0x655198
mov ecx, eax
call fcn.005dda74
test eax, eax
je 0x5c7c98
mov byte [esp + 0x11], 1
mov edx, dword [esi]
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x20]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
call dword [edx + 0xd4]
mov al, byte [esp + 0x11]
test al, al
je 0x5c7d25
mov eax, dword [esp + 0x28]
mov edi, 2
cmp eax, edi
jne 0x5c7d01
lea edx, [esp + 0x2c]
push edx
call fcn.0050f2cb
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x28], eax
cmp dword [esp + 0x1c], edi
jne 0x5c7d25
lea ecx, [esp + 0x2c]
push ecx
call fcn.0050f2cb
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x1c], edx
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xbc]
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ebx, eax
shr ebx, 0xd
and bl, 1
mov byte [esp + 0x12], bl
je 0x5c7d7f
push 0x12
call edi
shr eax, 0xf
and al, 1
push 0x11
mov byte [esp + 0x17], al
call edi
mov bx, ax
push 0x10
shr ebx, 0xf
and bl, 1
call edi
shr eax, 0xf
and al, 1
test bl, bl
jne 0x5c7d76
mov cl, byte [esp + 0x13]
test cl, cl
jne 0x5c7d76
test al, al
jne 0x5c7d7b
mov byte [esp + 0x12], 0
mov bl, byte [esp + 0x12]
mov ecx, dword [ebp + 8]
lea eax, [ecx - 9]
cmp eax, 0x1f
ja case.0x5c7d96.16
xor edx, edx
mov dl, byte [eax + 0x5c7fc8]
jmp dword [edx*4 + 0x5c7fa8]
sub esp, 0xc
lea ecx, [esp + 0x20]
mov eax, esp
mov dword [eax], 0
mov dword [eax + 4], 0x3ff00000
mov dword [eax + 8], 0
call fcn.005c80d0
jmp 0x5c7e3e
sub esp, 0xc
mov eax, esp
mov dword [eax], 0
mov dword [eax + 4], 0x3ff00000
jmp 0x5c7e2e
sub esp, 0xc
lea ecx, [esp + 0x20]
mov eax, esp
mov dword [eax], 0
mov dword [eax + 4], 0x401c0000
mov dword [eax + 8], 0
call fcn.005c80d0
test bl, bl
jne 0x5c7f1a
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
jmp 0x5c7f1a
sub esp, 0xc
mov eax, esp
mov dword [eax], 0
mov dword [eax + 4], 0x401c0000
lea ecx, [esp + 0x20]
mov dword [eax + 8], 0
call fcn.005c80a0
test bl, bl
jne 0x5c7f1a
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
jmp 0x5c7f1a
mov ecx, esi
call fcn.005dcc64
test eax, 0x10000
je case.0x5c7d96.16
mov eax, dword [esi + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetParent]
mov esi, eax
test esi, esi
je case.0x5c7d96.16
push 0x10
call edi
shr eax, 0xf
and al, 1
mov ecx, 0
setne cl
push 0
push ecx
push 0x28
push esi
mov byte [esp + 0x23], al
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esi + 0x12c]
test eax, eax
jne 0x5c7ec3
mov byte [esp + 0x11], al
jmp 0x5c7ed2
mov edx, dword [esi]
lea ecx, [eax + 0xc]
push ecx
push eax
mov ecx, esi
call dword [edx + 0xd4]
mov edx, dword [esi + 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.005d9ca3
mov eax, dword [eax + 0x1c]
push 0
push 0
push 0x1f
push eax
jmp 0x5c7f14
mov al, byte [esp + 0x11]
test al, al
je case.0x5c7d96.16
mov ecx, dword [esi + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.005d9ca3
mov edx, dword [eax + 0x1c]
push 0
push 0
push 0x1f
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esi]
push 0
lea ecx, [esp + 0x18]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
mov ecx, esi
call dword [eax + 0xd0]
mov eax, dword [esi]
lea ecx, [esp + 0x14]
push 0
push ecx
mov ecx, esi
call dword [eax + 0xdc]
mov edx, dword [esi]
lea eax, [esp + 0x14]
push 0
push eax
mov ecx, esi
call dword [edx + 0xcc]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xfc]
mov ebx, eax
test ebx, ebx
je case.0x5c7d96.16
test esi, esi
jne 0x5c7f6c
xor edi, edi
jmp 0x5c7f6f
mov edi, dword [esi + 0x1c]
mov dl, byte [esp + 0x11]
mov ecx, dword [esi + 0x12c]
test dl, dl
sete al
push 1
push eax
push esi
push ecx
lea ecx, [esp + 0x48]
call fcn.005c4470
push ebx
lea ecx, [esp + 0x3c]
call fcn.005c44e0
push edi
call dword [sym.imp.USER32.dll_IsWindow]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc