Function at 0x50bb30
Capabilities:
Enumerate services
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6be4b0
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x7adbc4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0x14]
push 0xf003f
push 0
push dword [edi + 8]
mov dword [ebp - 0x38], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [ebp - 0x4c], esi
xor eax, eax
mov dword [ebp - 4], 0
test esi, esi
setne al
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x50bb9a
movzx eax, ax
or eax, 0x80070000
cmp dword [ebp - 0x30], 0
je 0x50be5b
xor eax, eax
cmp dword [ebp + 0x18], 1
sete al
lea eax, [eax*8 + 4]
or eax, dword [ebp - 0x38]
push eax
push dword [edi + 4]
mov dword [ebp - 0x44], eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
mov dword [ebp - 0x50], edi
xor eax, eax
mov byte [ebp - 4], 1
test edi, edi
setne al
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x50bbea
movzx eax, ax
or eax, 0x80070000
cmp dword [ebp - 0x30], 0
je 0x50be5b
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x48], 0
movq qword [ebp - 0x1c], xmm0
cmp dword [ebp + 0x18], 1
mov byte [ebp - 4], 2
jne 0x50bd7b
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x3c]
push eax
push 0
push 0
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
jne 0x50bd7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xea
sete cl
mov dword [ebp - 0x30], ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x50bc5e
movzx eax, ax
or eax, 0x80070000
cmp dword [ebp - 0x30], 0
je 0x50be5b
push dword [ebp - 0x3c]
call fcn.0066a5c9
add esp, 4
mov dword [ebp - 0x48], eax
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x3c]
push ecx
push dword [ebp - 0x3c]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x50bca6
movzx eax, ax
or eax, 0x80070000
cmp dword [ebp - 0x30], 0
je 0x50be5b
cmp dword [ebp - 0x40], 0
mov dword [ebp - 0x38], 0
jbe 0x50bd7b
mov edx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x48]
and edx, 0xfffffff7
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x30], ecx
movups xmm0, xmmword [ecx + 0x10]
mov eax, dword [ecx]
push edx
push eax
push esi
movups xmmword [ebp - 0x68], xmm0
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x54], esi
xor eax, eax
mov byte [ebp - 4], 3
test esi, esi
setne al
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x50bd08
movzx eax, ax
or eax, 0x80070000
cmp dword [ebp - 0x34], 0
je 0x50bdad
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x50bd3b
movzx eax, ax
or eax, 0x80070000
cmp dword [ebp - 0x34], 0
je 0x50bdad
push dword [ebp + 8]
push 1
push esi
call fcn.0050b9e0
mov byte [ebp - 4], 2
test esi, esi
je 0x50bd5b
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x30]
inc eax
mov esi, dword [ebp - 0x4c]
add ecx, 0x24
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], ecx
cmp eax, dword [ebp - 0x40]
jae 0x50bd7b
mov edx, dword [ebp - 0x44]
jmp 0x50bcd0
cmp dword [ebp + 0xc], 0
je 0x50bdc2
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x50bda7
movzx eax, ax
or eax, 0x80070000
cmp dword [ebp - 0x34], 0
jne 0x50be03
push eax
lea ecx, [ebp - 0x34]
call fcn.00490940
push 0x7a719c
mov eax, ecx
jmp 0x50be6b
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 0x10]
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x50bdeb
movzx eax, ax
or eax, 0x80070000
cmp dword [ebp - 0x34], 0
jne 0x50be03
push eax
lea ecx, [ebp - 0x34]
call fcn.00490940
push 0x7a719c
mov eax, ecx
jmp 0x50be6b
push dword [ebp + 8]
push dword [ebp + 0x18]
push edi
call fcn.0050b9e0
push 0x24
push dword [ebp - 0x48]
mov dword [ebp - 0x34], eax
call fcn.0066a2e8
add esp, 8
test edi, edi
je 0x50be2e
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
jmp 0x50be34
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x50be3b
push esi
call edi
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00669a8a
mov esp, ebp
pop ebp
ret 0x1c
push eax
lea ecx, [ebp - 0x30]
call fcn.00490940
push 0x7a719c
mov eax, ecx
push eax
call fcn.0066d7ed
int3