Function at 0x470120
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x52837a
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
push ebx
push esi
push edi
mov eax, dword [0x5b339c]
xor eax, esp
push eax
lea eax, [esp + 0x108]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
push str..OPCEventServer.cpp
add edi, 0xffffffec
push 0x548
push str.COOPCServer::GetConditionState
mov ecx, edi
mov dword [esp + 0x3c], edi
call fcn.00449750
mov ecx, eax
call fcn.00402490
call fcn.004fa640
mov ecx, eax
call fcn.004f6df0
test al, al
jne 0x4701ca
mov ecx, dword [0x5b6bb0]
push 0x80004001
push str.E_NOTIMPL
push str..OPCEventServer.cpp
push 0x54c
push str.COOPCServer::GetConditionState
call fcn.00402520
mov eax, 0x80004001
mov ecx, dword [esp + 0x108]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ecx, edi
mov dword [esp + 0x34], 0
call fcn.00449750
mov ebx, dword [ebp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
push ebx
push str.LPWSTR_szSource__ls_
push str.COOPCServer::GetConditionState
push 3
push eax
call edx
add esp, 0x14
mov ecx, edi
call fcn.00449750
mov esi, dword [ebp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx]
push esi
push str.LPWSTR_szConditionName__ls_
push str.COOPCServer::GetConditionState
push 3
push eax
call edx
add esp, 0x14
mov ecx, edi
call fcn.00449750
mov edx, dword [ebp + 0x14]
mov ecx, dword [eax]
push edx
push str.DWORD_dwNumEventAttrs__u_
push str.COOPCServer::GetConditionState
push 3
push eax
mov eax, dword [ecx]
call eax
add esp, 0x14
test ebx, ebx
je 0x470aea
test esi, esi
je 0x470aea
mov esi, dword [ebp + 0x1c]
test esi, esi
je 0x470aea
cmp dword [ebp + 0x14], 0
jbe 0x470292
cmp dword [ebp + 0x18], 0
jne 0x470292
mov ecx, edi
call fcn.00449750
mov ecx, dword [eax]
mov edx, dword [ecx]
push str.Bad_arguments:__dwNumEventAttrs_0__NULLpdwAttributeIDs_
push str.COOPCServer::GetConditionState
push 1
push eax
call edx
add esp, 0x10
push 0x80004003
push 0x53c58c
push str..OPCEventServer.cpp
push 0x566
jmp 0x470b1b
mov dword [esi], 0
call fcn.004fa640
mov ecx, eax
call fcn.004f6de0
push ebx
lea ecx, [esp + 0xb4]
mov dword [esp + 0x30], eax
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 + 0x110], 0
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0xb0]
push eax
call fcn.00509a50
mov dword [esp + 0x28], eax
mov dword [esp + 0x110], 0xffffffff
lea ecx, [esp + 0xb0]
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 [esp + 0x28], 0
je 0x470a7a
mov ecx, dword [ebp + 0x10]
push ecx
lea ecx, [esp + 0x98]
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 + 0x110], 1
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x94]
push eax
call edx
mov ebx, eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x110], 0xffffffff
lea ecx, [esp + 0x94]
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_]
test ebx, ebx
je 0x470a46
mov ecx, ebx
call fcn.0050b660
mov dword [esp + 0x38], eax
test eax, eax
je 0x470957
mov edi, dword [sym.imp.ole32.dll_CoTaskMemAlloc]
push 0x60
call edi
mov dword [esi], eax
test eax, eax
jne 0x4703d6
mov esi, dword [esp + 0x30]
mov ecx, esi
call fcn.00449750
mov ecx, dword [eax]
mov edx, dword [ecx]
push str.Memory_allocation_failed_for_GetConditionState_response.
push str.COOPCServer::GetConditionState
push 1
push eax
call edx
add esp, 0x10
push 0x8007000e
push 0x53c58c
push str..OPCEventServer.cpp
push 0x57f
push str.COOPCServer::GetConditionState
mov ecx, esi
call fcn.00449750
mov ecx, eax
call fcn.00402620
mov eax, 0x8007000e
mov ecx, dword [esp + 0x108]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push 0x60
push 0
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [esp + 0x3c]
push eax
mov ecx, ebx
call fcn.0050b6b0
mov dword [esp + 0x110], 2
mov ecx, dword [esp + 0x54]
lea edx, [ecx*4]
push edx
call edi
mov ecx, dword [esi]
mov dword [ecx + 0x44], eax
mov edx, dword [esp + 0x54]
lea eax, [edx*4]
push eax
call edi
mov ecx, dword [esi]
mov dword [ecx + 0x48], eax
mov edx, dword [esp + 0x54]
lea eax, [edx*4]
push eax
call edi
mov ecx, dword [esi]
mov dword [ecx + 0x4c], eax
mov edx, dword [esp + 0x54]
lea eax, [edx*4]
push eax
call edi
mov edx, dword [ebp + 0x14]
mov ecx, dword [esi]
shl edx, 4
push edx
mov dword [ecx + 0x50], eax
call edi
mov ecx, dword [esi]
mov edx, dword [ebp + 0x14]
mov dword [ecx + 0x58], eax
lea eax, [edx*4]
push eax
call edi
mov ecx, dword [esi]
mov dword [ecx + 0x5c], eax
mov eax, dword [esi]
xor edi, edi
cmp dword [eax + 0x44], edi
je 0x47096c
cmp dword [eax + 0x48], edi
je 0x47096c
cmp dword [eax + 0x4c], edi
je 0x47096c
cmp dword [eax + 0x50], edi
je 0x47096c
cmp dword [eax + 0x58], edi
je 0x47096c
cmp dword [eax + 0x5c], edi
je 0x47096c
mov ecx, ebx
call fcn.0050aa90
mov edx, dword [esi]
mov ecx, ebx
mov word [edx], ax
call fcn.0050a9d0
test al, al
je 0x470583
mov edi, dword [esp + 0x38]
lea eax, [esp + 0x78]
push eax
mov ecx, edi
call fcn.0045d8e0
mov byte [esp + 0x110], 3
mov ecx, eax
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 fcn.004594a0
mov ecx, dword [esi]
add esp, 4
mov dword [ecx + 4], eax
mov byte [esp + 0x110], 2
lea ecx, [esp + 0x78]
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_]
lea edx, [esp + 0x78]
push edx
mov ecx, edi
call fcn.0050cc70
mov byte [esp + 0x110], 4
mov ecx, eax
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 fcn.004594a0
mov ecx, dword [esi]
add esp, 4
mov dword [ecx + 8], eax
mov byte [esp + 0x110], 2
lea ecx, [esp + 0x78]
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_]
mov ecx, edi
call fcn.0050cc00
mov edx, dword [esi]
mov dword [edx + 0xc], eax
lea eax, [esp + 0x78]
push eax
mov ecx, edi
call fcn.0050cc10
mov byte [esp + 0x110], 5
mov ecx, eax
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 fcn.004594a0
mov ecx, dword [esi]
add esp, 4
mov dword [ecx + 0x10], eax
mov byte [esp + 0x110], 2
lea ecx, [esp + 0x78]
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_]
xor edi, edi
jmp 0x470597
mov edx, dword [esi]
mov dword [edx + 4], edi
mov eax, dword [esi]
mov dword [eax + 8], edi
mov ecx, dword [esi]
mov dword [ecx + 0xc], edi
mov edx, dword [esi]
mov dword [edx + 0x10], edi
mov ecx, ebx
call fcn.0050aad0
mov ecx, dword [esi]
lea edx, [esp + 0x18]
mov word [ecx + 0x14], ax
push edx
mov ecx, ebx
call fcn.0050aa50
mov ecx, dword [esi]
mov edx, dword [eax]
mov dword [ecx + 0x18], edx
mov eax, dword [eax + 4]
mov dword [ecx + 0x1c], eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebx
call fcn.0050aa00
mov ecx, dword [esi]
mov edx, dword [eax]
mov dword [ecx + 0x20], edx
mov eax, dword [eax + 4]
mov dword [ecx + 0x24], eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebx
call fcn.0050a9e0
mov ecx, dword [esi]
mov edx, dword [eax]
mov dword [ecx + 0x28], edx
mov eax, dword [eax + 4]
mov dword [ecx + 0x2c], eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebx
call fcn.0050aa20
mov ecx, dword [esi]
mov edx, dword [eax]
mov dword [ecx + 0x30], edx
mov eax, dword [eax + 4]
mov dword [ecx + 0x34], eax
mov ecx, ebx
call fcn.0050aae0
test al, al
je 0x47061f
mov ecx, dword [esi]
mov dword [ecx + 0x38], edi
mov edx, dword [esi]
mov dword [edx + 0x3c], edi
jmp 0x470659
mov ecx, ebx
call fcn.0050aa70
mov ecx, eax
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 fcn.004594a0
mov ecx, dword [esi]
mov dword [ecx + 0x38], eax
add esp, 4
mov ecx, ebx
call fcn.0050aa80
mov ecx, eax
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 fcn.004594a0
mov edx, dword [esi]
add esp, 4
mov dword [edx + 0x3c], eax
mov eax, dword [esi]
mov ecx, dword [esp + 0x54]
mov dword [eax + 0x40], ecx
mov edx, dword [esp + 0x50]
mov eax, dword [edx]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], eax
call fcn.0049f670
test al, al
je 0x470803
lea ecx, [esp + 0x20]
call fcn.004eac30
push eax
mov ecx, ebx
call fcn.0050ad30
mov ebx, eax
test ebx, ebx
je 0x4707a9
lea edx, [esp + 0x78]
push edx
mov ecx, ebx
call fcn.0045d8e0
mov byte [esp + 0x110], 6
mov ecx, eax
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 fcn.004594a0
mov ecx, dword [esi]
mov edx, dword [ecx + 0x44]
add esp, 4
mov dword [edi + edx], eax
mov byte [esp + 0x110], 2
lea ecx, [esp + 0x78]
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_]
lea eax, [esp + 0xcc]
push eax
mov ecx, ebx
call fcn.0050cc70
mov byte [esp + 0x110], 7
mov ecx, eax
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 fcn.004594a0
mov ecx, dword [esi]
mov edx, dword [ecx + 0x48]
add esp, 4
mov dword [edi + edx], eax
mov byte [esp + 0x110], 2
lea ecx, [esp + 0xcc]
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_]
mov ecx, ebx
call fcn.0050cc00
mov ecx, dword [esi]
mov edx, dword [ecx + 0x4c]
mov dword [edi + edx], eax
lea eax, [esp + 0xe8]
push eax
mov ecx, ebx
call fcn.0050cc10
mov byte [esp + 0x110], 8
mov ecx, eax
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 fcn.004594a0
mov ecx, dword [esi]
mov edx, dword [ecx + 0x50]
add esp, 4
mov dword [edi + edx], eax
mov byte [esp + 0x110], 2
lea ecx, [esp + 0xe8]
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_]
mov ecx, ebx
call fcn.004f6830
lea ecx, [esp + 0x20]
add edi, 4
call fcn.004210f0
mov ebx, dword [esp + 0x14]
jmp 0x470674
push 0x57ea28
call fcn.004594a0
mov ecx, dword [esi]
mov edx, dword [ecx + 0x44]
push 0x57ea28
mov dword [edi + edx], eax
call fcn.004594a0
mov ecx, dword [esi]
mov edx, dword [ecx + 0x48]
mov dword [edi + edx], eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x4c]
push 0x57ea28
mov dword [edi + ecx], 0
call fcn.004594a0
mov edx, dword [esi]
mov ecx, dword [edx + 0x50]
mov dword [edi + ecx], eax
add esp, 0xc
lea ecx, [esp + 0x20]
add edi, 4
call fcn.004210f0
mov ebx, dword [esp + 0x14]
jmp 0x470674
mov edx, dword [esi]
mov eax, dword [ebp + 0x14]
lea ecx, [esp + 0x58]
push ecx
mov ecx, ebx
mov dword [edx + 0x54], eax
call fcn.0050b880
mov byte [esp + 0x110], 9
mov edx, dword [esi]
xor edi, edi
cmp dword [edx + 0x54], edi
jbe 0x4708bf
mov dword [esp + 0x14], edi
mov eax, dword [esi]
mov ecx, dword [eax + 0x58]
add ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov edx, dword [ebp + 0x18]
lea eax, [edx + edi*4]
push eax
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x60]
call fcn.0046f770
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x58]
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], eax
call fcn.0049f670
test al, al
je 0x4708a2
lea ecx, [esp + 0x20]
call fcn.004e5b70
mov edx, dword [esi]
add eax, 8
push eax
mov eax, dword [edx + 0x58]
add eax, dword [esp + 0x18]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopyInd]
mov ecx, dword [esi]
mov edx, dword [ecx + 0x5c]
mov dword [edx + edi*4], 0
jmp 0x4708ae
mov eax, dword [esi]
mov ecx, dword [eax + 0x5c]
mov dword [ecx + edi*4], 0x80004005
mov edx, dword [esi]
add dword [esp + 0x14], 0x10
inc edi
cmp edi, dword [edx + 0x54]
jb 0x470830
mov eax, dword [esp + 0x70]
mov ecx, dword [eax]
mov edx, dword [esp + 0x58]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], edx
jmp 0x4708e0
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x70]
lea edx, [esp + 0x18]
mov dword [esp + 0x18], ecx
push edx
lea ecx, [esp + 0x24]
mov dword [esp + 0x20], eax
call fcn.0049f670
test al, al
je 0x47091c
lea ecx, [esp + 0x20]
call fcn.004e5b70
add eax, 8
push eax
call esi
lea ecx, [esp + 0x20]
call fcn.00427870
jmp 0x4708e0
lea ecx, [esp + 0x58]
call fcn.0046ef10
mov ecx, dword [esp + 0x38]
call fcn.004f6830
mov byte [esp + 0x110], 2
lea ecx, [esp + 0x58]
call fcn.004fef20
mov dword [esp + 0x110], 0xffffffff
lea ecx, [esp + 0x3c]
call fcn.0042ad90
mov edi, dword [esp + 0x30]
mov ecx, ebx
call fcn.004f6830
mov ecx, dword [esp + 0x28]
call fcn.004f6830
jmp 0x470aa0
mov eax, dword [eax + 0x5c]
mov edi, dword [sym.imp.ole32.dll_CoTaskMemFree]
push eax
call edi
mov ecx, dword [esi]
mov edx, dword [ecx + 0x58]
push edx
call edi
mov eax, dword [esi]
mov ecx, dword [eax + 0x50]
push ecx
call edi
mov edx, dword [esi]
mov eax, dword [edx + 0x4c]
push eax
call edi
mov ecx, dword [esi]
mov edx, dword [ecx + 0x48]
push edx
call edi
mov eax, dword [esi]
mov ecx, dword [eax + 0x44]
push ecx
call edi
mov edx, dword [esi]
push edx
call edi
mov ecx, dword [esp + 0x38]
call fcn.004f6830
mov ecx, ebx
call fcn.004f6830
mov ecx, dword [esp + 0x28]
call fcn.004f6830
mov ecx, dword [esp + 0x2c]
call fcn.004f6830
mov dword [esi], 0
mov esi, dword [esp + 0x30]
mov ecx, esi
call fcn.00449750
mov ecx, dword [eax]
mov edx, dword [ecx]
push str.Memory_allocation_failed_for_GetConditionState_response.
push str.COOPCServer::GetConditionState
push 1
push eax
call edx
add esp, 0x10
push 0x8007000e
push 0x53c58c
push str..OPCEventServer.cpp
push 0x5a7
push str.COOPCServer::GetConditionState
mov ecx, esi
call fcn.00449750
mov ecx, eax
call fcn.00402620
mov dword [esp + 0x110], 0xffffffff
lea ecx, [esp + 0x3c]
call fcn.0042ad90
mov eax, 0x8007000e
mov ecx, dword [esp + 0x108]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ecx, edi
mov dword [esp + 0x34], 0x80070057
call fcn.00449750
mov edx, dword [ebp + 0x10]
mov ecx, dword [eax]
push edx
push str.Bad_argument:_Condition___ls__not_found
push str.COOPCServer::GetConditionState
push 1
push eax
mov eax, dword [ecx]
call eax
mov ecx, dword [esp + 0x3c]
add esp, 0x14
call fcn.004f6830
jmp 0x470aa0
mov ecx, edi
mov dword [esp + 0x34], 0x80070057
call fcn.00449750
mov ecx, dword [eax]
mov edx, dword [ecx]
push ebx
push str.Bad_argument:_Source___ls__not_found
push str.COOPCServer::GetConditionState
push 1
push eax
call edx
add esp, 0x14
mov ecx, dword [esp + 0x2c]
call fcn.004f6830
mov esi, dword [esp + 0x34]
push esi
push 0x53c58c
push str..OPCEventServer.cpp
push 0x613
push str.COOPCServer::GetConditionState
mov ecx, edi
call fcn.00449750
mov ecx, eax
call fcn.00402620
mov eax, esi
mov ecx, dword [esp + 0x108]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ecx, edi
call fcn.00449750
mov ecx, dword [eax]
mov edx, dword [ecx]
push str.Bad_arguments:__NULLszSource__NULLszConditionName__NULLppConditionState_
push str.COOPCServer::GetConditionState
push 1
push eax
call edx
add esp, 0x10
push 0x80004003
push 0x53c58c
push str..OPCEventServer.cpp
push 0x55c
push str.COOPCServer::GetConditionState
mov ecx, edi
call fcn.00449750
mov ecx, eax
call fcn.00402620
mov eax, 0x80004003
mov ecx, dword [esp + 0x108]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18