Function at 0x5f40f4
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 0x5f44a4
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [0x635dc8], 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.0040a7c4
mov edi, eax
cmp edi, dword [0x635dc8]
jle 0x5f4164
mov edi, dword [0x635dc8]
test edi, edi
je 0x5f4484
cmp edi, ebx
jle 0x5f4479
movzx eax, word [esi + ebx*2]
cmp eax, 0x2b
jg 0x5f4191
je 0x5f41dd
sub eax, 0x25
je 0x5f41c4
sub eax, 3
je 0x5f41a9
dec eax
je 0x5f41b3
jmp 0x5f4436
sub eax, 0x5e
je 0x5f41f6
sub eax, 0x1d
je 0x5f420f
sub eax, 3
je 0x5f441d
jmp 0x5f4436
mov byte [ebp - 4], 1
inc ebx
jmp 0x5f4471
mov byte [ebp - 4], 0
push ebp
call fcn.005f4090
pop ecx
inc ebx
jmp 0x5f4471
mov byte [ebp - 7], 1
push ebp
xor ecx, ecx
mov dx, 1
mov al, 0x12
call fcn.005f3d8c
pop ecx
inc ebx
jmp 0x5f4471
mov byte [ebp - 5], 1
push ebp
xor ecx, ecx
mov dx, 1
mov al, 0x10
call fcn.005f3d8c
pop ecx
inc ebx
jmp 0x5f4471
mov byte [ebp - 6], 1
push ebp
xor ecx, ecx
mov dx, 1
mov al, 0x11
call fcn.005f3d8c
pop ecx
inc ebx
jmp 0x5f4471
mov word [ebp - 0xc], 1
cmp word [esi + ebx*2 + 2], 0x7b
jne 0x5f424d
mov word [ebp - 2], 0xdb
lea eax, [ebp - 1]
mov dl, 1
call fcn.005f3d3c
push ebp
mov cl, 1
mov dx, 1
movzx eax, word [ebp - 2]
call fcn.005f3ebc
pop ecx
push ebp
call fcn.005f4090
pop ecx
add ebx, 3
jmp 0x5f4471
mov byte [ebp - 0x29], 0
mov byte [ebp - 9], 0
cmp edi, ebx
jl 0x5f42f6
inc ebx
cmp word [esi + ebx*2], 0x7d
jne 0x5f426f
mov byte [ebp - 9], 1
inc ebx
jmp 0x5f42f6
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 0x5f4298
movzx eax, word [ebp - 0xe]
and ax, 0xffdf
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x130]
lea edx, [ebp - 0x29]
call fcn.0040af64
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x134]
movzx edx, word [ebp - 0x10]
call fcn.0040ae04
mov edx, dword [ebp - 0x134]
pop eax
call fcn.0040aff4
mov edx, dword [ebp - 0x130]
lea eax, [ebp - 0x12c]
mov ecx, 0xff
call fcn.0040aef8
lea edx, [ebp - 0x12c]
lea eax, [ebp - 0x29]
mov cl, 0x14
call fcn.0040a978
cmp edi, ebx
jge 0x5f425d
cmp byte [ebp - 9], 0
jne 0x5f430b
mov eax, 0x5f44b8
call fcn.005f3d2c
jmp 0x5f4484
cmp word [esi + ebx*2], 0x7d
jne 0x5f4340
mov word [ebp - 2], 0xdd
lea eax, [ebp - 1]
mov dl, 1
call fcn.005f3d3c
push ebp
mov cl, 1
mov dx, 1
movzx eax, word [ebp - 2]
call fcn.005f3ebc
pop ecx
push ebp
call fcn.005f4090
pop ecx
inc ebx
jmp 0x5f4471
lea eax, [ebp - 0x138]
lea edx, [ebp - 0x29]
call fcn.0040af64
mov edx, dword [ebp - 0x138]
mov ecx, 1
mov eax, 0x5f44d8
call fcn.0040b310
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov byte [ebp - 0xa], al
cmp byte [ebp - 0xa], 0
je 0x5f43d9
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.0040a994
lea edx, [ebp - 0x154]
lea eax, [ebp - 0x13c]
call fcn.0040af64
mov eax, dword [ebp - 0x13c]
call fcn.00425cc4
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.0040a994
lea edx, [ebp - 0x154]
lea eax, [ebp - 0x29]
mov cl, 0x14
call fcn.0040a978
cmp byte [ebp - 0x29], 1
jne 0x5f43ef
movzx eax, byte [ebp - 0x28]
push eax
call sub.user32.dll_VkKeyScanW
mov word [ebp - 2], ax
jmp 0x5f43fb
lea eax, [ebp - 0x29]
call fcn.005f3f94
mov word [ebp - 2], ax
cmp word [ebp - 2], 0xffff
je 0x5f4471
push ebp
mov cl, 1
movzx edx, word [ebp - 0xc]
movzx eax, word [ebp - 2]
call fcn.005f3ebc
pop ecx
push ebp
call fcn.005f4090
pop ecx
jmp 0x5f4471
push ebp
mov cl, 1
mov dx, 1
mov al, 0xd
call fcn.005f3d8c
pop ecx
push ebp
call fcn.005f4090
pop ecx
inc ebx
jmp 0x5f4471
movzx eax, word [esi + ebx*2]
push eax
call sub.user32.dll_VkKeyScanW
mov word [ebp - 2], ax
cmp word [ebp - 2], 0xffff
je 0x5f4466
push ebp
mov cl, 1
mov dx, 1
movzx eax, word [ebp - 2]
call fcn.005f3ebc
pop ecx
push ebp
call fcn.005f4090
pop ecx
jmp 0x5f4470
mov eax, 0x5f44dc
call fcn.005f3d2c
inc ebx
cmp edi, ebx
jg 0x5f4174
mov byte [ebp - 8], 1
push ebp
call fcn.005f4090
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f44ab
lea eax, [ebp - 0x13c]
mov edx, 4
call fcn.0040a330
pop eax
jmp eax