Function at 0x401aae
Capabilities:
Check for time delay via gettickcount
Check mutex on windows
Get file attributes
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
push ebx
push esi
push edi
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x58], 1
mov byte [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x64], 0
mov byte [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0xc], 1
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x44], 0
mov ecx, 0xc
xor eax, eax
lea edi, [ebp - 0x40]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 8], 0
movsx eax, byte [0x40811a]
cmp eax, 0x7b
jne 0x401b6e
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [ebp - 0x78], 0x15e52
mov ecx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp + 8], ecx
mov edx, dword [0x41d408]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x401d80
movsx eax, byte [0x415da4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_TerminateThread]
cmp dword [ebp - 4], 0
je 0x401d80
push 0xbe
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x54], ecx
push 0xa
push 0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xe
je 0x401beb
mov edx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x78]
add eax, 0x400000
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x78]
sub ecx, 7
mov dword [ebp - 0x78], ecx
push 0x401884
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [0x41d1f4], 0x100
mov edx, dword [0x41d1f4]
add edx, 0x900
mov dword [0x41d1f4], edx
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov ebx, dword [ebp - 0x68]
push 0
push 0
call dword [sym.imp.GDI32.dll_SelectObject]
push 0
push 0
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push 0x4018a4
mov ecx, dword [ebp - 0x84]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_OpenEventW]
push 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0x64
je 0x401c5e
call ebx
push dword [ebp - 0x84]
mov dword [ebp - 0x84], eax
cmp dword [ebp - 0x84], 0
jbe 0x401c83
mov edx, dword [ebp - 0x5c]
call edx
mov edx, dword [ebp - 0x68]
call edx
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x88], 0
cmp dword [ebp - 0x30], 0x1200
jge 0x401d72
mov edx, dword [ebp - 0x7c]
add edx, 1
mov dword [ebp - 0x7c], edx
mov eax, dword [ebp - 0x90]
add eax, 7
mov dword [ebp - 0x94], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test eax, eax
jbe 0x401d64
push 0x4018e0
push 0
call dword [sym.imp.USER32.dll_LoadBitmapA]
test eax, eax
jne 0x401d41
mov ecx, dword [ebp - 0x78]
add ecx, dword [ebp - 0x30]
mov dl, byte [ecx]
mov byte [ebp - 0x50], dl
mov dword [ebp - 0x88], 0
mov eax, dword [ebp - 0x50]
and eax, 0xff
mov dword [ebp - 0x98], eax
mov ecx, 0x1f
sub ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x98]
sub edx, ecx
mov byte [ebp - 0x50], dl
mov eax, dword [ebp - 0x90]
add eax, 1
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 4
jne 0x401d33
mov dword [ebp - 0x90], 0
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0x30]
mov dl, byte [ecx]
mov byte [ebp - 0x8c], dl
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test eax, eax
jbe 0x401d64
push 0
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
test eax, eax
jne 0x401d64
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x30]
mov cl, byte [ebp - 0x50]
mov byte [eax], cl
mov edx, dword [ebp - 0x30]
add edx, 1
mov dword [ebp - 0x30], edx
jmp 0x401c97
push dword [ebp - 0x54]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test eax, eax
jne 0x401d98
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov dword [ebp - 0x9c], 0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x9c], eax
push dword [ebp - 4]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
ret