Function at 0x1005ef90
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
cmp byte [section..data], 0
push ebx
mov ebx, ecx
mov dword [ebp - 0x10], ebx
jne 0x1005f277
push esi
push edi
nop dword [eax + eax]
mov esi, 1
push esi
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ecx, ax
mov eax, dword [ebx]
lea eax, [eax + esi*2]
xchg word [eax], cx
inc esi
cmp esi, 0xff
jl 0x1005efb5
mov ecx, dword [0x1019d01c]
test ecx, ecx
jle 0x1005f249
mov eax, 0x3e8
cdq
idiv ecx
cdq
mov edi, eax
mov ebx, edx
lea eax, [ebp - 0x28]
mov dword [ebp - 0xc], ebx
push eax
call fcn.1005f280
mov eax, edi
add esp, 4
or eax, ebx
jne 0x1005f00b
mov ebx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x28]
mov dword [ebp - 4], ebx
jmp 0x1005f079
test ebx, ebx
jg 0x1005f019
jl 0x1005f015
test edi, edi
jae 0x1005f019
or al, 0xff
jmp 0x1005f01b
mov al, 1
mov esi, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 8], esi
mov dword [ebp - 4], ebx
test al, al
jle 0x1005f080
push 0
push 0xf4240
push dword [ebp - 0xc]
push edi
call fcn.1010f9b0
mov ecx, eax
or edi, 0xffffffff
sub edi, ecx
mov eax, 0x7fffffff
sbb eax, edx
cmp esi, edi
jne 0x1005f051
cmp ebx, eax
je 0x1005f06e
cmp ebx, eax
jg 0x1005f05f
jl 0x1005f05b
cmp esi, edi
jae 0x1005f05f
or al, 0xff
jmp 0x1005f061
mov al, 1
test al, al
jns 0x1005f06e
add esi, ecx
adc edx, ebx
mov dword [ebp - 4], edx
jmp 0x1005f079
mov eax, 0x7fffffff
or esi, 0xffffffff
mov dword [ebp - 4], eax
mov dword [ebp - 8], esi
nop dword [eax]
call sub.MSVCP140.dll__Query_perf_frequency
mov edi, eax
mov esi, edx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], esi
call sub.MSVCP140.dll__Query_perf_counter
mov ebx, eax
mov eax, edx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], eax
cmp edi, 0x989680
jne 0x1005f0c1
test esi, esi
jne 0x1005f0c1
mov ecx, 0x64
mul ecx
mov ebx, eax
mov eax, dword [ebp - 0xc]
mul ecx
add ebx, edx
mov esi, eax
jmp 0x1005f171
cmp edi, 0x16e3600
jne 0x1005f122
test esi, esi
jne 0x1005f122
push esi
push edi
push eax
push ebx
call fcn.1010f900
push 0
push 0x16e3600
mov esi, edx
mov edi, eax
push esi
push edi
call fcn.1010f9b0
sub ebx, eax
mov eax, dword [ebp - 0x14]
push 0
push 0x3b9aca00
sbb eax, edx
push eax
push ebx
call fcn.1010f9b0
push 0
push 0x16e3600
push edx
push eax
call fcn.1010f900
mov dword [ebp - 0x14], eax
mov ecx, 0x3b9aca00
mov eax, esi
mov ebx, edx
mov esi, dword [ebp - 0x14]
mul ecx
mov ecx, eax
mov eax, edi
jmp 0x1005f164
push ebx
push esi
push edi
push eax
push ebx
call fcn.1010fc70
mov esi, ebx
pop ebx
nop
push 0
push 0x3b9aca00
push esi
push ecx
mov ebx, eax
mov edi, edx
call fcn.1010f9b0
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push edx
push eax
call fcn.1010f900
mov esi, eax
mov dword [ebp - 0x1c], edx
mov ecx, 0x3b9aca00
mov eax, edi
mul ecx
mov ecx, eax
mov eax, ebx
mov ebx, dword [ebp - 0x1c]
mov edx, 0x3b9aca00
mul edx
add ecx, edx
add esi, eax
adc ebx, ecx
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
cmp edx, esi
jne 0x1005f183
cmp ecx, ebx
je 0x1005f265
cmp ecx, ebx
jg 0x1005f191
jl 0x1005f18d
cmp edx, esi
jae 0x1005f191
or al, 0xff
jmp 0x1005f193
mov al, 1
test al, al
jle 0x1005f265
mov edi, edx
sub edi, esi
mov esi, ecx
sbb esi, ebx
cmp edi, 0x914f0000
jne 0x1005f1b7
cmp esi, 0x4e94
je 0x1005f23a
cmp esi, 0x4e94
jg 0x1005f1cd
jl 0x1005f1c9
cmp edi, 0x914f0000
jae 0x1005f1cd
or al, 0xff
jmp 0x1005f1cf
mov al, 1
test al, al
jns 0x1005f23a
push 0
push 0xf4240
push esi
push edi
call fcn.1010f900
push 0
mov ebx, eax
mov eax, edx
push 0xf4240
push eax
push ebx
mov dword [ebp - 0xc], eax
call fcn.1010f9b0
cmp eax, edi
jne 0x1005f1fe
cmp edx, esi
je 0x1005f229
cmp edx, esi
jg 0x1005f20c
jl 0x1005f208
cmp eax, edi
jae 0x1005f20c
or al, 0xff
jmp 0x1005f20e
mov al, 1
test al, al
jns 0x1005f229
mov eax, dword [ebp - 0xc]
add ebx, 1
push ebx
adc eax, 0
mov dword [ebp - 0x1c], eax
call sub.KERNEL32.dll_Sleep
jmp 0x1005f080
mov eax, dword [ebp - 0xc]
push ebx
mov dword [ebp - 0x1c], eax
call sub.KERNEL32.dll_Sleep
jmp 0x1005f080
push 0x5265c00
call sub.KERNEL32.dll_Sleep
jmp 0x1005f080
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0xf
push eax
mov dword [ebp - 0x2c], 0
call fcn.1005eca0
add esp, 4
jmp 0x1005f268
mov ebx, dword [ebp - 0x10]
cmp byte [section..data], 0
je 0x1005efb0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret