Function at 0x4170ec
Capabilities:
Check if file exists

Disassembly:
push 0x5c
mov eax, 0x513bc7
call fcn.004e3d00
mov ebx, ecx
mov dword [ebp - 0x24], 0x2001f
mov byte [ebp - 0x1c], 0
call fcn.00482292
xor edi, edi
test al, al
je 0x41712c
mov eax, dword [ebx + 0x2c]
cmp eax, edi
sete cl
neg eax
sbb eax, eax
and eax, 0x100
add eax, 0x2011f
mov byte [ebp - 0x1c], cl
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], edi
call fcn.004be6f3
push eax
lea ecx, [ebp - 0x14]
call fcn.004027f9
mov dword [ebp - 4], edi
mov eax, dword [ebx]
cmp eax, 0x2b
ja case.default.0x417152
movzx eax, byte [eax + 0x41785c]
jmp dword [eax*4 + 0x417834]
lea eax, [ebx + 0x10]
mov ecx, dword [eax]
cmp dword [ecx - 0xc], edi
jne 0x417166
lea eax, [ebx + 4]
push eax
lea ecx, [ebp - 0x14]
call fcn.004025da
push edi
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.00414092
mov esi, eax
cmp esi, 0xffffffff
je case.default.0x417152
push ecx
mov eax, esp
mov dword [ebp - 0x38], esp
push esi
push eax
lea ecx, [ebp - 0x14]
call fcn.00407984
call fcn.004aa585
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax - 0xc]
sub eax, esi
pop ecx
dec eax
push eax
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040dc3f
push dword [ebp - 0x1c]
mov byte [ebp - 4], 1
push edi
push eax
push dword [ebp - 0x28]
push dword [ebx + 0x30]
call fcn.004afd10
mov ecx, dword [ebp - 0x34]
mov esi, eax
add ecx, 0xfffffff0
call fcn.0040285b
cmp esi, edi
je case.default.0x417152
mov dword [ebp - 0x18], 1
jmp case.default.0x417152
lea eax, [ebx + 0x10]
push eax
lea ecx, [ebp - 0x14]
call fcn.004025da
push edi
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.00414092
mov esi, eax
cmp esi, 0xffffffff
je case.default.0x417152
push ecx
mov eax, esp
mov dword [ebp - 0x38], esp
push esi
push eax
lea ecx, [ebp - 0x14]
call fcn.00407984
call fcn.004aa585
pop ecx
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x28], eax
lea eax, [esi + 1]
push ecx
call fcn.0040726b
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], edi
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x28]
call fcn.004aa553
push dword [ebp - 0x14]
mov dword [ebp - 0x38], eax
push eax
mov eax, 0x2001f
lea edi, [ebp - 0x54]
call fcn.0041455e
test eax, eax
je 0x4172ea
lea eax, [ebx + 4]
push eax
lea ecx, [ebp - 0x20]
call fcn.00402305
xor edi, edi
push edi
push 0x5c
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.00414092
mov esi, eax
cmp esi, 0xffffffff
je 0x4172c5
push ecx
mov eax, esp
mov dword [ebp - 0x48], esp
push esi
push eax
lea ecx, [ebp - 0x20]
call fcn.00407984
call fcn.004aa585
pop ecx
push edi
lea ecx, [ebp - 0x20]
lea eax, [esi + 1]
push ecx
call fcn.0040726b
push 0x5b41a0
lea ecx, [ebp - 0x20]
call fcn.00413eb9
test eax, eax
je 0x4172c5
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x14]
call fcn.004025da
jmp 0x4172d9
lea eax, [ebp - 0x14]
push eax
push dword [0x60a8e4]
mov ecx, 0x60a8dc
call fcn.004c96e8
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.0040285b
jmp 0x4172ec
xor edi, edi
push dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push edi
push eax
push dword [ebp - 0x28]
push dword [ebx + 0x30]
call fcn.004afd10
test eax, eax
je 0x41739c
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.004140c4
cmp eax, 0xffffffff
je 0x417395
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], edi
push eax
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.00407984
push dword [eax]
mov eax, dword [ebp - 0x24]
push dword [ebp - 0x38]
lea edi, [ebp - 0x4c]
call fcn.0041455e
mov ecx, dword [ebp - 0x3c]
mov ebx, eax
neg ebx
sbb bl, bl
add ecx, 0xfffffff0
inc bl
call fcn.0040285b
test bl, bl
je 0x41738d
lea ecx, [ebp - 0x68]
call fcn.004c92aa
lea eax, [ebp - 0x68]
push eax
mov byte [ebp - 4], 5
push dword [ebp - 0x4c]
call fcn.0040e0c1
pop ecx
pop ecx
test eax, eax
jne 0x417379
mov esi, edi
call fcn.00417e10
lea ecx, [ebp - 0x4c]
call fcn.0041459a
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 4
call fcn.004c9586
lea ecx, [ebp - 0x4c]
call fcn.0041459a
mov dword [ebp - 0x18], 1
lea ecx, [ebp - 0x54]
call fcn.0041459a
jmp case.default.0x417152
lea eax, [ebx + 0x10]
mov ecx, dword [eax]
cmp dword [ecx - 0xc], edi
jne 0x4173b6
lea eax, [ebx + 4]
push eax
lea ecx, [ebp - 0x14]
call fcn.004025da
push edi
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.00414092
mov esi, eax
cmp esi, 0xffffffff
je case.default.0x417152
push ecx
mov eax, esp
mov dword [ebp - 0x48], esp
push esi
push eax
lea ecx, [ebp - 0x14]
call fcn.00407984
call fcn.004aa585
pop ecx
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x28], eax
lea eax, [esi + 1]
push ecx
call fcn.0040726b
push dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push 1
push eax
push dword [ebp - 0x28]
push dword [ebx + 0x30]
call fcn.004afd10
test eax, eax
je case.default.0x417152
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.004140c4
cmp eax, 0xffffffff
je 0x4171dd
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], edi
push eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.00407984
push dword [eax]
mov eax, dword [ebp - 0x28]
call fcn.004aa553
push eax
mov eax, dword [ebp - 0x24]
lea edi, [ebp - 0x4c]
call fcn.0041455e
mov ecx, dword [ebp - 0x40]
mov ebx, eax
neg ebx
sbb bl, bl
add ecx, 0xfffffff0
inc bl
call fcn.0040285b
test bl, bl
je 0x4174a7
lea ecx, [ebp - 0x68]
call fcn.004c92aa
lea eax, [ebp - 0x68]
push eax
mov byte [ebp - 4], 7
push dword [ebp - 0x4c]
call fcn.0040e0c1
pop ecx
pop ecx
test eax, eax
jne 0x417493
mov esi, edi
call fcn.00417e10
lea ecx, [ebp - 0x4c]
call fcn.0041459a
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 6
call fcn.004c9586
lea ecx, [ebp - 0x4c]
call fcn.0041459a
jmp 0x4171dd
lea eax, [ebx + 4]
push eax
lea ecx, [ebp - 0x14]
call fcn.004025da
push edi
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.00414092
mov esi, eax
cmp esi, 0xffffffff
je case.default.0x417152
push ecx
mov eax, esp
mov dword [ebp - 0x48], esp
push esi
push eax
lea ecx, [ebp - 0x14]
call fcn.00407984
call fcn.004aa585
pop ecx
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x38], eax
lea eax, [esi + 1]
push ecx
call fcn.0040726b
push dword [ebp - 0x1c]
xor esi, esi
inc esi
push esi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x38]
push dword [ebx + 0x30]
call fcn.004afd10
test eax, eax
je case.default.0x417152
mov dword [ebp - 0x18], esi
jmp case.default.0x417152
lea eax, [ebx + 4]
push eax
lea ecx, [ebp - 0x14]
call fcn.004025da
push edi
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.00414092
mov esi, eax
cmp esi, 0xffffffff
je case.default.0x417152
push ecx
mov eax, esp
mov dword [ebp - 0x48], esp
push esi
push eax
lea ecx, [ebp - 0x14]
call fcn.00407984
call fcn.004aa585
pop ecx
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x38], eax
lea eax, [esi + 1]
push ecx
call fcn.0040726b
push dword [ebp - 0x1c]
lea eax, [ebx + 8]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x38]
push dword [ebx + 0x30]
call fcn.004afd8d
test eax, eax
jmp 0x4171d7
lea eax, [ebx + 4]
push eax
lea ecx, [ebp - 0x14]
call fcn.004025da
push edi
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.00414092
mov esi, eax
cmp esi, 0xffffffff
je case.default.0x417152
push ecx
mov eax, esp
mov dword [ebp - 0x48], esp
push esi
push eax
lea ecx, [ebp - 0x14]
call fcn.00407984
call fcn.004aa585
pop ecx
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x38], eax
lea eax, [esi + 1]
push ecx
call fcn.0040726b
push dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push edi
push eax
push dword [ebp - 0x38]
push dword [ebx + 0x30]
call fcn.004afd10
jmp 0x417580
lea eax, [ebx + 4]
push eax
lea ecx, [ebp - 0x14]
call fcn.004025da
push edi
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.00414092
mov esi, eax
cmp esi, 0xffffffff
je case.default.0x417152
push ecx
mov eax, esp
mov dword [ebp - 0x48], esp
push esi
push eax
lea ecx, [ebp - 0x14]
call fcn.00407984
call fcn.004aa585
pop ecx
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x28], eax
lea eax, [esi + 1]
push ecx
call fcn.0040726b
push dword [ebp - 0x1c]
lea eax, [ebx + 8]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x28]
push dword [ebx + 0x30]
call fcn.004afd8d
test eax, eax
je case.default.0x417152
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], edi
mov byte [ebp - 4], 8
mov esi, 0x104
mov dword [ebp - 0x38], esi
call fcn.004be6f3
push eax
lea ecx, [ebp - 0x20]
call fcn.004027f9
mov byte [ebp - 4], 9
push dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
call fcn.004aa553
push eax
mov eax, dword [ebp - 0x24]
lea edi, [ebp - 0x4c]
call fcn.0041455e
test eax, eax
jne 0x41771b
push esi
lea ecx, [ebp - 0x20]
call fcn.00402963
mov ecx, edi
push str.MRUList
push ecx
lea esi, [ebp - 0x38]
mov edi, eax
call fcn.004144f6
push 0xffffffffffffffff
lea ecx, [ebp - 0x20]
call fcn.004145ba
lea ecx, [ebp - 0x4c]
call fcn.0041459a
mov eax, dword [ebp - 0x20]
xor edi, edi
inc edi
cmp dword [eax - 0xc], 0
mov dword [ebp - 0x18], edi
je 0x41771b
push dword [ebx + 8]
xor ecx, ecx
lea esi, [ebp - 0x20]
call fcn.0040788c
cmp eax, 0xffffffff
je 0x41771b
push eax
mov eax, esi
push eax
mov eax, edi
call fcn.0040726b
push str.MRUList
lea ecx, [ebp - 0x2c]
call fcn.0040253b
push dword [ebp - 0x1c]
mov eax, esi
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 0xa
push dword [ebp - 0x28]
push dword [ebx + 0x30]
call fcn.004afe0c
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
call fcn.0040285b
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.0040285b
lea ecx, [ebp - 0x4c]
jmp 0x41739f
lea eax, [ebx + 4]
push eax
lea ecx, [ebp - 0x14]
call fcn.004025da
push edi
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.00414092
mov esi, eax
cmp esi, 0xffffffff
je case.default.0x417152
push ecx
mov eax, esp
mov dword [ebp - 0x48], esp
push esi
push eax
lea ecx, [ebp - 0x14]
call fcn.00407984
call fcn.004aa585
pop ecx
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x38], eax
lea eax, [esi + 1]
push ecx
call fcn.0040726b
push 0x5afd90
lea ecx, [ebp - 0x30]
call fcn.0040253b
push dword [ebp - 0x1c]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebx + 8]
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 0xb
push dword [ebp - 0x38]
push dword [ebx + 0x30]
call fcn.004afe0c
mov ecx, dword [ebp - 0x30]
jmp 0x4171cb
xor ecx, ecx
inc ecx
lea esi, [ebp - 0x44]
mov eax, ebx
call fcn.004170bf
mov esi, eax
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4177d4
mov eax, dword [esi]
push dword [eax - 0xc]
push eax
call fcn.0040719e
movzx esi, al
jmp 0x4177d6
xor esi, esi
mov ecx, dword [ebp - 0x44]
jmp 0x4171cd
xor ecx, ecx
inc ecx
lea esi, [ebp - 0x28]
mov eax, ebx
call fcn.004170bf
mov byte [ebp - 4], 0xe
call fcn.00416f67
push ecx
mov eax, esi
mov dword [ebp - 0x48], esp
mov ecx, esp
push eax
call fcn.00402305
call fcn.00416fbb
cmp eax, edi
je 0x417812
mov dword [ebp - 0x18], 1
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.0040285b
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0040285b
mov eax, dword [ebp - 0x18]
call fcn.004e3dd8
ret