Function at 0x4120b0
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x4690c7
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x48c9dc]
xor eax, esp
mov dword [esp + 0x74], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48c9dc]
xor eax, esp
push eax
lea eax, [esp + 0x8c]
mov dword fs:[0], eax
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0xb4]
mov edi, dword [esp + 0x9c]
mov ebp, dword [esp + 0xa0]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x94], 1
call dword [sym.imp.orDb_Dll.dll_public:_void___thiscall_DboState::constructor_void_]
lea edx, [esp + 0x18]
push edx
mov ecx, edi
mov byte [esp + 0x98], 2
call dword [sym.imp.orDb_Dll.dll_public:_class_DboPartInst____thiscall_DboInstOccurrence::GetPartInst_class_DboState__const]
push 0x4760d0
lea ecx, [esp + 0x34]
mov esi, eax
call dword [sym.imp.MFC80.DLL_Ordinal_304]
test esi, esi
mov ebx, dword [sym.imp.orDb_Dll.dll_public:_void___thiscall_DboState::destructor_void_]
mov byte [esp + 0x94], 3
je 0x412172
mov eax, dword [esi]
mov eax, dword [eax + 0x1a0]
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x28]
push edx
mov ecx, esi
call eax
lea ecx, [esp + 0x24]
call ebx
lea ecx, [esp + 0x38]
call dword [sym.imp.MFC80.DLL_Ordinal_310]
push 0x476488
lea ecx, [esp + 0x28]
mov byte [esp + 0x98], 4
call dword [sym.imp.MFC80.DLL_Ordinal_304]
mov edx, dword [edi]
mov edx, dword [edx + 0x34]
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x28]
push ecx
lea eax, [esp + 0x1c]
push eax
mov ecx, edi
mov byte [esp + 0xa0], 5
call edx
mov eax, dword [eax]
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], eax
call ebx
lea ecx, [esp + 0x24]
mov byte [esp + 0x94], 4
call dword [sym.imp.MFC80.DLL_Ordinal_578]
test esi, esi
je 0x4122eb
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
cmp eax, 0xd
je 0x4122eb
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80.DLL_Ordinal_310]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80.DLL_Ordinal_310]
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC80.DLL_Ordinal_310]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x24]
push eax
push edi
mov byte [esp + 0xa4], 8
call fcn.0043e910
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
add esp, 0x10
push ecx
push edx
push eax
lea ecx, [esp + 0x3c]
call dword [sym.imp.MFC80.DLL_Ordinal_876]
mov ecx, dword [0x48cb84]
push eax
push ecx
push 0x48cc5c
call dword [sym.imp.MFC80.DLL_Ordinal_2322]
add esp, 0x18
mov ecx, 0x48cc5c
call dword [sym.imp.MFC80.DLL_Ordinal_876]
push eax
call dword [sym.imp.MSVCR80.dll__strdup]
mov esi, eax
mov eax, dword [0x48cc68]
add esp, 4
call fcn.00411c40
add dword [0x48cc68], 1
lea ecx, [esp + 0x24]
mov byte [0x48cc6c], 1
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0x38]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0x30]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0x18]
mov byte [esp + 0x94], 1
call ebx
lea ecx, [esp + 0xac]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0xb8]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
mov eax, 1
jmp 0x412a0e
lea edx, [esp + 0x18]
push edx
mov ecx, esi
call dword [sym.imp.orDb_Dll.dll_public:_class_DboPackage____thiscall_DboPlacedInst::GetPackage_class_DboState__]
mov esi, eax
lea ecx, [esp + 0x60]
mov dword [esp + 0x28], esi
call dword [sym.imp.MFC80.DLL_Ordinal_310]
lea ecx, [esp + 0x68]
call dword [sym.imp.MFC80.DLL_Ordinal_310]
lea ecx, [esp + 0x48]
call dword [sym.imp.MFC80.DLL_Ordinal_310]
lea ecx, [esp + 0x4c]
call dword [sym.imp.MFC80.DLL_Ordinal_310]
lea ecx, [esp + 0x50]
call dword [sym.imp.MFC80.DLL_Ordinal_310]
mov ecx, ebp
mov byte [esp + 0x94], 0xd
mov dword [esp + 0x24], 0
call dword [sym.imp.MFC80.DLL_Ordinal_2131]
push str.IGNORE_PROP
call dword [sym.imp.MSVCR80.dll_getenv]
add esp, 4
push eax
lea ecx, [esp + 0x58]
call dword [sym.imp.MFC80.DLL_Ordinal_304]
push str.DEVICE
lea ecx, [esp + 0x58]
mov byte [esp + 0x98], 0xe
call dword [sym.imp.MFC80.DLL_Ordinal_1486]
test eax, eax
je 0x4124bf
push ebp
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str.Device
call dword [sym.imp.MFC80.DLL_Ordinal_304]
lea eax, [esp + 0x1c]
push edi
push eax
call fcn.00411cf0
mov ecx, dword [eax]
mov dword [esp + 0x28], ecx
add esp, 0x10
lea ecx, [esp + 0x14]
call ebx
lea ecx, [esp + 0x18]
call dword [sym.imp.orDb_Dll.dll_public:_int___thiscall_DboState::Succeeded_void_const]
test eax, eax
je 0x4124bf
mov ecx, ebp
call dword [sym.imp.MFC80.DLL_Ordinal_3934]
test al, al
je 0x4124b7
cmp dword [esp + 0xa4], 0
je 0x4124bf
cmp dword [esp + 0xb0], 0
je 0x4124bf
mov edx, dword [esp + 0x1c]
push edx
push 0x28
call fcn.0041b290
add esp, 8
test al, al
jne 0x4124bf
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x50]
push edx
push edi
call fcn.0043e910
add esp, 0x10
lea ecx, [esp + 0x6c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
push 0x8cef
lea eax, [esp + 0x70]
push str.ORCAP
push eax
mov byte [esp + 0xa0], 0xf
call fcn.00440990
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x54]
add esp, 0xc
push ecx
mov ecx, dword [esp + 0x34]
push edx
push eax
push ecx
lea ecx, [esp + 0x7c]
call dword [sym.imp.MSVCP80.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
mov edx, dword [0x48cba0]
push eax
push edx
push 0x48cc5c
call dword [sym.imp.MFC80.DLL_Ordinal_2322]
add esp, 0x1c
mov ecx, 0x48cc5c
call dword [sym.imp.MFC80.DLL_Ordinal_876]
push eax
call dword [sym.imp.MSVCR80.dll__strdup]
mov esi, eax
mov eax, dword [0x48cc68]
add esp, 4
call fcn.00411c40
add dword [0x48cc68], 1
lea ecx, [esp + 0x6c]
mov byte [esp + 0x94], 0xe
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov esi, dword [esp + 0x28]
jmp 0x4124bf
mov dword [esp + 0x24], 1
mov ecx, ebp
call dword [sym.imp.MFC80.DLL_Ordinal_3934]
test al, al
je 0x4124e0
mov eax, dword [esi]
mov edx, dword [eax + 0x50]
push ebp
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
call edx
lea ecx, [esp + 0x28]
call ebx
push 0x4760d0
lea ecx, [esp + 0x5c]
call dword [sym.imp.MFC80.DLL_Ordinal_304]
lea ecx, [esp + 0x40]
call dword [sym.imp.MFC80.DLL_Ordinal_310]
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, edi
mov byte [esp + 0x9c], 0x11
call dword [sym.imp.orDb_Dll.dll_public:_class_DboState___thiscall_DboInstOccurrence::GetReference_class_ATL::CStringT_char__class_StrTraitMFC_DLL_char__class_ATL::ChTraitsCRT_char_____]
lea ecx, [esp + 0x28]
call ebx
mov ecx, dword [0x48cc60]
lea edx, [esp + 0x44]
push edx
push 2
call fcn.00461f00
cmp dword [esp + 0x44], 0
je 0x412711
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80.DLL_Ordinal_310]
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80.DLL_Ordinal_310]
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC80.DLL_Ordinal_310]
lea ecx, [esp + 0x18]
mov byte [esp + 0x94], 0x14
call dword [sym.imp.orDb_Dll.dll_public:_void___thiscall_DboState::SetOK_void_]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [0x48cc60]
lea edx, [esp + 0x4c]
push edx
push 2
call fcn.00461f90
lea ecx, [esp + 0xac]
call dword [sym.imp.MFC80.DLL_Ordinal_876]
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80.DLL_Ordinal_1486]
test eax, eax
jne 0x4125ea
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x44]
call dword [sym.imp.MFC80.DLL_Ordinal_876]
push eax
mov ecx, 0x48d600
call sub.MFC80.DLL_Ordinal_4067
test eax, eax
jne 0x41261b
lea ecx, [esp + 0x1c]
push ecx
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
call dword [sym.imp.MFC80.DLL_Ordinal_297]
lea eax, [esp + 0x30]
push edi
push eax
call fcn.00411cf0
mov ecx, dword [eax]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x38]
jmp 0x412616
lea edx, [esp + 0x1c]
push edx
push ecx
lea eax, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x44], esp
push eax
call dword [sym.imp.MFC80.DLL_Ordinal_297]
lea ecx, [esp + 0x6c]
push edi
push ecx
call fcn.00411cf0
mov edx, dword [eax]
mov dword [esp + 0x28], edx
lea ecx, [esp + 0x74]
add esp, 0x10
call ebx
lea ecx, [esp + 0xac]
call dword [sym.imp.MFC80.DLL_Ordinal_876]
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80.DLL_Ordinal_1486]
test eax, eax
jne 0x412646
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x5c]
call dword [sym.imp.MFC80.DLL_Ordinal_781]
lea ecx, [esp + 0x18]
call dword [sym.imp.orDb_Dll.dll_public:_int___thiscall_DboState::Succeeded_void_const]
test eax, eax
je 0x4126e0
cmp dword [esp + 0x24], 0
jne 0x4126b7
push 0x475f28
lea ecx, [esp + 0x38]
push ebp
push ecx
call fcn.00402500
lea edx, [esp + 0x28]
push edx
push eax
lea eax, [esp + 0x70]
push eax
mov byte [esp + 0xac], 0x15
call fcn.00402460
add esp, 0x18
push eax
mov ecx, ebp
mov byte [esp + 0x98], 0x16
call dword [sym.imp.MFC80.DLL_Ordinal_781]
lea ecx, [esp + 0x5c]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0x34]
mov byte [esp + 0x94], 0x14
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80.DLL_Ordinal_876]
lea ecx, [esp + 0x14]
mov esi, eax
call dword [sym.imp.MFC80.DLL_Ordinal_876]
mov ecx, dword [esp + 0x2c]
push esi
push eax
call sub.MFC80.DLL_Ordinal_870
mov ecx, eax
call dword [sym.imp.MFC80.DLL_Ordinal_784]
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0x14]
mov byte [esp + 0x94], 0x11
call dword [sym.imp.MFC80.DLL_Ordinal_578]
cmp dword [esp + 0x44], 0
jne 0x412536
push edi
call fcn.0043ec40
add esp, 4
test eax, eax
jne 0x4128ca
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80.DLL_Ordinal_310]
lea ecx, [esp + 0x14]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push str.POWER_PINS
mov byte [esp + 0xa0], 0x17
call dword [sym.imp.MFC80.DLL_Ordinal_304]
lea edx, [esp + 0x28]
push edi
push edx
call fcn.00411cf0
mov eax, dword [eax]
add esp, 0x10
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], eax
call ebx
mov esi, dword [sym.imp.orDb_Dll.dll_public:_int___thiscall_DboState::Succeeded_void_const]
lea ecx, [esp + 0x18]
call esi
test eax, eax
je 0x4127f9
cmp dword [esp + 0x24], 0
jne 0x4127d8
push 0x475f28
lea ecx, [esp + 0x38]
push ebp
push ecx
call fcn.00402500
lea edx, [esp + 0x20]
push edx
push eax
lea eax, [esp + 0x34]
push eax
mov byte [esp + 0xac], 0x18
call fcn.00402460
add esp, 0x18
push eax
mov ecx, ebp
mov byte [esp + 0x98], 0x19
call dword [sym.imp.MFC80.DLL_Ordinal_781]
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0x34]
mov byte [esp + 0x94], 0x17
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80.DLL_Ordinal_876]
mov ecx, dword [esp + 0x2c]
push eax
push str.POWER_PINS
call sub.MFC80.DLL_Ordinal_870
mov ecx, eax
call dword [sym.imp.MFC80.DLL_Ordinal_784]
lea ecx, [esp + 0x14]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push str.NC_PINS
call dword [sym.imp.MFC80.DLL_Ordinal_304]
lea edx, [esp + 0x28]
push edi
push edx
call fcn.00411cf0
mov eax, dword [eax]
add esp, 0x10
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], eax
call ebx
lea ecx, [esp + 0x18]
call esi
test eax, eax
je 0x4128b8
cmp dword [esp + 0x24], 0
jne 0x412897
push 0x475f28
lea ecx, [esp + 0x38]
push ebp
push ecx
call fcn.00402500
lea edx, [esp + 0x20]
push edx
push eax
lea eax, [esp + 0x34]
push eax
mov byte [esp + 0xac], 0x1a
call fcn.00402460
add esp, 0x18
push eax
mov ecx, ebp
mov byte [esp + 0x98], 0x1b
call dword [sym.imp.MFC80.DLL_Ordinal_781]
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0x34]
mov byte [esp + 0x94], 0x17
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80.DLL_Ordinal_876]
mov ecx, dword [esp + 0x2c]
push eax
push str.NC_PINS
call sub.MFC80.DLL_Ordinal_870
mov ecx, eax
call dword [sym.imp.MFC80.DLL_Ordinal_784]
lea ecx, [esp + 0x14]
mov byte [esp + 0x94], 0x11
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
call dword [sym.imp.orDb_Dll.dll_public:_class_DboPartInst____thiscall_DboInstOccurrence::GetPartInst_class_DboState__const]
mov esi, eax
test esi, esi
je 0x412978
lea ecx, [esp + 0x2c]
call dword [sym.imp.MFC80.DLL_Ordinal_310]
mov edx, dword [esi]
mov edx, dword [edx + 0x30]
lea eax, [esp + 0x2c]
push eax
push 0xd7d
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
mov byte [esp + 0xa0], 0x1c
call edx
lea ecx, [esp + 0x20]
call ebx
push str.FALSE
lea ecx, [esp + 0x30]
call dword [sym.imp.MFC80.DLL_Ordinal_1486]
test eax, eax
jne 0x412966
lea ecx, [esp + 0xb8]
call dword [sym.imp.MFC80.DLL_Ordinal_3934]
test al, al
jne 0x412966
lea eax, [esp + 0xb8]
push eax
lea ecx, [esp + 0x24]
push ebp
push ecx
call fcn.00402460
add esp, 0xc
push eax
mov ecx, ebp
mov byte [esp + 0x98], 0x1d
call dword [sym.imp.MFC80.DLL_Ordinal_781]
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x94], 0x11
call dword [sym.imp.MFC80.DLL_Ordinal_578]
mov ecx, ebp
call dword [sym.imp.MFC80.DLL_Ordinal_4085]
lea ecx, [esp + 0x40]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0x58]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0x54]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0x50]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0x4c]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0x48]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0x68]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0x60]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0x38]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0x30]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0x18]
mov byte [esp + 0x94], 1
call ebx
lea ecx, [esp + 0xac]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0xb8]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
xor eax, eax
mov ecx, dword [esp + 0x8c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.0043f646
add esp, 0x84
ret