Function at 0x418b7e
Capabilities:
Check if file exists

Disassembly:
push 0x5c
mov eax, 0x4e20da
call fcn.004becb0
mov ebx, ecx
mov dword [ebp - 0x24], 0x2001f
mov byte [ebp - 0x1c], 0
call fcn.0047380a
xor edi, edi
test al, al
je 0x418bbe
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.00499991
push eax
lea ecx, [ebp - 0x14]
call fcn.004727f7
mov dword [ebp - 4], edi
mov eax, dword [ebx]
cmp eax, 0x2b
ja case.default.0x418be4
movzx eax, byte [eax + 0x4192ee]
jmp dword [eax*4 + 0x4192c6]
lea eax, [ebx + 0x10]
mov ecx, dword [eax]
cmp dword [ecx - 0xc], edi
jne 0x418bf8
lea eax, [ebx + 4]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040257e
push edi
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.00415c06
mov esi, eax
cmp esi, 0xffffffff
je case.default.0x418be4
push ecx
mov eax, esp
mov dword [ebp - 0x38], esp
push esi
push eax
lea ecx, [ebp - 0x14]
call fcn.0040739d
call fcn.00491dd6
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.0041078b
push dword [ebp - 0x1c]
mov byte [ebp - 4], 1
push edi
push eax
push dword [ebp - 0x28]
push dword [ebx + 0x30]
call fcn.00497377
mov ecx, dword [ebp - 0x34]
mov esi, eax
add ecx, 0xfffffff0
call fcn.004027b0
cmp esi, edi
je case.default.0x418be4
mov dword [ebp - 0x18], 1
jmp case.default.0x418be4
lea eax, [ebx + 0x10]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040257e
push edi
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.00415c06
mov esi, eax
cmp esi, 0xffffffff
je case.default.0x418be4
push ecx
mov eax, esp
mov dword [ebp - 0x38], esp
push esi
push eax
lea ecx, [ebp - 0x14]
call fcn.0040739d
call fcn.00491dd6
pop ecx
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x28], eax
lea eax, [esi + 1]
push ecx
call fcn.00406c5a
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], edi
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x28]
call fcn.00491da4
push dword [ebp - 0x14]
mov dword [ebp - 0x38], eax
push eax
mov eax, 0x2001f
lea edi, [ebp - 0x54]
call fcn.00416053
test eax, eax
je 0x418d7c
lea eax, [ebx + 4]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040228a
xor edi, edi
push edi
push 0x5c
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.00415c06
mov esi, eax
cmp esi, 0xffffffff
je 0x418d57
push ecx
mov eax, esp
mov dword [ebp - 0x48], esp
push esi
push eax
lea ecx, [ebp - 0x20]
call fcn.0040739d
call fcn.00491dd6
pop ecx
push edi
lea ecx, [ebp - 0x20]
lea eax, [esi + 1]
push ecx
call fcn.00406c5a
push 0x528948
lea ecx, [ebp - 0x20]
call fcn.0040f54b
test eax, eax
je 0x418d57
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040257e
jmp 0x418d6b
lea eax, [ebp - 0x14]
push eax
push dword [0x585894]
mov ecx, 0x58588c
call fcn.004a4959
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004027b0
jmp 0x418d7e
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.00497377
test eax, eax
je 0x418e2e
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.00415c38
cmp eax, 0xffffffff
je 0x418e27
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.0040739d
push dword [eax]
mov eax, dword [ebp - 0x24]
push dword [ebp - 0x38]
lea edi, [ebp - 0x4c]
call fcn.00416053
mov ecx, dword [ebp - 0x3c]
mov ebx, eax
neg ebx
sbb bl, bl
add ecx, 0xfffffff0
inc bl
call fcn.004027b0
test bl, bl
je 0x418e1f
lea ecx, [ebp - 0x68]
call fcn.004a451b
lea eax, [ebp - 0x68]
push eax
mov byte [ebp - 4], 5
push dword [ebp - 0x4c]
call fcn.00410bc7
pop ecx
pop ecx
test eax, eax
jne 0x418e0b
mov esi, edi
call fcn.004198a2
lea ecx, [ebp - 0x4c]
call fcn.0041608f
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 4
call fcn.004a47f7
lea ecx, [ebp - 0x4c]
call fcn.0041608f
mov dword [ebp - 0x18], 1
lea ecx, [ebp - 0x54]
call fcn.0041608f
jmp case.default.0x418be4
lea eax, [ebx + 0x10]
mov ecx, dword [eax]
cmp dword [ecx - 0xc], edi
jne 0x418e48
lea eax, [ebx + 4]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040257e
push edi
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.00415c06
mov esi, eax
cmp esi, 0xffffffff
je case.default.0x418be4
push ecx
mov eax, esp
mov dword [ebp - 0x48], esp
push esi
push eax
lea ecx, [ebp - 0x14]
call fcn.0040739d
call fcn.00491dd6
pop ecx
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x28], eax
lea eax, [esi + 1]
push ecx
call fcn.00406c5a
push dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push 1
push eax
push dword [ebp - 0x28]
push dword [ebx + 0x30]
call fcn.00497377
test eax, eax
je case.default.0x418be4
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.00415c38
cmp eax, 0xffffffff
je 0x418c6f
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.0040739d
push dword [eax]
mov eax, dword [ebp - 0x28]
call fcn.00491da4
push eax
mov eax, dword [ebp - 0x24]
lea edi, [ebp - 0x4c]
call fcn.00416053
mov ecx, dword [ebp - 0x40]
mov ebx, eax
neg ebx
sbb bl, bl
add ecx, 0xfffffff0
inc bl
call fcn.004027b0
test bl, bl
je 0x418f39
lea ecx, [ebp - 0x68]
call fcn.004a451b
lea eax, [ebp - 0x68]
push eax
mov byte [ebp - 4], 7
push dword [ebp - 0x4c]
call fcn.00410bc7
pop ecx
pop ecx
test eax, eax
jne 0x418f25
mov esi, edi
call fcn.004198a2
lea ecx, [ebp - 0x4c]
call fcn.0041608f
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 6
call fcn.004a47f7
lea ecx, [ebp - 0x4c]
call fcn.0041608f
jmp 0x418c6f
lea eax, [ebx + 4]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040257e
push edi
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.00415c06
mov esi, eax
cmp esi, 0xffffffff
je case.default.0x418be4
push ecx
mov eax, esp
mov dword [ebp - 0x48], esp
push esi
push eax
lea ecx, [ebp - 0x14]
call fcn.0040739d
call fcn.00491dd6
pop ecx
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x38], eax
lea eax, [esi + 1]
push ecx
call fcn.00406c5a
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.00497377
test eax, eax
je case.default.0x418be4
mov dword [ebp - 0x18], esi
jmp case.default.0x418be4
lea eax, [ebx + 4]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040257e
push edi
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.00415c06
mov esi, eax
cmp esi, 0xffffffff
je case.default.0x418be4
push ecx
mov eax, esp
mov dword [ebp - 0x48], esp
push esi
push eax
lea ecx, [ebp - 0x14]
call fcn.0040739d
call fcn.00491dd6
pop ecx
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x38], eax
lea eax, [esi + 1]
push ecx
call fcn.00406c5a
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.004973f4
test eax, eax
jmp 0x418c69
lea eax, [ebx + 4]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040257e
push edi
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.00415c06
mov esi, eax
cmp esi, 0xffffffff
je case.default.0x418be4
push ecx
mov eax, esp
mov dword [ebp - 0x48], esp
push esi
push eax
lea ecx, [ebp - 0x14]
call fcn.0040739d
call fcn.00491dd6
pop ecx
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x38], eax
lea eax, [esi + 1]
push ecx
call fcn.00406c5a
push dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push edi
push eax
push dword [ebp - 0x38]
push dword [ebx + 0x30]
call fcn.00497377
jmp 0x419012
lea eax, [ebx + 4]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040257e
push edi
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.00415c06
mov esi, eax
cmp esi, 0xffffffff
je case.default.0x418be4
push ecx
mov eax, esp
mov dword [ebp - 0x48], esp
push esi
push eax
lea ecx, [ebp - 0x14]
call fcn.0040739d
call fcn.00491dd6
pop ecx
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x28], eax
lea eax, [esi + 1]
push ecx
call fcn.00406c5a
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.004973f4
test eax, eax
je case.default.0x418be4
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.00499991
push eax
lea ecx, [ebp - 0x20]
call fcn.004727f7
mov byte [ebp - 4], 9
push dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
call fcn.00491da4
push eax
mov eax, dword [ebp - 0x24]
lea edi, [ebp - 0x4c]
call fcn.00416053
test eax, eax
jne 0x4191ad
push esi
lea ecx, [ebp - 0x20]
call fcn.004028ad
mov ecx, edi
push str.MRUList
push ecx
lea esi, [ebp - 0x38]
mov edi, eax
call fcn.00415feb
push 0xffffffffffffffff
lea ecx, [ebp - 0x20]
call fcn.004160af
lea ecx, [ebp - 0x4c]
call fcn.0041608f
mov eax, dword [ebp - 0x20]
xor edi, edi
inc edi
cmp dword [eax - 0xc], 0
mov dword [ebp - 0x18], edi
je 0x4191ad
push dword [ebx + 8]
xor ecx, ecx
lea esi, [ebp - 0x20]
call fcn.004072a5
cmp eax, 0xffffffff
je 0x4191ad
push eax
mov eax, esi
push eax
mov eax, edi
call fcn.00406c5a
push str.MRUList
lea ecx, [ebp - 0x2c]
call fcn.004024df
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.00497473
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
call fcn.004027b0
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004027b0
lea ecx, [ebp - 0x4c]
jmp 0x418e31
lea eax, [ebx + 4]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040257e
push edi
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.00415c06
mov esi, eax
cmp esi, 0xffffffff
je case.default.0x418be4
push ecx
mov eax, esp
mov dword [ebp - 0x48], esp
push esi
push eax
lea ecx, [ebp - 0x14]
call fcn.0040739d
call fcn.00491dd6
pop ecx
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x38], eax
lea eax, [esi + 1]
push ecx
call fcn.00406c5a
push 0x523938
lea ecx, [ebp - 0x30]
call fcn.004024df
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.00497473
mov ecx, dword [ebp - 0x30]
jmp 0x418c5d
xor ecx, ecx
inc ecx
lea esi, [ebp - 0x44]
mov eax, ebx
call fcn.00418b51
mov esi, eax
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x419266
mov eax, dword [esi]
push dword [eax - 0xc]
push eax
call fcn.00406b8d
movzx esi, al
jmp 0x419268
xor esi, esi
mov ecx, dword [ebp - 0x44]
jmp 0x418c5f
xor ecx, ecx
inc ecx
lea esi, [ebp - 0x28]
mov eax, ebx
call fcn.00418b51
mov byte [ebp - 4], 0xe
call fcn.004189f9
push ecx
mov eax, esi
mov dword [ebp - 0x48], esp
mov ecx, esp
push eax
call fcn.0040228a
call fcn.00418a4d
cmp eax, edi
je 0x4192a4
mov dword [ebp - 0x18], 1
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.004027b0
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004027b0
mov eax, dword [ebp - 0x18]
call fcn.004bed88
ret