Function at 0x412fa3
Capabilities:
Check for time delay via gettickcount
Check if file exists
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0xa0c]
sub esp, 0xa0c
push 0xfffffffffffffffe
push 0x4e6a80
push 0x4770d0
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x4f3bd0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0xa08], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 0xa14]
mov dword [ebp - 0x1c], eax
mov edi, dword [ebp + 0xa18]
mov dword [ebp - 0x30], edi
mov esi, dword [ebp + 0xa1c]
mov dword [ebp - 0x24], esi
mov eax, dword [ebp + 0xa2c]
mov dword [ebp - 0x28], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp edi, ebx
je 0x413220
cmp word [edi], bx
je 0x413220
push edi
call fcn.0047600e
pop ecx
cmp eax, 0x104
ja 0x413220
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x413220
cmp esi, ebx
jne 0x41304b
mov esi, 0x4d3fa0
push esi
push edi
push dword [0x4f7cd0]
push str._sRun_App__s__s
mov esi, dword [ebp - 0x1c]
call fcn.00414705
xor eax, eax
mov word [ebp], ax
push 0x7fe
push ebx
lea eax, [ebp + 2]
push eax
call fcn.00475570
push edi
push 0x4d5e18
push 0x3ff
lea eax, [ebp]
push eax
call fcn.00415927
push 0x3c
pop esi
push esi
push ebx
lea eax, [ebp - 0x6c]
push eax
call fcn.00475570
add esp, 0x38
mov dword [ebp - 0x6c], esi
lea eax, [ebp]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x60], str.open
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0xa20]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x68], 0x440
cmp dword [ebp + 0xa24], ebx
je 0x4130e9
cmp dword [0x4fb8b4], ebx
jne 0x4130da
push ebx
push edi
call fcn.0040229e
pop ecx
jmp 0x4130e0
push edi
call fcn.00402145
pop ecx
cmp eax, ebx
je 0x413220
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov dword [ebp - 0x20], eax
cmp eax, ebx
je 0x4131b3
cmp dword [ebp + 0xa28], ebx
je 0x4131b3
push 0x208
push ebx
lea eax, [ebp + 0x800]
push eax
call fcn.00475570
add esp, 0xc
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
push str.ld_s
lea eax, [ebp + 0x800]
push eax
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
call edi
add esp, 0xc
lea eax, [ebp + 0x800]
push eax
push ebx
push 0xd2
call fcn.00402d9c
mov ecx, eax
call fcn.00402e2d
push dword [ebp + 0xa30]
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call esi
mov esi, eax
sub esi, dword [ebp - 0x2c]
lea eax, [ebp + 0x800]
push eax
call fcn.0047600e
push esi
push str.t_d
lea eax, [ebp + eax*2 + 0x800]
push eax
call edi
add esp, 0x10
lea eax, [ebp + 0x800]
push eax
push ebx
push 0xd3
call fcn.00402d9c
mov ecx, eax
call fcn.00402e2d
mov edi, dword [ebp - 0x30]
cmp dword [ebp - 0x28], ebx
je 0x4131c9
cmp dword [ebp - 0x20], ebx
je 0x4131d7
push dword [ebp - 0x28]
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x20], ebx
je 0x4131d7
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x24]
cmp eax, ebx
jne 0x4131e3
mov eax, 0x4d3fa0
push eax
push edi
push dword [0x4f7cd4]
push str._sRun_App__s__s
mov esi, dword [ebp - 0x1c]
call fcn.00414705
add esp, 0x10
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
jmp 0x413229
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xa08]
xor ecx, ebp
call fcn.004755ea
add ebp, 0xa0c
leave
ret 0x20