Function at 0x4301a0
Capabilities:
Link many functions at runtime
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x520c4c
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x5b339c]
xor eax, esp
mov dword [esp + 0x41c], eax
push ebx
push esi
push edi
mov eax, dword [0x5b339c]
xor eax, esp
push eax
lea eax, [esp + 0x430]
mov dword fs:[0], eax
mov eax, dword [0x5b6bb0]
push str.CalcEngineWrapper.dll
push str.Calc:_Loading_library___ls__...
push str.CCalculationEngine::Start
mov esi, ecx
mov ecx, dword [eax]
mov edx, dword [ecx]
push 7
push eax
mov ebx, 0x80004005
call edx
add esp, 0x14
push 0x200
lea eax, [esp + 0x30]
push eax
push str.CommonProgramFiles
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test eax, eax
je 0x430281
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x14]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov dword [esp + 0x438], 0
push str.MatrikonOPCCommon_
lea ecx, [esp + 0x14]
call dword [0x539464]
push str.CalcEngineWrapper.dll
lea ecx, [esp + 0x14]
call dword [0x539464]
push 8
push 0
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call edi
mov dword [esi + 0x1c], eax
mov dword [esp + 0x438], 0xffffffff
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp dword [esi + 0x1c], 0
jne 0x43029d
push 8
push 0
push str.CalcEngineWrapper.dll
call edi
mov dword [esi + 0x1c], eax
test eax, eax
je 0x430337
mov eax, dword [0x5b6bb0]
mov edx, dword [eax]
push str.CalcEngineWrapper.dll
push str.Calc:_Library___ls__loaded_successfully
push str.CCalculationEngine::Start
push 7
push eax
mov eax, dword [edx]
call eax
mov ecx, dword [esi + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
add esp, 0x14
push str.StartWrapper
push ecx
call edi
mov edx, dword [esi + 0x1c]
push str.StopWrapper
push edx
mov dword [esi], eax
call edi
mov dword [esi + 4], eax
mov eax, dword [esi + 0x1c]
push str.CreateEngine
push eax
call edi
mov ecx, dword [esi + 0x1c]
push str.SetCalculation
push ecx
mov dword [esi + 8], eax
call edi
mov edx, dword [esi + 0x1c]
push str.GetResult
push edx
mov dword [esi + 0xc], eax
call edi
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x1c]
push str.ExecuteCalc
push eax
call edi
mov ecx, dword [esi + 0x1c]
push str.WaitForResult
push ecx
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0x18], eax
mov eax, dword [esi]
test eax, eax
je 0x43035f
call eax
mov esi, dword [esi + 8]
test esi, esi
je 0x43035f
call esi
jmp 0x430361
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x5b6bb0]
mov edx, dword [ecx]
push eax
mov eax, dword [edx]
push str.CalcEngineWrapper.dll
push str.Calc:_Failed_to_load_library___ls______u_
push str.CCalculationEngine::Start
push 1
push ecx
call eax
add esp, 0x18
mov eax, ebx
mov ecx, dword [esp + 0x430]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x41c]
xor ecx, esp
call fcn.0051973e
add esp, 0x42c
ret