Function at 0x10004110
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 0x1002ac2d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
mov eax, dword [0x10037040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x1003c12c], 0x10
jbe 0x10004177
cmp dword [0x1003c130], 0xf
mov eax, 0x1003c11c
mov dword [0x1003c12c], 0
cmova eax, dword [0x1003c11c]
mov byte [eax], 0
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
xor ecx, ecx
mov dword [0x1003c0fc], ecx
push ecx
call esi
mov ecx, dword [0x1003c0fc]
test al, 1
jne 0x100041a1
inc ecx
mov dword [0x1003c0fc], ecx
cmp ecx, 0xff
jb 0x10004185
cmp ecx, 8
jne 0x100042e3
xorps xmm0, xmm0
mov edi, 0xf
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], 0
xor edx, edx
cmp dword [0x1003c130], edi
mov ecx, 0x1003c11c
mov dword [ebp - 0x1c], edx
cmova ecx, dword [0x1003c11c]
mov byte [ebp - 0x2c], dl
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100041e0
sub ecx, esi
test ecx, ecx
jle 0x10004256
lea eax, [ecx - 1]
xor esi, esi
mov dword [ebp - 0x34], eax
test eax, eax
jle 0x10004256
nop dword [eax]
cmp dword [0x1003c130], 0xf
mov eax, 0x1003c11c
cmova eax, dword [0x1003c11c]
mov cl, byte [eax + esi]
mov byte [ebp - 0x30], cl
cmp edx, edi
jae 0x10004237
lea eax, [edx + 1]
cmp edi, 0xf
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
mov byte [eax + edx], cl
mov byte [eax + edx + 1], 0
jmp 0x1000424a
push dword [ebp - 0x30]
mov byte [ebp - 0x38], 0
push dword [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.10002a60
mov edi, dword [ebp - 0x18]
inc esi
mov edx, dword [ebp - 0x1c]
cmp esi, dword [ebp - 0x34]
jl 0x10004200
cmp dword [0x1003c130], 0xf
mov eax, 0x1003c11c
mov dword [0x1003c12c], 0
mov ecx, 0x1003c11c
cmova eax, dword [0x1003c11c]
cmp edi, 0xf
push edx
mov byte [eax], 0
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
push eax
call fcn.10002920
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x100042c2
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100042b8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100042b8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1002993f
add esp, 8
or eax, 0xffffffff
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.10029901
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
cmp ecx, 0x20
jne 0x10004338
mov edx, dword [0x1003c130]
mov eax, edx
mov ecx, dword [0x1003c12c]
sub eax, ecx
cmp eax, 1
jb 0x1000431c
lea eax, [ecx + 1]
cmp edx, 0xf
mov dword [0x1003c12c], eax
mov eax, 0x1003c11c
cmova eax, dword [0x1003c11c]
mov word [eax + ecx], 0x20
jmp 0x100042c2
push 1
push 0x1002ed08
mov byte [ebp - 0x34], 0
mov ecx, 0x1003c11c
push dword [ebp - 0x34]
push 1
call fcn.10002c80
jmp 0x100042c2
cmp ecx, 0x30
jb 0x100042c2
or eax, 0xffffffff
cmp ecx, 0x7a
cmovbe eax, ecx
jmp 0x100042c5