Function at 0x403ff0
Capabilities:
Check if file exists
Create process on windows
Get common file path
Hide graphical window
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c8730
mov eax, dword fs:[0]
push eax
mov eax, 0x1490
call fcn.004a53d0
mov eax, dword [0x58be1c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.004a8410
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x40406c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x544054
call fcn.00406980
add esp, 8
xor al, al
jmp 0x404365
lea ecx, [ebp - 0x21c]
call fcn.00402f30
push 0x800
mov dword [ebp - 0x1448], eax
lea eax, [ebp - 0x1428]
push 0
push eax
call fcn.004a8410
xorps xmm0, xmm0
mov dword [ebp - 0x149c], 0x44
add esp, 0xc
movlpd qword [ebp - 0x1498], xmm0
lea eax, [ebp - 0x428]
movlpd qword [ebp - 0x1490], xmm0
movlpd qword [ebp - 0x1488], xmm0
movlpd qword [ebp - 0x1480], xmm0
push eax
push 0x105
movlpd qword [ebp - 0x1478], xmm0
movlpd qword [ebp - 0x1470], xmm0
movlpd qword [ebp - 0x1468], xmm0
movlpd qword [ebp - 0x1460], xmm0
movups xmmword [ebp - 0x1458], xmm0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, edi
call fcn.00406ab0
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
xor eax, eax
mov dword [ebp - 0x1440], 0
push eax
push 0x543f04
lea ecx, [ebp - 0x1440]
mov dword [ebp - 0x1430], 0
mov dword [ebp - 0x142c], 7
mov word [ebp - 0x1440], ax
call fcn.004050c0
mov dword [ebp - 4], 0
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push str.VideoViewer.exe
call esi
test eax, eax
je 0x404177
mov ecx, str.VideoViewer.exe
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404160
sub ecx, edx
sar ecx, 1
push ecx
push str.VideoViewer.exe
jmp 0x4041a5
push str.VideoViewerLite.exe
call esi
test eax, eax
je 0x40430f
mov ecx, str.VideoViewerLite.exe
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404190
sub ecx, edx
sar ecx, 1
push ecx
push str.VideoViewerLite.exe
lea ecx, [ebp - 0x1440]
call fcn.004050c0
cmp dword [ebp - 0x142c], 8
lea ecx, [ebp - 0x1440]
mov edx, 0x543f04
lea eax, [ebp - 0x21c]
cmovae ecx, dword [ebp - 0x1440]
cmp dword [ebp - 0x1448], 0
cmove eax, edx
push eax
push ecx
push str._s___s_
lea eax, [ebp - 0x1428]
push 0x800
push eax
call fcn.00402150
push str.Launching_Viewer_n
call fcn.00406980
add esp, 0x18
mov ecx, edi
call fcn.00406ab0
push eax
push str.Launch_location:__s_n
call fcn.00406980
cmp dword [ebp - 0x142c], 8
lea eax, [ebp - 0x1440]
cmovae eax, dword [ebp - 0x1440]
push eax
push str.Application_Filename:__s_n
call fcn.00406980
lea eax, [ebp - 0x1428]
push eax
push str.Command_line:__s_n
call fcn.00406980
add esp, 0x18
lea eax, [ebp - 0x1458]
push eax
lea eax, [ebp - 0x149c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1428]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4042e3
push str.Running...
call fcn.00406980
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 4
push 0x3e8
call esi
push 0x543f0c
call fcn.00406980
add esp, 4
push 0x3e8
call esi
push 0x543f0c
call fcn.00406980
add esp, 4
push 0x3e8
call esi
push 0x544870
call fcn.00406980
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xffffffffffffffff
push dword [ebp - 0x1458]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xbb8
call esi
mov ecx, edi
call fcn.00406ab0
push eax
push str.Output_directory:__s
call fcn.00406980
add esp, 8
mov ecx, edi
call fcn.00406ab0
mov ecx, eax
call fcn.004026d0
mov byte [ebp - 0x1441], 1
jmp 0x404323
push str.ERROR:_The_viewer_is_not_inside_the_video_wrap..._n
call fcn.00406980
add esp, 4
mov byte [ebp - 0x1441], 0
mov edx, dword [ebp - 0x142c]
cmp edx, 8
jb 0x40435f
mov ecx, dword [ebp - 0x1440]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404355
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404380
push edx
push ecx
call fcn.004a4df8
add esp, 8
mov al, byte [ebp - 0x1441]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a4dea
mov esp, ebp
pop ebp
ret
call fcn.004ab7da
int3