Function at 0x4130b5
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 0x4e5980
push 0x476500
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x4f2be0]
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 0x413332
cmp word [edi], bx
je 0x413332
push edi
call fcn.004754ae
pop ecx
cmp eax, 0x104
ja 0x413332
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x413332
cmp esi, ebx
jne 0x41315d
mov esi, 0x4d2ec0
push esi
push edi
push dword [0x4f6b98]
push str._sRun_App__s__s
mov esi, dword [ebp - 0x1c]
call fcn.00414817
xor eax, eax
mov word [ebp], ax
push 0x7fe
push ebx
lea eax, [ebp + 2]
push eax
call fcn.00474a10
push edi
push 0x4d4d40
push 0x3ff
lea eax, [ebp]
push eax
call fcn.00415a65
push 0x3c
pop esi
push esi
push ebx
lea eax, [ebp - 0x6c]
push eax
call fcn.00474a10
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 0x4131fb
cmp dword [0x4fa77c], ebx
jne 0x4131ec
push ebx
push edi
call fcn.00402402
pop ecx
jmp 0x4131f2
push edi
call fcn.004022a9
pop ecx
cmp eax, ebx
je 0x413332
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 0x4132c5
cmp dword [ebp + 0xa28], ebx
je 0x4132c5
push 0x208
push ebx
lea eax, [ebp + 0x800]
push eax
call fcn.00474a10
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.00402f1e
mov ecx, eax
call fcn.00402faf
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.004754ae
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.00402f1e
mov ecx, eax
call fcn.00402faf
mov edi, dword [ebp - 0x30]
cmp dword [ebp - 0x28], ebx
je 0x4132db
cmp dword [ebp - 0x20], ebx
je 0x4132e9
push dword [ebp - 0x28]
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x20], ebx
je 0x4132e9
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x24]
cmp eax, ebx
jne 0x4132f5
mov eax, 0x4d2ec0
push eax
push edi
push dword [0x4f6b9c]
push str._sRun_App__s__s
mov esi, dword [ebp - 0x1c]
call fcn.00414817
add esp, 0x10
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
jmp 0x41333b
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.00474a8a
add ebp, 0xa0c
leave
ret 0x20