Function at 0x5330cc
Capabilities:
Modify service
Query service status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5332de
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 5
push 1
push 0
push 0
call sub.advapi32.dll_OpenSCManagerW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x533150
mov byte [ebp - 5], 6
push 0x5332fc
mov eax, dword [ebp - 4]
push dword [eax + 0x10]
push 0x53333c
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0x38]
call fcn.0042341c
push dword [ebp - 0x38]
lea eax, [ebp - 0x34]
mov edx, 4
call fcn.00408280
mov eax, dword [ebp - 0x34]
call fcn.0052c604
jmp 0x5332c3
xor eax, eax
push ebp
push 0x5332b0
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00407fb4
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_OpenServiceW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x5331c8
call sub.kernel32.dll_GetLastError_2
cmp eax, 0x424
jne 0x53318e
mov byte [ebp - 5], 0
push 0x53335c
mov eax, dword [ebp - 4]
push dword [eax + 0x10]
push 0x53333c
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0x40]
call fcn.0042341c
push dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
mov edx, 4
call fcn.00408280
mov eax, dword [ebp - 0x3c]
call fcn.0052c604
jmp 0x5332a6
mov byte [ebp - 5], 1
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x533220
cmp dword [ebp - 0x2c], 4
jne 0x5331e9
mov byte [ebp - 5], 2
jmp 0x533220
push 0x533398
mov eax, dword [ebp - 4]
push dword [eax + 0x10]
push 0x5333c8
mov eax, dword [ebp - 0x2c]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x48]
call fcn.0041eec4
push dword [ebp - 0x48]
lea eax, [ebp - 0x44]
mov edx, 4
call fcn.00408280
mov eax, dword [ebp - 0x44]
call fcn.0052c604
cmp byte [ebp - 5], 1
jne 0x53329d
push 2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00407fb4
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_OpenServiceW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x533258
call sub.kernel32.dll_GetLastError_2
cmp eax, 0x424
jne 0x53329d
mov byte [ebp - 5], 0
jmp 0x53329d
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_ChangeServiceConfigW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x533294
call sub.kernel32.dll_GetLastError_2
cmp eax, 0x430
jne 0x533294
mov byte [ebp - 5], 4
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CloseServiceHandle
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5332ba
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5332e5
lea eax, [ebp - 0x48]
mov edx, 6
call fcn.00407458
ret