Function at 0x401000
Capabilities:
Check for time delay via gettickcount
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
push ebx
xor eax, eax
inc eax
push esi
xor ebx, ebx
push edi
cmp dword [ebp + 0xc], eax
jne 0x40101c
mov dword [0x418a48], ebx
cmp dword [0x4197d0], ebx
jne 0x40167e
push 0x19000
push 0x15000
push 0x40000
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [0x4197d0], eax
call dword [sym.imp.KERNEL32.DLL_HeapCreate]
mov edi, dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov dword [0x419780], eax
cmp eax, ebx
jne 0x4010be
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
mov esi, 0x200
push esi
push ebx
push eax
mov dword [ebp - 0xc], eax
call edi
push esi
push ebx
push dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
call edi
push str._nERROR___Pipe_Server_Failure:_n
mov edi, eax
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x54], ebx
call fcn.00401805
mov dword [esp], str.___InstanceThread_got_an_unexpected_NULL_value_in_lpvParam._n
call fcn.00401805
mov dword [esp], str.___InstanceThread_exitting._n
call fcn.00401805
mov esi, dword [sym.imp.KERNEL32.DLL_HeapFree]
pop ecx
cmp edi, ebx
je 0x4010b0
push edi
push ebx
push dword [ebp - 0xc]
call esi
cmp dword [ebp - 0x10], ebx
je 0x4010be
push dword [ebp - 0x10]
push ebx
push dword [ebp - 0xc]
call esi
cmp dword [0x418a48], ebx
jne 0x4010d2
add dword [0x418a44], 0x28
jmp 0x4011cc
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
test eax, eax
je 0x4010e6
xor esi, esi
xor eax, eax
mov dword [ebp - 0x3c], ebx
lea edi, [ebp - 0x38]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x3c]
push eax
push esi
call dword [sym.imp.USER32.dll_GetIconInfo]
mov dword [ebp - 0x20], ebx
mov eax, dword fs:[0x34]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov edi, dword [sym.imp.USER32.dll_GetDC]
push esi
mov dword [ebp - 0x28], eax
call edi
push ebx
call edi
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x401129
inc dword [ebp - 8]
add dword [ebp - 4], 5
cmp esi, ebx
je 0x4011bd
push esi
call dword [sym.imp.USER32.dll_GetDC]
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jne 0x401151
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x4011cc
add dword [0x418a44], 0x17
lea eax, [ebp - 0x4c]
push eax
push esi
mov dword [ebp - 8], 7
mov dword [ebp - 4], 0xd
mov dword [0x418a44], 0x26
call dword [sym.imp.USER32.dll_GetClientRect]
test eax, eax
je 0x40119b
add dword [0x418a44], 3
add dword [0x418a44], 0xfffffffc
mov dword [ebp - 8], 0x1c
mov dword [ebp - 4], 0x1f
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
call edi
push dword [ebp - 0x1c]
call edi
push dword [ebp - 0x10]
mov edi, dword [sym.imp.USER32.dll_ReleaseDC]
push ebx
call edi
push dword [ebp - 0x18]
push esi
call edi
jmp 0x4011cc
add dword [0x418a44], 0x22
add dword [ebp - 4], 0xf
add dword [ebp - 8], 0xe
mov edi, dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov esi, 0x12000
push esi
push 8
push dword [0x419780]
call edi
push str.kernel32
mov dword [0x41977c], eax
mov dword [0x4197d4], eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
push 4
pop eax
cmp dword [0x419780], ebx
je 0x401205
push 0x40
pop eax
push eax
push 0x3000
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
push 4
push ebx
push dword [0x419780]
mov dword [0x41977c], eax
mov dword [0x4197d4], eax
call edi
mov dword [ebp - 0xc], eax
cmp dword [0x418a48], ebx
je 0x40123c
mov dword [ebp - 0x10], 0x4000000
jmp 0x40124c
mov eax, dword [0x419780]
cdq
mov ecx, 0x2710
idiv ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], 0x1f4
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [ebp - 0x1c], eax
cmp eax, ebx
je 0x40126a
mov eax, dword [0x41977c]
mov dword [0x4197d4], eax
xor eax, eax
cmp dword [0x419780], 0xfa0
setge al
xor edi, edi
dec eax
and eax, 0xffffeafe
add eax, 0x162e
mov dword [ebp - 0x18], eax
cmp dword [0x418a48], ebx
je 0x401300
xor ecx, ecx
cmp ecx, dword [ebp - 0x10]
jae 0x40130e
mov eax, dword [0x418a44]
test eax, eax
je 0x401525
add dword [ebp - 0x14], 2
mov eax, dword [ebp - 0x14]
xor edx, edx
mov esi, 0x3e8
div esi
cmp edx, dword [ebp - 0x1c]
ja 0x4010d2
jmp 0x4012ce
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0x1e
jbe 0x401525
inc edi
mov eax, dword [0x418a44]
cmp edi, eax
jl 0x4012c0
mov eax, dword [ebp - 0x10]
dec eax
cmp ecx, eax
je 0x4012fb
mov eax, dword [0x418a44]
cmp eax, dword [ebp - 0x14]
jbe 0x4012ef
add dword [ebp - 4], 0x45
jmp 0x4012f8
cmp dword [ebp - 4], ebx
je 0x40160d
inc ecx
jmp 0x401293
inc dword [ebp - 4]
jmp 0x40130e
inc edi
cmp edi, 0x64
jle 0x40130e
cmp dword [0x419780], ebx
jne 0x401318
cmp edi, 0x3e8
jl 0x401300
jmp 0x40131c
add dword [ebp - 8], 0x12
xor edi, edi
cmp dword [ebp - 0x14], ebx
jbe 0x4013dc
mov esi, 0x12c
cmp dword [0x418a48], ebx
jne 0x40137e
mov eax, dword [0x418a44]
xor edx, edx
test eax, eax
jle 0x4013bb
cmp edx, 0x21
jle 0x401364
mov eax, dword [ebp - 0xc]
and eax, 0x80000fff
jns 0x401355
dec eax
or eax, 0xfffff000
inc eax
mov ecx, ebx
je 0x401370
cmp ecx, esi
jg 0x4013c7
inc ecx
cmp ecx, eax
jb 0x401359
jmp 0x401370
cmp edx, 0x3e8
jg 0x40160d
mov eax, dword [0x418a44]
add edx, 2
cmp edx, eax
jl 0x40133f
jmp 0x4013bb
cmp edi, 0x190
jne 0x4013ae
mov eax, dword [ebp - 0xc]
and eax, 0x80000fff
jns 0x401397
dec eax
or eax, 0xfffff000
inc eax
mov ecx, ebx
je 0x4013bb
cmp ecx, esi
jle 0x4013a7
cmp dword [0x419780], ebx
jne 0x4013cd
inc ecx
cmp ecx, eax
jb 0x40139b
jmp 0x4013bb
cmp edi, dword [ebp - 0x1c]
ja 0x4013d2
cmp edi, 0x7d0
jg 0x4013dc
inc edi
cmp edi, dword [ebp - 0x14]
jb 0x40132c
jmp 0x4013dc
add dword [ebp - 4], 7
jmp 0x4013dc
inc dword [ebp - 4]
jmp 0x4013dc
add dword [ebp - 4], 0x23
dec dword [0x418a44]
mov esi, dword [ebp - 8]
mov eax, 0x414e40
xor edi, edi
mov dword [0x419748], eax
mov dword [0x41976c], eax
mov eax, dword [0x418a44]
mov ecx, 0x3c00
inc edi
mov dword [0x419734], ecx
mov dword [0x419770], ecx
mov dword [0x419774], ebx
mov dword [0x419778], ebx
mov dword [0x419788], 0x41976c
mov dword [0x41978c], ebx
mov dword [0x419790], ebx
mov dword [0x419794], edi
test eax, eax
je 0x40143f
mov eax, esi
sub eax, dword [ebp - 4]
mov dword [0x419798], eax
jmp 0x401445
mov dword [0x419798], esi
mov eax, dword [0x418a48]
xor ecx, ecx
cmp eax, ebx
sete cl
cmp dword [ebp - 0x28], 0x57a
push 2
mov dword [0x4197a0], 0x4197c4
mov dword [0x4197a4], edi
mov dword [0x4197a8], 0x34de9317
mov dword [0x4197ac], 0x46
mov dword [0x41979c], ecx
mov ecx, dword [ebp + 8]
mov dword [0x4197c4], ecx
mov ecx, dword [ebp + 0xc]
mov dword [0x4197c8], ecx
mov ecx, dword [ebp + 0x10]
mov dword [0x4197cc], ecx
pop ecx
mov dword [0x4197b8], ecx
mov dword [0x4197b0], 0x410170
mov dword [0x4197b4], 0x2e00
mov dword [0x4197bc], ecx
mov dword [0x4197c0], 0x1a
je 0x4014cd
inc esi
cmp eax, ebx
je 0x4014d9
add esi, 0xffffffe8
mov dword [ebp + 8], esi
jmp 0x4014e0
mov dword [ebp + 8], 9
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov esi, eax
mov dword [ebp + 0xc], ebx
xor edi, edi
cmp esi, ebx
jne 0x4014f7
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push 0x38
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_SetMapMode]
mov al, byte [ebp + 8]
add al, byte [ebp + 0xc]
xor byte [edi + 0x412f78], al
cmp dword [ebp + 0xc], 3
jle 0x401519
mov dword [ebp + 0xc], ebx
jmp 0x40151c
inc dword [ebp + 0xc]
inc edi
cmp edi, 0x1ec5
jl 0x4014ed
cmp dword [0x4197d4], ebx
jne 0x40160d
push 0x104
lea eax, [ebp - 0x168]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x168]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov esi, eax
push esi
call fcn.00401685
pop ecx
mov edi, eax
push edi
push esi
push ebx
lea eax, [ebp - 0x168]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x4015a0
push 7
lea eax, [ebp - 0x26c]
push str.StringFileInfo040904e4_s
push eax
call fcn.00401781
add esp, 0xc
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x26c]
push eax
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueA]
push edi
call fcn.004018c2
mov dword [esp], str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push str.SetLayeredWindowAttributes
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x40160d
mov edi, dword [ebp + 0xc]
push 0xffffffffffffffec
push edi
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov edx, eax
mov ecx, 0x80000
or edx, ecx
cmp edx, eax
je 0x4015ea
xor eax, ecx
push eax
push 0xffffffffffffffec
push edi
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 2
push 7
push ebx
push edi
call esi
push 0x481
push ebx
push ebx
push edi
call dword [sym.imp.USER32.dll_RedrawWindow]
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [0x4197d4]
mov esi, 0x1ec6
mov edi, 0x412f78
mov cl, byte [edi]
dec esi
mov byte [eax], cl
inc eax
inc edi
cmp esi, ebx
jne 0x40161c
mov eax, dword [0x4197d4]
mov edi, dword [ebp - 0xc]
mov dword [eax + 1], 0x419788
push 4
mov eax, 0x4197d4
pop esi
sub edi, eax
mov cl, byte [eax]
dec esi
mov byte [eax + edi], cl
inc eax
cmp esi, ebx
jne 0x401640
mov dword [ebp - 0x24], ebx
cmp dword [0x419780], ebx
je 0x401676
xor eax, eax
cmp dword [ebp - 4], ebx
setne al
lea eax, [eax + eax + 2]
cmp eax, ebx
je 0x401676
push eax
push dword [ebp - 0xc]
lea eax, [ebp - 0x24]
push eax
call fcn.00403430
add esp, 0xc
mov eax, dword [ebp - 0x24]
call eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0x10