Function at 0x4012b7
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 [0x40510a]
cmp ecx, 0x7b
jne 0x401368
push 0
mov edx, dword [ebp - 0x40]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov dword [ebp - 0x4c], 0x712e
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 0x401540
mov edx, dword [0x417c88]
mov dword [ebp - 4], edx
movsx eax, byte [0x407030]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [ebp - 0x5c], 0
cmp dword [ebp - 4], 0
je 0x401540
mov dword [ebp - 0x58], 0x401110
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 0x4013f2
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 0x401120
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [0x417c34], 0x100
mov ecx, dword [0x417c34]
add ecx, 0x900
mov dword [0x417c34], 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 0x401446
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 0x401456
cmp dword [ebp - 0x58], 0x7b
jne 0x401540
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x60], 0
cmp dword [ebp - 0x10], 0x1200
jge 0x401522
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 0x401514
push 0x401128
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
test eax, eax
jne 0x4014f1
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 0x4014e6
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 0x401514
push 0
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
test eax, eax
jne 0x401514
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 0x401464
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 0x401568
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.WS2_32.dll_select]
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
push 0
call dword [sym.imp.GDI32.dll_SelectObject]
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 dword [ebp - 4]
ret