Function at 0x4089c0
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 0x408a23
push 1
push 0x408920
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.00408760
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test esi, esi
je 0x408a17
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 0x408a70
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 0x408a17
xor edi, edi
mov dword [esp + 0x10], edi
test esi, esi
je 0x408deb
mov edi, edi
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + edi*4]
mov eax, dword [eax + 8]
test eax, eax
je 0x408a92
mov eax, dword [eax + 4]
jmp 0x408a94
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 0x408af6
mov edi, dword [esp + 0x14]
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x408b18
cmp dword [0x62dbb0], 0xffffffff
jae 0x408ad6
mov eax, dword fs:[0x18]
mov edi, dword [esp + 0x14]
mov eax, dword [eax + 0x34]
jmp 0x408adc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.SystemInformer.exe_PhDosErrorToNtStatus
mov esi, eax
test esi, esi
jns 0x408b18
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 0x408ccf
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + edi*4]
mov eax, dword [eax + 8]
test eax, eax
je 0x408b2b
mov eax, dword [eax + 4]
jmp 0x408b2d
push edi
mov byte [esp + 0x11], 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x408dd9
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.00401980
test al, al
je 0x408ccf
cmp byte ds:[esp + 0xf], 0
je 0x408cc5
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + edi*4]
mov eax, dword [eax + 8]
test eax, eax
je 0x408b78
mov ecx, dword [eax + 4]
jmp 0x408b7a
xor ecx, ecx
mov edx, 1
call fcn.0047d8a0
mov esi, eax
test esi, esi
js 0x408b9a
mov byte [esp + 0xd], 1
call sym.SystemInformer.exe__PhUiDisconnectFromPhSvc_0
jmp 0x408ddd
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.00401920
add esp, 0xc
mov edi, dword [eax + 4]
cmp esi, 0xc0000022
je 0x408bf5
cmp esi, 0xc0000005
je 0x408bf5
mov eax, esi
and eax, 0xfff0000
cmp eax, 0x70000
jne 0x408be3
movzx eax, si
jmp 0x408bff
mov eax, esi
and eax, 0xfff0000
cmp eax, 0xb0000
jne 0x408c04
mov eax, esi
jmp 0x408bff
push esi
lfence
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosErrorNoTeb]
nop
test eax, eax
jne 0x408c0f
push esi
lfence
call sym.SystemInformer.exe_PhGetNtMessage
jmp 0x408c18
push eax
lfence
call sym.SystemInformer.exe_PhGetWin32Message
mov esi, eax
test edi, edi
je 0x408c38
mov edi, edi
test esi, esi
je 0x408c2b
mov ecx, 0x21
jmp 0x408c46
push edi
push 0x5cc434
push 0x5cab58
jmp 0x408ca3
test esi, esi
je 0x408c94
mov ecx, 9
mov edi, 0x5cab58
mov eax, ebx
mov edx, esi
mov ebx, 4
lfence
push dword [ebx + edx]
push 0x5cc434
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 0x408cb3
lfence
call fcn.004fbd80
mov edi, dword [esp + 0x10]
call sym.SystemInformer.exe__PhUiDisconnectFromPhSvc_0
jmp 0x408ddd
push 0x5cab58
push 0x5cc434
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 0x408ddd
mov byte [esp + 0xe], 1
jmp 0x408ddd
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.00401920
add esp, 0xc
mov eax, dword [eax + 4]
mov dword [esp + 0x18], eax
cmp esi, 0xc0000022
je 0x408d2d
lea esp, [esp]
cmp esi, 0xc0000005
je 0x408d2d
mov eax, esi
and eax, 0xfff0000
cmp eax, 0x70000
jne 0x408d1b
movzx eax, si
jmp 0x408d34
mov eax, esi
and eax, 0xfff0000
cmp eax, 0xb0000
jne 0x408d38
mov eax, esi
jmp 0x408d34
push esi
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosErrorNoTeb]
test eax, eax
jne 0x408d42
push esi
call sym.SystemInformer.exe_PhGetNtMessage
mov edi, edi
jmp 0x408d48
push eax
call sym.SystemInformer.exe_PhGetWin32Message
mov edi, eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x408d6a
test edi, edi
je 0x408d5d
mov edx, 0x21
jmp 0x408d78
push eax
push 0x5cc434
push 0x5cab58
jmp 0x408dc2
test edi, edi
je 0x408db3
mov edx, 9
mov eax, 0x5cab58
mov ecx, ebx
mov esi, edi
mov ebx, 4
push dword [ebx + esi]
push 0x5cc434
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 0x408dd4
call fcn.004fbd80
jmp 0x408dd4
push 0x5cab58
push 0x5cc434
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 0x408deb
mov edi, dword [esp + 0x10]
inc edi
mov dword [esp + 0x10], edi
cmp edi, dword [ebp + 0x10]
jb 0x408a80
mov al, byte [esp + 0xd]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc