Function at 0x4049b5
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f95f3
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x52ec00]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
call fcn.0043dc62
cmp byte [ebp + 8], 0
mov dword [0x546fb4], eax
je 0x404ca1
push 0x40
call fcn.004d6661
pop ecx
mov dword [esp + 0x28], eax
xor edi, edi
mov dword [esp + 0x38], edi
cmp eax, edi
je 0x404a13
push eax
call fcn.0043ae01
jmp 0x404a15
xor eax, eax
or dword [esp + 0x38], 0xffffffff
mov dword [0x546fb8], eax
call fcn.00407db9
mov esi, eax
mov dword [esp + 0x28], esi
cmp esi, edi
je 0x404ca1
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404ca1
push edi
mov eax, esi
call fcn.004314f7
test eax, eax
je 0x404ca1
cmp dword [0x546fb4], edi
je 0x404ca1
cmp dword [0x546fb8], edi
je 0x404ca1
push str.select__from_settings_dword
push esi
call fcn.004315c1
mov ebx, eax
mov dword [esp + 0x18], ebx
mov esi, 0x50e538
cmp ebx, edi
je 0x404b73
jmp 0x404b5f
mov eax, dword [0x545cc4]
mov ecx, 0x545cc4
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
xor eax, eax
inc eax
push ebx
mov dword [esp + 0x3c], eax
and dword [esp + 0x18], 0
push eax
lea edi, [esp + 0x18]
call fcn.00431666
mov edi, dword [esp + 0x10]
test eax, eax
je 0x404b52
lea eax, [esp + 0x14]
push eax
push 2
push ebx
call fcn.00431643
test eax, eax
je 0x404b52
lea eax, [esp + 0x1c]
push eax
push 3
push ebx
call fcn.00431643
test eax, eax
je 0x404b52
push dword [esp + 0x14]
mov ecx, edi
call fcn.0043e25f
and dword [esp + 0x20], 0
pop ecx
push esi
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x24]
lea ebx, [esp + 0x18]
call fcn.004054e5
push esi
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x40], 2
call fcn.004054e5
mov byte [esp + 0x38], 3
push dword [esp + 0x14]
push dword [esp + 0x24]
push dword [esp + 0x2c]
call fcn.0043b035
mov eax, dword [esp + 0x2c]
add esp, 0xc
add eax, 0xfffffff0
call fcn.00406ace
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
call fcn.00406ace
mov ebx, dword [esp + 0x18]
or dword [esp + 0x38], 0xffffffff
lea eax, [edi - 0x10]
call fcn.00406ace
push ebx
call fcn.00431612
test eax, eax
jne 0x404a8c
push ebx
call fcn.0043162f
push 0x50e53c
push dword [esp + 0x2c]
call fcn.004315c1
mov ebx, eax
mov dword [esp + 0x18], ebx
test ebx, ebx
je 0x404ca1
jmp 0x404c8d
mov eax, dword [0x545cc4]
mov edi, 0x545cc4
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0x38], 4
mov eax, dword [0x545cc4]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
push ebx
push 1
lea edi, [esp + 0x18]
mov byte [esp + 0x40], 5
call fcn.00431666
test eax, eax
je 0x404c70
push ebx
push 2
lea edi, [esp + 0x1c]
call fcn.00431666
test eax, eax
je 0x404c70
lea eax, [esp + 0x28]
push eax
push 3
push ebx
call fcn.00431643
test eax, eax
je 0x404c70
push dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
call fcn.0043e34e
and dword [esp + 0x28], 0
pop ecx
push esi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x2c]
lea ebx, [esp + 0x18]
call fcn.004054e5
push esi
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x40], 6
call fcn.004054e5
mov byte [esp + 0x38], 7
push dword [esp + 0x14]
push dword [esp + 0x24]
push dword [esp + 0x24]
call fcn.0043b0e2
mov eax, dword [esp + 0x2c]
add esp, 0xc
add eax, 0xfffffff0
call fcn.00406ace
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
call fcn.00406ace
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.00406ace
or dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.00406ace
push ebx
call fcn.00431612
test eax, eax
jne 0x404b94
push ebx
call fcn.0043162f
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret