Function at 0x41255a
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 [0x4ff5d0]
xor eax, ebp
mov dword [ebp + 0x20c], eax
push 0x4c
mov eax, 0x4bc8bc
call fcn.004943c6
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 0x412753
cmp dword [ebp + 0x228], 1
mov dword [ebp - 0x10], 0x20006
jne 0x4125c2
mov dword [ebp - 0x10], 0x20106
jmp 0x4125d2
cmp dword [ebp + 0x228], 2
jne 0x4125d2
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 0x41260a
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 0x41274b
push esi
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x18], ebx
call fcn.00472280
xor edi, edi
cmp dword [ebp + 0x22c], 1
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
jne 0x41264a
push ebx
lea ecx, [ebp - 0x38]
call fcn.00472db0
mov ecx, esi
mov edi, eax
call fcn.004720a0
mov dword [ebp - 0x10], eax
jmp 0x412711
cmp dword [ebp + 0x22c], 4
jne 0x412674
cmp byte [esi + 7], 0xff
jne 0x41265b
mov esi, dword [esi]
push esi
call fcn.004963f5
pop ecx
mov dword [ebp - 0x18], eax
lea edi, [ebp - 0x18]
mov dword [ebp - 0x10], 4
jmp 0x412711
mov eax, str.LogDebug
cmp eax, str.NULL
je 0x412711
cmp eax, str.__noop
je 0x412711
push str.INTERNAL_ERROR:
lea ecx, [ebp - 0x48]
call fcn.00472340
push str.SetRegistryValue___unsupported_type
push eax
lea eax, [ebp - 0x40]
push eax
mov byte [ebp - 4], 1
call fcn.00472c20
push 0x4d1e68
push eax
lea eax, [ebp - 0x50]
push eax
mov byte [ebp - 4], 2
call fcn.00472c20
push 0x4d1a1a
push eax
lea eax, [ebp - 0x58]
push eax
mov byte [ebp - 4], 3
call fcn.00472c20
push eax
mov byte [ebp - 4], 4
call fcn.00411af0
add esp, 0x28
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.00472320
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
call fcn.00472320
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00472320
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], bl
call fcn.00472320
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 0x412733
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.00472320
mov eax, dword [ebp - 0x28]
jmp 0x412821
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 0x412782
xor eax, eax
jmp 0x412821
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x41279b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
jne 0x41277b
push dword [ebp - 0x18]
lea eax, [ebp + 4]
push eax
mov dword [ebp], edi
call fcn.00494820
cmp byte [esi + 7], 0xff
pop ecx
pop ecx
jne 0x4127b4
mov esi, dword [esi]
lea eax, [ebp + 0x108]
push esi
push eax
call fcn.00494820
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 0x412819
cmp dword [ebp - 0x24], ebx
jbe 0x412819
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.00493f43
add ebp, 0x210
leave
ret