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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x59435e
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x62d414]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [0x63dd80]
push str..TunnellerDevLink.cpp
push 0x1241
push str.CTunnellerDevLink::PostTunnellerAEEvents
call fcn.0041ac10
xor eax, eax
mov byte [esp + 0x24], al
mov dword [esp + 0x2c], eax
cmp esi, eax
je 0x40f3da
cmp dword [ebp + 0x14], eax
jbe 0x40f3da
add esi, 0x38
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], esi
push 0x50
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40f3b8
push 0x50
push 0
push ebx
call sub.MSVCR90.dll_memset
mov eax, dword [esp + 0x24]
xor ecx, ecx
add esp, 0xc
cmp byte [eax - 0xc], 1
sete cl
mov dword [ebx + 0x2c], ecx
mov edx, dword [eax]
mov dword [ebx + 0x38], edx
mov ecx, dword [eax - 0x20]
mov dword [ebx + 0x18], ecx
mov edx, dword [eax - 0x24]
mov dword [ebx + 0x14], edx
mov ecx, dword [eax + 8]
mov dword [ebx + 0x3c], ecx
mov edx, dword [eax - 0x1c]
mov dword [ebx + 0x1c], edx
mov ecx, dword [eax - 4]
mov dword [ebx + 0x34], ecx
mov edx, dword [eax - 8]
mov dword [ebx + 0x30], edx
mov ecx, dword [eax - 0x2c]
mov dword [ebx + 0xc], ecx
mov edx, dword [eax - 0x30]
mov dword [ebx + 8], edx
movzx ecx, word [eax - 0x38]
mov word [ebx], cx
mov dx, word [eax - 0x36]
mov word [ebx + 2], dx
movzx ecx, word [eax - 0x10]
mov word [ebx + 0x28], cx
movsx ecx, byte [ebp + 0x18]
xor edx, edx
mov word [ebx + 0x2a], dx
mov dword [ebx + 0x48], ecx
mov eax, dword [eax + 4]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ee10
sub eax, edx
sar eax, 1
lea esi, [eax + 1]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0051ecf5
add esp, 4
mov dword [ebx + 0x44], eax
test eax, eax
je 0x40ee57
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + 4]
push ecx
push esi
push eax
call dword [sym.imp.MSVCR90.dll_wcscpy_s]
add esp, 0xc
mov edx, dword [esp + 0x18]
mov eax, dword [edx - 0x18]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ee61
sub eax, edx
sar eax, 1
lea esi, [eax + 1]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0051ecf5
add esp, 4
mov dword [ebx + 0x20], eax
test eax, eax
je 0x40eea8
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx - 0x18]
push ecx
push esi
push eax
call dword [sym.imp.MSVCR90.dll_wcscpy_s]
add esp, 0xc
mov edx, dword [esp + 0x18]
mov eax, dword [edx - 0x28]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40eeb2
sub eax, edx
sar eax, 1
lea esi, [eax + 1]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0051ecf5
add esp, 4
mov dword [ebx + 0x10], eax
test eax, eax
je 0x40eef9
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx - 0x28]
push ecx
push esi
push eax
call dword [sym.imp.MSVCR90.dll_wcscpy_s]
add esp, 0xc
mov edx, dword [esp + 0x18]
mov eax, dword [edx - 0x34]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ef03
sub eax, edx
sar eax, 1
lea esi, [eax + 1]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0051ecf5
add esp, 4
mov dword [ebx + 4], eax
test eax, eax
je 0x40ef4a
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx - 0x34]
push ecx
push esi
push eax
call dword [sym.imp.MSVCR90.dll_wcscpy_s]
add esp, 0xc
mov edx, dword [esp + 0x18]
mov eax, dword [edx - 0x14]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ef54
sub eax, edx
sar eax, 1
lea esi, [eax + 1]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0051ecf5
xor edi, edi
add esp, 4
mov dword [ebx + 0x24], eax
cmp eax, edi
je 0x40ef9d
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx - 0x14]
push ecx
push esi
push eax
call dword [sym.imp.MSVCR90.dll_wcscpy_s]
add esp, 0xc
cmp byte [ebp + 0x18], 1
mov dword [ebx + 0x40], edi
mov dword [ebx + 0x4c], edi
mov byte [esp + 0x17], 1
jne 0x40f168
mov edx, dword [esp + 0x18]
mov eax, dword [edx - 0x28]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40efc0
sub eax, edx
sar eax, 1
lea esi, [eax + 1]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0051ecf5
add esp, 4
mov dword [ebx + 0x4c], eax
test eax, eax
je 0x40f007
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx - 0x28]
push ecx
push esi
push eax
call dword [sym.imp.MSVCR90.dll_wcscpy_s]
add esp, 0xc
mov esi, dword [ebp + 8]
lea edx, [esp + 0x34]
push edx
mov ecx, esi
call fcn.00405e90
mov dword [esp + 0x78], 0
cmp dword [eax + 0x18], 8
jb 0x40f029
mov ecx, dword [eax + 4]
jmp 0x40f02c
lea ecx, [eax + 4]
mov eax, dword [0x63dd80]
mov edx, dword [eax]
push ecx
push str.Remote_OPC_Server_has_sent_Shutdown_request.
push str.CTunnellerDevLink::PostTunnellerAEEvents
push 2
push eax
mov eax, dword [edx]
call eax
or edi, 0xffffffff
add esp, 0x14
mov dword [esp + 0x78], edi
lea ecx, [esp + 0x34]
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 byte [esi + 0x36a], 0
jne 0x40f16b
lea ecx, [esp + 0x50]
push ecx
mov ecx, esi
call fcn.00405e90
mov dword [esp + 0x78], 1
cmp dword [eax + 0x18], 8
jb 0x40f085
mov ecx, dword [eax + 4]
jmp 0x40f088
lea ecx, [eax + 4]
mov eax, dword [0x63dd80]
mov edx, dword [eax]
push ecx
push str.Sending_Get_Status_upon_Shutdown_request.
push str.CTunnellerDevLink::PostTunnellerAEEvents
push 2
push eax
mov eax, dword [edx]
call eax
add esp, 0x14
mov dword [esp + 0x78], edi
lea ecx, [esp + 0x50]
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 edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
push 0x88
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x30], eax
mov dword [esp + 0x78], 2
test eax, eax
je 0x40f0e8
push 1
push 0
push eax
mov ecx, esi
call fcn.00427e40
mov edi, eax
jmp 0x40f0ea
xor edi, edi
mov dword [esp + 0x78], 0xffffffff
test edi, edi
je 0x40f10c
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
mov ecx, dword [esi + 0xc0]
push edi
push ecx
call fcn.00480fb0
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
push 0x94
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x30], eax
mov dword [esp + 0x78], 3
test eax, eax
je 0x40f13d
push esi
push eax
call fcn.00404c70
mov edi, eax
jmp 0x40f13f
xor edi, edi
mov dword [esp + 0x78], 0xffffffff
test edi, edi
je 0x40f161
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
mov ecx, dword [esi + 0xc0]
push edi
push ecx
call fcn.00480fb0
mov byte [esp + 0x17], 0
jmp 0x40f16b
mov esi, dword [ebp + 8]
mov edi, dword [ebx + 0x3c]
test edi, edi
jbe 0x40f24b
mov edx, dword [esp + 0x18]
cmp dword [edx + 0xc], 0
je 0x40f24b
xor ecx, ecx
mov eax, edi
mov edx, 0x10
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0051ecf5
add esp, 4
mov dword [ebx + 0x40], eax
test eax, eax
je 0x40f248
cmp dword [ebx + 0x3c], 0
mov dword [esp + 0x30], 0
jbe 0x40f248
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
lea esp, [esp]
mov eax, dword [ebx + 0x40]
add eax, edi
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
movzx eax, word [esi + 0x1d0]
cmp ax, 2
jne 0x40f1f5
cmp word [esi + 0x1d2], ax
jae 0x40f1f7
cmp ax, ax
jbe 0x40f20e
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + 0xc]
mov eax, dword [ebx + 0x40]
add ecx, dword [esp + 0x1c]
add eax, edi
call fcn.004182b0
jmp 0x40f22c
mov edx, dword [esp + 0x18]
mov esi, dword [ebx + 0x40]
mov edi, dword [edx + 0xc]
add esi, dword [esp + 0x20]
add edi, dword [esp + 0x1c]
call fcn.00418060
mov esi, dword [ebp + 8]
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x30]
add dword [esp + 0x1c], 0x18
inc eax
add edi, 0x10
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], edi
cmp eax, dword [ebx + 0x3c]
jb 0x40f1d0
jmp 0x40f24b
mov esi, dword [ebp + 8]
cmp byte [ebp + 0x10], 1
jne 0x40f260
mov eax, dword [ebp + 0x14]
dec eax
cmp dword [esp + 0x28], eax
jne 0x40f260
mov byte [esp + 0x24], 1
cmp byte [esp + 0x17], 0
je 0x40f353
inc dword [esp + 0x2c]
cmp byte [esi + 0x36d], 0
je 0x40f2dd
cmp byte [ebp + 0xc], 1
jne 0x40f2dd
push 0x54
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
mov dword [esp + 0x30], edi
mov dword [esp + 0x78], 4
test edi, edi
je 0x40f2bb
mov ecx, dword [esi + 0x1e0]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi + 0x1e0]
push 0
push edi
xor cl, cl
mov edi, ebx
call fcn.00406780
jmp 0x40f2bd
xor eax, eax
mov dword [esp + 0x78], 0xffffffff
cmp byte [esp + 0x24], 1
mov edi, eax
jne 0x40f330
cmp byte [ebp + 0x10], 1
jne 0x40f330
mov byte [esi + 0x36d], 0
jmp 0x40f330
push 0x54
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
mov dword [esp + 0x30], edi
mov dword [esp + 0x78], 5
test edi, edi
je 0x40f324
mov ecx, dword [esi + 0x1e0]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x24]
cmp byte [ebp + 0xc], 1
mov esi, dword [esi + 0x1e0]
push ecx
push edi
sete cl
mov edi, ebx
mov edx, esi
call fcn.00406780
jmp 0x40f326
xor eax, eax
mov dword [esp + 0x78], 0xffffffff
mov edi, eax
test edi, edi
je 0x40f3b8
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
mov esi, edi
call fcn.0046a3a0
mov edx, dword [edi]
mov eax, dword [edx + 8]
mov ecx, edi
call eax
jmp 0x40f3b8
mov ecx, dword [ebx + 0x44]
push ecx
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
mov edx, dword [ebx + 0x20]
add esp, 4
push edx
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
mov eax, dword [ebx + 0x10]
add esp, 4
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
mov ecx, dword [ebx + 4]
add esp, 4
push ecx
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
mov edx, dword [ebx + 0x24]
add esp, 4
push edx
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
mov eax, dword [ebx + 0x40]
add esp, 4
test eax, eax
je 0x40f39f
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x40f3af
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
push ebx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x28]
add dword [esp + 0x18], 0x48
inc eax
mov dword [esp + 0x28], eax
cmp eax, dword [ebp + 0x14]
jb 0x40ed7e
mov eax, dword [0x68cb6c]
push eax
call fcn.00467220
xor edx, edx
cmp byte [ebp + 0x10], 1
mov eax, dword [0x63dd80]
sete dl
mov ecx, dword [eax]
push edx
xor edx, edx
cmp byte [ebp + 0xc], 1
sete dl
push edx
mov edx, dword [esp + 0x34]
push edx
mov edx, dword [ebp + 0x14]
push edx
push str.uiCount_lu__nPosted_d__bRefresh_d__bLastRefresh___d
push str.CTunnellerDevLink::PostTunnellerAEEvents
push 3
push eax
mov eax, dword [ecx]
call eax
mov ecx, dword [0x63dd80]
add esp, 0x20
push 0
push 0x5d1d25
push str..TunnellerDevLink.cpp
push 0x12fd
push str.CTunnellerDevLink::PostTunnellerAEEvents
call fcn.0041aca0
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14