Function at 0x418670
Capabilities:
Check if file exists
Create process on windows
Create process suspended
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x294
mov eax, dword [0x4ae480]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
push edi
push 0x40
mov dword [ebp - 0x23c], eax
mov ebx, ecx
lea eax, [ebp - 0x28c]
mov dword [ebp - 0x238], edx
push 0
push eax
mov dword [ebp - 0x290], 0x44
call fcn.0047df00
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add esp, 0xc
mov dword [ebp - 0x224], 0
xor esi, esi
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x22c], str.StarCraft
mov dword [ebp - 0x228], str.Brood
mov dword [ebp - 0x248], str.Frozen_Throne
mov dword [ebp - 0x244], str.Warcraft_III
mov dword [ebp - 0x240], str.war3
nop dword [eax]
push dword [ebp + esi*4 - 0x22c]
lea eax, [ebp - 0x210]
push ebx
push str._s_s.exe
push 0x104
push eax
call fcn.00401670
add esp, 0x14
lea eax, [ebp - 0x210]
push eax
call edi
cmp eax, 0xffffffff
jne 0x4187cf
inc esi
cmp esi, 2
jb 0x418710
xor esi, esi
nop dword [eax + eax]
push dword [ebp + esi*4 - 0x248]
lea eax, [ebp - 0x210]
push ebx
push str._s_s.exe
push 0x104
push eax
call fcn.00401670
add esp, 0x14
lea eax, [ebp - 0x210]
push eax
call edi
cmp eax, 0xffffffff
je 0x41879e
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00477290
cmp dword [ebp - 0x21c], 0x1001c
jae 0x4187b2
inc esi
cmp esi, 3
jb 0x418750
lea eax, [ebp - 0x210]
push eax
call edi
cmp eax, 0xffffffff
je 0x4187b9
mov esi, 2
jmp 0x4187e7
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047c26b
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00477290
mov esi, 1
push 0xfffe
call fcn.0047c4da
add esp, 4
mov edi, eax
lea eax, [ebp - 0x210]
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x214], edi
push eax
push 0x4a5e70
push 0
push 0
lea eax, [ebp - 0x214]
push eax
push 0x7fff
lea ebx, [edi + 0xfffe]
push edi
mov dword [ebp - 0x228], ebx
call fcn.00401bf0
add esp, 0x1c
cmp esi, 2
jne 0x418909
cmp byte [ebp + 8], 0
mov esi, dword [ebp - 0x214]
je 0x4188da
mov ecx, ebx
sub ecx, esi
sar ecx, 1
je 0x4188da
cmp ecx, 0x7fffffff
jbe 0x418867
xor eax, eax
mov word [esi], ax
jmp 0x4188da
mov eax, 0x7ffffffe
mov ebx, str.__window
sub eax, ecx
xor edi, edi
sub ebx, esi
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x234], ebx
mov edx, esi
add eax, ecx
je 0x4188c6
movzx eax, word [ebx + edx]
mov ebx, eax
test ax, ax
je 0x4188b7
mov eax, dword [ebp - 0x230]
inc edi
mov word [edx], bx
add edx, 2
mov ebx, dword [ebp - 0x234]
sub ecx, 1
jne 0x418885
xor eax, eax
lea edi, [edi - 1]
mov word [edx - 2], ax
jmp 0x4188cb
test ecx, ecx
jne 0x4188c6
xor eax, eax
lea edi, [edi - 1]
mov word [edx - 2], ax
jmp 0x4188cb
xor eax, eax
mov word [edx], ax
mov ebx, dword [ebp - 0x228]
lea esi, [esi + edi*2]
mov edi, dword [ebp - 0x21c]
mov eax, dword [ebp - 0x238]
test eax, eax
je 0x418909
cmp byte [ebp + 0xc], 0
jne 0x418909
push eax
push str.__loadfile___s_
push 0
push 0
lea eax, [ebp - 0x214]
sub ebx, esi
push eax
sar ebx, 1
push ebx
push esi
call fcn.00401bf0
add esp, 0x1c
push dword [ebp - 0x23c]
lea eax, [ebp - 0x290]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x41893b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x224], eax
push edi
call fcn.004568b0
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, dword [ebp - 0x224]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0047c26b
mov esp, ebp
pop ebp
ret