Function at 0x4086f0
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x444b80
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x455670]
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, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
jne 0x40872e
xor eax, eax
jmp 0x408b17
mov eax, 0xf
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], bl
push 0xe
push str.StopNTService_
lea ecx, [ebp - 0x68]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], ebx
mov byte [ebp - 0x68], 0
call fcn.0040124e
mov eax, esi
mov byte [ebp - 4], 1
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408767
sub eax, edx
push eax
push esi
lea ecx, [ebp - 0x68]
call fcn.0040181b
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x30]
push str.___u_:
push ecx
call fcn.0041b420
lea eax, [ebp - 0x30]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408795
sub eax, edx
push eax
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x68]
call fcn.0040181b
push 0x20000
push str.ServicesActive
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x98], eax
cmp eax, ebx
jne 0x408845
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x68]
mov edi, 0x10
cmp dword [ebp - 0x54], edi
jae 0x4087dc
lea edx, [ebp - 0x68]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4087e1
sub eax, esi
push eax
push edx
lea ecx, [ebp - 0x4c]
call fcn.0040124e
push 0x20
push str.OpenSCManager_FAILED_with_ErrNo
lea ecx, [ebp - 0x4c]
call fcn.0040181b
lea eax, [ebp - 0x30]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408810
sub eax, edx
push eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x4c]
call fcn.0040181b
mov eax, dword [ebp - 0x4c]
cmp dword [ebp - 0x38], edi
jae 0x408831
lea eax, [ebp - 0x4c]
push ebx
push eax
push str.UtlSvrHelp
call fcn.00401875
add esp, 0xc
jmp 0x408ad8
push 0x20020
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0x94], eax
cmp eax, ebx
jne 0x4088fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x30]
push 0x44c130
push ecx
call fcn.0041b420
mov edx, dword [ebp - 0x68]
mov ebx, 0x10
add esp, 0xc
cmp dword [ebp - 0x54], ebx
jae 0x408888
lea edx, [ebp - 0x68]
mov eax, edx
lea edi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408890
sub eax, edi
push eax
push edx
lea ecx, [ebp - 0x4c]
call fcn.0040124e
push 0xc
push str.OpenService_
lea ecx, [ebp - 0x4c]
call fcn.0040181b
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4088b7
sub eax, edx
push eax
push esi
lea ecx, [ebp - 0x4c]
call fcn.0040181b
push 0x14
push str.__FAILED_with_ErrNo
lea ecx, [ebp - 0x4c]
call fcn.0040181b
lea eax, [ebp - 0x30]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4088e0
sub eax, edx
push eax
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x4c]
call fcn.0040181b
cmp dword [ebp - 0x38], ebx
jmp 0x408aa4
lea ecx, [ebp - 0x84]
push ecx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x4089d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
lea edx, [ebp - 0x30]
push 0x44c130
push edx
call fcn.0041b420
mov edx, dword [ebp - 0x68]
add esp, 0xc
cmp dword [ebp - 0x54], 0x10
jae 0x40893c
lea edx, [ebp - 0x68]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408941
sub eax, edi
push eax
push edx
lea ecx, [ebp - 0x4c]
call fcn.0040124e
push 0x14
push str.ControlService_stop
lea ecx, [ebp - 0x4c]
call fcn.0040181b
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408968
sub eax, edx
push eax
push esi
lea ecx, [ebp - 0x4c]
call fcn.0040181b
push 0x14
push str.__FAILED_with_ErrNo
lea ecx, [ebp - 0x4c]
call fcn.0040181b
lea eax, [ebp - 0x30]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408990
sub eax, edx
push eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x4c]
call fcn.0040181b
cmp dword [ebp - 0x38], 0x10
mov eax, dword [ebp - 0x4c]
jae 0x4089b2
lea eax, [ebp - 0x4c]
push 0
push eax
push str.UtlSvrHelp
call fcn.00401875
add esp, 0xc
cmp ebx, 0x425
jne 0x408abc
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
je 0x408abc
lea ecx, [ebp - 0x88]
push ecx
xor edi, edi
push esi
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x8c], edi
call fcn.004014b0
add esp, 8
test eax, eax
je 0x408a79
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
cmp dword [ebp - 0x88], eax
je 0x408a32
add edi, eax
cmp edi, 0x12c
ja 0x408a46
push 0x64
call ebx
lea edx, [ebp - 0x88]
push edx
push esi
call fcn.004014b0
add esp, 8
test eax, eax
jne 0x408a01
jmp 0x408a3e
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x90], eax
cmp edi, 0x12c
jbe 0x408a70
cmp dword [ebp - 0x54], 0x10
mov eax, dword [ebp - 0x68]
jae 0x408a52
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00401348
push 0xa
push str._time_out.
lea ecx, [ebp - 0x4c]
call fcn.0040181b
cmp dword [ebp - 0x38], 0x10
jmp 0x408aa4
cmp dword [ebp - 0x8c], 0
jne 0x408abc
mov eax, dword [ebp - 0x68]
mov esi, 0x10
cmp dword [ebp - 0x54], esi
jae 0x408a89
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00401348
push 0x18
push str._GetServiceState_FAILED.
lea ecx, [ebp - 0x4c]
call fcn.0040181b
cmp dword [ebp - 0x38], esi
mov eax, dword [ebp - 0x4c]
jae 0x408aac
lea eax, [ebp - 0x4c]
push 0
push eax
push str.UtlSvrHelp
call fcn.00401875
add esp, 0xc
mov eax, dword [ebp - 0x98]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call esi
mov eax, dword [ebp - 0x94]
test eax, eax
je 0x408ad8
push eax
call esi
mov esi, 0x10
cmp dword [ebp - 0x54], esi
jb 0x408aee
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.0041a986
add esp, 4
mov dword [ebp - 0x54], 0xf
mov dword [ebp - 0x58], 0
mov byte [ebp - 0x68], 0
cmp dword [ebp - 0x38], esi
jb 0x408b11
mov edx, dword [ebp - 0x4c]
push edx
call fcn.0041a986
add esp, 4
mov eax, dword [ebp - 0x90]
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.0041b411
mov esp, ebp
pop ebp
ret