Function at 0x413770
Capabilities:
Listen for remote procedure calls

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x44f00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x40
lea eax, [ebp - 0x48]
mov byte [0x452048], 0
push 0
push eax
mov dword [ebp - 0x50], 0
mov word [ebp - 0x4c], 0x100
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x58], 0
call fcn.0041c3d0
add esp, 0xc
mov dword [ebp - 0x8c], 0
lea eax, [ebp - 0x54]
mov dword [ebp - 0x70], 0
xorps xmm0, xmm0
movaps xmmword [ebp - 0x80], xmm0
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x90]
push eax
push str.Creative.audioSettings_13fcda18mhdz2
call dword [sym.imp.api_ms_win_security_base_l1_2_2.dll_DeriveCapabilitySidsFromName]
test eax, eax
jne 0x413832
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x4139dc
cmp dword [ebp - 0x54], 1
je 0x413842
mov esi, 0x57
jmp 0x4139dc
lea eax, [ebp - 0x88]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 1
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x413876
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x4139dc
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x44], 2
mov dword [ebp - 0x48], 0x10000000
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 5
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x28], 0x10000000
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x8c]
push eax
push 0
lea eax, [ebp - 0x48]
push eax
push 2
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
mov esi, eax
mov dword [ebp - 0x94], esi
test esi, esi
jne 0x4139e2
push 1
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x413912
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x4139dc
push 0
push dword [ebp - 0x8c]
lea eax, [ebp - 0x80]
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
jne 0x413937
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x4139dc
lea eax, [ebp - 0x80]
push eax
push str.HsaSampleRpcEndpoint
push 0xa
push str.ncalrpc
call dword [sym.imp.RPCRT4.dll_RpcServerUseProtseqEpW]
mov esi, eax
mov dword [ebp - 0x94], esi
test esi, esi
jne 0x4139e2
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push 0x4d2
push 0x21
push esi
push esi
push 0x4433f8
call dword [sym.imp.RPCRT4.dll_RpcServerRegisterIf3]
mov esi, eax
mov dword [ebp - 0x94], esi
test esi, esi
jne 0x4139e2
push 0x452050
call dword [sym.imp.RPCRT4.dll_RpcServerInqBindings]
mov esi, eax
mov dword [ebp - 0x94], esi
test esi, esi
jne 0x4139e2
push eax
push eax
push dword [0x452050]
push 0x4433f8
call dword [sym.imp.RPCRT4.dll_RpcEpRegisterW]
mov esi, eax
mov dword [ebp - 0x94], esi
test esi, esi
jne 0x4139e2
push eax
push eax
call dword [sym.imp.ole32.dll_CoInitializeEx]
push esi
push 0x4d2
push 1
call dword [sym.imp.RPCRT4.dll_RpcServerListen]
mov esi, eax
xor eax, eax
cmp esi, 0x6b1
cmove esi, eax
mov dword [ebp - 0x94], esi
mov ecx, dword [ebp - 0x90]
mov edx, dword [ebp - 0x58]
mov eax, dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x9c], edx
mov dword [ebp - 0x98], ecx
test ecx, ecx
je 0x413a36
xor edi, edi
test edx, edx
je 0x413a2e
mov esi, ecx
push dword [esi + edi*4]
call eax
mov eax, dword [sym.imp.KERNEL32.dll_LocalFree]
invalid
invalid