Function at 0x4a5200
Capabilities:
Access peb ldr_data
Get ntdll base address
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5805e6
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x62d414]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x44], esi
mov dword [esi], vtable.COOPCServer.14.0
mov dword [esi + 4], vtable.COOPCServer.13.0
mov dword [esi + 8], vtable.COOPCServer.12.0
mov dword [esi + 0xc], vtable.COOPCServer.11.0
mov dword [esi + 0x10], vtable.COOPCServer.10.0
mov dword [esi + 0x14], vtable.COOPCServer.9.0
mov dword [esi + 0x18], vtable.COOPCServer.8.0
mov dword [esi + 0x1c], vtable.COOPCServer.7.0
mov dword [esi + 0x20], vtable.COOPCServer.6.0
mov dword [esi + 0x24], vtable.COOPCServer.5.0
mov dword [esi + 0x28], vtable.COOPCServer.4.0
mov dword [esi + 0x2c], vtable.COOPCServer.3.0
mov dword [esi + 0x30], vtable.COOPCServer.2.0
mov dword [esi + 0x34], vtable.COOPCServer.1.0
mov dword [esi + 0x38], vtable.COOPCServer.0
mov dword [ebp - 4], 0xb
mov dword [ebp - 0x40], 0x59c650
mov eax, dword [esi + 0x8c]
xor edi, edi
cmp eax, edi
jne 0x4a52ba
mov eax, dword [0x63dd80]
push str..OPCServer.cpp
push 0xed
push 0x59c650
mov ecx, eax
call fcn.0041ac10
dec dword [0x63dd88]
mov eax, dword [esi + 0x168]
mov ecx, dword [eax]
push eax
mov edx, dword [ecx + 8]
call edx
mov dword [esi + 0x168], edi
push 0x44c5f0
call dword [sym.imp.MSVCR90.dll_void____cdecl___unsigned_int__struct__EXCEPTION_POINTERS_____cdecl__set_se_translator_void____cdecl___unsigned_int__struct__EXCEPTION_POINTERS___]
add esp, 4
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 0xc
lea ecx, [esi + 0x58]
call fcn.004669d0
mov dword [ebp - 0x38], edi
lea ebx, [esi + 0x118]
mov eax, dword [ebx + 0x18]
mov eax, dword [eax]
mov dword [ebp - 0x54], edi
mov ecx, dword [ebx]
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], eax
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], eax
mov eax, dword [ebx]
mov dword [ebp - 0x4c], eax
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x4c]
call fcn.004a2660
test al, al
je 0x4a536b
lea ecx, [ebp - 0x38]
call fcn.004ad2b0
mov edi, dword [eax]
mov edx, dword [edi]
push 1
mov ecx, edi
mov eax, dword [edx + 0x28]
call eax
mov edx, dword [edi]
mov ecx, edi
mov eax, dword [edx + 8]
call eax
lea ecx, [ebp - 0x38]
call fcn.004a2690
xor edi, edi
jmp 0x4a5323
mov ecx, ebx
call fcn.004a46a0
mov dword [ebp - 4], 0xb
xor eax, eax
cmp eax, edi
jne 0x4a5387
lea ecx, [esi + 0x58]
call fcn.004669e0
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.MSVCR90.dll_void____cdecl___unsigned_int__struct__EXCEPTION_POINTERS_____cdecl__set_se_translator_void____cdecl___unsigned_int__struct__EXCEPTION_POINTERS___]
add esp, 4
mov eax, dword [esi + 0x114]
cmp eax, edi
je 0x4a5472
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 0x110]
cmp eax, edi
je 0x4a540a
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4a53f9
mov eax, dword [esi + 0x8c]
cmp eax, edi
jne 0x4a53d5
mov eax, dword [0x63dd80]
mov edx, dword [eax]
push str.Timed_out_waiting_for_group_scan_thread_to_exit.
mov ecx, dword [ebp - 0x40]
push ecx
push 2
push eax
mov edx, dword [edx]
call edx
add esp, 0x10
push 0xffffffffffffffff
mov eax, dword [esi + 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x110]
push ecx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
jmp 0x4a5410
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esi + 0x114]
push edx
call ebx
mov eax, dword [esi + 0x10c]
cmp eax, edi
je 0x4a5472
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4a5469
mov eax, dword [esi + 0x8c]
cmp eax, edi
jne 0x4a5445
mov eax, dword [0x63dd80]
mov ecx, dword [eax]
push str.Timed_out_waiting_for_scan_thread_to_exit.
mov edx, dword [ebp - 0x40]
push edx
push 2
push eax
mov eax, dword [ecx]
call eax
add esp, 0x10
push 0xffffffffffffffff
mov ecx, dword [esi + 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esi + 0x10c]
push edx
call ebx
push esi
mov ecx, dword [0x680b30]
call fcn.0049c6d0
lea eax, [ebp - 0x30]
push eax
mov ecx, esi
call fcn.004a2530
mov byte [ebp - 4], 0xe
mov ecx, dword [0x680b30]
call fcn.00497920
mov ebx, eax
cmp ebx, edi
je 0x4a54cf
push edi
lea ecx, [ebp - 0x30]
push ecx
mov ecx, ebx
call fcn.00458720
mov edi, eax
mov edx, dword [ebx]
mov ecx, ebx
mov eax, dword [edx + 8]
call eax
test edi, edi
je 0x4a54cf
mov edx, dword [edi]
push esi
mov ecx, edi
mov eax, dword [edx + 0x180]
call eax
mov edx, dword [edi]
mov ecx, edi
mov eax, dword [edx + 8]
call eax
mov eax, dword [esi + 0x160]
mov ecx, dword [eax]
mov dword [ebp - 0x34], ecx
mov ebx, dword [esi + 0x148]
mov dword [ebp - 0x38], ebx
jmp 0x4a54f0
mov edi, dword [esi + 0x160]
mov eax, dword [esi + 0x148]
test ebx, ebx
je 0x4a5504
cmp ebx, eax
je 0x4a550a
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp dword [ebp - 0x34], edi
je 0x4a55d5
test ebx, ebx
jne 0x4a5586
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edx, dword [ebp - 0x34]
cmp edx, dword [ebx + 0x18]
jne 0x4a552b
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [ebp - 0x34]
mov edi, dword [eax + 0x28]
test edi, edi
je 0x4a55c5
mov ecx, edi
call fcn.004b9600
mov ecx, dword [edi]
push edi
mov edx, dword [ecx + 4]
call edx
mov eax, dword [edi]
push edi
mov ecx, dword [eax + 8]
call ecx
mov dword [ebp - 0x3c], eax
cmp eax, 1
je 0x4a55b5
test esi, esi
je 0x4a5566
mov ebx, dword [esi + 0x8c]
test ebx, ebx
jne 0x4a556c
mov ebx, dword [0x63dd80]
lea edx, [ebp - 0x74]
push edx
mov ecx, edi
call fcn.004b0640
mov byte [ebp - 4], 0xf
cmp dword [eax + 0x18], 8
jb 0x4a558a
mov eax, dword [eax + 4]
jmp 0x4a558d
mov ebx, dword [ebx]
jmp 0x4a551d
add eax, 4
mov ecx, dword [ebx]
push esi
mov edx, dword [ebp - 0x3c]
push edx
push eax
push str.WARNING:_OPC_Group___ls__still_in_use__has___d__references__including_this_servers___x__
mov eax, dword [ebp - 0x40]
push eax
push 2
push ebx
mov ecx, dword [ecx]
call ecx
add esp, 0x1c
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x74]
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.004bb440
push edi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
lea ecx, [ebp - 0x38]
call fcn.0049eb80
mov ebx, dword [ebp - 0x38]
jmp 0x4a54f0
lea edi, [esi + 0x198]
mov eax, dword [edi + 0x18]
mov edx, dword [eax]
mov dword [ebp - 0x34], edx
mov ebx, dword [edi]
mov dword [ebp - 0x38], ebx
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x50], eax
mov eax, dword [edi]
test ebx, ebx
je 0x4a55f8
cmp ebx, eax
je 0x4a55fe
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [ebp - 0x50]
cmp dword [ebp - 0x34], ecx
je 0x4a5640
test ebx, ebx
jne 0x4a563c
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edx, dword [ebp - 0x34]
cmp edx, dword [ebx + 0x18]
jne 0x4a561e
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x4a562f
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
lea ecx, [ebp - 0x38]
call fcn.004a2690
mov ebx, dword [ebp - 0x38]
jmp 0x4a55e8
mov ebx, dword [ebx]
jmp 0x4a5610
mov ebx, dword [esi + 0x108]
test ebx, ebx
je 0x4a565a
mov ecx, ebx
call fcn.004bc0a0
push ebx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ebx, dword [esi + 0x194]
test ebx, ebx
je 0x4a5674
mov ecx, ebx
call fcn.004bd370
push ebx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esi + 0x8c]
cmp ecx, dword [0x63dd80]
je 0x4a56ac
mov ebx, ecx
mov ecx, dword [0x680b30]
call fcn.00496340
cmp ebx, eax
je 0x4a56ac
test ebx, ebx
je 0x4a56ac
mov edx, dword [ebx]
push 1
mov ecx, ebx
mov eax, dword [edx + 4]
call eax
mov dword [esi + 0x8c], 0
mov ecx, dword [0x680b30]
test ecx, ecx
je 0x4a56bb
call fcn.00496db0
mov ecx, dword [esi + 0x8c]
test ecx, ecx
jne 0x4a56cb
mov ecx, dword [0x63dd80]
push 0
push 0x5d1d25
push str..OPCServer.cpp
push 0x171
mov edx, dword [ebp - 0x40]
push edx
call fcn.0041aca0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x30]
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 byte [ebp - 4], 0xa
lea ecx, [esi + 0x1c0]
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 al, 9
mov byte [ebp - 4], al
mov ecx, edi
mov dword [ebp - 0x3c], ecx
mov byte [ebp - 4], al
call fcn.0049c840
mov byte [ebp - 4], 8
lea ecx, [esi + 0x174]
mov dword [ebp - 0x3c], ecx
mov byte [ebp - 4], 8
call fcn.0049c840
mov al, 7
mov byte [ebp - 4], al
lea ecx, [esi + 0x148]
mov dword [ebp - 0x3c], ecx
mov byte [ebp - 4], al
call fcn.004b2cd0
mov al, 6
mov byte [ebp - 4], al
lea ecx, [esi + 0x118]
mov dword [ebp - 0x3c], ecx
mov byte [ebp - 4], al
call fcn.0049c840
mov byte [ebp - 4], 5
lea ecx, [esi + 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 byte [ebp - 4], 4
lea ecx, [esi + 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 byte [ebp - 4], 3
lea ecx, [esi + 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_]
mov byte [ebp - 4], 2
lea ecx, [esi + 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_]
mov byte [ebp - 4], 1
lea ecx, [esi + 0x70]
call fcn.004669c0
mov byte [ebp - 4], 0
lea ecx, [esi + 0x58]
call fcn.004669c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0x3c]
call fcn.00460750
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0051ed00
mov esp, ebp
pop ebp
ret