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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x62c688
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 0x5877ad
xor eax, eax
jmp 0x587a75
push ebx
mov ecx, edi
call fcn.00589510
cmp eax, 1
je 0x587a70
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 0x587820
test ebp, ebp
je 0x58780e
mov edx, dword [esi]
push ebx
mov ecx, esi
call dword [edx + 0x44]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x4c]
test eax, eax
jbe 0x587803
mov ebp, dword [esi]
push 0
mov ecx, esi
call dword [ebp + 0x48]
push eax
mov ecx, esi
call dword [ebp + 0x28]
jmp 0x58784c
mov edx, dword [esi]
push 0
mov ecx, esi
call dword [edx + 0x28]
jmp 0x58784c
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x3c]
mov edx, dword [esi]
push ebx
mov ecx, esi
call dword [edx + 0x28]
jmp 0x58784c
mov eax, dword [esi]
mov ecx, esi
test ebp, ebp
je 0x587839
call dword [eax + 0x24]
cmp eax, ebx
je 0x58784c
mov edx, dword [esi]
push ebx
mov ecx, esi
call dword [edx + 0x28]
jmp 0x58784c
call dword [eax + 0x40]
mov edx, dword [esi]
push ebx
mov ecx, esi
call dword [edx + 0x3c]
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 0x587a70
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call ebp
test ax, ax
jl 0x587a70
push 0x12
call ebp
test ax, ax
jl 0x587a70
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x1c]
call fcn.005405f0
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.00541550
lea ecx, [esp + 0x14]
mov ebp, eax
call fcn.00540eb0
cmp eax, 1
jbe 0x5878c0
mov dword [esp + 0x80], 0
cmp ebp, 1
jne 0x587a5f
cmp dword [esp + 0x80], ebp
jne 0x587a5f
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x18]
call fcn.00541630
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.0055a100
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.00600830
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
cmp eax, ecx
jg 0x587a8a
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
cmp ecx, eax
jg 0x587a8a
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x64]
push eax
push ecx
call fcn.0055a090
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.00559ff0
mov edx, dword [esi]
push ebx
mov ecx, esi
call dword [edx + 0x34]
push ebx
mov ecx, edi
call fcn.005894d0
mov eax, dword [esi]
mov ecx, esi
xor edi, edi
call dword [eax + 0x4c]
test eax, eax
jbe 0x587a5f
mov edx, dword [esi]
push edi
mov ecx, esi
call dword [edx + 0x48]
mov ebx, eax
push ebx
call fcn.0055b350
add esp, 4
test eax, eax
je 0x587a53
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 + 0x4c]
cmp edi, eax
jb 0x587a34
lea ecx, [esp + 0x14]
mov dword [esp + 0x78], 0xffffffff
call fcn.00540660
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.00540660
xor eax, eax
jmp 0x587a75