Function at 0x48c7e0
Capabilities:
Check if file exists
Modify service
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a2a9d
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x4af20c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0xf003f
push 0
push 0
mov dword [ebp - 0x44], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ecx, eax
mov dword [ebp - 0x58], ecx
test ecx, ecx
je 0x48caf1
push 0xf01ff
lea eax, [esi + 0x40]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edx, eax
mov ecx, 0x14
mov dword [ebp - 0x40], edx
lea eax, [ebp - 0x78]
nop dword [eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x48c850
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x78]
push eax
push 2
push edx
mov dword [ebp - 0x24], 0xbb8
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], 0xbb8
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x78], 0x12c
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x6c], 3
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
call fcn.004828a0
mov ecx, eax
test ecx, ecx
je 0x48cb10
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], 0
call fcn.004828a0
mov ecx, eax
test ecx, ecx
je 0x48cb1a
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x30], edi
xor ebx, ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 2
push eax
push 0x20019
push ebx
push str.SOFTWAREVAIO_CorporationVAIO_UWP_Update
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x48ca9a
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x38]
push ecx
push ebx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x54], eax
push ecx
push ebx
push str.InstalledDir
push eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x38], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x48ca8a
mov eax, dword [ebp - 0x48]
cmp eax, 1
je 0x48c94e
cmp eax, 2
jne 0x48ca8a
mov edx, dword [ebp - 0x38]
shr edx, 1
mov dword [ebp - 0x4c], edx
je 0x48ca8a
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x48c979
push edx
lea ecx, [ebp - 0x2c]
call fcn.004829d0
mov esi, dword [ebp - 0x2c]
test esi, esi
je 0x48ca8a
lea eax, [ebp - 0x4c]
push eax
push esi
push str.InstalledDir
lea ecx, [ebp - 0x64]
call fcn.00486730
push 0xffffffffffffffff
lea ecx, [ebp - 0x2c]
mov ebx, eax
call fcn.004872b0
test ebx, ebx
jne 0x48ca8a
cmp dword [esi - 0xc], ebx
je 0x48ca8a
push 1
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00487300
mov ecx, 0x4a4e2c
mov eax, dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x48c9eb
test dx, dx
je 0x48c9e7
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x48c9eb
add eax, 4
add ecx, 4
test dx, dx
jne 0x48c9c5
xor esi, esi
jmp 0x48c9f0
sbb esi, esi
or esi, 1
lea ecx, [ebp - 0x50]
call fcn.00482320
test esi, esi
je 0x48ca09
push 0x4a4e2c
lea ecx, [ebp - 0x2c]
call fcn.00482e60
push str.VESRes.dll
lea ecx, [ebp - 0x2c]
call fcn.00482e60
mov esi, dword [ebp - 0x2c]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48ca8a
push 0x2981
push esi
lea eax, [ebp - 0x30]
push str.___s____d
push eax
call fcn.00484b70
add esp, 0x10
lea eax, [ebp - 0x3c]
mov ecx, 4
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x48ca43
mov edi, dword [ebp - 0x30]
cmp dword [edi - 4], 1
jle 0x48ca65
push dword [edi - 0xc]
lea ecx, [ebp - 0x30]
call fcn.004827b0
mov edi, dword [ebp - 0x30]
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], edi
push eax
push 1
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
neg eax
lea ecx, [ebp - 0x30]
push 0xffffffffffffffff
sbb eax, eax
neg eax
mov dword [ebp - 0x44], eax
call fcn.004872b0
mov ebx, dword [ebp - 0x54]
test ebx, ebx
je 0x48ca9a
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebx, ebx
je 0x48caae
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [edi - 0x10]
mov byte [ebp - 4], 0
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48cacc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x48cae8
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048d225
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004826e0
push 0x80004005
call fcn.004826e0
int3