Function at 0x442840
Capabilities:
Check os version
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x46dfdb
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48c9dc]
xor eax, esp
push eax
lea eax, [esp + 0xfc]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x10c]
mov eax, dword [ebx]
mov edx, dword [eax + 0x30]
push 0
mov ecx, ebx
call edx
mov eax, dword [ebx]
mov edx, dword [eax + 0x18]
push 0
mov ecx, ebx
call edx
mov esi, eax
test esi, esi
je 0x442ad6
lea ecx, [esp + 0x1c]
call dword [sym.imp.SBaseMD_sh.dll_public:_void___thiscall_SBString::constructor_void_]
push 1
lea eax, [esp + 0x20]
push eax
mov ecx, esi
mov dword [esp + 0x10c], 0
call dword [sym.imp.SMIMD_sh.dll_public:_void___thiscall_SBMessage::getSubstitutedDesc_class_SBString___bool_const]
cmp dword [esp + 0x11c], 0
jne 0x442918
mov edi, dword [sym.imp.SMIMD_sh.dll_public:_enum_smi_msg_type___thiscall_SBMessage::getType_void_]
mov ecx, esi
call edi
cmp eax, 1
jne 0x4428dc
mov dword [esp + 0x11c], 0x10
mov ecx, esi
call edi
cmp eax, 4
jne 0x4428f0
mov dword [esp + 0x11c], 0x30
mov ecx, esi
call edi
cmp eax, 5
jne 0x442904
mov dword [esp + 0x11c], 0x40
mov ecx, esi
call edi
cmp eax, 7
jne 0x442918
mov dword [esp + 0x11c], 0x20
push 1
mov ecx, ebx
call dword [sym.imp.SMIMD_sh.dll_public:_void___thiscall_SBStatus::flushMessages_bool_]
push str.ORCAD_DUMP_MSGBOX_MESSAGES_IN_SESSION_LOG
call dword [sym.imp.MSVCR80.dll_getenv]
add esp, 4
test eax, eax
je 0x442951
cmp dword [0x48d9ac], 0
je 0x442951
lea ecx, [esp + 0x1c]
call dword [sym.imp.SBaseMD_sh.dll_public:_char____thiscall_SBString::getChar_void_const]
push eax
call dword [0x48d9ac]
add esp, 4
lea ecx, [esp + 0x1c]
push ecx
call fcn.00440360
add esp, 4
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80.DLL_Ordinal_310]
mov edi, dword [esp + 0x114]
mov ebp, dword [esp + 0x110]
push edi
push ebp
lea edx, [esp + 0x20]
push str._s__d
push edx
mov byte [esp + 0x114], 1
call dword [sym.imp.MFC80.DLL_Ordinal_2322]
mov esi, dword [esp + 0x28]
add esp, 0x10
call sub.MFC80.DLL_Ordinal_1084
mov eax, dword [eax + 4]
push 0x476340
push esi
push str.Donot_Show_Dialog
lea ecx, [esp + 0x20]
push ecx
mov ecx, eax
call sub.MFC80.DLL_Ordinal_3110
mov bl, 2
push 0x4760d0
lea ecx, [esp + 0x18]
mov byte [esp + 0x108], bl
call dword [sym.imp.MFC80.DLL_Ordinal_1482]
test eax, eax
je 0x442a00
push 0x476340
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80.DLL_Ordinal_1482]
test eax, eax
je 0x442a00
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80.DLL_Ordinal_2469]
push eax
call dword [sym.imp.MSVCR80.dll_atoi]
add esp, 4
mov esi, eax
jmp 0x442aa9
mov edx, dword [esp + 0x124]
mov eax, dword [esp + 0x120]
mov ecx, dword [esp + 0x11c]
push edx
mov edx, dword [esp + 0x11c]
push eax
push ecx
push edx
push edi
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push ebp
call dword [sym.imp.MFC80.DLL_Ordinal_304]
lea ecx, [esp + 0x34]
mov byte [esp + 0x11c], 3
call dword [sym.imp.SBaseMD_sh.dll_public:_char____thiscall_SBString::getChar_void_const]
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push eax
call dword [sym.imp.MFC80.DLL_Ordinal_304]
lea ecx, [esp + 0x48]
mov byte [esp + 0x120], bl
call fcn.004607c0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x104], 4
call sub.MFC80.DLL_Ordinal_2020
lea ecx, [esp + 0xac]
mov esi, eax
mov byte [esp + 0x104], bl
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0xa8]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0xa4]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0x2c]
call sub.MFC80.DLL_Ordinal_605
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x104], 0xffffffff
call dword [sym.imp.SBaseMD_sh.dll_public_virtual:_void___thiscall_SBString::destructor_void_]
mov eax, esi
jmp 0x442ad9
or eax, 0xffffffff
mov ecx, dword [esp + 0xfc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret