Function at 0x414320
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x461388
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], esp
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x14], edi
lea ebx, [edi + 8]
push ecx
mov ecx, ebx
mov dword [edi + 0x1c], eax
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x41436f
push eax
lea ecx, [edi + 0xc]
call sub.MFC42.DLL_CString::operator_1
jmp 0x4144e3
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [ebp + 0xc]
mov esi, eax
call fcn.0042426c
push esi
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0
call sub.MFC42.DLL_CString::GetBufferSetLength
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0xffffffffffffffff
lea ecx, [ebp + 0xc]
mov esi, eax
call sub.MFC42.DLL_CString::ReleaseBuffer
cmp esi, 0xffffffff
je 0x414459
push str..sys
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString_2
mov esi, eax
push 0x471fd0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString_2
push eax
lea edx, [ebp + 0xc]
lea eax, [ebp - 0x18]
push edx
push eax
mov byte [ebp - 4], 2
call sub.MFC42.DLL_operator_1
push ebx
lea ecx, [ebp + 0x10]
push eax
push ecx
mov byte [ebp - 4], 3
call sub.MFC42.DLL_operator_1
push esi
lea edx, [ebp + 8]
push eax
push edx
mov byte [ebp - 4], 4
call sub.MFC42.DLL_operator_1
lea esi, [edi + 0xc]
push eax
mov ecx, esi
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp + 8]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4144d4
push str..sys
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString_2
mov esi, eax
push str._SystemRoot__system32Drivers_
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString_2
push ebx
push eax
lea eax, [ebp + 0x10]
mov byte [ebp - 4], 7
push eax
call sub.MFC42.DLL_operator_1
push esi
lea ecx, [ebp + 8]
push eax
push ecx
mov byte [ebp - 4], 8
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [edi + 0xc]
mov byte [ebp - 4], 9
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp + 8]
mov byte [ebp - 4], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 0x14]
lea esi, [edi + 0x10]
test eax, eax
je 0x4144f7
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::operator_1
jmp 0x4144ff
push ebx
mov ecx, esi
call sub.MFC42.DLL_CString::operator
push 0x47350c
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString_2
mov ebx, eax
lea edx, [ebp + 0xc]
push 2
push edx
mov ecx, esi
mov dword [ebp - 4], 0xa
call sub.MFC42.DLL_CString::Left
mov ebx, dword [ebx]
mov eax, dword [eax]
push ebx
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [ebp + 0xc]
test eax, eax
setne bl
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x414597
push str.._
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString_2
push esi
push eax
lea eax, [ebp + 0xc]
mov ebx, 0xb
push eax
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_operator_1
push eax
mov ecx, esi
mov byte [ebp - 4], 0xc
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, edi
mov dword [ebp - 4], 0xd
call fcn.004145f0
jmp 0x4145b9
mov eax, dword [edi + 0x14]
test eax, eax
je 0x4145cf
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0xffffffff
mov eax, dword [edi + 0x14]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10