Function at 0x587920
Capabilities:
Log keystrokes via polling
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x62c7e8
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
mov ebx, dword [esp + 0x74]
push ebp
push esi
push edi
mov edi, ecx
test ebx, ebx
jne 0x58794d
xor eax, eax
jmp 0x587c15
push ebx
mov ecx, edi
call fcn.00589690
cmp eax, 1
je 0x587c10
mov ecx, dword [ebx + 0x14]
mov dword [esp + 0x10], ecx
mov eax, dword [ecx]
call dword [eax]
mov ebp, dword [ebx + 4]
push 0x11
mov esi, eax
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x5879c0
test ebp, ebp
je 0x5879ae
mov edx, dword [esi]
push ebx
mov ecx, esi
call dword [edx + 0x50]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
test eax, eax
jbe 0x5879a3
mov ebp, dword [esi]
push 0
mov ecx, esi
call dword [ebp + 0x54]
push eax
mov ecx, esi
call dword [ebp + 0x28]
jmp 0x5879ec
mov edx, dword [esi]
push 0
mov ecx, esi
call dword [edx + 0x28]
jmp 0x5879ec
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x48]
mov edx, dword [esi]
push ebx
mov ecx, esi
call dword [edx + 0x28]
jmp 0x5879ec
mov eax, dword [esi]
mov ecx, esi
test ebp, ebp
je 0x5879d9
call dword [eax + 0x24]
cmp eax, ebx
je 0x5879ec
mov edx, dword [esi]
push ebx
mov ecx, esi
call dword [edx + 0x28]
jmp 0x5879ec
call dword [eax + 0x4c]
mov edx, dword [esi]
push ebx
mov ecx, esi
call dword [edx + 0x48]
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x28]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x24]
cmp eax, ebx
jne 0x587c10
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call ebp
test ax, ax
jl 0x587c10
push 0x12
call ebp
test ax, ax
jl 0x587c10
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x1c]
call fcn.00540a30
xor eax, eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x78], eax
mov dword [esp + 0x80], eax
lea eax, [esp + 0x80]
push eax
call fcn.00541990
lea ecx, [esp + 0x14]
mov ebp, eax
call fcn.005412f0
cmp eax, 1
jbe 0x587a60
mov dword [esp + 0x80], 0
cmp ebp, 1
jne 0x587bff
cmp dword [esp + 0x80], ebp
jne 0x587bff
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x18]
call fcn.00541a70
mov edx, dword [eax]
mov dword [esp + 0x40], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0x60]
mov ebp, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x54], edx
call fcn.0055a570
mov edx, dword [eax]
add esp, 8
mov dword [esp + 0x30], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x10]
mov edx, dword [eax + 8]
mov dword [esp + 0x38], edx
mov edx, dword [ecx]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x3c], eax
call dword [edx + 0x60]
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x3c]
sub eax, ecx
mov ecx, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x38]
sub ebp, ecx
sub eax, edx
push ebp
mov ebp, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x3c]
sub eax, ebp
lea ecx, [esp + 0x2c]
push eax
call fcn.006008f0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
cmp eax, ecx
jg 0x587c2a
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
cmp ecx, eax
jg 0x587c2a
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x64]
push eax
push ecx
call fcn.0055a500
mov edx, dword [eax]
add esp, 0xc
mov dword [esp + 0x50], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x54], ecx
lea ecx, [esp + 0x50]
mov edx, dword [eax + 8]
push ecx
mov dword [esp + 0x5c], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x60], eax
call dword [sym.imp.USER32.dll_ClipCursor]
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x8c]
mov dword [edi + 0x10], eax
mov dword [edi + 0x18], eax
mov dword [edi + 0x14], ecx
mov dword [edi + 0x1c], ecx
xor eax, eax
xor ecx, ecx
mov dword [edi + 0x20], eax
mov dword [edi + 0xc], ebx
mov dword [edi + 0x24], ecx
mov dword [edi + 0x28], 1
mov dword [edi + 0x2c], ecx
call fcn.0055a460
mov edx, dword [esi]
push ebx
mov ecx, esi
call dword [edx + 0x34]
push ebx
mov ecx, edi
call fcn.00589650
mov eax, dword [esi]
mov ecx, esi
xor edi, edi
call dword [eax + 0x58]
test eax, eax
jbe 0x587bff
mov edx, dword [esi]
push edi
mov ecx, esi
call dword [edx + 0x54]
mov ebx, eax
push ebx
call fcn.0055b7c0
add esp, 4
test eax, eax
je 0x587bf3
mov edx, dword [eax]
push ebx
mov ecx, eax
call dword [edx + 0x78]
mov eax, dword [esi]
mov ecx, esi
inc edi
call dword [eax + 0x58]
cmp edi, eax
jb 0x587bd4
lea ecx, [esp + 0x14]
mov dword [esp + 0x78], 0xffffffff
call fcn.00540aa0
mov eax, 1
mov ecx, dword [esp + 0x70]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x6c
ret 0x10
lea ecx, [esp + 0x14]
mov dword [esp + 0x78], 0xffffffff
call fcn.00540aa0
xor eax, eax
jmp 0x587c15