Function at 0x4012b7
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 - 0x84], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x5c], 1
mov byte [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x68], 0
mov byte [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x48], 0
mov ecx, 0xc
xor eax, eax
lea edi, [ebp - 0x44]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0xc], 0
movsx eax, byte [0x40812a]
cmp eax, 0x7b
jne 0x40137a
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [ebp - 0x7c], 0x15ee7
mov dword [ebp - 8], 0
mov ecx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp + 8], ecx
mov edx, dword [0x41cc58]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x401560
movsx eax, byte [0x415db4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_TerminateThread]
cmp dword [ebp - 4], 0
je 0x401560
push 0xbe
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x58], ecx
push 0xa
push 0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xe
je 0x4013fe
mov edx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 0x7c]
add eax, 0x400000
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x7c]
sub ecx, 7
mov dword [ebp - 0x7c], ecx
push 0x4010c4
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [0x41ca44], 0x100
mov edx, dword [0x41ca44]
add edx, 0x900
mov dword [0x41ca44], edx
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
push dword [ebp - 0x6c]
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 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
call ecx
push dword [ebp - 0x88]
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x88], 0
jbe 0x401476
mov ebx, dword [ebp - 0x60]
call ebx
mov ebx, dword [ebp - 0x6c]
call ebx
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x8c], 0
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 8], ecx
cmp dword [ebp - 0x38], 0x1200
jge 0x401552
mov edx, dword [ebp - 0x80]
add edx, 1
mov dword [ebp - 0x80], edx
mov eax, dword [ebp - 0x94]
add eax, 7
mov dword [ebp - 0x98], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test eax, eax
jbe 0x401544
push 0x4010dc
push 0
call dword [sym.imp.USER32.dll_LoadBitmapA]
test eax, eax
jne 0x40151b
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.00401296
mov byte [ebp - 0x54], al
mov eax, dword [ebp - 0x54]
and eax, 0xff
mov ecx, 0xe7
sub ecx, dword [ebp - 0x38]
sub eax, ecx
mov byte [ebp - 0x54], al
mov edx, dword [ebp - 0x94]
add edx, 1
mov dword [ebp - 0x94], edx
cmp dword [ebp - 0x94], 4
jne 0x40151b
mov dword [ebp - 0x94], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test eax, eax
jbe 0x401544
push 0
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
test eax, eax
jne 0x401544
mov al, byte [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.004012a5
mov eax, dword [ebp - 0x38]
add eax, 1
mov dword [ebp - 0x38], eax
jmp 0x401490
push dword [ebp - 0x58]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test eax, eax
jne 0x401578
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov dword [ebp - 0x9c], 0
mov ecx, dword [ebp - 4]
push ecx
lea edx, [ebp - 0x9c]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push dword [ebp - 0x9c]
push dword [ebp - 4]
push 0
push 0
mov eax, dword [ebp - 4]
push eax
push 0
call dword [sym.imp.USER32.dll_PostMessageW]
ret