Function at 0x405aa0
Capabilities:
Listen for remote procedure calls

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea ebx, [ebp - 0x32]
sub esp, 0x6c
mov dword [ebp - 0x44], 0x63006e
test bl, 2
mov dword [ebp - 0x40], 0x630061
mov dword [ebp - 0x3c], 0x5f006e
mov dword [ebp - 0x38], 0x70006e
mov word [ebp - 0x34], 0
jne 0x405cd8
mov edx, ebx
mov ecx, section..data
mov esi, 0x1a
mov dword [ebp - 0x4c], esi
mov edi, esi
xor eax, eax
and edi, 0xfffffffc
mov esi, dword [ecx + eax]
mov dword [edx + eax], esi
add eax, 4
cmp eax, edi
jb 0x405aed
mov esi, dword [ebp - 0x4c]
add edx, eax
add ecx, eax
and esi, 2
jne 0x405bc0
call dword [sym.imp.kernel32.dll_CreateThreadpoolCleanupGroup]
mov dword [section..bss], eax
test eax, eax
je 0x405bd0
mov dword [esp + 8], ebx
xor eax, eax
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 4], eax
lea eax, [ebp - 0x44]
mov dword [esp], eax
call sub.rpcrt4.dll_RpcServerUseProtseqEpW
sub esp, 0x10
test eax, eax
mov ebx, eax
je 0x405b60
test byte [0x41901c], 2
jne 0x405c60
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x4191a8]
xor ecx, ecx
xor ebx, ebx
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
mov dword [esp], eax
call sub.rpcrt4.dll_RpcServerRegisterIf
sub esp, 0xc
test eax, eax
mov ebx, eax
je 0x405bf0
test byte [0x41901c], 2
je 0x405b4e
mov dword [esp + 0x10], eax
mov eax, str.RpcServerRegisterIf_failed_with_error__u_n
mov edx, 0x41901c
mov dword [esp + 0xc], eax
mov eax, str.RPC_Init
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp], 1
call fcn.00401740
jmp 0x405b4e
movzx eax, word [ecx]
mov word [edx], ax
jmp 0x405b0a
test byte [0x41901c], 2
jne 0x405c98
mov eax, dword fs:[0x18]
mov ebx, dword [eax + 0x34]
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 1
mov eax, 1
mov dword [esp + 8], eax
mov eax, 0x4d2
mov dword [esp + 4], eax
call sub.rpcrt4.dll_RpcServerListen
sub esp, 0xc
test eax, eax
mov ebx, eax
je 0x405cf8
test byte [0x41901c], 2
je 0x405b4e
mov dword [esp + 0x10], eax
mov esi, str.RpcServerListen_failed_with_error__u_n
mov edi, str.RPC_Init
mov dword [esp + 0xc], esi
mov eax, 0x41901c
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], 1
call fcn.00401740
jmp 0x405b4e
mov dword [esp + 0x10], eax
mov esi, str.RpcServerUseProtseq_failed_with_error__u_n
mov edi, str.RPC_Init
mov dword [esp + 0xc], esi
mov eax, 0x41901c
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], 1
call fcn.00401740
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov edx, 0x41901c
mov dword [esp + 4], edx
mov dword [esp], 1
mov dword [esp + 0x10], eax
mov eax, 0x41a4a0
mov dword [esp + 0xc], eax
mov eax, str.RPC_Init
mov dword [esp + 8], eax
call fcn.00401740
jmp 0x405bdd
movzx eax, word [section..data]
lea edx, [ebp - 0x30]
mov ecx, 0x419002
mov esi, 0x18
mov word [ebp - 0x32], ax
jmp 0x405ae3
mov eax, 4
mov edx, 0x420160
mov dword [esp + 0xc], eax
mov ecx, 0x3e8
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], 0xffffffff
call dword [sym.imp.ntdll.dll_NtSetInformationProcess]
sub esp, 0x10
jmp 0x405b4e