Function at 0x416ed0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e5c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x180c
call fcn.00439c20
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_2
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 3
cmp edx, ebx
mov esi, edx
je 0x416ff0
mov ecx, 0x200
xor eax, eax
lea edi, [ebp - 0x81c]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x81c]
test ecx, ecx
je 0x416ff0
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 0x416fb9
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 0x416fc6
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 0x416ff0
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0043a2e0
add esp, 4
test eax, eax
jne 0x417004
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString
mov byte [ebp - 4], bl
jmp 0x4170d3
push ecx
lea edx, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push edx
call sub.MFC42u.DLL_CString::CString_3
lea eax, [ebp - 0x1c]
push eax
call fcn.0042af20
add esp, 8
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call sub.MFC42u.DLL_CString::operator_2
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 0x417083
call sub.MFC42u.DLL_CString::CString
mov byte [ebp - 4], bl
jmp 0x4170d3
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 4
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 4