Function at 0x4088c0
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
lea eax, [esp + 0x10]
push esi
mov esi, dword [ebp + 0x10]
push edi
push eax
mov byte [esp + 0x11], 1
mov byte [esp + 0x12], 0
mov dword [esp + 0x1c], 0x36
mov dword [esp + 0x20], str.EnableServiceProgressDialog
call sym.SystemInformer.exe_PhGetIntegerStringRefSetting
test eax, eax
je 0x408923
push 1
push 0x408820
push esi
push dword [ebp + 0xc]
mov edx, str.start
push ecx
push str.Starting_a_service_might_prevent_the_system_from_functioning_properly.
mov ecx, ebx
call fcn.00408660
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test esi, esi
je 0x408917
lea eax, ds:[esp + 0x18]
mov dword [esp + 0x18], 0x1c
push eax
mov dword [esp + 0x20], str.EnableWarnings
call sym.SystemInformer.exe_PhGetIntegerStringRefSetting
test eax, eax
je 0x408970
push 0
push str.Starting_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.start
push ebx
call sym.SystemInformer.exe_PhShowConfirmMessage
test al, al
je 0x408917
xor edi, edi
mov dword [esp + 0x10], edi
test esi, esi
je 0x408ceb
mov edi, edi
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + edi*4]
mov eax, dword [eax + 8]
test eax, eax
je 0x408992
mov eax, dword [eax + 4]
jmp 0x408994
xor eax, eax
push eax
push 0x10
lea eax, [esp + 0x1c]
push eax
call sym.SystemInformer.exe_PhOpenService
mov esi, eax
test esi, esi
js 0x4089f6
mov edi, dword [esp + 0x14]
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x408a18
cmp dword [0x62fbb0], 0xffffffff
jae 0x4089d6
mov eax, dword fs:[0x18]
mov edi, dword [esp + 0x14]
mov eax, dword [eax + 0x34]
jmp 0x4089dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.SystemInformer.exe_PhDosErrorToNtStatus
mov esi, eax
test esi, esi
jns 0x408a18
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, dword [esp + 0x10]
cmp byte [esp + 0xe], 0
mov byte [esp + 0xd], 0
jne 0x408bcf
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + edi*4]
mov eax, dword [eax + 8]
test eax, eax
je 0x408a2b
mov eax, dword [eax + 4]
jmp 0x408a2d
push edi
mov byte [esp + 0x11], 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x408cd9
xor eax, eax
push eax
push str.Unable_to_start
call sym.SystemInformer.exe_PhConcatStrings2
push eax
call sym.SystemInformer.exe_PhAutoDereferenceObject
lea ecx, [esp + 0xf]
push ecx
push esi
mov edx, dword [eax + 4]
mov ecx, ebx
call fcn.00401880
test al, al
je 0x408bcf
cmp byte ds:[esp + 0xf], 0
je 0x408bc5
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + edi*4]
mov eax, dword [eax + 8]
test eax, eax
je 0x408a78
mov ecx, dword [eax + 4]
jmp 0x408a7a
xor ecx, ecx
mov edx, 1
call fcn.0047db00
mov esi, eax
test esi, esi
js 0x408a9a
mov byte [esp + 0xd], 1
call sym.SystemInformer.exe__PhUiDisconnectFromPhSvc_0
jmp 0x408cdd
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + edi*4]
mov eax, dword [eax + 8]
push dword [eax + 4]
push str.start
push str.Unable_to__s__s.
call fcn.00401820
add esp, 0xc
mov edi, dword [eax + 4]
cmp esi, 0xc0000022
je 0x408af5
cmp esi, 0xc0000005
je 0x408af5
mov eax, esi
and eax, 0xfff0000
cmp eax, 0x70000
jne 0x408ae3
movzx eax, si
jmp 0x408aff
mov eax, esi
and eax, 0xfff0000
cmp eax, 0xb0000
jne 0x408b04
mov eax, esi
jmp 0x408aff
push esi
lfence
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosErrorNoTeb]
nop
test eax, eax
jne 0x408b0f
push esi
lfence
call sym.SystemInformer.exe_PhGetNtMessage
jmp 0x408b18
push eax
lfence
call sym.SystemInformer.exe_PhGetWin32Message
mov esi, eax
test edi, edi
je 0x408b38
mov edi, edi
test esi, esi
je 0x408b2b
mov ecx, 0x21
jmp 0x408b46
push edi
push 0x5ce56c
push 0x5ccc90
jmp 0x408ba3
test esi, esi
je 0x408b94
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 [ebp + 8]
jne 0x408bb3
lfence
call fcn.004fc420
mov edi, dword [esp + 0x10]
call sym.SystemInformer.exe__PhUiDisconnectFromPhSvc_0
jmp 0x408cdd
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 + 0x10]
call sym.SystemInformer.exe__PhUiDisconnectFromPhSvc_0
lea esp, [esp]
jmp 0x408cdd
mov byte [esp + 0xe], 1
jmp 0x408cdd
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + edi*4]
mov eax, dword [eax + 8]
push dword [eax + 4]
push str.start
push str.Unable_to__s__s.
call fcn.00401820
add esp, 0xc
mov eax, dword [eax + 4]
mov dword [esp + 0x18], eax
cmp esi, 0xc0000022
je 0x408c2d
lea esp, [esp]
cmp esi, 0xc0000005
je 0x408c2d
mov eax, esi
and eax, 0xfff0000
cmp eax, 0x70000
jne 0x408c1b
movzx eax, si
jmp 0x408c34
mov eax, esi
and eax, 0xfff0000
cmp eax, 0xb0000
jne 0x408c38
mov eax, esi
jmp 0x408c34
push esi
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosErrorNoTeb]
test eax, eax
jne 0x408c42
push esi
call sym.SystemInformer.exe_PhGetNtMessage
mov edi, edi
jmp 0x408c48
push eax
call sym.SystemInformer.exe_PhGetWin32Message
mov edi, eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x408c6a
test edi, edi
je 0x408c5d
mov edx, 0x21
jmp 0x408c78
push eax
push 0x5ce56c
push 0x5ccc90
jmp 0x408cc2
test edi, edi
je 0x408cb3
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 [ebp + 8]
jne 0x408cd4
call fcn.004fc420
jmp 0x408cd4
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 0x408ceb
mov edi, dword [esp + 0x10]
inc edi
mov dword [esp + 0x10], edi
cmp edi, dword [ebp + 0x10]
jb 0x408980
mov al, byte [esp + 0xd]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc