Function at 0x403c10
Capabilities:
Listen for remote procedure calls

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x34
test byte [0x40807c], 8
jne 0x403e60
mov eax, dword [0x40802c]
mov esi, dword [0x4081cc]
mov dword [ebp - 0x24], eax
mov eax, dword [0x408050]
mov dword [ebp - 0x20], eax
mov eax, esi
xor ebx, ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.rpcrt4.dll_RpcServerRegisterIf]
sub esp, 0xc
mov edi, eax
test eax, eax
jne 0x403e18
inc ebx
cmp ebx, 3
je 0x403c78
mov eax, dword [ebp + ebx*4 - 0x28]
jmp 0x403c40
mov ecx, str.ncacn_np
mov eax, str.pipeepmapper
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0xa
mov dword [esp], ecx
call dword [sym.imp.rpcrt4.dll_RpcServerUseProtseqEpW]
sub esp, 0x10
test eax, eax
jne 0x403de0
inc edi
cmp edi, 4
je 0x403cc0
mov eax, dword [edi*8 + 0x409ba4]
mov ecx, dword [edi*8 + 0x409ba0]
jmp 0x403c82
mov dword [esp + 8], 1
mov dword [esp + 4], 0x4d2
mov dword [esp], 1
call dword [sym.imp.rpcrt4.dll_RpcServerListen]
sub esp, 0xc
mov edi, eax
test eax, eax
jne 0x403de2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateEventW]
sub esp, 0x10
mov dword [0x4081d0], eax
mov dword [esp + 8], 0
mov dword [esp + 4], sym._service_handler_16
mov dword [esp], 0x4082ec
call dword [sym.imp.advapi32.dll_RegisterServiceCtrlHandlerExW]
mov dword [0x4082f8], eax
sub esp, 0xc
test eax, eax
je 0x403dcf
lea esi, [ebp - 0x28]
mov ebx, dword [sym.imp.advapi32.dll_SetServiceStatus]
mov dword [ebp - 0x28], 0x30
mov dword [ebp - 0x24], 4
mov dword [ebp - 0x20], 5
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0x2710
mov dword [esp + 4], esi
mov dword [esp], eax
call ebx
mov eax, dword [0x4081d0]
sub esp, 8
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [0x4082f8]
mov dword [ebp - 0x24], 1
sub esp, 8
mov dword [ebp - 0x20], 0
mov dword [esp + 4], esi
mov dword [esp], eax
call ebx
sub esp, 8
test byte [0x40807c], 8
jne 0x403ed0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8
mov edi, eax
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], esi
call dword [sym.imp.rpcrt4.dll_RpcServerUnregisterIf]
mov ecx, dword [ebp - 0x2c]
sub esp, 0xc
inc ecx
cmp ecx, ebx
jge 0x403e1c
mov esi, dword [ebp + ecx*4 - 0x28]
jmp 0x403de4
test ebx, ebx
jne 0x403de2
test byte [0x40807c], 4
je 0x403dcf
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str.Failed_to_initialize_rpc_interfaces__status__ld._n
mov dword [esp + 8], str.ServiceMain
mov dword [esp + 4], 0x40807c
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_2
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8
mov dword [esp + 0xc], str.starting_service_n
mov dword [esp + 8], str.ServiceMain
mov dword [esp + 4], 0x40807c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
mov eax, dword [0x40802c]
mov esi, dword [0x4081cc]
mov dword [ebp - 0x24], eax
mov eax, dword [0x408050]
mov dword [ebp - 0x20], eax
test byte [0x40807c], 8
je 0x403c3c
mov dword [esp + 0xc], 0x40920a
mov dword [esp + 8], str.RPCSS_Initialize
mov dword [esp + 4], 0x40807c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x403c3c
mov dword [esp + 0xc], str.service_stopped_n
mov dword [esp + 8], str.ServiceMain
mov dword [esp + 4], 0x40807c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8