Function at 0x4256e7
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4e63f4
call fcn.004e1580
sub esp, 0x3c
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
push edi
mov dword [ebp - 0x38], ebx
je 0x425711
mov eax, dword [esi]
lea ecx, [ebp - 0x38]
push ecx
push 0x52b600
push esi
call dword [eax]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], ebx
cmp eax, ebx
mov dword [ebp - 0x24], ebx
je 0x42572c
mov ecx, dword [eax]
lea edx, [ebp - 0x24]
push edx
push 0x52a718
push eax
call dword [ecx]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp + 0x10]
mov byte [ebp - 4], 3
cmp eax, ebx
mov dword [ebp - 0x30], ebx
je 0x42574e
mov ecx, dword [eax]
lea edx, [ebp - 0x30]
push edx
push 0x52b4e8
push eax
call dword [ecx]
mov dword [ebp - 0x10], ebx
mov dword [ebp + 8], ebx
mov dword [ebp - 0x2c], ebx
mov eax, dword [esi]
lea ecx, [ebp - 0x10]
push ecx
push esi
mov byte [ebp - 4], 7
call dword [eax + 0x3c]
test eax, eax
jl 0x425b26
mov eax, dword [esi]
lea ecx, [ebp + 8]
push ecx
push esi
call dword [eax + 0x10]
test eax, eax
jl 0x425b26
mov eax, dword [esi]
lea ecx, [ebp - 0x2c]
push ecx
push esi
call dword [eax + 0x14]
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString_2
lea eax, [ebp + 0x10]
push 0xc
push eax
mov byte [ebp - 4], 8
call fcn.0041aab4
pop ecx
pop ecx
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 9
push ecx
push eax
lea eax, [ebp + 0xc]
push eax
call sub.MFC42.DLL_operator_3
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xa
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::AllocSysString
push dword [ebp + 8]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov edi, eax
call esi
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push dword [ebp - 0x10]
lea ecx, [ebp - 0x28]
mov dword [ebp + 8], eax
call sub.MFC42.DLL_CString::CString_2
push dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xb
call sub.MFC42.DLL_CString::CString_2
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xc
call sub.MFC42.DLL_CString::CString_2
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xd
push eax
call fcn.00442d87
lea eax, [ebp - 0x14]
push eax
call fcn.00442d87
mov eax, dword [ebp - 0x34]
pop ecx
pop ecx
cmp dword [eax - 8], ebx
je 0x42585a
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x14]
push eax
call fcn.004e0906
lea eax, [ebp - 0x14]
push eax
call fcn.00442d87
pop ecx
push dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
call esi
push 0xffffffffffffffff
push edi
call fcn.0040294f
pop ecx
mov dword [ebp - 0x10], eax
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
je 0x425af1
push dword [ebp - 0x18]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x425af1
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
push edx
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x54]
test eax, eax
jl 0x425af1
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x425af1
mov ecx, dword [eax]
lea edx, [ebp - 0x3c]
push edx
push eax
call dword [ecx + 0x30]
test eax, eax
jl 0x425af1
xor edi, edi
cmp dword [ebp - 0x3c], ebx
jle 0x42591d
mov dword [ebp + 0xc], ebx
mov eax, dword [ebp - 0x20]
lea edx, [ebp + 0xc]
push edx
push edi
mov ecx, dword [eax]
push eax
mov byte [ebp - 4], 0xe
call dword [ecx + 0x24]
push dword [ebp + 0xc]
test eax, eax
jl 0x425aef
lea ecx, [ebp - 0x48]
call sub.MFC42.DLL_CString::CString_2
push dword [ebp - 0x48]
mov byte [ebp - 4], 0xf
call fcn.004d1286
pop ecx
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x48]
call sub.MFC42.DLL_CString::CString
push dword [ebp + 0xc]
mov byte [ebp - 4], 0xd
call esi
inc edi
cmp edi, dword [ebp - 0x3c]
jl 0x4258cd
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp - 0x3c], ebx
push dword [ebp + 8]
mov ecx, dword [eax]
push dword [ebp - 0x10]
push eax
call dword [ecx + 0x50]
test eax, eax
jl 0x425af1
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x425af1
mov ecx, dword [eax]
lea edx, [ebp - 0x3c]
push edx
push eax
call dword [ecx + 0x30]
test eax, eax
jl 0x425af1
xor edi, edi
cmp dword [ebp - 0x3c], ebx
jle 0x425a14
mov dword [ebp + 0x10], ebx
mov eax, dword [ebp - 0x1c]
lea edx, [ebp + 0x10]
push edx
push edi
mov ecx, dword [eax]
push eax
mov byte [ebp - 4], 0x10
call dword [ecx + 0x24]
push dword [ebp + 0x10]
test eax, eax
jl 0x425aef
lea ecx, [ebp - 0x44]
call sub.MFC42.DLL_CString::CString_2
push dword [ebp - 0x44]
mov byte [ebp - 4], 0x11
call fcn.004d1286
pop ecx
lea ecx, [ebp - 0x40]
call sub.MFC42.DLL_CString::CString_3
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 0x12
push eax
push ecx
lea eax, [ebp - 0x44]
mov ecx, esp
mov dword [ebp + 0xc], esp
push eax
call sub.MFC42.DLL_CString::CString_1
call fcn.00442d05
pop ecx
lea eax, [ebp - 0x28]
mov ecx, esp
mov dword [ebp + 0xc], esp
push eax
call sub.MFC42.DLL_CString::CString_1
push ecx
lea eax, [ebp - 0x40]
mov ecx, esp
mov dword [ebp - 0x48], esp
push eax
mov byte [ebp - 4], 0x13
call sub.MFC42.DLL_CString::CString_1
mov byte [ebp - 4], 0x12
call fcn.00442edb
pop ecx
mov byte [ebp - 4], 0x11
pop ecx
lea ecx, [ebp - 0x40]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0x10
call sub.MFC42.DLL_CString::CString
push dword [ebp + 0x10]
mov byte [ebp - 4], 0xd
call esi
inc edi
cmp edi, dword [ebp - 0x3c]
jl 0x425963
push ecx
lea eax, [ebp - 0x28]
mov ecx, esp
mov dword [ebp + 0xc], esp
push eax
call sub.MFC42.DLL_CString::CString_1
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x48], esp
push eax
mov byte [ebp - 4], 0x14
call sub.MFC42.DLL_CString::CString_1
mov byte [ebp - 4], 0xd
call fcn.00442edb
mov eax, dword [ebp - 0x30]
pop ecx
cmp eax, ebx
pop ecx
je 0x425a54
push dword [ebp + 8]
mov ecx, dword [eax]
push dword [ebp - 0x10]
push eax
call dword [ecx + 0x34]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xc
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CString::CString
push dword [ebp - 0x2c]
call esi
push dword [ebp + 8]
call esi
push dword [ebp - 0x10]
call esi
mov eax, dword [ebp - 0x30]
mov byte [ebp - 4], 3
cmp eax, ebx
je 0x425aa4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 2
cmp eax, ebx
je 0x425ab5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x425ac6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x425ad6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x38]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x425ae7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 1
pop eax
jmp 0x425b91
call esi
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xc
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CString::CString
push dword [ebp - 0x2c]
jmp 0x425b2f
push dword [ebp - 0x2c]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push dword [ebp + 8]
call esi
push dword [ebp - 0x10]
call esi
mov eax, dword [ebp - 0x30]
mov byte [ebp - 4], 3
cmp eax, ebx
je 0x425b4c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 2
cmp eax, ebx
je 0x425b5d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x425b6e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x425b7e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x38]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x425b8f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret