Function at 0x4012a6
Capabilities:
Check for time delay via gettickcount
Get file attributes
Get socket status
Inspect load icon resource
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push ebx
push esi
push edi
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x30], 1
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x3c], 0
mov byte [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0xc], 1
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
movsx ecx, byte [0x405102]
cmp ecx, 0x7b
jne 0x401357
push 0
mov edx, dword [ebp - 0x40]
push edx
push 0
call dword [sym.imp.KERNEL32.DLL_OpenEventW]
mov dword [ebp - 0x4c], 0x9122
mov eax, dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov dword [ebp + 8], eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401140
test eax, eax
jbe 0x40152f
mov edx, dword [0x418ce8]
mov dword [ebp - 4], edx
movsx eax, byte [0x409030]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov dword [ebp - 0x5c], 0
cmp dword [ebp - 4], 0
je 0x40152f
mov dword [ebp - 0x58], 0x40110c
mov ecx, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [ebp - 0x2c], ecx
push 0
push 0
call dword [sym.imp.USER32.dll_WaitForInputIdle]
cmp eax, 0xa
je 0x4013e1
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov edx, dword [ebp - 0x4c]
add edx, eax
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
sub eax, 7
mov dword [ebp - 0x4c], eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentThread]
push 0x401124
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
mov dword [0x418c94], 0x100
mov ecx, dword [0x418c94]
add ecx, 0x900
mov dword [0x418c94], ecx
mov edx, dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x5c], edx
push dword [ebp - 0x58]
mov eax, dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
mov dword [ebp - 0x34], eax
call dword [ebp - 0x5c]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
jbe 0x401435
mov ebx, dword [ebp - 0x34]
call ebx
mov ebx, dword [ebp - 0x5c]
call ebx
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 2
je 0x401445
cmp dword [ebp - 0x58], 0x7b
jne 0x40152f
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x60], 0
cmp dword [ebp - 0x10], 0x1200
jge 0x401511
mov ecx, dword [ebp - 0x50]
add ecx, 1
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x68]
add edx, 7
mov dword [ebp - 0x6c], edx
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
test eax, eax
jbe 0x401503
push 0x401130
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
test eax, eax
jne 0x4014e0
mov eax, dword [ebp - 0x4c]
add eax, dword [ebp - 0x10]
mov cl, byte [eax]
mov byte [ebp - 0x28], cl
mov dword [ebp - 0x60], 0
mov edx, dword [ebp - 0x28]
and edx, 0xff
mov dword [ebp - 0x70], edx
mov eax, 0x1f
sub eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x70]
sub ecx, eax
mov byte [ebp - 0x28], cl
mov edx, dword [ebp - 0x68]
add edx, 1
mov dword [ebp - 0x68], edx
cmp dword [ebp - 0x68], 4
jne 0x4014d5
mov dword [ebp - 0x68], 0
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x10]
mov cl, byte [eax]
mov byte [ebp - 0x64], cl
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
test eax, eax
jbe 0x401503
push 0
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
test eax, eax
jne 0x401503
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x10]
mov al, byte [ebp - 0x28]
mov byte [edx], al
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
jmp 0x401453
push dword [ebp - 0x2c]
push 0
call dword [sym.imp.KERNEL32.DLL_Sleep]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.WS2_32.dll_select]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
test eax, eax
jne 0x401547
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov dword [ebp - 0x74], 0
mov edx, dword [ebp - 4]
push edx
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
push dword [ebp - 4]
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
push dword [ebp - 4]
ret