Function at 0x40ed20
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x57e88e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
xor eax, eax
push edi
mov dword [esp + 0x20], eax
push 0x7f02
push eax
mov dword [esp + 0x40], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov esi, eax
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_5]
push 0x597664
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 1
call dword [sym.imp.MFC71.DLL_ATL::CStringT::TrimRight]
push 0x597664
lea ecx, [esp + 0x18]
call dword [0x59434c]
push str.MP_ROOT_
lea ecx, [esp + 0x18]
call dword [0x59434c]
push 0x596834
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_6]
push str.MNV01_
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], 2
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_6]
mov edi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
mov byte [esp + 0x38], 3
mov ebx, 0x3e7
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push ecx
push ebx
push edx
lea eax, [esp + 0x1c]
push str._s_03d_s
push eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format_1]
add esp, 0x14
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40ee16
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call edi
test eax, eax
jne 0x40ee1c
dec ebx
cmp ebx, 0x63
jg 0x40edd2
cmp ebx, 0x63
jne 0x40ee5c
push str.100MNV01_
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.0040ce10
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], 4
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_4]
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 3
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
jmp 0x40ef6b
push ebp
mov ecx, 0x5fda18
call fcn.004bec20
mov edx, dword [eax]
push 1
lea ecx, [esp + 0x2c]
push ecx
mov ecx, eax
call dword [edx + 0xb8]
mov ebp, dword [esp + 0x30]
push 0x596834
lea ecx, [esp + 0x20]
mov byte [esp + 0x40], 5
mov byte [esp + 0x17], 0
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_6]
mov esi, 0x270e
sub esi, ebp
mov edi, 0x270f
cmp esi, edi
mov byte [esp + 0x3c], 6
pop ebp
jg 0x40ef0f
jmp 0x40eeb0
mov edx, dword [esp + 0x10]
push edi
push edx
lea eax, [esp + 0x20]
push str._sM4V0_03d.MP4
push eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format_1]
add esp, 0x10
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40eee3
mov byte [esp + 0xf], 1
dec edi
cmp edi, esi
jge 0x40eeb0
mov al, byte [esp + 0xf]
test al, al
je 0x40ef0f
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push ecx
inc ebx
push ebx
push edx
lea eax, [esp + 0x1c]
push str._s_03d_s
push eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format_1]
add esp, 0x14
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
mov eax, dword [esp + 0x28]
mov esi, dword [eax]
mov dword [eax], eax
mov eax, dword [esp + 0x28]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x28]
cmp esi, eax
mov byte [esp + 0x38], 3
mov dword [esp + 0x2c], 0
je 0x40ef5e
lea ecx, [ecx]
mov edi, dword [esi]
lea ecx, [esi + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
push esi
call sub.MFC71.DLL_operator_delete_1
mov eax, dword [esp + 0x2c]
add esp, 4
cmp edi, eax
mov esi, edi
jne 0x40ef40
push eax
call sub.MFC71.DLL_operator_delete_1
mov esi, dword [esp + 0x24]
add esp, 4
test esi, esi
je 0x40ef76
push esi
call dword [sym.imp.USER32.dll_SetCursor]
mov esi, dword [esp + 0x40]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_5]
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea ecx, [esp + 0x44]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
mov ecx, dword [esp + 0x30]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret 8