Function at 0x41f3a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45b3a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x180c
call fcn.00456620
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor ebx, ebx
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
call sub.MFC42u.DLL_CString::CString_4
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString_4
lea eax, [ebp + 8]
lea ecx, [ebp - 0x14]
push eax
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::operator
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 3
cmp edx, ebx
mov esi, edx
je 0x41f4c0
mov ecx, 0x200
xor eax, eax
lea edi, [ebp - 0x81c]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x81c]
test ecx, ecx
je 0x41f4c0
mov ecx, 0x400
lea edi, [ebp - 0x181c]
rep stosd dword es:[edi], eax
push edx
mov word [ebp - 0x81c], bx
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x41f489
lea edx, [ebp - 0x181c]
push 0x800
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x181c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [ebp - 0x181c]
push esi
lea edx, [ebp - 0x181c]
push ecx
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x181c]
push 0x400
lea ecx, [ebp - 0x81c]
push eax
push ecx
jmp 0x41f496
push 0x400
lea edx, [ebp - 0x81c]
push esi
push edx
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0xc
lea eax, [ebp - 0x81c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, ebx
je 0x41f4c0
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00456ce0
add esp, 4
test eax, eax
jne 0x41f4d4
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString
mov byte [ebp - 4], bl
jmp 0x41f5a1
push ecx
lea edx, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push edx
call fcn.004562c0
lea eax, [ebp - 0x1c]
push eax
call fcn.0041d830
add esp, 8
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call sub.MFC42u.DLL_CString::operator
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x18]
call sub.MFC42u.DLL_CString::MakeLower
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::MakeLower
push 0x5c
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::ReverseFind
inc eax
lea ecx, [ebp - 0x14]
push eax
push ebx
call sub.MFC42u.DLL_CString::Delete
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
cmp eax, ebx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
je 0x41f553
call sub.MFC42u.DLL_CString::CString
mov byte [ebp - 4], bl
jmp 0x41f5a1
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x18]
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret