Function at 0x50d9f0
Capabilities:
Enumerate services
Modify service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x524975
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x53120c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
push 0x10000
push 0x40
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x28], esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x34], edi
push eax
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp + 8]
push 0x10000
push edi
push 3
push 0x30
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
test eax, eax
je 0x50dbff
xor ebx, ebx
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x20], ebx
jle 0x50dbff
add edi, 4
mov dword [ebp - 0x1c], edi
mov esi, dword [edi]
call fcn.005048a0
mov ecx, eax
test ecx, ecx
je 0x50dc1c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.00506850
test al, al
jne 0x50dacb
test esi, esi
jne 0x50daad
xor eax, eax
jmp 0x50dac1
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x50dab2
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x14]
call fcn.00504b10
mov esi, dword [ebp - 0x14]
push str.VAIO_Control_Center_Update_Service
push esi
mov dword [ebp - 4], 1
call fcn.005129c1
add esp, 8
test eax, eax
jne 0x50dbc7
mov eax, dword [ebp + 8]
push 0xf01ff
push esi
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
je 0x50dbc4
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
jne 0x50dbbd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x50dbbd
mov eax, dword [ebp - 0x10]
mov ecx, 0x24
cmp eax, 0x24
cmovb eax, ecx
push eax
mov dword [ebp - 0x10], eax
call fcn.0050f36b
mov edi, eax
add esp, 4
test edi, edi
je 0x50dbba
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x50db6e
nop word [eax + eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x50db60
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push eax
push ecx
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x50dbb1
cmp dword [edi + 4], 4
je 0x50dbb1
push dword [edi + 0x20]
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 4
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x24], eax
push edi
call fcn.0050f374
add esp, 4
mov edi, dword [ebp - 0x1c]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x50dbe6
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
inc ebx
add edi, 0x24
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], edi
cmp ebx, dword [ebp - 0x20]
jl 0x50da75
mov esi, dword [ebp - 0x24]
mov edi, dword [ebp - 0x34]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.005046e0
int3