Function at 0x404f4a
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 [0x4c1c50]
xor eax, ebp
mov dword [ebp + 0x20c], eax
push 0x4c
mov eax, 0x49359c
call fcn.00470906
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 0x405143
cmp dword [ebp + 0x228], 1
mov dword [ebp - 0x10], 0x20006
jne 0x404fb2
mov dword [ebp - 0x10], 0x20106
jmp 0x404fc2
cmp dword [ebp + 0x228], 2
jne 0x404fc2
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 0x404ffa
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 0x40513b
push esi
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x18], ebx
call fcn.0044e1c0
xor edi, edi
cmp dword [ebp + 0x22c], 1
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
jne 0x40503a
push ebx
lea ecx, [ebp - 0x38]
call fcn.0044ec10
mov ecx, esi
mov edi, eax
call fcn.0044e020
mov dword [ebp - 0x10], eax
jmp 0x405101
cmp dword [ebp + 0x22c], 4
jne 0x405064
cmp byte [esi + 7], 0xff
jne 0x40504b
mov esi, dword [esi]
push esi
call fcn.004727e5
pop ecx
mov dword [ebp - 0x18], eax
lea edi, [ebp - 0x18]
mov dword [ebp - 0x10], 4
jmp 0x405101
mov eax, str.LogDebug
cmp eax, str.NULL
je 0x405101
cmp eax, str.__noop
je 0x405101
push str.INTERNAL_ERROR:
lea ecx, [ebp - 0x48]
call fcn.0044e280
push str.SetRegistryValue___unsupported_type
push eax
lea eax, [ebp - 0x40]
push eax
mov byte [ebp - 4], 1
call fcn.0044eb40
push 0x4a0c2c
push eax
lea eax, [ebp - 0x50]
push eax
mov byte [ebp - 4], 2
call fcn.0044eb40
push 0x4a099a
push eax
lea eax, [ebp - 0x58]
push eax
mov byte [ebp - 4], 3
call fcn.0044eb40
push eax
mov byte [ebp - 4], 4
call fcn.00404620
add esp, 0x28
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.0044e260
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
call fcn.0044e260
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.0044e260
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], bl
call fcn.0044e260
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 0x405123
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.0044e260
mov eax, dword [ebp - 0x28]
jmp 0x405211
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 0x405172
xor eax, eax
jmp 0x405211
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x40518b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
jne 0x40516b
push dword [ebp - 0x18]
lea eax, [ebp + 4]
push eax
mov dword [ebp], edi
call fcn.00470ce0
cmp byte [esi + 7], 0xff
pop ecx
pop ecx
jne 0x4051a4
mov esi, dword [esi]
lea eax, [ebp + 0x108]
push esi
push eax
call fcn.00470ce0
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 0x405209
cmp dword [ebp - 0x24], ebx
jbe 0x405209
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.00470483
add ebp, 0x210
leave
ret