Function at 0x100031f0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10043070]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [0x10045228], 0
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], eax
je 0x10003415
mov esi, dword [0x10043a84]
shl esi, 4
sub esi, dword [0x10043a84]
push 0x100451c8
add esi, 0x4e
call dword [sym.imp.USER32.dll_GetCursorPos]
push 0x100451c8
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [0x100451c8]
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
cmp eax, 0x4a
jle 0x1000327e
cmp eax, 0x108
jge 0x1000327e
mov ecx, dword [0x100451cc]
cmp ecx, esi
jle 0x1000327e
lea eax, [esi + 0xa]
cmp ecx, eax
jge 0x1000327e
push 1
call edi
mov eax, 2
jmp 0x10003280
xor eax, eax
mov ecx, dword [ebx]
mov edx, 0xff00ff00
test ecx, ecx
mov esi, 0xffff0000
cmovne esi, edx
or edx, 0xffffffff
mov dword [ebp - 0x1c], esi
cmp eax, 1
jne 0x100032ae
lea eax, [ecx + 1]
mov dword [ebx], eax
cmp eax, dword [ebp + 0x10]
jle 0x100032b7
mov dword [ebx], 0
jmp 0x100032b7
cmp eax, 2
cmove esi, edx
mov dword [ebp - 0x1c], esi
mov ecx, dword [0x10043a84]
cmp dword [0x100451a8], ecx
jne 0x10003307
push 0x27
call edi
test al, 1
je 0x100032de
inc dword [ebx]
mov eax, dword [ebp + 0x10]
cmp dword [ebx], eax
jle 0x100032f0
mov dword [ebx], 0
jmp 0x100032f0
push 0x25
call edi
test al, 1
je 0x100032f0
add dword [ebx], 0xffffffff
jns 0x100032f0
mov eax, dword [ebp + 0x10]
mov dword [ebx], eax
mov ecx, dword [0x10043a84]
mov eax, 0xffffffff
cmp dword [0x100451a8], ecx
cmove esi, eax
mov dword [ebp - 0x1c], esi
mov edi, dword [sym.imp.USER32.dll_SetRect]
mov eax, ecx
shl eax, 4
sub eax, ecx
add eax, 0x4c
push eax
push 0x4a
push eax
push 0x4a
lea eax, [ebp - 0x18]
push eax
call edi
mov eax, dword [0x100451f8]
lea edx, [ebp - 0x18]
push 0xff000000
push pe_nt_image_headers32
push edx
mov ecx, dword [eax]
push 0xffffffffffffffff
push dword [ebp - 0x20]
push 0
push eax
call dword [ecx + 0x38]
mov ecx, dword [0x10043a84]
lea eax, [ebp - 0x18]
shl ecx, 4
sub ecx, dword [0x10043a84]
add ecx, 0x4d
push ecx
push 0x4b
push ecx
push 0x4b
push eax
call edi
mov eax, dword [0x100451f8]
lea edx, [ebp - 0x18]
push esi
push pe_nt_image_headers32
push edx
mov ecx, dword [eax]
push 0xffffffffffffffff
push dword [ebp - 0x20]
push 0
push eax
call dword [ecx + 0x38]
mov ecx, dword [0x10043a84]
mov eax, dword [ebx]
mov esi, dword [ebp - 0x24]
shl ecx, 4
sub ecx, dword [0x10043a84]
add ecx, 0x4c
mov esi, dword [esi + eax*4]
lea eax, [ebp - 0x18]
push ecx
push 0x10a
push ecx
push 0x10a
push eax
call edi
mov eax, dword [0x100451f8]
lea edx, [ebp - 0x18]
push 0xff000000
push 0x102
push edx
mov ecx, dword [eax]
push 0xffffffffffffffff
push esi
push 0
push eax
call dword [ecx + 0x38]
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebx]
mov esi, dword [ecx + eax*4]
mov ecx, dword [0x10043a84]
shl ecx, 4
sub ecx, dword [0x10043a84]
add ecx, 0x4d
push ecx
push 0x10b
push ecx
push 0x10b
lea eax, [ebp - 0x18]
push eax
call edi
push dword [ebp - 0x1c]
mov eax, dword [0x100451f8]
lea edx, [ebp - 0x18]
push 0x102
push edx
push 0xffffffffffffffff
mov ecx, dword [eax]
push esi
push 0
push eax
call dword [ecx + 0x38]
inc dword [0x10043a84]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10011944
mov esp, ebp
pop ebp
ret