Function at 0x5a88b0
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5d4168
push eax
mov dword fs:[0], esp
sub esp, 0x48
push ebx
push ebp
mov ebp, dword [esp + 0x64]
push esi
push edi
mov edi, dword [esp + 0x70]
mov esi, ecx
push edi
push ebp
mov eax, dword [esi]
call dword [eax + 0x148]
mov ecx, dword [0x64b21c]
mov ebx, eax
cmp ecx, esi
je 0x5a8915
mov eax, dword [0x64b1fc]
test eax, eax
je 0x5a8915
test ecx, ecx
mov dword [0x64b21c], esi
je 0x5a8915
mov eax, dword [ecx + 0x5a4]
mov dword [ecx + 0x5a4], 0xffffffff
push eax
call fcn.005a84b0
test ebx, ebx
jge 0x5a8975
or ebx, 0xffffffff
mov dword [esi + 0x59c], ebx
mov eax, dword [0x64b1fc]
test eax, eax
je 0x5a8962
mov eax, dword [esi + 0x558]
test eax, eax
jne 0x5a8962
mov eax, dword [esi + 0x5a4]
mov dword [esi + 0x5a4], ebx
cmp eax, ebx
je 0x5a8957
push eax
mov ecx, esi
call fcn.005a84b0
mov ecx, dword [esi + 0x1c]
push ecx
call dword [sym.imp.user32.dll_UpdateWindow]
mov edx, dword [esi]
push ebx
mov ecx, esi
call dword [edx + 0x164]
mov eax, dword [esp + 0x68]
push edi
push ebp
push eax
mov ecx, esi
call fcn.005a1dae
jmp 0x5a8db8
push ebx
mov ecx, esi
call fcn.005a8490
mov edi, eax
test edi, edi
je 0x5a8db8
mov eax, dword [0x64b218]
mov dword [0x64b200], 0
test eax, eax
je 0x5a89ba
mov eax, dword [0x64b1fc]
test eax, eax
jne 0x5a89cc
push 0x12
call dword [sym.imp.user32.dll_GetAsyncKeyState]
test ah, 0x80
je 0x5a89ba
mov dword [0x64b200], 1
mov eax, dword [0x64b1fc]
test eax, eax
jne 0x5a89cc
mov eax, dword [0x64b200]
test eax, eax
je 0x5a89da
mov eax, dword [esi + 0x558]
test eax, eax
je 0x5a8aac
push ebx
mov ecx, esi
mov dword [esi + 0x59c], ebx
call fcn.005a9940
test dword [edi + 0xc], 0x40000
je 0x5a8a10
push 0x6359a0
mov ecx, edi
call fcn.00598725
test eax, eax
jne 0x5a8a10
mov dword [esi + 0x59c], 0xffffffff
jmp 0x5a8db8
mov eax, dword [edi + 0xc]
push ebx
or eax, 0x20000
mov ecx, esi
mov dword [edi + 0xc], eax
call fcn.005a84b0
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.user32.dll_UpdateWindow]
push ecx
call ebp
mov eax, dword [edi + 8]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x1b4]
mov edx, dword [edi]
push 0
push esi
mov ecx, edi
call dword [edx + 0x1c]
test eax, eax
je 0x5a8a91
push 0
push edi
lea ecx, [esi + 0x5ac]
call fcn.005927a0
test eax, eax
je 0x5a8a64
and dword [edi + 0xc], 0xfffdffff
mov edx, dword [esi]
or eax, 0xffffffff
push eax
mov ecx, esi
mov dword [esi + 0x59c], eax
mov dword [esi + 0x5a0], eax
call dword [edx + 0x164]
push ebx
mov ecx, esi
call fcn.005a84b0
mov eax, dword [esi + 0x1c]
push eax
call ebp
jmp 0x5a8d83
mov ecx, dword [esi + 0x1c]
push ecx
call dword [sym.imp.user32.dll_SetCapture]
push eax
call fcn.005939c0
mov dword [esi + 0x678], eax
jmp 0x5a8d83
mov edx, dword [esi]
mov ebp, dword [esi + 0x5a4]
lea eax, [esp + 0x18]
mov ecx, esi
push eax
push ebx
mov dword [esi + 0x5a4], ebx
call dword [edx + 0x118]
cmp ebp, 0xffffffff
je 0x5a8ad5
push ebp
mov ecx, esi
call fcn.005a84b0
mov ecx, dword [esi + 0x5a4]
push ecx
mov ecx, esi
call fcn.005a8490
mov edx, dword [esp + 0x68]
mov dword [esi + 0x63c], eax
and edx, 8
mov ecx, eax
mov dword [esi + 0x648], edx
mov edx, dword [eax]
call dword [edx + 0x58]
test eax, eax
jne 0x5a8b27
cmp ebp, 0xffffffff
mov dword [esi + 0x5a4], 0xffffffff
mov dword [esi + 0x63c], eax
je 0x5a8db8
push ebp
mov ecx, esi
call fcn.005a84b0
jmp 0x5a8db8
push ebx
mov ecx, esi
call fcn.005a84b0
mov eax, dword [esi + 0x1c]
push eax
call dword [sym.imp.user32.dll_UpdateWindow]
mov ecx, dword [esi + 0x63c]
mov edx, dword [ecx]
call dword [edx + 0x38]
test eax, eax
je 0x5a8bd7
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x20]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
cmp eax, 6
jg 0x5a8bd7
mov eax, dword [0x64b200]
test eax, eax
jne 0x5a8bd7
mov ecx, dword [esi + 0x63c]
lea edi, [esi + 0x650]
mov dword [esi + 0x64c], 1
mov edx, edi
lea eax, [ecx + 0x30]
mov ebx, dword [ecx + 0x30]
mov dword [edx], ebx
mov ebx, dword [eax + 4]
mov dword [edx + 4], ebx
mov ebx, dword [eax + 8]
mov dword [edx + 8], ebx
mov eax, dword [eax + 0xc]
mov dword [edx + 0xc], eax
mov edx, dword [ecx]
call dword [edx + 0x34]
test eax, eax
je 0x5a8baf
push 2
push 2
push edi
call dword [sym.imp.user32.dll_InflateRect]
mov eax, dword [esi + 0x1c]
push eax
call dword [sym.imp.user32.dll_SetCapture]
push eax
call fcn.005939c0
mov dword [esi + 0x678], eax
mov ecx, dword [0x64ab0c]
push ecx
call dword [sym.imp.user32.dll_SetCursor]
jmp 0x5a8d83
mov ecx, dword [esi + 0x63c]
mov edx, dword [ecx]
call dword [edx + 0x4c]
test eax, eax
je 0x5a8d79
mov ecx, dword [esi + 0x63c]
mov eax, dword [ecx]
call dword [eax + 0x6c]
test eax, eax
je 0x5a8d79
lea ecx, [esp + 0x28]
call fcn.005bf90e
lea ecx, [esp + 0x28]
xor ebp, ebp
push ecx
mov ecx, dword [esi + 0x63c]
mov dword [esp + 0x64], ebp
call fcn.005211f0
mov eax, dword [edi + 8]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x1b4]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x70]
mov dword [0x64b054], ebp
mov edi, dword [esi + 0x1c]
mov dword [esi + 0x640], ecx
mov dword [esi + 0x644], edx
cmp dword [0x64b200], ebp
je 0x5a8c59
mov dword [0x64b1fc], 1
lea eax, [esp + 0x18]
push 0x64b010
push eax
push 3
lea ecx, [esp + 0x34]
call fcn.005c15aa
push edi
mov ebp, eax
call dword [sym.imp.user32.dll_IsWindow]
test eax, eax
jne 0x5a8ca3
cmp dword [0x64b200], eax
je 0x5a8c8d
mov dword [0x64b1fc], eax
mov dword [0x64b200], eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x60], 0xffffffff
call fcn.005bf955
jmp 0x5a8db8
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.user32.dll_GetCursorPos]
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.user32.dll_ScreenToClient]
mov eax, dword [0x64b054]
test eax, eax
je 0x5a8d3e
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
lea eax, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.user32.dll_PtInRect]
test eax, eax
jne 0x5a8d3e
cmp ebp, 1
je 0x5a8d22
mov eax, dword [esi + 0x63c]
test eax, eax
je 0x5a8d22
mov ecx, dword [0x64b050]
test ecx, ecx
jne 0x5a8d22
push eax
mov ecx, esi
call fcn.005a7840
push eax
mov ecx, esi
call fcn.005b79b0
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x144]
mov eax, dword [esi + 0x1c]
push 1
push 0
push eax
call dword [sym.imp.user32.dll_InvalidateRect]
jmp 0x5a8d4f
mov eax, dword [esi + 0x63c]
test eax, eax
je 0x5a8d4f
mov ecx, dword [esi + 0x1c]
add eax, 0x30
push 1
push eax
push ecx
call dword [sym.imp.user32.dll_InvalidateRect]
jmp 0x5a8d4f
mov edx, dword [esi]
push ebx
mov ecx, esi
mov dword [esi + 0x5a0], ebx
call dword [edx + 0x164]
or ecx, 0xffffffff
mov dword [esi + 0x63c], 0
mov eax, ecx
mov dword [esp + 0x60], ecx
mov dword [esi + 0x640], eax
mov dword [esi + 0x644], ecx
lea ecx, [esp + 0x28]
call fcn.005bf955
jmp 0x5a8d83
mov dword [esi + 0x63c], 0
mov eax, dword [0x64b200]
test eax, eax
je 0x5a8db8
push 0
mov dword [0x64b200], 0
call fcn.005b7f50
mov eax, dword [esi + 0x1c]
add esp, 4
push 1
push 0
push eax
call dword [sym.imp.user32.dll_InvalidateRect]
mov ecx, dword [esi + 0x1c]
push ecx
call dword [sym.imp.user32.dll_UpdateWindow]
mov ecx, dword [esp + 0x58]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x54
ret 0xc