Function at 0x10015711
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x34
mov eax, 0x100730de
call fcn.1005109b
mov ebx, ecx
mov dword [ebp - 0x20], ebx
and dword [ebp - 0x14], 0
lea esi, [ebx + 0x38]
mov eax, dword [esi + 0xc]
push esi
push eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x18], 2
call fcn.10017dc3
xor edi, edi
inc edi
push edi
push str.SetupMenuItems
lea ecx, [ebp - 0x1c]
call fcn.10018f83
and dword [ebp - 4], 0
push edi
lea eax, [ebp - 0x2c]
push eax
push str.SFXLocal
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x2c], edi
call fcn.10018f08
and dword [ebp - 0x28], 0
push 0
lea eax, [ebp - 0x28]
push eax
push str.SFXNetwork
lea ecx, [ebp - 0x1c]
call fcn.10018f08
push edi
lea eax, [ebp - 0x24]
push eax
push str.SFXOther
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x24], edi
call fcn.10018f08
jmp 0x1001593a
and dword [ebp - 0x10], 0
lea ecx, [ebp - 0x38]
call fcn.10017868
cmp dword [eax + 0x18], 8
jb 0x100157af
mov eax, dword [eax + 4]
jmp 0x100157b2
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x30], eax
cmp eax, 0xffffffff
jne 0x100157c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x38]
call fcn.10017868
cmp dword [eax + 0x18], 8
jb 0x100157da
mov eax, dword [eax + 4]
jmp 0x100157dd
add eax, 4
push 0x10077ed0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
lea ecx, [ebp - 0x38]
test eax, eax
jne 0x10015823
call fcn.10017868
cmp dword [eax + 0x18], 8
jb 0x10015807
mov eax, dword [eax + 4]
jmp 0x1001580a
add eax, 4
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push eax
call fcn.10017412
add esp, 0x10
test eax, eax
je 0x10015843
lea ecx, [ebp - 0x38]
call fcn.10017868
cmp dword [eax + 0x18], 8
jb 0x10015833
mov eax, dword [eax + 4]
jmp 0x10015836
add eax, 4
push eax
call fcn.1001298e
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x10015851
or dword [ebp - 0x14], edi
and dword [ebp - 0x18], edi
mov dword [ebp - 0x10], edi
jmp 0x10015926
cmp ecx, edi
je 0x1001585f
cmp ecx, 7
je 0x1001585f
cmp ecx, 0xf
jne 0x10015866
mov dword [ebp - 0x10], 2
cmp ecx, 0xa
jne 0x10015886
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
push 0x1c
cdq
pop ebx
idiv ebx
or dword [ebp - 0x10], 3
cmp eax, edi
jne 0x100158cf
or dword [ebp - 0x10], 4
mov ebx, dword [ebp - 0x20]
cmp ecx, 0xf
je 0x10015895
cmp ecx, 3
je 0x10015895
cmp ecx, 4
jne 0x10015899
or dword [ebp - 0x10], 2
cmp ecx, 5
je 0x100158b2
cmp ecx, 6
je 0x100158b2
cmp ecx, 0xc
je 0x100158b2
cmp ecx, 0xb
je 0x100158b2
cmp ecx, 0xd
jne 0x100158b6
or dword [ebp - 0x10], 2
cmp ecx, 0x10
jne 0x100158d2
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
push 0x1c
cdq
pop ebx
idiv ebx
cmp eax, edi
jne 0x100158cf
or dword [ebp - 0x10], 4
mov ebx, dword [ebp - 0x20]
push ecx
call fcn.100124c0
pop ecx
test eax, eax
je 0x100158e0
or dword [ebp - 0x10], edi
test byte [ebp - 0x30], 0x10
je 0x1001591d
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x10], edi
call fcn.10017868
cmp dword [eax + 0x14], edi
jbe 0x10015915
lea ecx, [ebp - 0x38]
call fcn.10017868
push edi
mov ecx, eax
call fcn.10017840
push 0x3a
pop ecx
cmp cx, word [eax]
je 0x10015915
mov dword [ebp - 0x10], 5
mov eax, dword [ebp - 0x10]
or dword [ebp - 0x14], eax
jmp 0x10015926
mov eax, dword [ebp - 0x10]
or dword [ebp - 0x14], eax
and dword [ebp - 0x18], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebx + 0x50]
call fcn.10018a56
lea ecx, [ebp - 0x38]
call fcn.10017894
mov eax, dword [esi + 0x10]
push esi
push eax
lea ecx, [ebp - 0x40]
call fcn.10017dc3
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x38]
call fcn.10017936
test al, al
je 0x10015798
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
push 0x1c
cdq
pop ecx
idiv ecx
cmp eax, edi
jne 0x1001597e
push 0
lea ecx, [ebx + 0x50]
call fcn.100192cd
test byte [eax], 2
je 0x1001597e
or dword [ebp - 0x14], 0x10
cmp dword [ebp - 0x18], 0
je 0x10015988
or dword [ebp - 0x14], 0x40
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
push 0x1c
cdq
pop ecx
idiv ecx
cmp eax, edi
jbe 0x100159da
or dword [ebp - 0x14], edi
lea esi, [ebx + 0x50]
mov eax, dword [esi + 0x10]
push esi
push eax
lea ecx, [ebp - 0x40]
call fcn.10017dc3
mov eax, dword [esi + 0xc]
push esi
push eax
lea ecx, [ebp - 0x38]
call fcn.10017dc3
push edi
push dword [ebp - 0x3c]
lea eax, [ebp - 0x30]
push dword [ebp - 0x40]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push eax
call fcn.10017e88
add esp, 0x18
cmp dword [eax], 0
jne 0x100159da
and dword [ebp - 0x14], 0xffffffb1
cmp word [ebx + 0x9c], 0
je 0x100159ed
mov eax, dword [ebp + 8]
and dword [eax], 0xfff8ebf2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.10018f75
mov eax, dword [ebp - 0x14]
call fcn.10051173
ret 4