Function at 0x414aea
Capabilities:
Check if file exists

Disassembly:
push 0x5c
mov eax, 0x4d6a22
call fcn.004ae200
mov ebx, ecx
mov dword [ebp - 0x24], 0x2001f
mov byte [ebp - 0x1c], 0
call fcn.00461ea4
xor edi, edi
test al, al
je 0x414b2a
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.0048aa29
push eax
lea ecx, [ebp - 0x14]
call fcn.00402840
mov dword [ebp - 4], edi
mov eax, dword [ebx]
cmp eax, 0x2b
ja case.default.0x414b50
movzx eax, byte [eax + 0x41525a]
jmp dword [eax*4 + 0x415232]
lea eax, [ebx + 0x10]
mov ecx, dword [eax]
cmp dword [ecx - 0xc], edi
jne 0x414b64
lea eax, [ebx + 4]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040262c
push edi
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.00411a8a
mov esi, eax
cmp esi, 0xffffffff
je case.default.0x414b50
push ecx
mov eax, esp
mov dword [ebp - 0x38], esp
push esi
push eax
lea ecx, [ebp - 0x14]
call fcn.004078a9
call fcn.004781f7
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.0040c5ab
push dword [ebp - 0x1c]
mov byte [ebp - 4], 1
push edi
push eax
push dword [ebp - 0x28]
push dword [ebx + 0x30]
call fcn.0047d8b8
mov ecx, dword [ebp - 0x34]
mov esi, eax
add ecx, 0xfffffff0
call fcn.00402883
cmp esi, edi
je case.default.0x414b50
mov dword [ebp - 0x18], 1
jmp case.default.0x414b50
lea eax, [ebx + 0x10]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040262c
push edi
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.00411a8a
mov esi, eax
cmp esi, 0xffffffff
je case.default.0x414b50
push ecx
mov eax, esp
mov dword [ebp - 0x38], esp
push esi
push eax
lea ecx, [ebp - 0x14]
call fcn.004078a9
call fcn.004781f7
pop ecx
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x28], eax
lea eax, [esi + 1]
push ecx
call fcn.00407190
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], edi
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x28]
call fcn.004781c5
push dword [ebp - 0x14]
mov dword [ebp - 0x38], eax
push eax
mov eax, 0x2001f
lea edi, [ebp - 0x54]
call fcn.00411f6e
test eax, eax
je 0x414ce8
lea eax, [ebx + 4]
push eax
lea ecx, [ebp - 0x20]
call fcn.004025a1
xor edi, edi
push edi
push 0x5c
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.00411a8a
mov esi, eax
cmp esi, 0xffffffff
je 0x414cc3
push ecx
mov eax, esp
mov dword [ebp - 0x48], esp
push esi
push eax
lea ecx, [ebp - 0x20]
call fcn.004078a9
call fcn.004781f7
pop ecx
push edi
lea ecx, [ebp - 0x20]
lea eax, [esi + 1]
push ecx
call fcn.00407190
push 0x524a68
lea ecx, [ebp - 0x20]
call fcn.004118b1
test eax, eax
je 0x414cc3
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040262c
jmp 0x414cd7
lea eax, [ebp - 0x14]
push eax
push dword [0x5662ac]
mov ecx, 0x5662a4
call fcn.00495a83
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00402883
jmp 0x414cea
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.0047d8b8
test eax, eax
je 0x414d9a
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.00411abc
cmp eax, 0xffffffff
je 0x414d93
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.004078a9
push dword [eax]
mov eax, dword [ebp - 0x24]
push dword [ebp - 0x38]
lea edi, [ebp - 0x4c]
call fcn.00411f6e
mov ecx, dword [ebp - 0x3c]
mov ebx, eax
neg ebx
sbb bl, bl
add ecx, 0xfffffff0
inc bl
call fcn.00402883
test bl, bl
je 0x414d8b
lea ecx, [ebp - 0x68]
call fcn.004956f5
lea eax, [ebp - 0x68]
push eax
mov byte [ebp - 4], 5
push dword [ebp - 0x4c]
call fcn.0040ca2d
pop ecx
pop ecx
test eax, eax
jne 0x414d77
mov esi, edi
call fcn.0041580e
lea ecx, [ebp - 0x4c]
call fcn.00411faa
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 4
call fcn.00495921
lea ecx, [ebp - 0x4c]
call fcn.00411faa
mov dword [ebp - 0x18], 1
lea ecx, [ebp - 0x54]
call fcn.00411faa
jmp case.default.0x414b50
lea eax, [ebx + 0x10]
mov ecx, dword [eax]
cmp dword [ecx - 0xc], edi
jne 0x414db4
lea eax, [ebx + 4]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040262c
push edi
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.00411a8a
mov esi, eax
cmp esi, 0xffffffff
je case.default.0x414b50
push ecx
mov eax, esp
mov dword [ebp - 0x48], esp
push esi
push eax
lea ecx, [ebp - 0x14]
call fcn.004078a9
call fcn.004781f7
pop ecx
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x28], eax
lea eax, [esi + 1]
push ecx
call fcn.00407190
push dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push 1
push eax
push dword [ebp - 0x28]
push dword [ebx + 0x30]
call fcn.0047d8b8
test eax, eax
je case.default.0x414b50
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.00411abc
cmp eax, 0xffffffff
je 0x414bdb
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.004078a9
push dword [eax]
mov eax, dword [ebp - 0x28]
call fcn.004781c5
push eax
mov eax, dword [ebp - 0x24]
lea edi, [ebp - 0x4c]
call fcn.00411f6e
mov ecx, dword [ebp - 0x40]
mov ebx, eax
neg ebx
sbb bl, bl
add ecx, 0xfffffff0
inc bl
call fcn.00402883
test bl, bl
je 0x414ea5
lea ecx, [ebp - 0x68]
call fcn.004956f5
lea eax, [ebp - 0x68]
push eax
mov byte [ebp - 4], 7
push dword [ebp - 0x4c]
call fcn.0040ca2d
pop ecx
pop ecx
test eax, eax
jne 0x414e91
mov esi, edi
call fcn.0041580e
lea ecx, [ebp - 0x4c]
call fcn.00411faa
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 6
call fcn.00495921
lea ecx, [ebp - 0x4c]
call fcn.00411faa
jmp 0x414bdb
lea eax, [ebx + 4]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040262c
push edi
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.00411a8a
mov esi, eax
cmp esi, 0xffffffff
je case.default.0x414b50
push ecx
mov eax, esp
mov dword [ebp - 0x48], esp
push esi
push eax
lea ecx, [ebp - 0x14]
call fcn.004078a9
call fcn.004781f7
pop ecx
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x38], eax
lea eax, [esi + 1]
push ecx
call fcn.00407190
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.0047d8b8
test eax, eax
je case.default.0x414b50
mov dword [ebp - 0x18], esi
jmp case.default.0x414b50
lea eax, [ebx + 4]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040262c
push edi
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.00411a8a
mov esi, eax
cmp esi, 0xffffffff
je case.default.0x414b50
push ecx
mov eax, esp
mov dword [ebp - 0x48], esp
push esi
push eax
lea ecx, [ebp - 0x14]
call fcn.004078a9
call fcn.004781f7
pop ecx
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x38], eax
lea eax, [esi + 1]
push ecx
call fcn.00407190
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.0047d935
test eax, eax
jmp 0x414bd5
lea eax, [ebx + 4]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040262c
push edi
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.00411a8a
mov esi, eax
cmp esi, 0xffffffff
je case.default.0x414b50
push ecx
mov eax, esp
mov dword [ebp - 0x48], esp
push esi
push eax
lea ecx, [ebp - 0x14]
call fcn.004078a9
call fcn.004781f7
pop ecx
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x38], eax
lea eax, [esi + 1]
push ecx
call fcn.00407190
push dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push edi
push eax
push dword [ebp - 0x38]
push dword [ebx + 0x30]
call fcn.0047d8b8
jmp 0x414f7e
lea eax, [ebx + 4]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040262c
push edi
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.00411a8a
mov esi, eax
cmp esi, 0xffffffff
je case.default.0x414b50
push ecx
mov eax, esp
mov dword [ebp - 0x48], esp
push esi
push eax
lea ecx, [ebp - 0x14]
call fcn.004078a9
call fcn.004781f7
pop ecx
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x28], eax
lea eax, [esi + 1]
push ecx
call fcn.00407190
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.0047d935
test eax, eax
je case.default.0x414b50
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.0048aa29
push eax
lea ecx, [ebp - 0x20]
call fcn.00402840
mov byte [ebp - 4], 9
push dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
call fcn.004781c5
push eax
mov eax, dword [ebp - 0x24]
lea edi, [ebp - 0x4c]
call fcn.00411f6e
test eax, eax
jne 0x415119
push esi
lea ecx, [ebp - 0x20]
call fcn.0040298b
mov ecx, edi
push str.MRUList
push ecx
lea esi, [ebp - 0x38]
mov edi, eax
call fcn.00411f06
push 0xffffffffffffffff
lea ecx, [ebp - 0x20]
call fcn.00411fca
lea ecx, [ebp - 0x4c]
call fcn.00411faa
mov eax, dword [ebp - 0x20]
xor edi, edi
inc edi
cmp dword [eax - 0xc], 0
mov dword [ebp - 0x18], edi
je 0x415119
push dword [ebx + 8]
xor ecx, ecx
lea esi, [ebp - 0x20]
call fcn.004077b1
cmp eax, 0xffffffff
je 0x415119
push eax
mov eax, esi
push eax
mov eax, edi
call fcn.00407190
push str.MRUList
lea ecx, [ebp - 0x2c]
call fcn.0040255d
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.0047d9b4
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
call fcn.00402883
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00402883
lea ecx, [ebp - 0x4c]
jmp 0x414d9d
lea eax, [ebx + 4]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040262c
push edi
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.00411a8a
mov esi, eax
cmp esi, 0xffffffff
je case.default.0x414b50
push ecx
mov eax, esp
mov dword [ebp - 0x48], esp
push esi
push eax
lea ecx, [ebp - 0x14]
call fcn.004078a9
call fcn.004781f7
pop ecx
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x38], eax
lea eax, [esi + 1]
push ecx
call fcn.00407190
push 0x520938
lea ecx, [ebp - 0x30]
call fcn.0040255d
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.0047d9b4
mov ecx, dword [ebp - 0x30]
jmp 0x414bc9
xor ecx, ecx
inc ecx
lea esi, [ebp - 0x44]
mov eax, ebx
call fcn.00414abd
mov esi, eax
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4151d2
mov eax, dword [esi]
push dword [eax - 0xc]
push eax
call fcn.004070c3
movzx esi, al
jmp 0x4151d4
xor esi, esi
mov ecx, dword [ebp - 0x44]
jmp 0x414bcb
xor ecx, ecx
inc ecx
lea esi, [ebp - 0x28]
mov eax, ebx
call fcn.00414abd
mov byte [ebp - 4], 0xe
call fcn.00414965
push ecx
mov eax, esi
mov dword [ebp - 0x48], esp
mov ecx, esp
push eax
call fcn.004025a1
call fcn.004149b9
cmp eax, edi
je 0x415210
mov dword [ebp - 0x18], 1
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.00402883
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00402883
mov eax, dword [ebp - 0x18]
call fcn.004ae2d8
ret