Function at 0x412ffa
Capabilities:
Connect pipe
Create pipe
Read file on windows
Read pipe
Set registry value
Write file on windows
Write pipe

Disassembly:
push ebp
sub esp, 0x20c
lea ebp, [esp - 4]
mov eax, dword [0x4fc5b0]
xor eax, ebp
mov dword [ebp + 0x20c], eax
push 0x4c
mov eax, 0x4bad9c
call fcn.00492516
test byte [ebp + 0x228], 4
mov eax, dword [ebp + 0x21c]
mov ecx, dword [ebp + 0x220]
mov edi, dword [ebp + 0x218]
mov esi, dword [ebp + 0x224]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
jne 0x4131f3
cmp dword [ebp + 0x228], 1
mov dword [ebp - 0x10], 0x20006
jne 0x413062
mov dword [ebp - 0x10], 0x20106
jmp 0x413072
cmp dword [ebp + 0x228], 2
jne 0x413072
mov dword [ebp - 0x10], 0x20206
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp - 0x10]
xor ebx, ebx
push ebx
push eax
push edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4130aa
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [ebp - 0x10]
mov dword [ebp - 0x30], ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x18]
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp dword [ebp - 0x14], ebx
je 0x4131eb
push esi
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x18], ebx
call fcn.004705c0
xor edi, edi
cmp dword [ebp + 0x22c], 1
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
jne 0x4130ea
push ebx
lea ecx, [ebp - 0x38]
call fcn.004710f0
mov ecx, esi
mov edi, eax
call fcn.004703e0
mov dword [ebp - 0x10], eax
jmp 0x4131b1
cmp dword [ebp + 0x22c], 4
jne 0x413114
cmp byte [esi + 7], 0xff
jne 0x4130fb
mov esi, dword [esi]
push esi
call fcn.004944a5
pop ecx
mov dword [ebp - 0x18], eax
lea edi, [ebp - 0x18]
mov dword [ebp - 0x10], 4
jmp 0x4131b1
mov eax, str.LogDebug
cmp eax, str.NULL
je 0x4131b1
cmp eax, str.__noop
je 0x4131b1
push str.INTERNAL_ERROR:
lea ecx, [ebp - 0x48]
call fcn.00470680
push str.SetRegistryValue___unsupported_type
push eax
lea eax, [ebp - 0x40]
push eax
mov byte [ebp - 4], 1
call fcn.00470f60
push 0x4cfe44
push eax
lea eax, [ebp - 0x50]
push eax
mov byte [ebp - 4], 2
call fcn.00470f60
push 0x4cfa1a
push eax
lea eax, [ebp - 0x58]
push eax
mov byte [ebp - 4], 3
call fcn.00470f60
push eax
mov byte [ebp - 4], 4
call fcn.004126e0
add esp, 0x28
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.00470660
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
call fcn.00470660
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00470660
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], bl
call fcn.00470660
push dword [ebp - 0x10]
push edi
push dword [ebp + 0x22c]
push ebx
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4131d3
mov dword [ebp - 0x28], 1
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x14], ebx
call fcn.00470660
mov eax, dword [ebp - 0x28]
jmp 0x4132c1
xor ebx, ebx
push ebx
push 0x64
mov eax, 0x104
push eax
push eax
push 0xff
push 6
push 3
push str..pipe_realnetworks.registry.pipe
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
jne 0x413222
xor eax, eax
jmp 0x4132c1
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x41323b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
jne 0x41321b
push dword [ebp - 0x18]
lea eax, [ebp + 4]
push eax
mov dword [ebp], edi
call fcn.00492970
cmp byte [esi + 7], 0xff
pop ecx
pop ecx
jne 0x413254
mov esi, dword [esi]
lea eax, [ebp + 0x108]
push esi
push eax
call fcn.00492970
mov esi, dword [ebp - 0x1c]
pop ecx
pop ecx
push ebx
lea eax, [ebp - 0x2c]
push eax
push 0x20c
lea eax, [ebp]
push eax
push esi
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
push ebx
lea eax, [ebp - 0x24]
push eax
push 4
lea eax, [ebp - 0x20]
push eax
push esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x4132b9
cmp dword [ebp - 0x24], ebx
jbe 0x4132b9
push ebx
lea eax, [ebp - 0x24]
push eax
push 4
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp - 0x20], ebx
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x20c]
xor ecx, ebp
call fcn.00492093
add ebp, 0x210
leave
ret