Function at 0x409ff0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b0a70
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4bd040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x2c]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x48], eax
test edx, edx
jne 0x40a069
test ecx, ecx
jne 0x40a069
mov ecx, dword [ebp + 0x28]
cmp ecx, 0xf
jbe 0x40a062
mov edx, dword [ebp + 0x14]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a058
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a43d
push ecx
push edx
call fcn.004af678
add esp, 8
xor eax, eax
jmp 0x40a44f
movsx eax, word [ebp + 0x10]
mov esi, eax
shl esi, 4
sub esi, eax
lea eax, [ecx - 2]
add esi, esi
add eax, esi
mov dword [ebp - 0x4c], eax
lea eax, [edx + 0x1e]
mov edx, dword [0x4bdda8]
cmp edx, dword [0x4bddb0]
jl 0x40a0d9
cmp edx, dword [0x4bddb8]
jg 0x40a0d9
mov ecx, dword [0x4bddac]
mov edi, dword [0x4bddb4]
cmp ecx, edi
jl 0x40a0d9
cmp ecx, dword [0x4bddbc]
jg 0x40a0d9
sub edx, dword [0x4bddb0]
cmp edx, eax
jl 0x40a0d9
add eax, 0x8c
cmp edx, eax
jg 0x40a0d9
mov eax, dword [ebp - 0x4c]
sub ecx, edi
cmp ecx, eax
jl 0x40a0d9
add eax, 0xc
cmp ecx, eax
jg 0x40a0d9
mov edi, 1
jmp 0x40a0db
xor edi, edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, dword [0x4bdd94]
jne 0x40a12d
cmp dword [0x4bddc8], 0
jne 0x40a12d
cmp dword [0x4bddcc], 0
jne 0x40a12d
test edi, edi
je 0x40a12d
push 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
je 0x40a12d
push 0
push 0
push 0
push 0
push 4
call dword [sym.imp.USER32.dll_mouse_event]
mov ecx, dword [ebp - 0x48]
xor eax, eax
cmp dword [ecx], eax
sete al
mov dword [ecx], eax
sub esp, 0x10
mov eax, esp
push 0xa
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0xff
mov eax, dword [ebp + 0xc]
dec eax
add eax, esi
push 0xa
push eax
mov eax, dword [ebp + 8]
add eax, 0x1d
push eax
call fcn.00407780
movzx eax, word [0x4bdd80]
push ecx
push 0x190
push eax
sub esp, 0x18
mov ecx, esp
push 0x4bdd68
call fcn.00440d20
sub esp, 0x10
mov eax, esp
sub esp, 0x18
mov ecx, esp
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0xff
lea eax, [ebp + 0x14]
push eax
call fcn.00440d20
mov eax, dword [ebp + 0xc]
add eax, 0xfffffffe
add eax, esi
push eax
mov eax, dword [ebp + 8]
add eax, 0x35
push eax
call fcn.00407920
movzx eax, word [0x4bdd80]
push ecx
push 0x190
push eax
sub esp, 0x18
mov ecx, esp
push 0x4bdd68
call fcn.00440d20
movups xmm0, xmmword [ebp + 0x30]
sub esp, 0x10
mov eax, esp
sub esp, 0x18
mov ecx, esp
movups xmmword [eax], xmm0
lea eax, [ebp + 0x14]
push eax
call fcn.00440d20
mov eax, dword [ebp + 0xc]
add eax, 0xfffffffd
add eax, esi
push eax
mov eax, dword [ebp + 8]
add eax, 0x34
push eax
call fcn.00407920
mov eax, dword [ebp - 0x48]
cmp dword [eax], 0
je 0x40a351
movups xmm1, xmmword [0x4bdd84]
mov eax, dword [ebp + 0xc]
add eax, esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x50], eax
movaps xmm0, xmm1
xor eax, eax
psrldq xmm0, 8
mov word [ebp - 0x22], ax
add edi, 0x1e
mov word [ebp - 0x12], ax
mov dword [ebp - 0x38], eax
movd eax, xmm0
movaps xmm0, xmm1
psrldq xmm0, 4
mov dword [ebp - 0x34], 1
movzx ecx, al
shl ecx, 8
movd eax, xmm0
movaps xmm0, xmm1
psrldq xmm0, 8
mov dword [ebp - 0x30], edi
movzx eax, al
or ecx, eax
movd eax, xmm1
shl ecx, 8
movzx eax, al
or ecx, eax
mov eax, 0x66666667
mov dword [ebp - 0x44], ecx
movd ecx, xmm0
movaps xmm0, xmm1
psrldq xmm0, 4
imul ecx
movd ecx, xmm0
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
movzx esi, al
mov eax, 0x66666667
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
movzx eax, cl
mov ecx, esi
shl ecx, 8
or eax, ecx
movd ecx, xmm1
shl eax, 8
mov dword [ebp - 0x4c], eax
mov eax, 0x66666667
imul ecx
mov ecx, dword [ebp - 0x4c]
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 0x50]
movzx eax, al
or ecx, eax
mov dword [ebp - 0x2c], edx
lea eax, [edi + 8]
mov dword [ebp - 0x20], eax
lea eax, [edx + 8]
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x1c], eax
movzx eax, dl
shl ax, 8
mov word [ebp - 0x28], ax
mov eax, edx
and eax, 0xff00
shr edx, 0x10
mov word [ebp - 0x26], ax
shl edx, 8
movzx eax, cl
shl ax, 8
mov word [ebp - 0x24], dx
mov word [ebp - 0x18], ax
push 1
push 1
lea eax, [ebp - 0x38]
shl esi, 8
push eax
push 2
lea eax, [ebp - 0x30]
mov word [ebp - 0x14], si
push eax
push dword [0x4bdda4]
and ecx, 0xff00
mov word [ebp - 0x16], cx
call dword [sym.imp.MSIMG32.dll_GradientFill]
jmp 0x40a412
push 1
sub esp, 0x10
mov eax, esp
sub esp, 0x10
mov dword [eax], 0x1e
mov dword [eax + 4], 0x1e
mov dword [eax + 8], 0x1e
mov dword [eax + 0xc], 0xff
test edi, edi
je 0x40a3b8
mov eax, 0x55555556
imul dword [0x4bdd84]
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x40], eax
mov eax, 0x55555556
imul dword [0x4bdd88]
mov eax, 0x55555556
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul dword [0x4bdd8c]
mov dword [ebp - 0x3c], ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
jmp 0x40a3e8
mov eax, dword [0x4bdd84]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [ebp - 0x40], eax
mov eax, dword [0x4bdd88]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [ebp - 0x3c], eax
mov eax, dword [0x4bdd8c]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [ebp - 0x38], eax
mov eax, dword [0x4bdd90]
mov dword [ebp - 0x34], eax
mov eax, esp
movups xmm0, xmmword [ebp - 0x40]
push 8
push 8
movups xmmword [eax], xmm0
mov eax, dword [ebp + 0xc]
add eax, esi
push eax
mov eax, dword [ebp + 8]
add eax, 0x1e
push eax
call fcn.00407830
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp + 0x28]
mov esi, dword [eax]
cmp ecx, 0xf
jbe 0x40a44d
mov edx, dword [ebp + 0x14]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a443
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40a443
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
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004af21a
mov esp, ebp
pop ebp
ret 0x38