Function at 0x401350
Capabilities:
Check if file exists
Create process on windows
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x449380
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x4580b4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x284], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], ebx
xor ecx, ecx
mov word [ebp - 0x30], cx
mov byte [ebp - 4], 1
lea edi, [ebp - 0x30]
call fcn.00401220
test al, al
je 0x4015a5
mov esi, 8
cmp dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x30]
jae 0x4013c2
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea edx, [ebp - 0x30]
push edx
mov eax, 0x453978
call fcn.004018a0
push 0x1e00000
call fcn.00406860
add esp, 4
mov ebx, eax
call fcn.00401760
cmp eax, 0x3e8
jle 0x401525
cmp dword [ebp - 0x1c], esi
mov ecx, dword [ebp - 0x30]
jae 0x401401
lea ecx, [ebp - 0x30]
push ecx
push eax
mov ecx, ebx
call fcn.004017d0
add esp, 8
test eax, eax
jne 0x401427
mov byte [ebp - 4], 0
lea esi, [ebp - 0x30]
call fcn.00401190
mov eax, 0x1002
jmp 0x401536
push ebx
call fcn.00435614
add esp, 4
cmp dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x30]
jae 0x40143b
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401411
cmp dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x30]
jae 0x401451
lea eax, [ebp - 0x30]
push eax
call fcn.004064f0
mov edi, eax
push edi
lea edx, [ebp - 0x27c]
or ecx, 0xffffffff
call fcn.00406600
add esp, 8
mov esi, dword [ebp - 0x27c]
xor ebx, ebx
mov dword [ebp - 0x280], ebx
cmp ebx, esi
jge 0x4014c9
push edi
lea edx, [ebp - 0x27c]
mov ecx, ebx
call fcn.00406600
add esp, 4
test edi, edi
jne 0x40149f
mov dword [0x45a5c0], 0x10000
inc ebx
jmp 0x401473
cmp dword [edi], 1
je 0x4014b1
mov dword [0x45a5c0], 0x80000
inc ebx
jmp 0x401473
mov ecx, dword [edi + 4]
lea eax, [ebp - 0x278]
push eax
push ebx
call fcn.00406170
mov dword [0x45a5c0], eax
inc ebx
jmp 0x401473
call fcn.00406740
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], 0
xor ecx, ecx
mov word [ebp - 0x4c], cx
push ecx
or eax, 0xffffffff
lea edi, [ebp - 0x4c]
call fcn.00401ae0
mov byte [ebp - 4], 2
mov edx, edi
push edx
mov eax, str.Skyrfilm.exe
call fcn.004018a0
mov esi, 8
cmp dword [ebp - 0x38], esi
mov eax, dword [ebp - 0x4c]
jae 0x40150e
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x401554
mov byte [ebp - 4], 1
lea esi, [ebp - 0x4c]
call fcn.00401190
mov byte [ebp - 4], 0
lea esi, [ebp - 0x30]
call fcn.00401190
mov eax, 0x1003
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0043561f
mov esp, ebp
pop ebp
ret 4
call fcn.004015e0
cmp dword [ebp - 0x38], esi
mov eax, dword [ebp - 0x4c]
jae 0x401564
lea eax, [ebp - 0x4c]
push 5
push 0
mov ecx, dword [ebp - 0x284]
push ecx
push eax
push str.open
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov byte [ebp - 4], 1
lea esi, [ebp - 0x4c]
call fcn.00401190
mov byte [ebp - 4], 0
lea esi, [ebp - 0x30]
call fcn.00401190
mov dword [ebp - 4], 0xffffffff
xor eax, eax
jmp 0x401536
mov byte [ebp - 4], bl
lea esi, [ebp - 0x30]
call fcn.00401190
mov eax, 0x1001
jmp 0x401536