Function at 0x1000a270
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
cmp byte [0x1002032c], 0
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x38], eax
mov byte [0x1002124c], 0
je 0x1000a4fb
mov eax, dword [0x100203d8]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x14], 0x7f7fffff
mov dword [ebp - 0x10], 0x7f7fffff
cmp eax, 1
jne 0x1000a2f3
mov al, byte [ebx + 0x24]
and al, 1
jmp 0x1000a312
test eax, eax
jne 0x1000a2fe
mov eax, 1
jmp 0x1000a30d
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, dword [ebp - 0xc]
and eax, 0x8000
test eax, eax
setne al
test al, al
je 0x1000a4fb
push ecx
push ecx
call fcn.100068d0
test al, al
je 0x1000a4fb
mov eax, dword [0x10020318]
sub eax, 0
je 0x1000a34a
sub eax, 1
je 0x1000a341
mov dword [ebp - 8], 0
jmp 0x1000a351
mov dword [ebp - 8], 2
jmp 0x1000a351
mov dword [ebp - 8], 1
mov ecx, dword [0x10021244]
lea eax, [ebp - 8]
sub ecx, dword [0x10021240]
push eax
mov eax, 0x66666667
imul ecx
mov ecx, dword [0x10021240]
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x10021244]
push eax
call fcn.10002240
mov eax, dword [0x10021244]
add esp, 8
mov esi, dword [0x10021240]
mov dword [ebp - 0x3c], eax
cmp esi, eax
je 0x1000a4fb
mov edi, dword [ebp - 0x38]
push esi
push ebx
push edi
push dword [ebp - 0xc]
call fcn.10009fc0
test al, al
jne 0x1000a3c0
add esi, 0x28
cmp esi, dword [ebp - 0x3c]
jne 0x1000a3a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp byte [0x100203c8], 0
movups xmm0, xmmword [esi + 8]
mov eax, dword [esi]
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 4]
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x30], eax
movups xmm0, xmmword [esi + 0x18]
movups xmmword [ebp - 0x1c], xmm0
je 0x1000a46a
mov eax, dword [0x10020d98]
mov ecx, edi
call eax
test al, al
je 0x1000a46a
or dword [ebx + 0x24], 1
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x5ec]
cmp eax, 0x39
jne 0x1000a41f
mov ecx, edi
call fcn.100063c0
xorps xmm1, xmm1
movss xmm0, dword [eax]
comiss xmm0, xmm1
jbe 0x1000a41f
and dword [ebx + 0x24], 0xfffffffe
cmp dword [0x1002126c], 0xffffffff
mov eax, dword [0x10021264]
mov dword [0x10021270], 0
je 0x1000a456
test eax, eax
je 0x1000a44c
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
xor eax, eax
mov dword [0x10021264], eax
mov dword [0x10021268], 0
push 0x10021250
mov ecx, 0x10021264
mov dword [0x10021274], eax
call fcn.1000a9b0
mov eax, dword [edi]
mov ecx, edi
mov byte [ebp - 8], 0
call dword [eax + 0x5ec]
cmp eax, 0x39
jne 0x1000a4b3
mov ecx, edi
call fcn.100063c0
xorps xmm1, xmm1
movss xmm0, dword [eax]
comiss xmm0, xmm1
jbe 0x1000a499
mov al, 1
mov byte [0x10020eb4], al
jmp 0x1000a49e
mov al, byte [0x10020eb4]
test byte [ebx + 0x24], 1
jne 0x1000a4d4
test al, al
je 0x1000a4d4
mov byte [0x10020eb4], 0
mov cl, 1
jmp 0x1000a4d7
test byte [ebx + 0x24], 1
je 0x1000a4d4
mov eax, dword [0x10020d98]
mov ecx, edi
call eax
mov ecx, dword [ebp - 8]
test al, al
movzx ecx, cl
mov edx, 1
cmovne ecx, edx
jmp 0x1000a4d7
mov ecx, dword [ebp - 8]
cmp dword [0x100202cc], 1
jne 0x1000a4ed
cmp byte [0x1002124c], 0
jne 0x1000a4ed
test cl, cl
je 0x1000a4fb
lea eax, [ebp - 0x20]
push eax
push ecx
push ebx
push dword [ebp - 0xc]
call fcn.10007080
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc