Function at 0x413085
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 0x4e5d18
push 0x476f70
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 0x413302
cmp word [edi], bx
je 0x413302
push edi
call fcn.00475eae
pop ecx
cmp eax, 0x104
ja 0x413302
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x413302
cmp esi, ebx
jne 0x41312d
mov esi, 0x4d3230
push esi
push edi
push dword [0x4f7cb8]
push str._sRun_App__s__s
mov esi, dword [ebp - 0x1c]
call fcn.004147e7
xor eax, eax
mov word [ebp], ax
push 0x7fe
push ebx
lea eax, [ebp + 2]
push eax
call fcn.00475410
push edi
push 0x4d50d0
push 0x3ff
lea eax, [ebp]
push eax
call fcn.004159f8
push 0x3c
pop esi
push esi
push ebx
lea eax, [ebp - 0x6c]
push eax
call fcn.00475410
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 0x4131cb
cmp dword [0x4fb89c], ebx
jne 0x4131bc
push ebx
push edi
call fcn.0040239b
pop ecx
jmp 0x4131c2
push edi
call fcn.00402242
pop ecx
cmp eax, ebx
je 0x413302
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 0x413295
cmp dword [ebp + 0xa28], ebx
je 0x413295
push 0x208
push ebx
lea eax, [ebp + 0x800]
push eax
call fcn.00475410
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.00402eb7
mov ecx, eax
call fcn.00402f48
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.00475eae
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.00402eb7
mov ecx, eax
call fcn.00402f48
mov edi, dword [ebp - 0x30]
cmp dword [ebp - 0x28], ebx
je 0x4132ab
cmp dword [ebp - 0x20], ebx
je 0x4132b9
push dword [ebp - 0x28]
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x20], ebx
je 0x4132b9
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x24]
cmp eax, ebx
jne 0x4132c5
mov eax, 0x4d3230
push eax
push edi
push dword [0x4f7cbc]
push str._sRun_App__s__s
mov esi, dword [ebp - 0x1c]
call fcn.004147e7
add esp, 0x10
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
jmp 0x41330b
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.0047548a
add ebp, 0xa0c
leave
ret 0x20