Function at 0x5899a0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov dword [ebp - 0x34], 0x4aa6
cmp dword [ebp - 0x34], 0x23ea
je 0x589deb
mov eax, 0x11
mov word [ebp - 0x60], ax
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x80], ecx
cmp dword [ebp - 0x80], 0x15ce
je 0x5899d7
jmp 0x589a3f
movsx edx, word [ebp - 0x60]
sub edx, 0x1a9
mov word [ebp - 0x60], dx
mov eax, dword [ebp - 0x34]
and eax, 0xe1d2
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.COMCTL32.dll_MakeDragList]
mov dword [ebp - 0x18], eax
movsx edx, word [ebp - 0x60]
mov dword [ebp - 0x84], edx
cmp dword [ebp - 0x84], 0x358
je 0x589a2d
cmp dword [ebp - 0x84], 0x3aa
je 0x589a21
jmp 0x589a3a
mov ecx, 0x6e
call fcn.00401090
jmp 0x589a3a
movsx eax, word [ebp - 0x60]
or eax, 0x3ca
mov word [ebp - 0x60], ax
jmp 0x589dd9
movsx ecx, word [ebp - 0x60]
mov dword [ebp - 0x88], ecx
cmp dword [ebp - 0x88], 0x11
je 0x589a63
cmp dword [ebp - 0x88], 0x1e1
je 0x589add
jmp 0x589b38
movsx edx, byte [ebp + 8]
cmp edx, 0x70
jge 0x589ac8
movsx eax, byte [ebp + 8]
cmp eax, 0x41
jne 0x589ac6
movsx ecx, word [ebp - 0x60]
mov dword [ebp - 0x8c], ecx
cmp dword [ebp - 0x8c], 0x5e0
je 0x589ab8
cmp dword [ebp - 0x8c], 0x7dc
je 0x589a99
jmp 0x589ac6
lea edx, [ebp - 0x58]
push edx
push 0x2e
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.ole32.dll_OleRegGetUserType]
mov dword [ebp - 0x58], eax
push 0x85
call fcn.00401e40
jmp 0x589ac6
movsx ecx, word [ebp - 0x60]
xor ecx, 0x2cc
mov word [ebp - 0x60], cx
jmp 0x589adb
movsx edx, word [ebp - 0x60]
cmp edx, 0x29e
jl 0x589adb
push 0x23
call fcn.00401e40
jmp 0x589b38
mov eax, dword [ebp - 0x34]
shr eax, 0x1e
mov dword [ebp - 0x34], eax
movsx ecx, word [ebp - 0x60]
mov dword [ebp - 0x90], ecx
cmp dword [ebp - 0x90], 0x492
je 0x589afe
jmp 0x589b2c
call dword [sym.imp.ole32.dll_CoTestCancel]
mov dword [ebp - 0x1c], eax
movsx edx, byte [ebp + 8]
shl edx, 0xc
cmp edx, 0x1c
jg 0x589b2a
movzx eax, word [ebp - 0x60]
push eax
movzx ecx, word [ebp - 0x60]
push ecx
push 0xbb
call section..text
add esp, 0xc
jmp 0x589b38
mov edx, dword [ebp - 0x34]
add edx, 0x9417
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x3c], 0x2f49
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x54], eax
mov ecx, 0xf1c
mov word [ebp - 0x38], cx
cmp dword [ebp - 0x34], 0x7030
jae 0x589b8d
mov edx, dword [ebp - 0x54]
sub edx, 0x4b50
cmp edx, dword [ebp - 0x3c]
jne 0x589b8d
movsx eax, byte [ebp + 8]
cmp eax, 0x7a
jle 0x589b7b
call dword [sym.imp.ole32.dll_CoSuspendClassObjects]
mov dword [ebp - 0xc], eax
mov byte [ebp + 8], 0x4c
mov byte [ebp + 8], 0x46
movzx ecx, word [ebp - 0x38]
and ecx, 0x642
mov word [ebp - 0x38], cx
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x3c]
imul ecx, dword [ebp - 0x54]
mov dword [ebp - 0x4c], ecx
lea edx, [ebp - 0x34]
mov dword [ebp - 0x78], edx
mov al, byte [ebp + 8]
mov byte [ebp - 0x94], al
cmp byte [ebp - 0x94], 0
je 0x589bbd
jmp 0x589bd8
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x7c], ecx
mov dx, word [ebp - 0x38]
mov word [ebp - 0x44], dx
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
mov dword [ebp - 0x14], ecx
jmp 0x589c59
call dword [sym.imp.ole32.dll_CoTestCancel]
mov dword [ebp - 0x5c], eax
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x98], edx
cmp dword [ebp - 0x98], 0x1fdc
je 0x589c4e
cmp dword [ebp - 0x98], 0x5f0b
je 0x589c04
jmp 0x589c59
movsx eax, word [ebp - 0x60]
cmp eax, 0x15b
jne 0x589c1c
mov ecx, dword [ebp - 0x78]
mov edx, dword [ecx]
add edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x78]
mov dword [eax], edx
mov ecx, dword [ebp - 0x4c]
sub ecx, dword [ebp - 0x54]
mov dword [ebp - 0x3c], ecx
movzx edx, byte [ebp + 8]
push edx
call fcn.005899a0
add esp, 4
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
sub ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x7c]
mov dword [edx], ecx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_LockWindowUpdate]
mov dword [ebp - 4], eax
jmp 0x589c59
mov ecx, dword [ebp - 0x78]
mov edx, dword [ebp - 0x34]
add edx, dword [ecx]
mov dword [ebp - 0x30], edx
movsx eax, word [ebp - 0x60]
cdq
mov ecx, 0x7e1
idiv ecx
cmp eax, 0x127
jne 0x589cb3
mov edx, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x54]
sar edx, cl
mov eax, dword [ebp - 0x7c]
mov dword [eax], edx
movzx ecx, word [ebp - 0x38]
xor ecx, 0x5df
movzx edx, word [ebp - 0x44]
cmp ecx, edx
jge 0x589cab
mov byte [ebp + 8], 0x28
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.ole32.dll_CoGetContextToken]
mov dword [ebp - 0x5c], eax
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
shl edx, cl
mov eax, dword [ebp - 0x78]
mov dword [eax], edx
jmp 0x589cb3
mov ecx, dword [ebp - 0x44]
call fcn.00401090
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x78]
mov eax, dword [edx]
mov dword [ebp - 0x9c], eax
cmp dword [ebp - 0x9c], 0x23ec
je 0x589d76
cmp dword [ebp - 0x9c], 0x4aa6
je 0x589ce5
jmp 0x589d8d
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x74], ecx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0xa0], edx
cmp dword [ebp - 0xa0], 0x2207
je 0x589d02
jmp 0x589d38
mov byte [ebp + 8], 0x6f
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.ole32.dll_CoIsOle1Class]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ebp - 0x14]
add edx, dword [ecx]
mov eax, dword [ebp - 0x74]
mov dword [eax], edx
mov ecx, dword [ebp - 0x78]
mov edx, dword [ebp - 0x34]
sub edx, dword [ecx]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax]
sub ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x7c]
mov dword [edx], ecx
mov byte [ebp + 8], 0x3e
push 0xd9
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemRealloc]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x60]
mov cl, byte [ebp + 8]
call fcn.00401820
mov ecx, dword [ebp - 0x78]
mov edx, dword [ecx]
sub edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x78]
mov dword [eax], edx
movzx ecx, word [ebp - 0x38]
and ecx, 0x324
mov word [ebp - 0x44], cx
jmp 0x589d8d
movzx edx, word [ebp - 0x60]
push edx
movzx eax, word [ebp - 0x60]
push eax
movzx ecx, word [ebp - 0x44]
push ecx
call section..text
add esp, 0xc
mov edx, dword [ebp - 0x7c]
mov eax, dword [ebp - 0x3c]
or eax, dword [edx]
mov dword [ebp - 0x54], eax
movzx ecx, word [ebp - 0x44]
and ecx, 0x16
mov word [ebp - 0x38], cx
mov edx, dword [ebp - 0x7c]
mov eax, dword [edx]
add eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x7c]
mov dword [ecx], eax
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.ole32.dll_CoUnmarshalHresult]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x78]
mov edx, dword [ecx]
sub edx, dword [ebp - 0x34]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
add ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x7c]
mov dword [edx], ecx
mov eax, dword [ebp - 0x34]
add eax, 0xe3ec
mov dword [ebp - 0x34], eax
push 0xb
call fcn.00401e40
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov dword [ebp - 0x50], eax
mov edx, dword [ebp - 0x34]
push edx
push 0x62
mov eax, dword [ebp - 0x34]
push eax
push 0x10
call fcn.00402c80
add esp, 0x10
mov eax, 5
mov esp, ebp
pop ebp
ret