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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4751f4
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x490018]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 0x14]
mov dword [esi + 0x190], 0
test ebx, ebx
je 0x407dd3
mov eax, dword [ebx]
lea edi, [esi + 0x34]
push eax
call fcn.00448730
push eax
lea ecx, [esp + 0x18]
call dword [0x4763f4]
mov dword [esp + 0x40], 0
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x407dc1
and eax, 0x10
mov eax, 0
sete al
test eax, eax
je 0x407dc1
mov eax, dword [esp + 0x14]
mov edx, dword [esi - 0x84]
mov edx, dword [edx + 0x44]
lea ecx, [esi - 0x84]
push eax
mov eax, dword [ebx]
push eax
call edx
mov edi, eax
not eax
test al, 1
jne 0x407f73
cmp edi, 0x101
je 0x407f73
cmp edi, 0x64000001
je 0x407e00
cmp edi, 0x64000201
je 0x407d80
mov dword [esp + 0x40], 0xffffffff
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, dword [ebp + 0x10]
mov edx, dword [esi + 0x34]
mov edx, dword [edx + 8]
push ebx
push eax
mov eax, dword [ebp + 0xc]
lea ecx, [esi + 0x34]
push eax
mov eax, dword [ebp + 8]
push eax
call edx
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
xor ecx, ecx
mov dword [esi + 0x190], 1
call fcn.004017a0
add esp, 4
mov byte [esp + 0x40], 1
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov edx, dword [esi + 0x34]
lea ecx, [esi + 0x34]
push eax
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [esp + 0x10]
lea edi, [esi + 0x100]
push ecx
mov ecx, edi
call fcn.00461be0
mov edx, dword [ebx]
push eax
push edx
mov edx, dword [esi - 0x70]
lea ecx, [esi + 0x104]
mov dword [esp + 0x24], eax
call fcn.0045fd60
mov edx, dword [ebp + 0x10]
mov eax, dword [edi]
mov eax, dword [eax + 8]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [esp + 0x18]
push ecx
push edx
mov ecx, edi
call eax
mov dword [esp + 0x28], eax
test al, 1
je 0x407f39
mov esi, dword [esi + 0xb0]
push esi
lea ecx, [esp + 0x1c]
call dword [0x4763f4]
mov byte [esp + 0x40], 2
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 0xc]
push eax
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Mid]
mov byte [esp + 0x40], 3
push eax
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator]
mov byte [esp + 0x40], 2
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, dword [0x491c54]
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x40]
test ecx, ecx
jne 0x407ee0
mov ecx, dword [eax + 0x3c]
lea esi, [esp + 0x2c]
call fcn.0045c290
mov byte [esp + 0x40], 4
mov ecx, dword [ebx]
push ecx
lea edx, [esp + 0x24]
push edx
mov edx, eax
call fcn.00461d90
mov byte [esp + 0x40], 5
mov ecx, dword [esp + 0x10]
push ecx
push 1
mov edi, eax
call fcn.00423db0
mov byte [esp + 0x40], 4
lea ecx, [esp + 0x20]
call fcn.004491f0
mov byte [esp + 0x40], 2
mov ecx, esi
call fcn.00461cd0
mov byte [esp + 0x40], 1
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov byte [esp + 0x40], 0
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov dword [esp + 0x40], 0xffffffff
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov dword [esp + 0x40], 0xffffffff
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, edi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10