Function at 0x401a80
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404ac0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x105c
call fcn.004047f0
mov al, byte [0x407060]
push ebx
push esi
xor ebx, ebx
push edi
cmp al, bl
mov dword [ebp - 0x10], esp
jne 0x401aca
call fcn.00401ff0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [0x408fec], bl
je 0x401ae7
push ebx
push 0x408fec
push 0xc8
push ebx
push ebx
call fcn.004039c0
add esp, 0x14
mov eax, dword [0x407228]
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x401d8f
push ebx
push 1
push 0x12fc
call dword [eax + 0x4e0]
mov eax, dword [0x407228]
mov esi, dword [ebp + 8]
add esp, 0xc
mov ecx, dword [eax + 0x52c]
push 0x3ff00000
push ebx
mov dword [ecx + 0x1bac], esi
mov edx, dword [0x407228]
call dword [edx + 0x684]
add esp, 8
fstp st(0)
call fcn.00403800
cmp esi, dword [0x408fe4]
jb 0x401ec9
mov ecx, dword [0x407228]
lea eax, [esi + 0x2bc]
push 0x40000000
push ebx
mov dword [0x408fe4], eax
call dword [ecx + 0x684]
mov edx, dword [0x407228]
add esp, 8
fstp st(0)
push ebx
push esi
push 0x2687
call dword [edx + 0x4e0]
mov eax, dword [0x407228]
add esp, 0xc
push 0x40080000
push ebx
call dword [eax + 0x684]
mov eax, dword [0x408fcc]
add esp, 8
cmp eax, ebx
fstp st(0)
je 0x401c06
call fcn.00404210
mov ecx, dword [0x407228]
push 0x40100000
push ebx
call dword [ecx + 0x684]
mov eax, dword [0x408fd0]
add esp, 8
cmp eax, ebx
fstp st(0)
je 0x401c06
mov edx, dword [0x407228]
mov eax, dword [edx + 0x52c]
cmp dword [eax + 0x1bb8], ebx
je 0x401c06
lea ecx, [ebp - 0xac]
push ecx
call fcn.004036b0
add esp, 4
push ebx
push ebx
push 0x1c48
call dword [0x408fd0]
mov edx, dword [0x408fcc]
push edx
call dword [ebp - 0x5c]
mov dword [0x408fcc], ebx
mov dword [0x408fd0], ebx
mov eax, dword [0x407228]
push 0x40140000
push ebx
call dword [eax + 0x684]
mov ecx, dword [0x408fe0]
add esp, 8
fstp st(0)
mov eax, dword [ecx + 4]
cmp eax, ebx
je 0x401d7a
push ebx
push esi
push 0x2687
call eax
mov edx, dword [0x407228]
push 0x40180000
push ebx
call dword [edx + 0x684]
mov eax, dword [0x408fe8]
add esp, 8
cmp esi, eax
fstp st(0)
jbe 0x401cb8
cmp eax, ebx
jne 0x401c68
add esi, 0x1243c8
mov dword [0x408fe8], esi
jmp 0x401cb8
mov eax, dword [0x407228]
push ebx
push ebx
add esi, 0x1d394
push ebx
push 5
mov dword [0x408fe8], esi
call dword [eax + 0x4dc]
add esp, 0x10
cmp eax, ebx
jne 0x401cb8
mov ecx, dword [0x407228]
push 0x401c0000
push ebx
call dword [ecx + 0x684]
mov edx, dword [0x407228]
add esp, 8
fstp st(0)
mov eax, dword [edx + 0x52c]
mov dword [eax + 0x1bb0], 1
mov ecx, dword [0x407228]
push 0x40200000
push ebx
call dword [ecx + 0x684]
mov edx, dword [0x407228]
add esp, 8
fstp st(0)
push ebx
push ebx
push ebx
push 1
call dword [edx + 0x4dc]
add esp, 0x10
mov dword [0x407224], eax
mov eax, dword [0x407228]
push 0x40220000
push ebx
call dword [eax + 0x684]
mov ecx, dword [0x408fe0]
add esp, 8
fstp st(0)
push 0x409b44
push ebx
push 0x1c4fe
call dword [ecx + 4]
mov edx, dword [0x407228]
push 0x40240000
push ebx
call dword [edx + 0x684]
mov eax, dword [0x408fe0]
add esp, 8
fstp st(0)
push 0x409b48
push ebx
push 0x3df7
call dword [eax + 4]
cmp eax, 2
jne 0x401d47
mov byte [0x407060], bl
mov ecx, dword [0x407228]
push 0x40260000
push ebx
call dword [ecx + 0x684]
add esp, 8
fstp st(0)
call fcn.004044a0
mov edx, dword [0x407228]
push 0x40280000
push ebx
call dword [edx + 0x684]
fstp st(0)
add esp, 8
mov eax, dword [0x407228]
push ebx
push ebx
push 0x12fc
call dword [eax + 0x4e0]
add esp, 0xc
cmp byte [0x407230], bl
je 0x401ec9
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 8
call esi
test ax, ax
jge 0x401ec9
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x401ec9
push 0x11
call esi
test ax, ax
jge 0x401eda
call fcn.00402230
call fcn.00402be0
cmp dword [0x408fd0], ebx
je 0x401ebc
mov ecx, 0x135
xor eax, eax
lea edi, [ebp - 0x777]
mov byte [ebp - 0x778], bl
rep stosd dword es:[edi], eax
mov ecx, dword [0x407228]
push ebx
stosw word es:[edi], ax
push 1
push 0x12fc
stosb byte es:[edi], al
call dword [ecx + 0x4e0]
mov eax, dword [0x407228]
add esp, 0xc
lea edx, [ebp - 0x778]
push 1
push edx
call dword [eax + 0x550]
lea edi, [ebp - 0x67b]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x2a0]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x2a0]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x38e]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [ebp - 0xac]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.004036b0
add esp, 4
lea ecx, [ebp - 0x2a0]
lea edx, [ebp - 0xac]
push ecx
push edx
push 0x1485
call dword [0x408fd0]
push 0x409b4c
push 1
push 0x148a
call dword [0x408fd0]
push 0x67
push 0x3ee
call dword [sym.imp.KERNEL32.dll_Beep]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x408fd0]
cmp eax, ebx
je 0x401ef0
push 0x409b50
push ebx
push 0x148a
call eax
push 0x338
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00403230
push 0x67
push 0x26a
jmp 0x401ec3