Function at 0x414aa0
Capabilities:
Get common file path
Get file size
Parse pe header
Read file on windows

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4a2f86
push eax
mov eax, 0x1218
mov dword fs:[0], esp
call fcn.004a15e0
push ebx
push ebp
push esi
xor ebx, ebx
push edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], ebx
call sub.MFC42u.DLL_CString::CString_5
lea ecx, [esp + 0x10]
mov dword [esp + 0x1230], ebx
call sub.MFC42u.DLL_CString::Empty
mov esi, dword [esp + 0x1238]
mov ebp, dword [sym.imp.MSVCRT.dll__wcsnicmp]
mov eax, dword [esi]
mov edi, dword [eax - 8]
cmp edi, 9
jbe 0x414b4e
push 9
push str.system32_
push edi
mov ecx, esi
call sub.MFC42u.DLL_CString::GetBuffer
push eax
call ebp
add esp, 0xc
test eax, eax
jne 0x414b4e
lea ecx, [esp + 0x20]
push 0x104
push ecx
mov word [esp + 0x28], bx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov edx, dword [esi]
lea eax, [esp + 0x20]
push edx
push eax
lea ecx, [esp + 0x18]
push 0x4c621c
push ecx
mov word [esp + 0x236], bx
call sub.MFC42u.DLL_CString::Format
add esp, 0x10
jmp 0x414c0f
cmp edi, 0xc
jbe 0x414bb8
mov edx, dword [esi]
push 0xc
push str.SystemRoot_
mov ecx, esi
mov eax, dword [edx - 8]
push eax
call sub.MFC42u.DLL_CString::GetBuffer
push eax
call ebp
add esp, 0xc
test eax, eax
jne 0x414bb8
lea eax, [esp + 0x20]
push 0x104
push eax
mov word [esp + 0x28], bx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ecx, dword [esi]
mov word [esp + 0x226], bx
mov eax, dword [ecx - 8]
mov ecx, esi
push eax
call sub.MFC42u.DLL_CString::GetBuffer
add eax, 0x18
lea edx, [esp + 0x20]
push eax
push edx
lea eax, [esp + 0x18]
push 0x4c621c
push eax
call sub.MFC42u.DLL_CString::Format
add esp, 0x10
jmp 0x414c0f
cmp edi, 4
jbe 0x414c0f
mov ecx, dword [esi]
push 4
push 0x4c7c98
mov eax, dword [ecx - 8]
mov ecx, esi
push eax
call sub.MFC42u.DLL_CString::GetBuffer
push eax
call dword [sym.imp.MSVCRT.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x414c0f
lea edx, [esp + 0x18]
push 4
push edx
mov ecx, esi
call sub.MFC42u.DLL_CString::Mid
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1234], 1
call sub.MFC42u.DLL_CString::operator_1
lea ecx, [esp + 0x18]
mov byte [esp + 0x1230], bl
call sub.MFC42u.DLL_CString::CString
mov eax, dword [esp + 0x10]
cmp dword [eax - 8], ebx
je 0x414ce0
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push eax
mov dword [esp + 0x30], 1
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x414ce0
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0x1000
jbe 0x414c5d
mov esi, 0x1000
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x228]
push ebx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x20]
lea ecx, [esp + 0x22c]
push eax
push esi
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x1c], esi
jne 0x414cd9
cmp word [esp + 0x228], 0x5a4d
jne 0x414cd9
mov eax, dword [esp + 0x264]
cmp eax, 0x1000
jge 0x414cd9
lea edx, [eax + 0x18]
cmp edx, 0x1000
jae 0x414cd9
mov edx, dword [esp + eax + 0x228]
lea ecx, [esp + eax + 0x228]
cmp edx, 0x4550
jne 0x414cd9
add eax, 0x78
cmp eax, 0x1000
jae 0x414cd9
cmp word [ecx + 0x5c], 1
je 0x414cd9
mov dword [esp + 0x14], ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
mov dword [esp + 0x1230], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x1228]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1224
ret 4