Function at 0x403c60
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 [0x415b44], esi
call fcn.0040644e
cmp eax, 2
jne 0x403c87
call dword [sym.imp.GDI32.dll_GdiFlush]
push 1
call dword [sym.imp.GDI32.dll_GdiSetBatchLimit]
push 1
push 0
push 3
call fcn.00404680
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 [0x415b1c]
mov edx, dword [0x415b48]
test eax, eax
jne 0x403e22
cmp dword [0x412a40], 0
jne 0x403e22
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [esp + 0x14]
mov ecx, dword [0x415b1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
lea ecx, [esp + 0x3c]
mov edx, dword [0x415b1c]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [0x415b38]
imul eax, dword [esp + 0x14]
cdq
idiv dword [esp + 0x44]
mov ecx, eax
mov eax, dword [esp + 0x18]
imul eax, dword [0x415b3c]
cdq
idiv dword [esp + 0x48]
mov edi, eax
mov ebx, dword [0x415b44]
cmp ecx, dword [0x415b38]
jae 0x403d5c
cmp edi, dword [0x415b3c]
jae 0x403d5c
lea eax, [ecx + ecx*4]
mov ecx, 0x104
shl eax, 6
cdq
idiv ecx
sub eax, 0x1e
lea edx, [edi + edi*2]
mov ecx, 0xb4
mov dword [esp + 0x10], eax
lea eax, [edx + edx*4]
shl eax, 4
cdq
idiv ecx
lea edi, [eax - 0x1e]
jmp 0x403d65
mov edi, 0x7f00
mov dword [esp + 0x10], edi
test ebx, ebx
jne 0x403d7b
mov ebx, 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x415b44], eax
jmp 0x403dba
mov ebx, 0x32
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebp, eax
mov ecx, eax
sub ebp, dword [0x415b44]
sub edx, edx
lea eax, [ebp + ebp*2]
div ebx
mov ebx, eax
sub edx, edx
mov dword [esp + 0x1c], 3
lea eax, [ebx + ebx*4]
lea eax, [eax + eax*4]
add eax, eax
div dword [esp + 0x1c]
sub ebp, eax
sub ecx, ebp
mov dword [0x415b44], ecx
test ebx, ebx
je 0x403e09
xor ebp, ebp
push 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x403dd2
mov ebp, 4
push 2
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x403de2
or ebp, 8
test esi, esi
jne 0x403ede
test ebx, ebx
je 0x403e09
mov eax, dword [esp + 0x10]
push ebp
push edi
push eax
call fcn.00401aa0
add esp, 0xc
cmp eax, 1
sbb esi, esi
dec ebx
neg esi
test esi, esi
je 0x403dea
test esi, esi
jne 0x403ee6
call fcn.00403ef0
cmp eax, 1
sbb esi, esi
neg esi
jmp 0x403ede
test eax, eax
je 0x403ed8
mov eax, dword [esp + 0x24]
cmp eax, 0x12
je 0x403e4d
cmp eax, 0x112
je 0x403e54
lea eax, [esp + 0x20]
push eax
push edx
push ecx
call dword [sym.imp.USER32.dll_TranslateAcceleratorA]
test eax, eax
jne 0x403ebe
jmp 0x403ea8
mov esi, 1
jmp 0x403ebe
cmp dword [esp + 0x28], 0xf140
jne 0x403e97
call fcn.004077a0
test al, al
jne 0x403ebe
call fcn.004064c1
mov eax, dword [0x415b1c]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
lea eax, [esp + 0x20]
mov ecx, dword [0x415b48]
push eax
mov edx, dword [0x415b1c]
push ecx
push edx
call dword [sym.imp.USER32.dll_TranslateAcceleratorA]
test eax, eax
jne 0x403ebe
jmp 0x403ea8
lea eax, [esp + 0x20]
push eax
push edx
push ecx
call dword [sym.imp.USER32.dll_TranslateAcceleratorA]
test eax, eax
jne 0x403ebe
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 [0x412a40], 0
jne 0x403ede
call dword [sym.imp.USER32.dll_GetActiveWindow]
test eax, eax
jne 0x403ede
call fcn.004064c1
jmp 0x403ede
call dword [sym.imp.USER32.dll_WaitMessage]
test esi, esi
je 0x403c95
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x3c
ret