Function at 0x50ddf0
Capabilities:
Check for time delay via gettickcount
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x567628
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5df7e4]
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 edi, dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
push 0
push 0
push 0
call edi
mov esi, eax
test esi, esi
jne 0x50de37
or eax, 0xffffffff
jmp 0x50e069
push 1
push dword [0x5e5048]
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
call esi
test ebx, ebx
jne 0x50de60
push ebx
call esi
lea eax, [ebx + 1]
jmp 0x50e069
push ebx
call esi
push str.IsExistClient
call fcn.004c1030
add esp, 4
lea ecx, [ebp - 0x2d]
call fcn.00509be0
mov dword [ebp - 4], 0
mov ecx, eax
call fcn.00509c80
mov bl, al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2d]
call fcn.00509c40
test bl, bl
je 0x50dea5
mov eax, 2
jmp 0x50e069
push 0xf003f
push 0
push 0
call edi
mov ebx, eax
test ebx, ebx
je 0x50df8e
push 0x10024
push dword [0x5e5048]
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x50dee5
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call esi
mov eax, 0xfffffffd
jmp 0x50e069
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x2c]
push eax
push esi
call edi
mov ecx, dword [ebp - 0x28]
cmp ecx, 1
je 0x50dff0
cmp ecx, 3
jne 0x50df5d
nop dword [eax]
push str.stop_pending...
call fcn.004c1030
mov eax, 0xcccccccd
add esp, 4
mul dword [ebp - 0x14]
shr edx, 3
cmp edx, 0x3e8
jae 0x50df37
mov edx, 0x3e8
jmp 0x50df45
cmp edx, 0x2710
mov eax, 0x2710
cmova edx, eax
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x2c]
push eax
push esi
call edi
test eax, eax
je 0x50df98
cmp dword [ebp - 0x28], 3
je 0x50df10
lea eax, [ebp - 0x2c]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x50dfb6
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_faild.__ld_
call fcn.004c1030
add esp, 8
mov eax, 0xfffffffe
jmp 0x50e069
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QueryServiceStatusEx_failed___d__n
call fcn.004c1030
add esp, 8
mov eax, 0xfffffff6
jmp 0x50e069
cmp dword [ebp - 0x28], 1
je 0x50dff0
nop dword [eax]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x2c]
push eax
push esi
call edi
test eax, eax
je 0x50e042
cmp dword [ebp - 0x28], 1
je 0x50e033
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x34]
cmp eax, 0x7530
ja 0x50e01f
cmp dword [ebp - 0x28], 1
jne 0x50dfc0
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
call esi
push ebx
call esi
call fcn.0050bce0
test al, al
jne 0x50e05d
test edi, edi
mov eax, 0xfffffffc
mov ecx, 3
cmovne eax, ecx
jmp 0x50e069
push str.Wait_timed_out
call fcn.004c1030
add esp, 4
mov eax, 0xfffffff4
jmp 0x50e069
push str.service_is_stoped.
call fcn.004c1030
add esp, 4
jmp 0x50dff0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_faild_2.__ld_
call fcn.004c1030
add esp, 8
mov eax, 0xfffffff5
jmp 0x50e069
xor eax, eax
mov ecx, 0xfffffffb
test edi, edi
cmove eax, ecx
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.005121be
mov esp, ebp
pop ebp
ret