Function at 0x418678
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push 1
xor edi, edi
pop ebx
cmp dword [ebp + 0x10], edi
mov dword [ebp - 0x14], ebx
jl 0x4188c1
cmp dword [ebp + 0x10], 0x1770
jg 0x4188c1
cmp dword [0x48d568], edi
je 0x4188c1
cmp dword [ebp + 0x10], 0xffff
jg 0x4188c1
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push ebx
call esi
movsx eax, ax
shr eax, 0x10
test ax, ax
jne 0x4188c1
push 0x11
call esi
movsx eax, ax
shr eax, 0x10
test ax, ax
jne 0x4188c1
mov ebx, dword [ebp + 8]
xor esi, esi
cmp dword [0x49a574], edi
je 0x4186fd
push ebx
call fcn.00418d73
mov esi, eax
pop ecx
cmp esi, edi
je 0x41872c
push esi
call fcn.004178fa
cmp esi, edi
pop ecx
mov dword [ebp + 8], eax
je 0x418711
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov eax, dword [ebp + 8]
cmp eax, edi
je 0x41872c
mov ecx, dword [eax + 4]
call fcn.0044a1e1
test eax, eax
je 0x41872c
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], edi
je 0x418734
push 1
pop eax
jmp 0x4188c3
mov esi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push 0x40b688
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x18], edi
call esi
test eax, eax
mov dword [ebp - 0x10], eax
je 0x41876f
push eax
push ebx
call fcn.00418cc0
pop ecx
cmp eax, 0xfffffffe
pop ecx
je 0x41888a
cmp eax, 1
jg 0x41888a
cmp dword [ebp + 0xc], 0
mov eax, dword [ebx]
lea ecx, [ebp - 8]
push ecx
push ebx
je 0x418784
call dword [eax + 0x28c]
jmp 0x41878a
call dword [eax + 0x284]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x10]
je 0x41888a
test eax, eax
je 0x41888a
cmp dword [ebp + 0x10], 0
je 0x41888a
cmp dword [ebp + 0xc], 0
je 0x4187b5
push 0x40b65c
jmp 0x4187ba
push 0x40b630
call esi
mov edi, eax
test edi, edi
je 0x41888a
push edi
push ebx
call fcn.00418cc0
mov esi, eax
pop ecx
cmp esi, 0xfffffffe
pop ecx
je 0x41888a
cmp esi, 0xffffffff
push 1
jne 0x4187e7
pop esi
jmp 0x41887f
pop eax
cmp esi, eax
jl 0x418863
and dword [ebp - 0x14], 0
cmp esi, eax
jne 0x4187f7
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
push 2
pop esi
je 0x41887f
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push ebx
call fcn.0042a6ea
push dword [ebp - 4]
call fcn.0042a66e
add esp, 0x10
test eax, eax
je 0x418876
push dword [ebp - 4]
call fcn.00418092
test eax, eax
pop ecx
je 0x418876
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
call fcn.0044a1e1
push eax
push dword [ebp - 0xc]
push dword [ebp - 4]
call fcn.00418607
add esp, 0xc
test eax, eax
je 0x418866
push 0x7bc
push dword [ebp - 0x10]
push ebx
call fcn.00418d1c
mov ecx, dword [ebp + 8]
add esp, 0xc
call fcn.00417f51
jmp 0x41888a
inc esi
jmp 0x41887f
mov eax, dword [ebx]
push 0x40b620
push ebx
call dword [eax + 0x214]
jmp 0x41887f
xor esi, esi
mov dword [ebp - 0x14], 1
push esi
push edi
push ebx
call fcn.00418d1c
add esp, 0xc
mov eax, dword [ebp - 4]
test eax, eax
je 0x418897
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4188a4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
test edi, edi
je 0x4188b1
push edi
call esi
cmp dword [ebp - 0x10], 0
je 0x4188bc
push dword [ebp - 0x10]
call esi
mov eax, dword [ebp - 0x14]
jmp 0x4188c3
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret