Function at 0x407ce0
Capabilities:
Continue service

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x62d040]
xor eax, esp
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], eax
mov byte [esp + 0xe], 1
mov byte [esp + 0xf], 0
push edi
test esi, esi
je 0x4080e4
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0x1c
push eax
mov dword [esp + 0x2c], str.EnableWarnings
call sym.SystemInformer.exe_PhGetIntegerStringRefSetting
test eax, eax
je 0x407d68
push 0
push str.Continuing_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 0x5cd85c
push ebx
call sym.SystemInformer.exe_PhShowConfirmMessage
jmp 0x407d60
test al, al
je 0x4080e4
xor edi, edi
mov dword [esp + 0x14], edi
test esi, esi
je 0x4080cc
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + edi*4]
mov eax, dword [eax + 8]
test eax, eax
je 0x407d89
mov eax, dword [eax + 4]
jmp 0x407d8b
xor eax, eax
push eax
push 0x40
lea eax, [esp + 0x34]
push eax
call sym.SystemInformer.exe_PhOpenService
mov esi, eax
test esi, esi
js 0x407dd6
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x30]
push eax
push 3
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x407df9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.SystemInformer.exe_PhDosErrorToNtStatus
mov esi, eax
test esi, esi
jns 0x407df9
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 0x407faf
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + edi*4]
mov eax, dword [eax + 8]
test eax, eax
je 0x407e0b
mov eax, dword [eax + 4]
jmp 0x407e0d
push edi
mov byte [esp + 0x16], 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x4080ba
xor eax, eax
push eax
push str.Unable_to_continue
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.00401940
test al, al
je 0x407faf
cmp byte ds:[esp + 0x1b], 0
je 0x407fa5
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + edi*4]
mov eax, dword [eax + 8]
test eax, eax
je 0x407e59
mov ecx, dword [eax + 4]
jmp 0x407e5b
xor ecx, ecx
mov edx, 2
call fcn.0047d1a0
mov esi, eax
test esi, esi
js 0x407e7a
mov byte [esp + 0x12], 1
call sym.SystemInformer.exe__PhUiDisconnectFromPhSvc_0
jmp 0x4080be
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + edi*4]
mov eax, dword [eax + 8]
push dword [eax + 4]
push 0x5cd85c
push str.Unable_to__s__s.
call fcn.004017e0
add esp, 0xc
mov edi, dword [eax + 4]
cmp esi, 0xc0000022
je 0x407ed5
cmp esi, 0xc0000005
je 0x407ed5
mov eax, esi
and eax, 0xfff0000
cmp eax, 0x70000
jne 0x407ec3
movzx eax, si
jmp 0x407edf
mov eax, esi
and eax, 0xfff0000
cmp eax, 0xb0000
jne 0x407ee4
mov eax, esi
jmp 0x407edf
push esi
lfence
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosErrorNoTeb]
nop
test eax, eax
jne 0x407eef
push esi
lfence
call sym.SystemInformer.exe_PhGetNtMessage
jmp 0x407ef8
push eax
lfence
call sym.SystemInformer.exe_PhGetWin32Message
mov esi, eax
test edi, edi
je 0x407f18
mov edi, edi
test esi, esi
je 0x407f0b
mov ecx, 0x21
jmp 0x407f26
push edi
push 0x5cd020
push 0x5c9adc
jmp 0x407f84
test esi, esi
je 0x407f75
mov ecx, 9
mov edi, 0x5c9adc
mov eax, ebx
mov edx, esi
mov ebx, 4
lfence
push dword [ebx + edx]
push 0x5cd020
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 0x407f94
lfence
call fcn.004fbfa0
mov edi, dword [esp + 0x14]
call sym.SystemInformer.exe__PhUiDisconnectFromPhSvc_0
jmp 0x4080be
push 0x5c9adc
push 0x5cd020
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
lea ecx, [ecx]
jmp 0x4080be
mov byte [esp + 0x13], 1
jmp 0x4080be
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + edi*4]
mov eax, dword [eax + 8]
push dword [eax + 4]
push 0x5cd85c
push str.Unable_to__s__s.
call fcn.004017e0
add esp, 0xc
mov eax, dword [eax + 4]
mov dword [esp + 0x24], eax
cmp esi, 0xc0000022
je 0x40800d
lea ecx, [ecx]
cmp esi, 0xc0000005
je 0x40800d
mov eax, esi
and eax, 0xfff0000
cmp eax, 0x70000
jne 0x407ffb
movzx eax, si
jmp 0x408014
mov eax, esi
and eax, 0xfff0000
cmp eax, 0xb0000
jne 0x408018
mov eax, esi
jmp 0x408014
push esi
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosErrorNoTeb]
test eax, eax
jne 0x408022
push esi
call sym.SystemInformer.exe_PhGetNtMessage
mov edi, edi
jmp 0x408028
push eax
call sym.SystemInformer.exe_PhGetWin32Message
mov edi, eax
mov eax, dword [esp + 0x24]
test eax, eax
je 0x40804a
test edi, edi
je 0x40803d
mov edx, 0x21
jmp 0x408058
push eax
push 0x5cd020
push 0x5c9adc
jmp 0x4080a3
test edi, edi
je 0x408094
mov edx, 9
mov eax, 0x5c9adc
mov ecx, ebx
mov esi, edi
mov ebx, 4
push dword [ebx + esi]
push 0x5cd020
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 0x4080b5
call fcn.004fbfa0
jmp 0x4080b5
push 0x5c9adc
push 0x5cd020
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 0x4080cc
mov edi, dword [esp + 0x14]
inc edi
mov dword [esp + 0x14], edi
cmp edi, dword [ebp + 0x10]
jb 0x407d76
mov al, byte [esp + 0x12]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0057fcaf
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esp + 0x4c]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0057fcaf
mov esp, ebp
pop ebp
ret 0xc