Function at 0x4124aa
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 [0x4f9590]
xor eax, ebp
mov dword [ebp + 0x20c], eax
push 0x4c
mov eax, 0x4bcdec
call fcn.00494508
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 0x4126a3
cmp dword [ebp + 0x228], 1
mov dword [ebp - 0x10], 0x20006
jne 0x412512
mov dword [ebp - 0x10], 0x20106
jmp 0x412522
cmp dword [ebp + 0x228], 2
jne 0x412522
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 0x41255a
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 0x41269b
push esi
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x18], ebx
call fcn.004726a0
xor edi, edi
cmp dword [ebp + 0x22c], 1
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
jne 0x41259a
push ebx
lea ecx, [ebp - 0x38]
call fcn.004731d0
mov ecx, esi
mov edi, eax
call fcn.004724c0
mov dword [ebp - 0x10], eax
jmp 0x412661
cmp dword [ebp + 0x22c], 4
jne 0x4125c4
cmp byte [esi + 7], 0xff
jne 0x4125ab
mov esi, dword [esi]
push esi
call fcn.004964a5
pop ecx
mov dword [ebp - 0x18], eax
lea edi, [ebp - 0x18]
mov dword [ebp - 0x10], 4
jmp 0x412661
mov eax, str.LogDebug
cmp eax, str.NULL
je 0x412661
cmp eax, str.__noop
je 0x412661
push str.INTERNAL_ERROR:
lea ecx, [ebp - 0x48]
call fcn.00472760
push str.SetRegistryValue___unsupported_type
push eax
lea eax, [ebp - 0x40]
push eax
mov byte [ebp - 4], 1
call fcn.00473040
push 0x4cdc80
push eax
lea eax, [ebp - 0x50]
push eax
mov byte [ebp - 4], 2
call fcn.00473040
push 0x4cd9ca
push eax
lea eax, [ebp - 0x58]
push eax
mov byte [ebp - 4], 3
call fcn.00473040
push eax
mov byte [ebp - 4], 4
call fcn.00411cd0
add esp, 0x28
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.00472740
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
call fcn.00472740
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00472740
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], bl
call fcn.00472740
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 0x412683
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.00472740
mov eax, dword [ebp - 0x28]
jmp 0x412771
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 0x4126d2
xor eax, eax
jmp 0x412771
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x4126eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
jne 0x4126cb
push dword [ebp - 0x18]
lea eax, [ebp + 4]
push eax
mov dword [ebp], edi
call fcn.00494970
cmp byte [esi + 7], 0xff
pop ecx
pop ecx
jne 0x412704
mov esi, dword [esi]
lea eax, [ebp + 0x108]
push esi
push eax
call fcn.00494970
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 0x412769
cmp dword [ebp - 0x24], ebx
jbe 0x412769
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.004944f9
add ebp, 0x210
leave
ret