Function at 0x10031ca0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101162e8
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x30
mov eax, dword [0x10150380]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov eax, Ordinal_2
mov ecx, dword [ebx + 0x18]
sub eax, ecx
mov dword [ebp - 0x34], ecx
cmp eax, 6
jb 0x10031efa
cmp dword [ebx + 0x1c], 0xf
lea eax, [ebx + 8]
lea edx, [ecx + 6]
mov dword [ebp - 0x1c], 0
cmova eax, dword [ebx + 8]
lea edi, [ebp - 0x2c]
mov esi, 0xf
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x18], 0
xorps xmm0, xmm0
mov dword [ebp - 0x38], edx
movups xmmword [ebp - 0x2c], xmm0
cmp edx, esi
jbe 0x10031da6
mov esi, edx
or esi, 0xf
cmp esi, 0x7fffffff
jbe 0x10031d66
mov ecx, Ordinal_2
mov esi, Ordinal_2
add ecx, 0x23
push ecx
call fcn.1010fe49
add esp, 4
test eax, eax
je 0x10031ec7
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x10031d9a
mov eax, 0x16
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
test eax, eax
jne 0x10031d7b
xor edi, edi
jmp 0x10031da0
cmp eax, 0x1000
jb 0x10031d8f
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x10031eff
jmp 0x10031d4a
push eax
call fcn.1010fe49
add esp, 4
mov edi, eax
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x2c], edi
push ecx
push eax
push edi
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], esi
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp - 0x34]
add esp, 0xc
mov eax, dword [str._style]
mov dword [edi + ecx], eax
mov ax, word [0x10141c98]
mov word [edi + ecx + 4], ax
mov byte [edi + ecx + 6], 0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push eax
mov ecx, 0x10180018
call fcn.1000de80
mov esi, dword [eax]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x10031e1e
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10031e14
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10031ec7
push ecx
push edx
call fcn.1011035b
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
cmp esi, 3
ja case.0x10031e35.0
jmp dword [esi*4 + 0x10031f04]
lea eax, [ebx + 8]
mov ecx, 0x10180018
push eax
call fcn.10031f40
push dword [eax]
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
setne al
jmp 0x10031e9e
lea eax, [ebx + 8]
mov ecx, 0x10180018
push eax
call fcn.10031f40
push dword [eax]
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setne al
jmp 0x10031e9e
lea eax, [ebx + 8]
mov ecx, 0x10180018
push eax
call fcn.10031f40
push dword [eax]
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
sete al
jmp 0x10031e9e
mov al, 1
mov ecx, dword [ebx + 0x1c]
mov byte [ebp - 0x2d], al
cmp ecx, 0xf
jbe 0x10031eda
mov edx, dword [ebx + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10031ecd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10031ecd
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1011035b
mov al, byte [ebp - 0x2d]
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1010fe2d
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x18
call fcn.10003df0
call fcn.10003d50
pushfd
push ds
add edx, dword [eax]
cmp al, 0x1e
add edx, dword [eax]
pop ebp
push ds
add edx, dword [eax]
jnp 0x10031f30
add edx, dword [eax]
int3
call fcn.10032180
mov eax, dword [eax]
add eax, 0x20
mov esp, ebp
pop ebp
ret 4