Function at 0x413086
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 0x4e5ce8
push 0x476f80
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 0x413303
cmp word [edi], bx
je 0x413303
push edi
call fcn.00475ebe
pop ecx
cmp eax, 0x104
ja 0x413303
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x413303
cmp esi, ebx
jne 0x41312e
mov esi, 0x4d3260
push esi
push edi
push dword [0x4f7cb8]
push str._sRun_App__s__s
mov esi, dword [ebp - 0x1c]
call fcn.004147e8
xor eax, eax
mov word [ebp], ax
push 0x7fe
push ebx
lea eax, [ebp + 2]
push eax
call fcn.00475420
push edi
push 0x4d50d8
push 0x3ff
lea eax, [ebp]
push eax
call fcn.00415a3e
push 0x3c
pop esi
push esi
push ebx
lea eax, [ebp - 0x6c]
push eax
call fcn.00475420
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 0x4131cc
cmp dword [0x4fb89c], ebx
jne 0x4131bd
push ebx
push edi
call fcn.0040224e
pop ecx
jmp 0x4131c3
push edi
call fcn.004020f5
pop ecx
cmp eax, ebx
je 0x413303
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 0x413296
cmp dword [ebp + 0xa28], ebx
je 0x413296
push 0x208
push ebx
lea eax, [ebp + 0x800]
push eax
call fcn.00475420
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.00402d6a
mov ecx, eax
call fcn.00402dfb
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.00475ebe
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.00402d6a
mov ecx, eax
call fcn.00402dfb
mov edi, dword [ebp - 0x30]
cmp dword [ebp - 0x28], ebx
je 0x4132ac
cmp dword [ebp - 0x20], ebx
je 0x4132ba
push dword [ebp - 0x28]
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x20], ebx
je 0x4132ba
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x24]
cmp eax, ebx
jne 0x4132c6
mov eax, 0x4d3260
push eax
push edi
push dword [0x4f7cbc]
push str._sRun_App__s__s
mov esi, dword [ebp - 0x1c]
call fcn.004147e8
add esp, 0x10
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
jmp 0x41330c
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.0047549a
add ebp, 0xa0c
leave
ret 0x20