Function at 0x4a5b20
Capabilities:
Access peb ldr_data
Create thread
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x580752
mov eax, dword fs:[0]
push eax
sub esp, 0x51c
mov eax, dword [0x62d414]
xor eax, esp
mov dword [esp + 0x518], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x62d414]
xor eax, esp
push eax
lea eax, [esp + 0x530]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esi + 0x3c]
mov dword [esp + 0x28], 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
call fcn.00460700
xor ebx, ebx
mov dword [esp + 0x538], ebx
lea ecx, [esi + 0x58]
call fcn.004669b0
mov byte [esp + 0x538], 1
lea ecx, [esi + 0x70]
call fcn.004669b0
mov byte [esp + 0x538], 2
mov eax, dword [esp + 0x540]
lea ecx, [esi + 0x94]
mov dword [esi + 0x8c], 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_void_]
mov byte [esp + 0x538], 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__::constructor_void_]
mov byte [esp + 0x538], 4
lea edi, [esi + 0xcc]
mov ecx, edi
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_void_]
mov byte [esp + 0x538], 5
lea ebp, [esi + 0xe8]
mov ecx, ebp
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_void_]
mov byte [esp + 0x538], 6
lea ecx, [esi + 0x118]
call fcn.0049cd70
mov byte [esp + 0x538], 7
lea ecx, [esi + 0x148]
call fcn.004b2ea0
mov byte [esp + 0x538], 8
lea ecx, [esi + 0x174]
call fcn.0049cd70
mov byte [esp + 0x538], 9
lea ecx, [esi + 0x198]
call fcn.0049cd70
mov byte [esp + 0x538], 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__::constructor_void_]
mov byte [esp + 0x538], 0xb
mov eax, dword [esi + 0x8c]
cmp eax, ebx
jne 0x4a5cca
mov eax, dword [0x63dd80]
push str..OPCServer.cpp
push 0x5b
push str.COOPCServer::COOPCServer
mov ecx, eax
call fcn.0041ac10
inc dword [0x63dd88]
push 0x3c
mov dword [esi + 0x88], ebx
mov dword [esi + 0x90], 0x800
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x18], eax
mov byte [esp + 0x538], 0xc
cmp eax, ebx
je 0x4a5d17
push esi
mov ecx, eax
call fcn.004bc550
jmp 0x4a5d19
xor eax, eax
mov byte [esp + 0x538], 0xb
push 0x3c
mov dword [esi + 0x108], eax
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x18], eax
mov byte [esp + 0x538], 0xd
cmp eax, ebx
je 0x4a5d4b
push esi
mov ecx, eax
call fcn.004be210
jmp 0x4a5d4d
xor eax, eax
mov byte [esp + 0x538], 0xb
lea ecx, [esi + 0x13c]
push ecx
mov dword [esi + 0x194], eax
mov dword [esi + 0x144], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
lea edx, [esi + 0x16c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push 0x11c
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x18], eax
mov byte [esp + 0x538], 0xe
cmp eax, ebx
je 0x4a5da4
push 1
push esi
mov ecx, eax
call fcn.004bf5b0
jmp 0x4a5da6
xor eax, eax
mov byte [esp + 0x538], 0xb
mov dword [esi + 0x168], eax
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
push str.85D83A0C_EC8C_4DD0_AAE6_1DA1558FEDD8
lea ecx, [esi + 0x1c0]
mov dword [esi + 0x110], ebx
mov dword [esi + 0x10c], ebx
mov byte [esi + 0x138], bl
mov dword [esi + 0x1dc], 1
mov dword [esi + 0x1e8], ebx
mov byte [esi + 0x1bc], bl
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
push 0x5d1aa8
mov ecx, edi
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
push 0x5d1aa8
mov ecx, ebp
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
push ebx
push ebx
push 1
push ebx
mov byte [esi + 0x104], bl
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x114], eax
cmp eax, ebx
jne 0x4a5e57
mov edi, dword [esi + 0x8c]
cmp edi, ebx
jne 0x4a5e3a
mov edi, dword [0x63dd80]
mov ebp, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp]
push str.Error__d_occurred_creating_shutdown_event_for_group_scan_thread.
push str.COOPCServer::COOPCServer
push 9
push edi
call eax
jmp 0x4a5ea7
lea ecx, [esp + 0x14]
push ecx
push ebx
push esi
push 0x4a5a20
push ebx
push ebx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.MSVCR90.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0x110], eax
cmp eax, ebx
jne 0x4a5eaa
mov edi, dword [esi + 0x8c]
cmp edi, ebx
jne 0x4a5e8c
mov edi, dword [0x63dd80]
mov ebp, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp]
push eax
push str.Error__d_occurred_creating_group_scan_thread.
push str.COOPCServer::COOPCServer
push 9
push edi
call edx
add esp, 0x14
call dword [sym.imp.ole32.dll_CoImpersonateClient]
cmp eax, ebx
jl 0x4a6072
lea eax, [esp + 0x14]
push eax
push ebx
push 8
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
je 0x4a6066
mov dword [esp + 0x24], ebx
call dword [sym.imp.ole32.dll_CoRevertToSelf]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x24]
push ecx
push 0x80
lea edx, [esp + 0xa4]
push edx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x4a6053
mov eax, 0x104
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x32c]
push eax
mov eax, dword [esp + 0xa8]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x12c]
push edx
push eax
push ebx
mov dword [esp + 0x3c], 7
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
test eax, eax
je 0x4a6053
lea ecx, [esp + 0x80]
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_void_]
mov byte [esp + 0x538], 0x10
lea ecx, [esp + 0x64]
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_void_]
mov byte [esp + 0x538], 0x11
lea ecx, [esp + 0x11c]
push ecx
lea ecx, [esp + 0x84]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
lea edx, [esp + 0x324]
push edx
lea ecx, [esp + 0x68]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
push 0x5d69f8
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.MSVCP90.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_std::operator_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___wchar_t_const__]
mov byte [esp + 0x544], 0x12
lea edx, [esp + 0x8c]
push edx
push eax
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.MSVCP90.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_std::operator_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
add esp, 0x18
mov byte [esp + 0x538], 0x13
lea edi, [esi + 0x94]
push eax
mov ecx, edi
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov byte [esp + 0x538], 0x12
lea ecx, [esp + 0x48]
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 [esp + 0x538], 0x11
lea ecx, [esp + 0x2c]
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_]
push edi
lea ecx, [esi + 0xb0]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov byte [esp + 0x538], 0x10
lea ecx, [esp + 0x64]
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 [esp + 0x538], 0xb
lea ecx, [esp + 0x80]
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, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4a6072
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4a6072
call dword [sym.imp.KERNEL32.dll_GetLastError]
call dword [sym.imp.ole32.dll_CoRevertToSelf]
mov ecx, dword [esi + 0x8c]
mov dword [esi + 0x1e0], 0x1f
mov byte [esi + 0x1e4], bl
cmp ecx, ebx
jne 0x4a6092
mov ecx, dword [0x63dd80]
push ebx
push 0x5d1d25
push str..OPCServer.cpp
push 0xe7
push str.COOPCServer::COOPCServer
call fcn.0041aca0
mov dword [esp + 0x538], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x530]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x518]
xor ecx, esp
call fcn.0051ed00
add esp, 0x528
ret 4