Function at 0x401e24
Capabilities:
Get common file path
Read file on windows

Disassembly:
jmp 0x4214a7
mov eax, 0x805ba8
call fcn.0072bca0
mov eax, 0x1020
call fcn.0072bd20
push ebx
push esi
push edi
lea eax, [ebp - 0x18]
mov edi, ecx
push eax
mov dword [ebp - 0x10], edi
call fcn.004023ec
pop ecx
xor esi, esi
lea ecx, [edi + 0x18]
push eax
mov dword [ebp - 4], esi
call sub.MFC42.DLL_CString::operator
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
add edi, 0x38
cmp dword [edi], esi
je 0x4216a7
lea eax, [ebp - 0x102c]
push 0x1000
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x102c]
lea ecx, [ebp - 0x1c]
push eax
call sub.MFC42.DLL_CString::CString_1
push 0x8aaa14
mov dword [ebp - 4], 1
push dword [ebp - 0x1c]
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
pop ecx
cmp ebx, esi
pop ecx
jne 0x4215ad
push 0x8be78c
lea eax, [ebp - 0x24]
push 0x8be790
push eax
call sub.MFC42.DLL_operator_4
push str..exe
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
call sub.MFC42.DLL_operator_3
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
push 0x8aaa14
push dword [ebp - 0x1c]
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
pop ecx
cmp ebx, esi
pop ecx
jne 0x4215ad
push 0xf280
push esi
call fcn.0073af90
pop ecx
pop ecx
jmp 0x42169b
push esi
push dword [edi]
push ebx
call dword [sym.imp.MSVCRT.dll_fseek]
push ebx
push 4
lea eax, [ebp - 0x20]
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fread]
mov eax, dword [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
add esp, 0x1c
add eax, 0x18
lea ecx, [ebp - 0x102c]
mov eax, dword [eax]
push ecx
push esi
push esi
push eax
call edi
lea eax, [ebp - 0x102c]
lea ecx, [ebp - 0x14]
push eax
call sub.MFC42.DLL_CString::CString_1
push ebx
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString_4
mov ecx, dword [ebp - 0x10]
call fcn.00402360
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
lea ecx, [eax + 0x1c]
call sub.MFC42.DLL_CString::operator
cmp dword [ebp - 0x20], esi
mov dword [ebp - 0x18], esi
jle 0x42167e
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x102c]
add eax, 0x18
push ecx
push esi
push esi
mov eax, dword [eax]
push eax
call edi
lea eax, [ebp - 0x102c]
lea ecx, [ebp - 0x14]
push eax
call sub.MFC42.DLL_CString::operator_3
push ebx
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x2c], esp
push eax
call sub.MFC42.DLL_CString::CString_4
mov ecx, dword [ebp - 0x10]
call fcn.00402360
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x14]
push edx
lea ecx, [eax + 4]
mov eax, dword [eax + 0xc]
push eax
call sub.MFC42.DLL_CStringArray::SetAtGrow
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x20]
jl 0x421625
mov ecx, dword [ebp - 0x10]
push ebx
call fcn.004015eb
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret