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

Disassembly:
jmp 0x41fa50
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x597957
push eax
mov eax, 0x1018
mov dword fs:[0], esp
call fcn.0045ba40
push ebx
push ebp
push esi
lea eax, [esp + 0x14]
push edi
mov edi, ecx
push eax
call fcn.00402112
add esp, 4
lea ebx, [edi + 0x18]
push eax
mov ecx, ebx
mov dword [esp + 0x1034], 0
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x18]
mov dword [esp + 0x1030], 0xffffffff
call sub.MFC42.DLL_CString::CString
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebp, eax
mov eax, dword [ebp + 0x38]
add ebp, 0x38
test eax, eax
je 0x41fc9d
lea ecx, [esp + 0x28]
push 0x1000
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x28]
lea ecx, [esp + 0x14]
push edx
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0x14]
push 0x62f9b4
push eax
mov dword [esp + 0x1038], 1
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x41fb98
push 0x642ea4
lea ecx, [esp + 0x28]
push 0x642ea8
push ecx
call sub.MFC42.DLL_operator_3
push str..exe
lea edx, [esp + 0x24]
push eax
push edx
mov byte [esp + 0x103c], 2
call sub.MFC42.DLL_operator_4
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x1034], 3
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x20]
mov byte [esp + 0x1030], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x1030], 1
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x14]
push 0x62f9b4
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x41fb98
push 0xf280
push eax
call fcn.004cf930
add esp, 8
jmp 0x41fc89
mov ecx, dword [ebp]
push 0
push ecx
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
push esi
push 4
lea edx, [esp + 0x30]
push 1
push edx
call dword [sym.imp.MSVCRT.dll_fread]
mov eax, dword [ebx]
add esp, 0x1c
lea ecx, [esp + 0x28]
push ecx
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea edx, [esp + 0x28]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CString::CString_1
push esi
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
mov byte [esp + 0x103c], 4
call sub.MFC42.DLL_CString::CString_2
mov ecx, edi
call fcn.004020c2
lea ecx, [esp + 0x10]
push ecx
lea ecx, [edi + 0x1c]
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esp + 0x1c]
xor ebp, ebp
test eax, eax
jle 0x41fc66
lea ebx, [edi + 4]
mov eax, dword [edi + 0x18]
lea edx, [esp + 0x28]
push edx
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [esp + 0x28]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::operator
push esi
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov ecx, edi
call fcn.004020c2
mov eax, dword [ebx + 8]
lea ecx, [esp + 0x10]
push ecx
push eax
mov ecx, ebx
call sub.MFC42.DLL_CStringArray::SetAtGrow
mov eax, dword [esp + 0x1c]
inc ebp
cmp ebp, eax
jl 0x41fc13
push esi
mov ecx, edi
call fcn.00401451
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
lea ecx, [esp + 0x10]
mov byte [esp + 0x1030], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x1030], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1028]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1024
ret