Function at 0x4030ba
Capabilities:
Listen for remote procedure calls

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x48
test byte [0x4091a0], 8
jne 0x4032e0
mov eax, dword [0x4091e0]
mov dword [ebp - 0x34], eax
mov eax, dword [0x409220]
mov dword [ebp - 0x30], eax
mov eax, dword [0x409254]
mov dword [ebp - 0x2c], eax
xor esi, esi
xor eax, eax
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ebp + esi*4 - 0x34]
mov dword [esp], eax
call sym._RpcServerRegisterIf_12
sub esp, 0xc
test eax, eax
mov ebx, eax
jne 0x403360
inc esi
cmp esi, 3
jne 0x4030eb
xor eax, eax
mov dword [esp + 0xc], eax
mov eax, dword [ebx*8 + 0x40a3a4]
mov dword [esp + 8], eax
mov eax, 0xa
mov dword [esp + 4], eax
mov eax, dword [ebx*8 + 0x40a3a0]
mov dword [esp], eax
call sym._RpcServerUseProtseqEpW_16
sub esp, 0x10
test eax, eax
jne 0x403270
inc ebx
cmp ebx, 4
jne 0x403116
mov dword [esp], 1
mov eax, 0x4d2
mov edi, 1
mov dword [esp + 8], edi
mov dword [esp + 4], eax
call sym._RpcServerListen_12
sub esp, 0xc
test eax, eax
mov ebx, eax
jne 0x403272
mov dword [esp], 0
xor eax, eax
mov edx, 1
mov dword [esp + 0xc], eax
xor eax, eax
mov ebx, sym._service_handler_16
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call dword [sym.imp.kernel32.dll_CreateEventW]
xor ecx, ecx
mov dword [0x40d00c], eax
sub esp, 0x10
mov dword [esp + 8], ecx
mov dword [esp + 4], ebx
mov dword [esp], str.RpcSs
call sym._RegisterServiceCtrlHandlerExW_12
mov dword [0x40d008], eax
sub esp, 0xc
test eax, eax
je 0x40325f
mov dword [esp], eax
lea edx, [ebp - 0x34]
mov ebx, 0xffffffff
mov dword [esp + 4], edx
mov dword [ebp - 0x34], 0x30
mov dword [ebp - 0x30], 4
mov dword [ebp - 0x2c], 5
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0x2710
call sym._SetServiceStatus_8
mov eax, dword [0x40d00c]
sub esp, 8
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
lea eax, [ebp - 0x34]
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], 0
sub esp, 8
mov dword [esp + 4], eax
mov eax, dword [0x40d008]
mov dword [esp], eax
call sym._SetServiceStatus_8
sub esp, 8
test byte [0x4091a0], 8
jne 0x403380
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 8
mov ebx, eax
xor edi, edi
xor eax, eax
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ebp + edi*4 - 0x34]
inc edi
mov dword [esp], eax
call sym._RpcServerUnregisterIf_12
sub esp, 0xc
cmp edi, esi
jl 0x403274
test byte [0x4091a0], 4
je 0x40325f
mov esi, str.Failed_to_initialize_rpc_interfaces__status__ld._n
mov edi, str.ServiceMain
mov dword [esp + 0x10], ebx
mov eax, 0x4091a0
mov dword [esp + 0xc], esi
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_2
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 8
mov eax, 0x4091a0
mov esi, str.starting_service_n
mov dword [esp + 0xc], esi
mov edi, str.ServiceMain
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
mov eax, dword [0x4091e0]
test byte [0x4091a0], 8
mov dword [ebp - 0x34], eax
mov eax, dword [0x409220]
mov dword [ebp - 0x30], eax
mov eax, dword [0x409254]
mov dword [ebp - 0x2c], eax
je 0x4030e9
mov edx, 0x40a332
mov ecx, str.RPCSS_Initialize
mov dword [esp + 0xc], edx
mov ebx, 0x4091a0
mov dword [esp + 8], ecx
mov dword [esp + 4], ebx
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x4030e9
test esi, esi
jne 0x403272
test byte [0x4091a0], 4
je 0x40325f
jmp 0x40329d
mov ecx, 0x4091a0
mov eax, str.service_stopped_n
mov dword [esp + 4], ecx
mov edx, str.ServiceMain
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 8