Function at 0x415a77
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56792b
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5afee0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
call fcn.004a26d3
cmp byte [ebp + 8], 0
mov dword [0x5d1400], eax
je 0x415d49
push 0x40
call fcn.0052fe0a
pop ecx
mov dword [esp + 0x28], eax
xor edi, edi
mov dword [esp + 0x38], edi
cmp eax, edi
je 0x415ad5
push eax
call fcn.0049eee6
jmp 0x415ad7
xor eax, eax
or dword [esp + 0x38], 0xffffffff
mov dword [0x5d1404], eax
call fcn.00418960
mov esi, eax
mov dword [esp + 0x28], esi
cmp esi, edi
je 0x415d49
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x415d49
push 1
push edi
mov eax, esi
call fcn.004a32e1
test eax, eax
je 0x415d49
cmp dword [0x5d1400], edi
je 0x415d49
cmp dword [0x5d1404], edi
je 0x415d49
push str.select__from_preferences_d
push esi
call fcn.004a33c7
mov ebx, eax
mov esi, 0x5beb28
cmp ebx, edi
je 0x415c2c
jmp 0x415c18
mov eax, dword [0x5beb28]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
xor eax, eax
inc eax
push ebx
mov dword [esp + 0x3c], eax
and dword [esp + 0x1c], 0
push eax
lea edi, [esp + 0x1c]
call fcn.004a3470
test eax, eax
je 0x415c07
lea eax, [esp + 0x18]
push eax
push 2
push ebx
call fcn.004a344d
test eax, eax
je 0x415c07
lea eax, [esp + 0x1c]
push eax
push 3
push ebx
call fcn.004a344d
test eax, eax
je 0x415c07
push dword [esp + 0x18]
mov ecx, dword [esp + 0x18]
call fcn.004a2d12
and dword [esp + 0x20], 0
pop ecx
lea eax, [esp + 0x24]
push eax
mov eax, edi
push eax
lea edi, [esp + 0x24]
call fcn.00416595
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x40], 2
call fcn.00416595
mov byte [esp + 0x38], 3
push dword [esp + 0x18]
push dword [esp + 0x24]
push dword [esp + 0x2c]
call fcn.0049f13a
mov eax, dword [esp + 0x2c]
add esp, 0xc
add eax, 0xfffffff0
call fcn.00407d09
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
call fcn.00407d09
or dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.00407d09
push ebx
call fcn.004a3418
test eax, eax
jne 0x415b4c
push ebx
call fcn.004a3437
push 0x57e39c
push dword [esp + 0x2c]
call fcn.004a33c7
mov ebx, eax
test ebx, ebx
je 0x415d49
jmp 0x415d35
mov eax, dword [0x5beb28]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x38], 4
mov eax, dword [0x5beb28]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
push ebx
push 1
lea edi, [esp + 0x1c]
mov byte [esp + 0x40], 5
call fcn.004a3470
test eax, eax
je 0x415d18
push ebx
push 2
lea edi, [esp + 0x20]
call fcn.004a3470
test eax, eax
je 0x415d18
lea eax, [esp + 0x28]
push eax
push 3
push ebx
call fcn.004a344d
test eax, eax
je 0x415d18
push dword [esp + 0x18]
mov ecx, dword [esp + 0x18]
call fcn.004a2e02
and dword [esp + 0x28], 0
pop ecx
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
lea edi, [esp + 0x2c]
call fcn.00416595
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x40], 6
call fcn.00416595
mov byte [esp + 0x38], 7
push dword [esp + 0x18]
push dword [esp + 0x24]
push dword [esp + 0x24]
call fcn.0049f1e7
mov eax, dword [esp + 0x2c]
add esp, 0xc
add eax, 0xfffffff0
call fcn.00407d09
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
call fcn.00407d09
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.00407d09
or dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.00407d09
push ebx
call fcn.004a3418
test eax, eax
jne 0x415c49
push ebx
call fcn.004a3437
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret