Function at 0x40a060
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x62f040]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [esp + 0x1c]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
push eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], edi
mov byte [esp + 0x16], 1
mov byte [esp + 0x17], 0
mov dword [esp + 0x28], 0x36
mov dword [esp + 0x2c], str.EnableServiceProgressDialog
call sym.SystemInformer.exe_PhGetIntegerStringRefSetting
test eax, eax
je 0x40a0e3
push 4
push 0x40a000
push esi
push edi
push ecx
push str.Stopping_a_service_might_prevent_the_system_from_functioning_properly.
mov edx, str.stop
mov ecx, ebx
call fcn.00408660
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0058078f
mov esp, ebp
pop ebp
ret 0xc
test esi, esi
je 0x40a0cb
lea eax, ds:[esp + 0x24]
mov dword [esp + 0x24], 0x1c
push eax
mov dword [esp + 0x2c], str.EnableWarnings
call sym.SystemInformer.exe_PhGetIntegerStringRefSetting
test eax, eax
je 0x40a130
push 0
push str.Stopping_a_service_might_prevent_the_system_from_functioning_properly.
mov ecx, str.the_selected_service
cmp esi, 1
mov eax, str.the_selected_services
cmove eax, ecx
push eax
push str.stop
push ebx
call sym.SystemInformer.exe_PhShowConfirmMessage
test al, al
je 0x40a0cb
xor edi, edi
mov dword [esp + 0x14], edi
test esi, esi
je 0x40a4c9
mov edi, edi
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + edi*4]
mov eax, dword [eax + 8]
test eax, eax
je 0x40a153
mov eax, dword [eax + 4]
jmp 0x40a155
xor eax, eax
push eax
push 0x20
lea eax, [esp + 0x34]
push eax
call sym.SystemInformer.exe_PhOpenService
mov esi, eax
test esi, esi
js 0x40a1bd
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x30]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
lea ecx, [ecx]
test eax, eax
jne 0x40a1e2
cmp dword [0x62fbb0], 0xffffffff
jae 0x40a19c
mov eax, dword fs:[0x18]
mov edi, dword [esp + 0x2c]
mov eax, dword [eax + 0x34]
jmp 0x40a1a6
lea esp, [esp]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.SystemInformer.exe_PhDosErrorToNtStatus
mov esi, eax
test esi, esi
jns 0x40a1e2
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, dword [esp + 0x14]
cmp byte [esp + 0x13], 0
mov byte [esp + 0x12], 0
jne 0x40a3a5
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + edi*4]
mov eax, dword [eax + 8]
test eax, eax
je 0x40a1f3
mov eax, dword ds:[eax + 4]
jmp 0x40a1f5
push edi
mov byte [esp + 0x16], 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x40a4b7
xor eax, eax
push eax
push str.Unable_to_stop
call sym.SystemInformer.exe_PhConcatStrings2
push eax
call sym.SystemInformer.exe_PhAutoDereferenceObject
lea ecx, [esp + 0x1b]
push ecx
push esi
mov edx, dword [eax + 4]
mov ecx, ebx
call fcn.00401880
jmp 0x40a220
test al, al
je 0x40a3a5
cmp byte [esp + 0x1b], 0
je 0x40a396
mov eax, dword ds:[esp + 0x1c]
mov eax, dword [eax + edi*4]
mov eax, dword [eax + 8]
test eax, eax
je 0x40a249
mov ecx, dword [eax + 4]
jmp 0x40a24b
xor ecx, ecx
mov edx, 4
call fcn.0047db00
mov esi, eax
test esi, esi
js 0x40a26a
mov byte [esp + 0x12], 1
call sym.SystemInformer.exe__PhUiDisconnectFromPhSvc_0
jmp 0x40a4bb
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + edi*4]
mov eax, dword [eax + 8]
push dword [eax + 4]
push str.stop
push str.Unable_to__s__s.
call fcn.00401820
add esp, 0xc
mov edi, dword [eax + 4]
cmp esi, 0xc0000022
je 0x40a2c2
cmp esi, 0xc0000005
je 0x40a2c2
mov eax, esi
and eax, 0xfff0000
cmp eax, 0x70000
jne 0x40a2af
movzx eax, si
jmp 0x40a2cc
mov eax, esi
and eax, 0xfff0000
cmp eax, 0xb0000
jne 0x40a2d0
mov eax, esi
jmp 0x40a2cc
push esi
lfence
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosErrorNoTeb]
test eax, eax
jne 0x40a2db
push esi
lfence
call sym.SystemInformer.exe_PhGetNtMessage
jmp 0x40a2e5
push eax
lfence
call sym.SystemInformer.exe_PhGetWin32Message
mov esi, eax
test edi, edi
je 0x40a303
test esi, esi
je 0x40a2f6
mov ecx, 0x21
jmp 0x40a311
push edi
push 0x5ce56c
push 0x5ccc90
jmp 0x40a374
test esi, esi
je 0x40a365
mov ecx, 9
mov edi, 0x5ccc90
mov eax, ebx
mov edx, esi
mov ebx, 4
lfence
push dword [ebx + edx]
push 0x5ce56c
push edi
push 0xfffe
push ecx
push eax
call sym.SystemInformer.exe_PhShowMessage2
add esp, 0x18
lea ecx, [esi - 8]
lfence
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
mov ebx, dword [esp + 0x20]
jne 0x40a388
lfence
call fcn.004fc420
mov edi, dword [esp + 0x14]
call sym.SystemInformer.exe__PhUiDisconnectFromPhSvc_0
jmp 0x40a360
jmp 0x40a4bb
push 0x5ccc90
push 0x5ce56c
push str.Unable_to_perform_the_operation.
push 0xfffe
push 9
push ebx
call sym.SystemInformer.exe_PhShowMessage2
add esp, 0x18
mov edi, dword [esp + 0x14]
call sym.SystemInformer.exe__PhUiDisconnectFromPhSvc_0
jmp 0x40a4bb
mov byte ds:[esp + 0x13], 1
jmp 0x40a4bb
mov eax, dword ds:[esp + 0x1c]
mov eax, dword [eax + edi*4]
mov eax, dword [eax + 8]
push dword [eax + 4]
push str.stop
push str.Unable_to__s__s.
call fcn.00401820
add esp, 0xc
mov eax, dword [eax + 4]
mov dword [esp + 0x24], eax
cmp esi, 0xc0000022
je 0x40a40b
cmp esi, 0xc0000005
je 0x40a40b
mov eax, esi
and eax, 0xfff0000
cmp eax, 0x70000
jne 0x40a3f2
movzx eax, si
jmp 0x40a412
mov eax, esi
and eax, 0xfff0000
cmp eax, 0xb0000
jne 0x40a416
mov eax, esi
jmp 0x40a412
push esi
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosErrorNoTeb]
test eax, eax
jne 0x40a41e
push esi
call sym.SystemInformer.exe_PhGetNtMessage
jmp 0x40a425
push eax
call sym.SystemInformer.exe_PhGetWin32Message
mov edi, eax
mov eax, dword [esp + 0x24]
test eax, eax
je 0x40a447
test edi, edi
je 0x40a43a
mov edx, 0x21
jmp 0x40a455
push eax
push 0x5ce56c
push 0x5ccc90
jmp 0x40a4a0
test edi, edi
je 0x40a491
mov edx, 9
mov eax, 0x5ccc90
mov ecx, ebx
mov esi, edi
mov ebx, 4
push dword [ebx + esi]
push 0x5ce56c
push eax
push 0xfffe
push edx
push ecx
call sym.SystemInformer.exe_PhShowMessage2
mov esi, eax
lea ecx, [edi - 8]
add esp, 0x18
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
mov ebx, dword [esp + 0x20]
jne 0x40a4b2
call fcn.004fc420
jmp 0x40a4b2
push 0x5ccc90
push 0x5ce56c
push str.Unable_to_perform_the_operation.
push 0xfffe
push 9
push ebx
call sym.SystemInformer.exe_PhShowMessage2
mov esi, eax
add esp, 0x18
cmp esi, 1
jne 0x40a4c9
mov edi, dword [esp + 0x14]
inc edi
mov dword [esp + 0x14], edi
cmp edi, dword [ebp + 0x10]
jb 0x40a140
mov ecx, dword [esp + 0x4c]
mov al, byte [esp + 0x12]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0058078f
mov esp, ebp
pop ebp
ret 0xc