Function at 0x40a480
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 ebx, dword [ebp + 0x2c]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x44], ebx
test edx, edx
jne 0x40a4fa
test ecx, ecx
jne 0x40a4fa
mov ecx, dword [ebp + 0x28]
cmp ecx, 0xf
jbe 0x40a4f3
mov edx, dword [ebp + 0x14]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a4e9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a88d
push ecx
push edx
call fcn.004af678
add esp, 8
xor eax, eax
jmp 0x40a89f
cmp dword [ebx], 0
je 0x40a50d
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 esi, eax
shl esi, 4
sub esi, eax
add esi, esi
mov dword [ebp - 0x40], esi
lea eax, [esi - 8]
add eax, ecx
mov dword [ebp - 0x3c], eax
lea eax, [edx + 0x37]
mov edx, dword [0x4bdda8]
cmp edx, dword [0x4bddb0]
jl 0x40a580
cmp edx, dword [0x4bddb8]
jg 0x40a580
mov ecx, dword [0x4bddac]
mov edi, dword [0x4bddb4]
cmp ecx, edi
jl 0x40a580
cmp ecx, dword [0x4bddbc]
jg 0x40a580
sub edx, dword [0x4bddb0]
cmp edx, eax
jl 0x40a580
add eax, 0xe6
cmp edx, eax
jg 0x40a580
mov eax, dword [ebp - 0x3c]
sub ecx, edi
cmp ecx, eax
jl 0x40a580
add eax, 0x19
cmp ecx, eax
jg 0x40a580
mov edi, 1
jmp 0x40a582
xor edi, edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, dword [0x4bdd94]
jne 0x40a5d5
cmp dword [0x4bddc8], 0
jne 0x40a5d5
cmp dword [0x4bddcc], 0
jne 0x40a5d5
cmp dword [ebx], 0
jne 0x40a5d1
test edi, edi
je 0x40a5d1
push 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x40a5d1
push 0
push 0
push 0
push 0
push 4
call dword [sym.imp.USER32.dll_mouse_event]
mov eax, 1
jmp 0x40a5d3
xor eax, eax
mov dword [ebx], eax
sub esp, 0x10
mov eax, esp
push 0x1d
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, 0xfffffff6
add eax, esi
push 0xea
push eax
mov eax, dword [ebp + 8]
add eax, 0x35
push eax
call fcn.00407780
sub esp, 0x10
mov eax, esp
push 0x1b
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, 0xfffffff7
add eax, esi
push 0xe8
push eax
mov eax, dword [ebp + 8]
add eax, 0x36
push eax
call fcn.00407780
test edi, edi
je 0x40a6b7
cmp dword [ebx], 0
jne 0x40a6b7
mov eax, 0x66666667
imul dword [0x4bdd8c]
mov eax, 0x66666667
sar edx, 1
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
imul dword [0x4bdd88]
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff8
sar edx, 1
add eax, esi
movzx edi, bl
mov esi, dword [ebp + 8]
mov ecx, edx
mov dword [ebp - 0x3c], eax
mov ebx, edi
xor eax, eax
shr ecx, 0x1f
mov word [ebp - 0x22], ax
add ecx, edx
mov dword [ebp - 0x38], eax
add esi, 0x37
mov eax, 0x66666667
shl ebx, 8
imul dword [0x4bdd84]
movzx ecx, cl
or ebx, ecx
shl ebx, 8
sar edx, 1
jmp 0x40a72b
mov eax, 0x92492493
imul dword [0x4bdd8c]
mov eax, 0x92492493
add edx, dword [0x4bdd8c]
sar edx, 2
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
imul dword [0x4bdd88]
mov eax, dword [ebp + 0xc]
add edx, dword [0x4bdd88]
add eax, 0xfffffff8
add eax, esi
sar edx, 2
mov esi, dword [ebp + 8]
mov ecx, edx
mov dword [ebp - 0x3c], eax
add esi, 0x37
xor eax, eax
shr ecx, 0x1f
add ecx, edx
mov word [ebp - 0x22], ax
mov dword [ebp - 0x38], eax
mov eax, 0x92492493
imul dword [0x4bdd84]
movzx edi, bl
add edx, dword [0x4bdd84]
mov ebx, edi
shl ebx, 8
movzx ecx, cl
or ebx, ecx
shl ebx, 8
sar edx, 2
mov ecx, dword [ebp - 0x3c]
mov eax, edx
shr eax, 0x1f
add eax, edx
shl edi, 8
movzx eax, al
or ebx, eax
mov dword [ebp - 0x34], 1
lea eax, [esi + 0xe6]
mov dword [ebp - 0x14], 0x1400
mov dword [ebp - 0x20], eax
lea eax, [ecx + 0x19]
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], esi
push eax
push dword [0x4bdda4]
mov dword [ebp - 0x2c], ecx
mov word [ebp - 0x26], bx
mov word [ebp - 0x24], di
mov dword [ebp - 0x18], 0x14001400
call dword [sym.imp.MSIMG32.dll_GradientFill]
movzx eax, word [0x4bdd80]
push ecx
push 0x190
push eax
sub esp, 0x18
mov ecx, esp
push 0x4bdd68
call fcn.00440d20
movsx esi, word [ebp + 0x30]
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]
dec eax
add eax, dword [ebp - 0x40]
push eax
mov eax, dword [ebp + 8]
add eax, 0x38
add eax, esi
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
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 + 0x14]
push eax
call fcn.00440d20
mov eax, dword [ebp + 0xc]
add eax, 0xfffffffe
add eax, dword [ebp - 0x40]
add esi, 0x37
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.00407920
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp + 0x28]
mov esi, dword [eax]
cmp ecx, 0xf
jbe 0x40a89d
mov edx, dword [ebp + 0x14]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a893
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40a893
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 0x2c