Function at 0x5f01c8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeac
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x13c], ecx
mov dword [ebp - 0x138], ecx
mov dword [ebp - 0x130], ecx
mov dword [ebp - 0x134], ecx
mov byte [ebp - 3], dl
mov esi, eax
xor eax, eax
push ebp
push 0x5f0578
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [0x60edc8], 0x7fffffff
mov byte [ebp - 8], 0
mov byte [ebp - 4], 0
mov byte [ebp - 5], 0
mov byte [ebp - 6], 0
mov byte [ebp - 7], 0
xor ebx, ebx
mov eax, esi
call fcn.0040a750
mov edi, eax
cmp edi, dword [0x60edc8]
jle 0x5f0238
mov edi, dword [0x60edc8]
test edi, edi
je 0x5f0558
cmp edi, ebx
jle 0x5f054d
movzx eax, word [esi + ebx*2]
cmp eax, 0x2b
jg 0x5f0265
je 0x5f02b1
sub eax, 0x25
je 0x5f0298
sub eax, 3
je 0x5f027d
dec eax
je 0x5f0287
jmp 0x5f050a
sub eax, 0x5e
je 0x5f02ca
sub eax, 0x1d
je 0x5f02e3
sub eax, 3
je 0x5f04f1
jmp 0x5f050a
mov byte [ebp - 4], 1
inc ebx
jmp 0x5f0545
mov byte [ebp - 4], 0
push ebp
call fcn.005f0164
pop ecx
inc ebx
jmp 0x5f0545
mov byte [ebp - 7], 1
push ebp
xor ecx, ecx
mov dx, 1
mov al, 0x12
call fcn.005efe60
pop ecx
inc ebx
jmp 0x5f0545
mov byte [ebp - 5], 1
push ebp
xor ecx, ecx
mov dx, 1
mov al, 0x10
call fcn.005efe60
pop ecx
inc ebx
jmp 0x5f0545
mov byte [ebp - 6], 1
push ebp
xor ecx, ecx
mov dx, 1
mov al, 0x11
call fcn.005efe60
pop ecx
inc ebx
jmp 0x5f0545
mov word [ebp - 0xc], 1
cmp word [esi + ebx*2 + 2], 0x7b
jne 0x5f0321
mov word [ebp - 2], 0xdb
lea eax, [ebp - 1]
mov dl, 1
call fcn.005efe10
push ebp
mov cl, 1
mov dx, 1
movzx eax, word [ebp - 2]
call fcn.005eff90
pop ecx
push ebp
call fcn.005f0164
pop ecx
add ebx, 3
jmp 0x5f0545
mov byte [ebp - 0x29], 0
mov byte [ebp - 9], 0
cmp edi, ebx
jl 0x5f03ca
inc ebx
cmp word [esi + ebx*2], 0x7d
jne 0x5f0343
mov byte [ebp - 9], 1
inc ebx
jmp 0x5f03ca
movzx eax, word [esi + ebx*2]
mov word [ebp - 0xe], ax
movzx eax, word [ebp - 0xe]
mov word [ebp - 0x10], ax
movzx eax, word [ebp - 0xe]
add eax, 0xffffff9f
sub ax, 0x1a
jae 0x5f036c
movzx eax, word [ebp - 0xe]
and ax, 0xffdf
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x130]
lea edx, [ebp - 0x29]
call fcn.0040ae84
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x134]
movzx edx, word [ebp - 0x10]
call fcn.0040ad24
mov edx, dword [ebp - 0x134]
pop eax
call fcn.0040af14
mov edx, dword [ebp - 0x130]
lea eax, [ebp - 0x12c]
mov ecx, 0xff
call fcn.0040ae18
lea edx, [ebp - 0x12c]
lea eax, [ebp - 0x29]
mov cl, 0x14
call fcn.0040a8b8
cmp edi, ebx
jge 0x5f0331
cmp byte [ebp - 9], 0
jne 0x5f03df
mov eax, 0x5f058c
call fcn.005efe00
jmp 0x5f0558
cmp word [esi + ebx*2], 0x7d
jne 0x5f0414
mov word [ebp - 2], 0xdd
lea eax, [ebp - 1]
mov dl, 1
call fcn.005efe10
push ebp
mov cl, 1
mov dx, 1
movzx eax, word [ebp - 2]
call fcn.005eff90
pop ecx
push ebp
call fcn.005f0164
pop ecx
inc ebx
jmp 0x5f0545
lea eax, [ebp - 0x138]
lea edx, [ebp - 0x29]
call fcn.0040ae84
mov edx, dword [ebp - 0x138]
mov ecx, 1
mov eax, 0x5f05ac
call fcn.0040b230
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov byte [ebp - 0xa], al
cmp byte [ebp - 0xa], 0
je 0x5f04ad
lea eax, [ebp - 0x154]
push eax
movzx ecx, byte [ebp - 0x29]
movzx eax, byte [ebp - 0xa]
sub ecx, eax
movzx edx, byte [ebp - 0xa]
inc edx
lea eax, [ebp - 0x29]
call fcn.0040a8d4
lea edx, [ebp - 0x154]
lea eax, [ebp - 0x13c]
call fcn.0040ae84
mov eax, dword [ebp - 0x13c]
call fcn.00425d90
mov word [ebp - 0xc], ax
lea eax, [ebp - 0x154]
push eax
movzx ecx, byte [ebp - 0xa]
dec ecx
lea eax, [ebp - 0x29]
mov edx, 1
call fcn.0040a8d4
lea edx, [ebp - 0x154]
lea eax, [ebp - 0x29]
mov cl, 0x14
call fcn.0040a8b8
cmp byte [ebp - 0x29], 1
jne 0x5f04c3
movzx eax, byte [ebp - 0x28]
push eax
call sub.user32.dll_VkKeyScanW
mov word [ebp - 2], ax
jmp 0x5f04cf
lea eax, [ebp - 0x29]
call fcn.005f0068
mov word [ebp - 2], ax
cmp word [ebp - 2], 0xffff
je 0x5f0545
push ebp
mov cl, 1
movzx edx, word [ebp - 0xc]
movzx eax, word [ebp - 2]
call fcn.005eff90
pop ecx
push ebp
call fcn.005f0164
pop ecx
jmp 0x5f0545
push ebp
mov cl, 1
mov dx, 1
mov al, 0xd
call fcn.005efe60
pop ecx
push ebp
call fcn.005f0164
pop ecx
inc ebx
jmp 0x5f0545
movzx eax, word [esi + ebx*2]
push eax
call sub.user32.dll_VkKeyScanW
mov word [ebp - 2], ax
cmp word [ebp - 2], 0xffff
je 0x5f053a
push ebp
mov cl, 1
mov dx, 1
movzx eax, word [ebp - 2]
call fcn.005eff90
pop ecx
push ebp
call fcn.005f0164
pop ecx
jmp 0x5f0544
mov eax, 0x5f05b0
call fcn.005efe00
inc ebx
cmp edi, ebx
jg 0x5f0248
mov byte [ebp - 8], 1
push ebp
call fcn.005f0164
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f057f
lea eax, [ebp - 0x13c]
mov edx, 4
call fcn.0040a2bc
pop eax
jmp eax