Function at 0x407b83
Capabilities:
Check if file exists

Disassembly:
push 0x18
mov eax, 0x5bcfa4
call fcn.00598f2b
call fcn.0047e050
cmp byte [ebp + 8], 0
mov dword [0x637ecc], eax
je 0x407e0f
push 0x40
call fcn.0058f82d
pop ecx
mov dword [ebp + 8], eax
xor edi, edi
mov dword [ebp - 4], edi
cmp eax, edi
je 0x407bbf
push eax
call fcn.0047b621
jmp 0x407bc1
xor eax, eax
or dword [ebp - 4], 0xffffffff
push edi
mov dword [0x637ed0], eax
call fcn.0040d164
mov esi, eax
pop ecx
mov dword [ebp - 0x24], esi
cmp esi, edi
je 0x407e0f
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x407e0f
push edi
mov eax, esi
call fcn.0046ffe2
test eax, eax
je 0x407e0f
cmp dword [0x637ecc], edi
je 0x407e0f
cmp dword [0x637ed0], edi
je 0x407e0f
push str.select__from_settings_dword
push esi
call fcn.0047016d
mov ebx, eax
mov dword [ebp - 0x14], ebx
mov esi, 0x5dba80
cmp ebx, edi
je 0x407d05
jmp 0x407cef
mov eax, dword [0x63696c]
mov ecx, 0x63696c
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
xor eax, eax
inc eax
push ebx
mov dword [ebp - 4], eax
and dword [ebp - 0x10], 0
push eax
lea edi, [ebp + 8]
call fcn.00470212
mov edi, dword [ebp + 8]
test eax, eax
je 0x407ce3
lea eax, [ebp - 0x10]
push eax
push 2
push ebx
call fcn.004701ef
test eax, eax
je 0x407ce3
lea eax, [ebp - 0x18]
push eax
push 3
push ebx
call fcn.004701ef
test eax, eax
je 0x407ce3
push dword [ebp - 0x10]
mov ecx, edi
call fcn.0047e663
and dword [ebp - 0x18], 0
pop ecx
push esi
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x18]
lea ebx, [ebp + 8]
call fcn.0040865a
push esi
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0040865a
mov byte [ebp - 4], 3
push dword [ebp - 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call fcn.0047b840
mov eax, dword [ebp - 0x1c]
add esp, 0xc
add eax, 0xfffffff0
call fcn.00407b6b
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.00407b6b
mov ebx, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
lea eax, [edi - 0x10]
call fcn.00407b6b
push ebx
call fcn.004701be
test eax, eax
jne 0x407c37
push ebx
call fcn.004701db
xor edi, edi
push 0x5dba84
push dword [ebp - 0x24]
call fcn.0047016d
mov ebx, eax
mov dword [ebp - 0x14], ebx
cmp ebx, edi
je 0x407e0f
jmp 0x407dfb
mov eax, dword [0x63696c]
mov edi, 0x63696c
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
mov dword [ebp - 4], 4
mov eax, dword [0x63696c]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push ebx
push 1
lea edi, [ebp + 8]
mov byte [ebp - 4], 5
call fcn.00470212
test eax, eax
je 0x407de1
push ebx
push 2
lea edi, [ebp - 0x10]
call fcn.00470212
test eax, eax
je 0x407de1
lea eax, [ebp - 0x24]
push eax
push 3
push ebx
call fcn.004701ef
test eax, eax
je 0x407de1
push dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
call fcn.0047e752
and dword [ebp - 0x20], 0
pop ecx
push esi
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x20]
lea ebx, [ebp + 8]
call fcn.0040865a
push esi
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 6
call fcn.0040865a
mov byte [ebp - 4], 7
push dword [ebp - 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
call fcn.0047b8ed
mov eax, dword [ebp - 0x1c]
add esp, 0xc
add eax, 0xfffffff0
call fcn.00407b6b
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00407b6b
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00407b6b
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00407b6b
push ebx
call fcn.004701be
test eax, eax
jne 0x407d24
push ebx
call fcn.004701db
call fcn.00599003
ret