Function at 0x10058c18
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1012dad5
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x1016c008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
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 edi, dword [ebp + 0x18]
sub eax, edi
cmp eax, 6
jb 0x10058c98
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
mov esi, 0xf
mov dword [ebp - 0x28], 0
cmovae eax, dword [ebp + 8]
lea ebx, [ebp - 0x28]
mov dword [ebp - 0x2c], eax
lea eax, [edi + 6]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
cmp eax, esi
jbe 0x10058b36
mov esi, eax
or esi, 0xf
cmp esi, 0x7fffffff
jbe 0x10058b1b
mov esi, Ordinal_2
jmp 0x10058b25
mov eax, 0x16
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
push eax
call fcn.10011aa0
mov ebx, eax
lea eax, [edi + 6]
mov dword [ebp - 0x28], ebx
push edi
push dword [ebp - 0x2c]
mov dword [ebp - 0x18], eax
push ebx
mov dword [ebp - 0x14], esi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [str._style]
add esp, 0xc
mov dword [ebx + edi], eax
mov ax, word [0x10160c00]
mov word [ebx + edi + 4], ax
mov byte [ebx + edi + 6], 0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
mov ecx, 0x101e95b0
call fcn.10010790
mov esi, dword [eax]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x10058bad
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10058ba3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10058c68
push edx
push ecx
call fcn.10128808
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp esi, 3
ja case.0x10058bc4.0
jmp dword [esi*4 + 0x10058ca0]
lea eax, [ebp + 8]
mov ecx, 0x101e95b0
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.10059250
mov eax, dword [eax]
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
setne bl
jmp 0x10058c42
lea eax, [ebp + 8]
mov ecx, 0x101e95b0
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.10059250
mov eax, dword [eax]
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setne bl
jmp 0x10058c42
lea eax, [ebp + 8]
mov ecx, 0x101e95b0
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.10059250
mov eax, dword [eax]
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
sete bl
jmp 0x10058c42
mov bl, 1
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x10058c78
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10058c6e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10058c6e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10128808
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1012838d
mov esp, ebp
pop ebp
ret 0x18
call fcn.10004ec0
nop dword [eax]
inc eax
mov word [93047568], es
adc bl, dh
mov eax, dword [0x58c1810]
adc byte [ebp - 0x75], dl
push ebp
mov ebp, esp