Function at 0x40a8d0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b0aa0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4bd040]
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 edx, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x44], esi
test edx, edx
jne 0x40a94a
test ecx, ecx
jne 0x40a94a
mov ecx, dword [ebp + 0x2c]
cmp ecx, 0xf
jbe 0x40a943
mov edx, dword [ebp + 0x18]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a939
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ac4e
push ecx
push edx
call fcn.004af678
add esp, 8
xor eax, eax
jmp 0x40ac60
cmp dword [esi], 0
je 0x40a95d
push 0x1e
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
movsx eax, word [ebp + 0x10]
mov ebx, eax
shl ebx, 4
sub ebx, eax
add ebx, ebx
mov dword [ebp - 0x40], ebx
lea eax, [ebx - 5]
add eax, ecx
mov dword [ebp - 0x3c], eax
lea eax, [edx + 0xa]
mov edx, dword [0x4bdda8]
cmp edx, dword [0x4bddb0]
jl 0x40a9ce
cmp edx, dword [0x4bddb8]
jg 0x40a9ce
mov ecx, dword [0x4bddac]
mov edi, dword [0x4bddb4]
cmp ecx, edi
jl 0x40a9ce
cmp ecx, dword [0x4bddbc]
jg 0x40a9ce
sub edx, dword [0x4bddb0]
cmp edx, eax
jl 0x40a9ce
add eax, 0xd
cmp edx, eax
jg 0x40a9ce
mov eax, dword [ebp - 0x3c]
sub ecx, edi
cmp ecx, eax
jl 0x40a9ce
add eax, 0x12
cmp ecx, eax
jg 0x40a9ce
mov edi, 1
jmp 0x40a9d0
xor edi, edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, dword [0x4bdd94]
jne 0x40aa23
cmp dword [0x4bddc8], 0
jne 0x40aa23
cmp dword [0x4bddcc], 0
jne 0x40aa23
cmp dword [esi], 0
jne 0x40aa1f
test edi, edi
je 0x40aa1f
push 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x40aa1f
push 0
push 0
push 0
push 0
push 4
call dword [sym.imp.USER32.dll_mouse_event]
mov eax, 1
jmp 0x40aa21
xor eax, eax
mov dword [esi], eax
sub esp, 0x10
mov eax, esp
push 0x16
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0xff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff9
add eax, ebx
push 0x11
push eax
mov eax, dword [ebp + 8]
add eax, 8
push eax
call fcn.00407780
sub esp, 0x10
mov eax, esp
push 0x14
mov dword [eax], 0x3c
mov dword [eax + 4], 0x3c
mov dword [eax + 8], 0x3c
mov dword [eax + 0xc], 0xff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffffa
add eax, ebx
push 0xf
push eax
mov eax, dword [ebp + 8]
add eax, 9
push eax
call fcn.00407780
test edi, edi
je 0x40aaff
cmp dword [esi], 0
jne 0x40aaff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffffb
mov edi, dword [ebp + 8]
add eax, ebx
add edi, 0xa
mov dword [ebp - 0x3c], eax
xor eax, eax
mov word [ebp - 0x22], ax
mov dword [ebp - 0x38], eax
mov eax, 0x66666667
imul dword [0x4bdd8c]
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
movzx esi, al
mov eax, 0x66666667
imul dword [0x4bdd88]
mov eax, 0x66666667
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul dword [0x4bdd84]
movzx ebx, cl
mov ecx, esi
shl ecx, 8
or ebx, ecx
shl ebx, 8
sar edx, 1
jmp 0x40ab73
mov eax, dword [ebp + 0xc]
add eax, 0xfffffffb
mov edi, dword [ebp + 8]
add eax, ebx
add edi, 0xa
mov dword [ebp - 0x3c], eax
xor eax, eax
mov word [ebp - 0x22], ax
mov dword [ebp - 0x38], eax
mov eax, 0x92492493
imul dword [0x4bdd8c]
add edx, dword [0x4bdd8c]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
movzx esi, al
mov eax, 0x92492493
imul dword [0x4bdd88]
mov eax, 0x92492493
add edx, dword [0x4bdd88]
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul dword [0x4bdd84]
movzx ebx, cl
mov ecx, esi
add edx, dword [0x4bdd84]
shl ecx, 8
or ebx, ecx
shl ebx, 8
sar edx, 2
mov ecx, dword [ebp - 0x3c]
mov eax, edx
shr eax, 0x1f
add eax, edx
shl esi, 8
movzx eax, al
or ebx, eax
mov dword [ebp - 0x34], 1
lea eax, [edi + 0xd]
mov dword [ebp - 0x14], 0x1400
mov dword [ebp - 0x20], eax
lea eax, [ecx + 0x12]
mov dword [ebp - 0x1c], eax
movzx eax, bl
and ebx, 0xff00
push 1
shl ax, 8
push 1
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x38]
push eax
push 2
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], edi
push eax
push dword [0x4bdda4]
mov dword [ebp - 0x2c], ecx
mov word [ebp - 0x26], bx
mov word [ebp - 0x24], si
mov dword [ebp - 0x18], 0x14001400
call dword [sym.imp.MSIMG32.dll_GradientFill]
sub esp, 0x10
mov eax, esp
sub esp, 0x18
mov ecx, esp
mov dword [eax], 0xc8
mov dword [eax + 4], 0xc8
mov dword [eax + 8], 0xc8
mov dword [eax + 0xc], 0xff
lea eax, [ebp + 0x18]
push eax
call fcn.00440d20
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp + 0xc]
dec ecx
add eax, ecx
push eax
mov eax, dword [ebp + 8]
add eax, 0xc
push eax
call fcn.00407dc0
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp + 0x2c]
mov esi, dword [eax]
cmp ecx, 0xf
jbe 0x40ac5e
mov edx, dword [ebp + 0x18]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40ac54
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40ac54
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004af678
add esp, 8
mov eax, esi
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.004af21a
mov esp, ebp
pop ebp
ret 0x28