Function at 0x408800
Capabilities:
Listen for remote procedure calls

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov edi, dword [sym.imp.RPCRT4.dll_RpcServerUseProtseqW]
xor ebx, ebx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebp
xor esi, esi
jmp 0x408820
mov eax, dword [esi + 0x416144]
push ebp
push 0xa
push eax
call edi
test eax, eax
jne 0x408835
mov ebx, 1
add esi, 4
cmp esi, 8
jb 0x408820
cmp ebx, ebp
jne 0x40885e
push str.AcPrfMgrSvc::AcPrfMgrSvcStart_:RpcServerUseProtseq___failed
call dword [sym.imp.ACHelper.dll_public:_static_class_AcLogInfo____cdecl_AcLogInfo::GetLogInfoInstance_void_]
push eax
call dword [sym.imp.ACHelper.dll_public:_void___cdecl_AcLogInfo::ErrorPrintLogFile_unsigned_short_int__]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov ecx, dword [0x416138]
push ebp
push ebp
push ecx
call dword [sym.imp.RPCRT4.dll_RpcServerRegisterIf]
test eax, eax
jne 0x40899c
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.RPCRT4.dll_RpcServerInqBindings]
test eax, eax
jne 0x40899c
mov eax, dword [esp + 0x10]
mov ecx, dword [0x416138]
push ebp
push ebp
push eax
push ecx
call dword [sym.imp.RPCRT4.dll_RpcEpRegisterW]
test eax, eax
jne 0x40899c
push ebp
push ebp
push 0xa
push ebp
call dword [sym.imp.RPCRT4.dll_RpcServerRegisterAuthInfoW]
test eax, eax
jne 0x40899c
push 1
push 0x4d2
push 3
call dword [sym.imp.RPCRT4.dll_RpcServerListen]
test eax, eax
jne 0x40899c
call fcn.00402df0
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
lea edx, [esp + 0x14]
push edx
push ebp
push ebp
push 0x4087c0
push ebp
push ebp
call ebx
mov edi, dword [sym.imp.ACHelper.dll_public:_static_class_AcLogInfo____cdecl_AcLogInfo::GetLogInfoInstance_void_]
mov esi, eax
cmp esi, ebp
mov ebp, dword [sym.imp.ACHelper.dll_public:_void___cdecl_AcLogInfo::NormalPrintLogFile_unsigned_short_int__]
jne 0x40890e
push str.AcPrfMgrSvc::service_main:_Failed__to_create_SilentImportThread
call edi
push eax
call dword [sym.imp.ACHelper.dll_public:_void___cdecl_AcLogInfo::ErrorPrintLogFile_unsigned_short_int__]
add esp, 8
jmp 0x408927
mov eax, dword [esp + 0x14]
push eax
push str.AcPrfMgrSvc::service_main:_Started_SilentImportThread._ThreadId_d
call edi
push eax
call ebp
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 0x4073e0
push 0
push 0
mov dword [0x416990], eax
call ebx
test eax, eax
jne 0x408965
push str.AcPrfMgrSvc::service_main:_Failed__to_create_ProcessGPNotificationThread
call edi
push eax
call dword [sym.imp.ACHelper.dll_public:_void___cdecl_AcLogInfo::ErrorPrintLogFile_unsigned_short_int__]
add esp, 8
jmp 0x408977
mov edx, dword [esp + 0x18]
push edx
push str.AcPrfMgrSvc::service_main:_Started_ProcessGPNotificationThread._ThreadId_d
call edi
push eax
call ebp
add esp, 0xc
call dword [sym.imp.RPCRT4.dll_RpcMgmtWaitServerListen]
mov eax, dword [esp + 0x10]
mov ecx, dword [0x416138]
push 0
push eax
push ecx
call dword [sym.imp.RPCRT4.dll_RpcEpUnregister]
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.RPCRT4.dll_RpcBindingVectorFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret