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

Disassembly:
push 0x34
mov eax, 0x10072831
call fcn.10050aeb
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.1001785b
xor edi, edi
inc edi
push edi
push str.SetupMenuItems
lea ecx, [ebp - 0x1c]
call fcn.10018941
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.100188c6
and dword [ebp - 0x28], 0
push 0
lea eax, [ebp - 0x28]
push eax
push str.SFXNetwork
lea ecx, [ebp - 0x1c]
call fcn.100188c6
push edi
lea eax, [ebp - 0x24]
push eax
push str.SFXOther
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x24], edi
call fcn.100188c6
jmp 0x100153fb
and dword [ebp - 0x10], 0
lea ecx, [ebp - 0x38]
call fcn.1001198c
cmp dword [eax + 0x18], 8
jb 0x10015270
mov eax, dword [eax + 4]
jmp 0x10015273
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x30], eax
cmp eax, 0xffffffff
jne 0x10015288
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x38]
call fcn.1001198c
cmp dword [eax + 0x18], 8
jb 0x1001529b
mov eax, dword [eax + 4]
jmp 0x1001529e
add eax, 4
push 0x10076de4
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 0x100152e4
call fcn.1001198c
cmp dword [eax + 0x18], 8
jb 0x100152c8
mov eax, dword [eax + 4]
jmp 0x100152cb
add eax, 4
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push eax
call fcn.10016ed3
add esp, 0x10
test eax, eax
je 0x10015304
lea ecx, [ebp - 0x38]
call fcn.1001198c
cmp dword [eax + 0x18], 8
jb 0x100152f4
mov eax, dword [eax + 4]
jmp 0x100152f7
add eax, 4
push eax
call fcn.1001265c
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x10015312
or dword [ebp - 0x14], edi
and dword [ebp - 0x18], edi
mov dword [ebp - 0x10], edi
jmp 0x100153e7
cmp ecx, edi
je 0x10015320
cmp ecx, 7
je 0x10015320
cmp ecx, 0xf
jne 0x10015327
mov dword [ebp - 0x10], 2
cmp ecx, 0xa
jne 0x10015347
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 0x10015390
or dword [ebp - 0x10], 4
mov ebx, dword [ebp - 0x20]
cmp ecx, 0xf
je 0x10015356
cmp ecx, 3
je 0x10015356
cmp ecx, 4
jne 0x1001535a
or dword [ebp - 0x10], 2
cmp ecx, 5
je 0x10015373
cmp ecx, 6
je 0x10015373
cmp ecx, 0xc
je 0x10015373
cmp ecx, 0xb
je 0x10015373
cmp ecx, 0xd
jne 0x10015377
or dword [ebp - 0x10], 2
cmp ecx, 0x10
jne 0x10015393
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
push 0x1c
cdq
pop ebx
idiv ebx
cmp eax, edi
jne 0x10015390
or dword [ebp - 0x10], 4
mov ebx, dword [ebp - 0x20]
push ecx
call fcn.1001218e
pop ecx
test eax, eax
je 0x100153a1
or dword [ebp - 0x10], edi
test byte [ebp - 0x30], 0x10
je 0x100153de
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x10], edi
call fcn.1001198c
cmp dword [eax + 0x14], edi
jbe 0x100153d6
lea ecx, [ebp - 0x38]
call fcn.1001198c
push edi
mov ecx, eax
call fcn.10017301
push 0x3a
pop ecx
cmp cx, word [eax]
je 0x100153d6
mov dword [ebp - 0x10], 5
mov eax, dword [ebp - 0x10]
or dword [ebp - 0x14], eax
jmp 0x100153e7
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.10018414
lea ecx, [ebp - 0x38]
call fcn.10017375
mov eax, dword [esi + 0x10]
push esi
push eax
lea ecx, [ebp - 0x40]
call fcn.1001785b
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x38]
call fcn.1001734e
test al, al
je 0x10015259
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
push 0x1c
cdq
pop ecx
idiv ecx
cmp eax, edi
jne 0x1001543f
push 0
lea ecx, [ebx + 0x50]
call fcn.10017329
test byte [eax], 2
je 0x1001543f
or dword [ebp - 0x14], 0x10
cmp dword [ebp - 0x18], 0
je 0x10015449
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 0x1001549b
or dword [ebp - 0x14], edi
lea esi, [ebx + 0x50]
mov eax, dword [esi + 0x10]
push esi
push eax
lea ecx, [ebp - 0x40]
call fcn.1001785b
mov eax, dword [esi + 0xc]
push esi
push eax
lea ecx, [ebp - 0x38]
call fcn.1001785b
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.1001788d
add esp, 0x18
cmp dword [eax], 0
jne 0x1001549b
and dword [ebp - 0x14], 0xffffffb1
cmp word [ebx + 0x9c], 0
je 0x100154ae
mov eax, dword [ebp + 8]
and dword [eax], 0xfff8ebf2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.10018933
mov eax, dword [ebp - 0x14]
call fcn.10050bc3
ret 4