Function at 0x4d45e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x2668
call fcn.006ab750
push ebx
mov ebx, dword [esp + 0x2674]
mov eax, dword [ebx]
mov edx, dword [eax]
push ebp
mov ebp, dword [esp + 0x2674]
push esi
push edi
mov ecx, ebx
call edx
test al, al
je 0x4d461e
mov dword [ebp], 1
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2668
ret 0xc
mov edx, dword [esp + 0x2684]
lea esi, [esp + 0x40]
call fcn.004ad160
push 0
push 0x28
mov eax, esi
push eax
lea ecx, [esp + 0x45c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCompactPathExW]
lea edx, [esp + 0x450]
push edx
push str.Loading__s
mov esi, 0x104
lea edi, [esp + 0x250]
call fcn.004af0d0
mov eax, dword [ebx]
mov edx, dword [eax + 0x20]
add esp, 8
push 0
mov ecx, edi
push ecx
mov ecx, ebx
call edx
mov edi, dword [esp + 0x2684]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4d46a9
mov eax, dword [ebx]
mov edx, dword [eax + 0x1c]
push str.The_file_could_not_be_found.
mov ecx, ebx
call edx
mov dword [ebp], 2
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2668
ret 0xc
lea eax, [esp + 0x14]
push eax
mov eax, edi
mov dword [esp + 0x18], 0xffffffff
call fcn.004d3c40
mov edx, dword [ebx]
mov eax, dword [edx]
mov ecx, ebx
call eax
test al, al
jne 0x4d4608
mov eax, dword [esp + 0x14]
cmp eax, 0x11
jbe 0x4d46fa
mov edx, dword [ebx]
mov eax, dword [edx + 0x1c]
push str.The_file_type_is_not_recognized.
mov ecx, ebx
call eax
mov dword [ebp], 2
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2668
ret 0xc
mov ecx, dword [edi + 0x20c]
test ecx, ecx
je 0x4d4735
mov edx, dword [ecx]
push 2
push eax
mov eax, dword [edx]
call eax
test al, al
jne 0x4d4735
mov edx, dword [ebx]
mov eax, dword [edx + 0x1c]
push str.The_file_format_is_not_supported.
mov ecx, ebx
call eax
mov dword [ebp], 2
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2668
ret 0xc
mov edx, dword [ebx]
mov eax, dword [edx]
mov ecx, ebx
call eax
test al, al
jne 0x4d4608
lea esi, [esp + 0x658]
call fcn.00408b90
mov ecx, dword [edi + 0x208]
push ecx
push edi
lea esi, [esp + 0x670]
call fcn.00482bd0
test al, al
mov edx, dword [ebx]
mov ecx, ebx
jne 0x4d4783
mov eax, dword [edx + 0x1c]
push str.The_file_could_not_be_opened.
call eax
mov dword [ebp], 2
jmp 0x4d481e
mov eax, dword [edx]
call eax
test al, al
je 0x4d4797
mov dword [ebp], 1
jmp 0x4d481e
mov edx, dword [ebx]
fld qword [0x723610]
mov eax, dword [edx + 0x24]
sub esp, 8
mov ecx, ebx
fstp qword [esp]
call eax
fld qword [0x723610]
mov edx, dword [esp + 0x14]
fstp qword [esp + 0x30]
mov eax, dword [edi + 0x210]
fld qword [0x723960]
lea ecx, [esp + 0x658]
fstp qword [esp + 0x38]
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], edx
push ecx
lea edx, [esp + 0x2c]
mov dword [esp + 0x24], eax
push edx
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], 0x6dbc50
call fcn.0055d050
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
mov dword [edi + 0x214], ecx
mov dword [ebp], edx
mov dword [esp + 0x28], 0x70c5e4
lea eax, [esp + 0x658]
call fcn.00408bd0
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x2668
ret 0xc