Function at 0x10004030
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 0x1002cadd
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
mov eax, dword [0x1003800c]
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 [0x1003cd14], 0x10
jbe 0x10004097
cmp dword [0x1003cd18], 0x10
mov eax, 0x1003cd04
mov dword [0x1003cd14], 0
cmovae eax, dword [0x1003cd04]
mov byte [eax], 0
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
xor ecx, ecx
mov dword [0x1003cce4], ecx
push ecx
call esi
mov ecx, dword [0x1003cce4]
test al, 1
jne 0x100040c1
inc ecx
mov dword [0x1003cce4], ecx
cmp ecx, 0xff
jb 0x100040a5
cmp ecx, 8
jne 0x10004203
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 [0x1003cd18], 0x10
mov ecx, 0x1003cd04
mov dword [ebp - 0x1c], edx
cmovae ecx, dword [0x1003cd04]
mov byte [ebp - 0x2c], dl
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10004100
sub ecx, esi
test ecx, ecx
jle 0x10004176
lea eax, [ecx - 1]
xor esi, esi
mov dword [ebp - 0x34], eax
test eax, eax
jle 0x10004176
nop dword [eax]
cmp dword [0x1003cd18], 0x10
mov eax, 0x1003cd04
cmovae eax, dword [0x1003cd04]
mov cl, byte [eax + esi]
mov byte [ebp - 0x30], cl
cmp edx, edi
jae 0x10004157
lea eax, [edx + 1]
cmp edi, 0x10
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
mov byte [eax + edx], cl
mov byte [eax + edx + 1], 0
jmp 0x1000416a
push dword [ebp - 0x30]
mov byte [ebp - 0x38], 0
push dword [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.10002c40
mov edi, dword [ebp - 0x18]
inc esi
mov edx, dword [ebp - 0x1c]
cmp esi, dword [ebp - 0x34]
jl 0x10004120
cmp dword [0x1003cd18], 0x10
mov eax, 0x1003cd04
mov dword [0x1003cd14], 0
mov ecx, 0x1003cd04
cmovae eax, dword [0x1003cd04]
cmp edi, 0x10
push edx
mov byte [eax], 0
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.10002b00
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
jb 0x100041e2
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100041d8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100041d8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1002b86e
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.1002b830
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
cmp ecx, 0x20
jne 0x10004258
mov edx, dword [0x1003cd18]
mov eax, edx
mov ecx, dword [0x1003cd14]
sub eax, ecx
cmp eax, 1
jb 0x1000423c
lea eax, [ecx + 1]
cmp edx, 0x10
mov dword [0x1003cd14], eax
mov eax, 0x1003cd04
cmovae eax, dword [0x1003cd04]
mov word [eax + ecx], 0x20
jmp 0x100041e2
push 1
push 0x10030760
mov byte [ebp - 0x34], 0
mov ecx, 0x1003cd04
push dword [ebp - 0x34]
push 1
call fcn.10002e90
jmp 0x100041e2
cmp ecx, 0x30
jb 0x100041e2
or eax, 0xffffffff
cmp ecx, 0x7a
cmovbe eax, ecx
jmp 0x100041e5