Function at 0x4018f0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf4
mov eax, dword [0x47f228]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x47fe78], 0
mov eax, dword [0x47f190]
mov dword [ebp - 0xc], eax
mov eax, dword [0x47f194]
mov dword [ebp - 0x14], 0x40
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], eax
jne 0x401c53
lea eax, [ebp - 0xf4]
mov ecx, 0x482aa0
push eax
lea eax, [ebp - 0xf0]
push eax
call fcn.004132d0
lea eax, [ebp - 0xe4]
mov ecx, 0x4838b8
push eax
call fcn.0040c720
lea eax, [ebp - 0xec]
mov ecx, 0x482ac8
push eax
lea eax, [ebp - 0xe8]
push eax
call fcn.0040c4f0
push 9
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x40198a
mov eax, dword [0x47f194]
add eax, 0xfffffff8
mov dword [ebp - 0xec], eax
call fcn.00412de0
mov ecx, dword [ebp - 0xe8]
cmp ecx, 0x40
jl 0x401c53
push esi
mov esi, dword [0x47f194]
push edi
mov edi, dword [ebp - 0xec]
test edi, edi
js 0x401ab6
lea eax, [esi - 0xa0]
cmp edi, eax
jge 0x401ab6
lea eax, [ecx - 0x40]
mov esi, 0x5f
cdq
push ebx
mov ebx, dword [0x481fe0]
idiv ebx
mov ecx, eax
mov eax, 0x2aaaaaab
add ecx, dword [ebp - 0xf0]
imul edi
mov dword [ebp - 0xe8], ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
sub esi, dword [ebp - 0xf4]
mov dword [ebp - 0xec], esi
cmp ebx, 0x10
je 0x401a33
mov eax, 0x10
cdq
idiv ebx
push edx
push eax
push esi
push ecx
mov ecx, 0x4838b8
call fcn.0040cfe0
mov ecx, dword [ebp - 0xe8]
mov esi, dword [ebp - 0xec]
test eax, eax
jle 0x401a33
sub ecx, eax
mov dword [ebp - 0xe8], ecx
push esi
push ecx
mov ecx, 0x4838b8
call fcn.0040c5b0
pop ebx
test eax, eax
jne 0x401a85
call fcn.00412a20
movsx eax, byte [0x2485398]
mov ecx, 0x4838b8
push eax
push dword [ebp - 0xec]
push dword [ebp - 0xe8]
call fcn.0040cdf0
test eax, eax
js 0x401a85
movsx ecx, byte [0x2485398]
cmp eax, ecx
je 0x401a85
push eax
push dword [0x482a94]
call fcn.00408f50
add esp, 8
mov ecx, 0x4838b8
call fcn.0040b230
push 0x201
push 0
lea eax, [ebp - 0x14]
push eax
push dword [0x482a94]
call dword [sym.imp.USER32.dll_RedrawWindow]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418a55
mov esp, ebp
pop ebp
ret
lea eax, [esi - 0x9c]
cmp edi, eax
jl 0x401b5c
lea eax, [esi - 0x5a]
cmp edi, eax
jge 0x401b5c
lea eax, [ecx - 0x40]
sub esi, edi
cdq
sub esi, 0x5c
idiv dword [0x481fe0]
mov ecx, eax
mov eax, 0x66666667
add ecx, dword [ebp - 0xf0]
imul esi
mov dword [ebp - 0xe8], ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push ecx
mov ecx, 0x4838b8
mov dword [ebp - 0xec], eax
call fcn.0040c640
test eax, eax
jne 0x401b17
call fcn.00412a20
mov ecx, 0x4838b8
call fcn.0040b230
push 0x201
push 0
lea eax, [ebp - 0x14]
push eax
push dword [0x482a94]
call dword [sym.imp.USER32.dll_RedrawWindow]
pop edi
mov dword [0x47e010], 0xfffe7961
mov dword [0x47e014], 0xfffe7961
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418a55
mov esp, ebp
pop ebp
ret
lea eax, [esi - 0x53]
cmp edi, eax
jl 0x401bf2
lea eax, [esi - 0x14]
cmp edi, eax
jge 0x401bf2
lea eax, [ecx - 0x40]
sub esi, edi
cdq
mov ecx, 0x4838b8
idiv dword [0x481fe0]
add eax, dword [ebp - 0xf0]
mov dword [ebp - 0xe8], eax
lea eax, [esi*4 - 0x50]
mov dword [ebp - 0xec], eax
call fcn.0040b230
push 0x201
push 0
lea eax, [ebp - 0x14]
mov dword [0x47e010], 0xfffe7961
push eax
push dword [0x482a94]
mov dword [0x47e014], 0xfffe7961
call dword [sym.imp.USER32.dll_RedrawWindow]
mov eax, dword [ebp - 0xe8]
mov dword [0x47e008], eax
mov eax, dword [ebp - 0xec]
pop edi
mov dword [0x47e00c], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418a55
mov esp, ebp
pop ebp
ret
lea eax, [esi - 0xd]
cmp edi, eax
jl 0x401c51
lea eax, [esi - 2]
cmp edi, eax
jg 0x401c51
mov ecx, 0x4838b8
mov dword [0x47e0d4], 0xffffff00
call fcn.0040b230
push 0x201
push 0
lea eax, [ebp - 0x14]
push eax
push dword [0x482a94]
call dword [sym.imp.USER32.dll_RedrawWindow]
push 0x46d360
call fcn.00405280
add esp, 4
mov dword [0x47e010], 0xfffe7961
mov dword [0x47e014], 0xfffe7961
call fcn.004052c0
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418a55
mov esp, ebp
pop ebp
ret