Function at 0x402ed0
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x3c
push ebx
push esi
push edi
xor esi, esi
push ebp
mov dword [0x414f74], esi
call fcn.0040536e
cmp eax, 2
jne 0x402ef7
call dword [sym.imp.GDI32.dll_GdiFlush]
push 1
call dword [sym.imp.GDI32.dll_GdiSetBatchLimit]
push 1
push 0
push 1
call fcn.004035a0
add esp, 0xc
lea eax, [esp + 0x20]
push 1
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
mov ecx, dword [0x414f4c]
mov edx, dword [0x414f78]
test eax, eax
jne 0x403093
cmp dword [0x4122f8], 0
jne 0x403093
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [esp + 0x14]
mov ecx, dword [0x414f4c]
push eax
push ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
lea ecx, [esp + 0x3c]
mov edx, dword [0x414f4c]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x14]
imul eax, dword [0x414f68]
cdq
idiv dword [esp + 0x44]
mov ecx, eax
mov eax, dword [esp + 0x18]
imul eax, dword [0x414f6c]
cdq
idiv dword [esp + 0x48]
mov ebx, eax
mov edi, dword [0x414f74]
cmp dword [0x414f68], ecx
jbe 0x402fcd
cmp dword [0x414f6c], ebx
jbe 0x402fcd
lea eax, [ecx + ecx*4]
mov ecx, 0x104
shl eax, 6
cdq
idiv ecx
sub eax, 0x1e
lea edx, [ebx + ebx*2]
mov ecx, 0xb4
mov dword [esp + 0x10], eax
lea eax, [edx + edx*4]
shl eax, 4
cdq
idiv ecx
lea ebx, [eax - 0x1e]
jmp 0x402fd6
mov ebx, 0x7f00
mov dword [esp + 0x10], ebx
test edi, edi
jne 0x402fec
mov edi, 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x414f74], eax
jmp 0x40302b
mov edi, 0x32
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebp, eax
mov ecx, eax
sub ebp, dword [0x414f74]
sub edx, edx
lea eax, [ebp + ebp*2]
div edi
mov edi, eax
sub edx, edx
mov dword [esp + 0x1c], 3
lea eax, [edi + edi*4]
lea eax, [eax + eax*4]
add eax, eax
div dword [esp + 0x1c]
sub ebp, eax
sub ecx, ebp
mov dword [0x414f74], ecx
test edi, edi
je 0x40307a
xor ebp, ebp
push 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x403043
mov ebp, 4
push 2
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x403053
or ebp, 8
test esi, esi
jne 0x40314f
test edi, edi
je 0x40307a
mov eax, dword [esp + 0x10]
push ebp
push ebx
push eax
call fcn.00401a00
add esp, 0xc
cmp eax, 1
sbb esi, esi
dec edi
neg esi
test esi, esi
je 0x40305b
test esi, esi
jne 0x403157
call fcn.00403170
cmp eax, 1
sbb esi, esi
neg esi
jmp 0x40314f
test eax, eax
je 0x403149
mov eax, dword [esp + 0x24]
cmp eax, 0x12
je 0x4030be
cmp eax, 0x112
je 0x4030c5
lea eax, [esp + 0x20]
push eax
push edx
push ecx
call dword [sym.imp.USER32.dll_TranslateAcceleratorA]
test eax, eax
jne 0x40312f
jmp 0x403119
mov esi, 1
jmp 0x40312f
cmp dword [esp + 0x28], 0xf140
jne 0x403108
call fcn.004066c0
test al, al
jne 0x40312f
call fcn.004053e1
mov eax, dword [0x414f4c]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
lea eax, [esp + 0x20]
mov ecx, dword [0x414f78]
push eax
mov edx, dword [0x414f4c]
push ecx
push edx
call dword [sym.imp.USER32.dll_TranslateAcceleratorA]
test eax, eax
jne 0x40312f
jmp 0x403119
lea eax, [esp + 0x20]
push eax
push edx
push ecx
call dword [sym.imp.USER32.dll_TranslateAcceleratorA]
test eax, eax
jne 0x40312f
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
cmp dword [0x4122f8], 0
jne 0x40314f
call dword [sym.imp.USER32.dll_GetActiveWindow]
test eax, eax
jne 0x40314f
call fcn.004053e1
jmp 0x40314f
call dword [sym.imp.USER32.dll_WaitMessage]
test esi, esi
je 0x402f05
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x3c
ret