Function at 0x40ef10
Capabilities:
Access peb ldr_data
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4154a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x2c]
push esi
push 0x4207b8
mov ecx, ebp
call sub.MFC42u.DLL_CString::operator_2
mov esi, dword [sym.imp.MSVCRT.dll__wgetenv]
push str.CUSTOS
call esi
add esp, 4
lea ecx, [esp + 0xc]
push eax
call fcn.00413dc4
push str.SystemRoot
mov dword [esp + 0x2c], 0
call esi
add esp, 4
lea ecx, [esp + 0x10]
push eax
call fcn.00413dc4
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 1
call sub.MFC42u.DLL_CString::MakeUpper
lea ecx, [esp + 0x30]
call sub.MFC42u.DLL_CString::CString_1
push str.MININT
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 2
call sub.MFC42u.DLL_CString::Find_2
cmp eax, 0xffffffff
jne 0x40efe3
push str.I386
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::Find_2
cmp eax, 0xffffffff
jne 0x40efe3
push 0x41e0dc
call esi
add esp, 4
lea ecx, [esp + 0x30]
push eax
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [esp + 0x30]
call sub.MFC42u.DLL_CString::TrimLeft
push 0x41f874
lea ecx, [esp + 0x34]
call sub.MFC42u.DLL_CString::TrimRight
jmp 0x40f134
push 0x4207bc
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::CString_3
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
setne bl
call sub.MFC42u.DLL_CString::CString
test bl, bl
je 0x40f126
push edi
push 0x4207bc
lea ecx, [esp + 0x24]
call sub.MFC42u.DLL_CString::CString_3
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov bl, 3
mov byte [esp + 0x2c], bl
mov esi, 1
lea edx, [esp + 0x10]
push str.progra_iIBMIBM_Rapid_Restore_Ultra
lea eax, [esp + 0x1c]
push edx
push eax
call sub.MFC42u.DLL_operator_1
mov eax, dword [eax]
push esi
lea ecx, [esp + 0x38]
push eax
push ecx
mov byte [esp + 0x38], 4
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], bl
call sub.MFC42u.DLL_CString::CString
mov edx, dword [esp + 0x34]
push edx
call edi
test eax, eax
jne 0x40f115
lea eax, [esp + 0x10]
push str._arquiv_iIBMIBM_Rapid_Restore_Ultra
lea ecx, [esp + 0x20]
push eax
push ecx
call sub.MFC42u.DLL_operator_1
mov eax, dword [eax]
push esi
lea edx, [esp + 0x38]
push eax
push edx
mov byte [esp + 0x38], 5
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], bl
call sub.MFC42u.DLL_CString::CString
mov eax, dword [esp + 0x34]
push eax
call edi
test eax, eax
jne 0x40f115
inc esi
cmp esi, 9
jl 0x40f03a
lea ecx, [esp + 0x10]
push str.programIBMIBM_Rapid_Restore_Ultra
lea edx, [esp + 0x20]
push ecx
push edx
call sub.MFC42u.DLL_operator_1
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], 6
call fcn.00413dfa
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], bl
call sub.MFC42u.DLL_CString::CString
mov eax, dword [esp + 0x34]
push eax
call edi
test eax, eax
jne 0x40f115
push 0x41f780
lea ecx, [esp + 0x38]
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [esp + 0x20]
mov byte [esp + 0x2c], 2
call sub.MFC42u.DLL_CString::CString
pop edi
jmp 0x40f134
push 0x41f780
lea ecx, [esp + 0x34]
call sub.MFC42u.DLL_CString::operator_2
mov ecx, dword [esp + 0x30]
push str.tvt.txt
push ecx
push 0x41c15c
push ebp
call sub.MFC42u.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x20]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret