Function at 0x418700
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 [0x4af480]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
push edi
push 0x40
mov dword [ebp - 0x244], eax
mov ebx, ecx
lea eax, [ebp - 0x28c]
mov dword [ebp - 0x240], edx
push 0
push eax
mov dword [ebp - 0x290], 0x44
call fcn.0047ee80
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add esp, 0xc
mov dword [ebp - 0x22c], 0
xor esi, esi
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x234], str.StarCraft
mov dword [ebp - 0x230], str.Brood
mov dword [ebp - 0x21c], str.Frozen_Throne
mov dword [ebp - 0x218], str.Warcraft_III
mov dword [ebp - 0x214], str.war3
nop dword [eax]
push dword [ebp + esi*4 - 0x234]
lea eax, [ebp - 0x210]
push ebx
push str._s_s.exe
push 0x104
push eax
call fcn.00401040
add esp, 0x14
lea eax, [ebp - 0x210]
push eax
call edi
cmp eax, 0xffffffff
jne 0x41885f
inc esi
cmp esi, 2
jb 0x4187a0
xor esi, esi
nop dword [eax + eax]
push dword [ebp + esi*4 - 0x21c]
lea eax, [ebp - 0x210]
push ebx
push str._s_s.exe
push 0x104
push eax
call fcn.00401040
add esp, 0x14
lea eax, [ebp - 0x210]
push eax
call edi
cmp eax, 0xffffffff
je 0x41882e
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00478740
cmp dword [ebp - 0x224], 0x1001c
jae 0x418842
inc esi
cmp esi, 3
jb 0x4187e0
lea eax, [ebp - 0x210]
push eax
call edi
cmp eax, 0xffffffff
je 0x418849
mov esi, 2
jmp 0x418877
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047d33b
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00478740
mov esi, 1
push 0xfffe
call fcn.0047d5a7
add esp, 4
mov edi, eax
lea eax, [ebp - 0x210]
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x220], edi
push eax
push str.__s_
push 0
push 0
lea eax, [ebp - 0x220]
push eax
push 0x7fff
lea ebx, [edi + 0xfffe]
push edi
mov dword [ebp - 0x230], ebx
call fcn.00401c00
add esp, 0x1c
cmp esi, 2
jne 0x418999
cmp byte [ebp + 8], 0
mov esi, dword [ebp - 0x220]
je 0x41896a
mov ecx, ebx
sub ecx, esi
sar ecx, 1
je 0x41896a
cmp ecx, 0x7fffffff
jbe 0x4188f7
xor eax, eax
mov word [esi], ax
jmp 0x41896a
mov eax, 0x7ffffffe
mov ebx, str.__window
sub eax, ecx
xor edi, edi
sub ebx, esi
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x23c], ebx
mov edx, esi
add eax, ecx
je 0x418956
movzx eax, word [ebx + edx]
mov ebx, eax
test ax, ax
je 0x418947
mov eax, dword [ebp - 0x238]
inc edi
mov word [edx], bx
add edx, 2
mov ebx, dword [ebp - 0x23c]
sub ecx, 1
jne 0x418915
xor eax, eax
lea edi, [edi - 1]
mov word [edx - 2], ax
jmp 0x41895b
test ecx, ecx
jne 0x418956
xor eax, eax
lea edi, [edi - 1]
mov word [edx - 2], ax
jmp 0x41895b
xor eax, eax
mov word [edx], ax
mov ebx, dword [ebp - 0x230]
lea esi, [esi + edi*2]
mov edi, dword [ebp - 0x224]
mov eax, dword [ebp - 0x240]
test eax, eax
je 0x418999
cmp byte [ebp + 0xc], 0
jne 0x418999
push eax
push str.__loadfile___s_
push 0
push 0
lea eax, [ebp - 0x220]
sub ebx, esi
push eax
sar ebx, 1
push ebx
push esi
call fcn.00401c00
add esp, 0x1c
push dword [ebp - 0x244]
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 0x4189cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x22c], eax
push edi
call fcn.00457d90
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, dword [ebp - 0x22c]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0047d33b
mov esp, ebp
pop ebp
ret