Function at 0x408100
Capabilities:
Continue service

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x62a040]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov dword [esp + 0xc], eax
xor bl, bl
mov eax, dword [eax + 8]
push edi
mov edi, dword [ebp + 8]
test eax, eax
je 0x40812f
mov eax, dword [eax + 4]
jmp 0x408131
xor eax, eax
push eax
push 0x40
lea eax, [esp + 0x1c]
push eax
call sym.SystemInformer.exe_PhOpenService
mov esi, eax
test esi, esi
js 0x40817b
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push 3
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x40818b
lea ebx, [ebx]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.SystemInformer.exe_PhDosErrorToNtStatus
mov esi, eax
test esi, esi
jns 0x40818b
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor bl, bl
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 8]
test eax, eax
je 0x4081af
mov eax, dword [eax + 4]
jmp 0x4081b1
push ebx
mov byte [esp + 0x13], 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0057c26f
mov esp, ebp
pop ebp
ret 8
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 + 0xf]
push ecx
push esi
mov edx, dword [eax + 4]
mov ecx, edi
call fcn.00401940
test al, al
je 0x408352
cmp byte [esp + 0xf], 0
je 0x40845c
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 8]
test eax, eax
je 0x4081f8
mov ecx, dword [eax + 4]
jmp 0x4081fa
xor ecx, ecx
mov edx, 2
call fcn.0047c080
mov esi, eax
test esi, esi
js 0x408217
mov bl, 1
call sym.SystemInformer.exe__PhUiDisconnectFromPhSvc_0
jmp 0x40845c
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 8]
push dword [eax + 4]
push str.continue
push str.Unable_to__s__s.
call fcn.004017e0
add esp, 0xc
mov eax, dword [eax + 4]
mov dword [esp + 0x10], eax
cmp esi, 0xc0000022
je 0x408275
cmp esi, 0xc0000005
je 0x408275
mov eax, esi
and eax, 0xfff0000
cmp eax, 0x70000
jne 0x408263
movzx eax, si
jmp 0x40827f
mov eax, esi
and eax, 0xfff0000
cmp eax, 0xb0000
jne 0x408284
mov eax, esi
jmp 0x40827f
push esi
lfence
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosErrorNoTeb]
nop
test eax, eax
jne 0x40828f
push esi
lfence
call sym.SystemInformer.exe_PhGetNtMessage
jmp 0x408298
push eax
lfence
call sym.SystemInformer.exe_PhGetWin32Message
mov esi, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4082bf
test esi, esi
je 0x4082b2
lfence
mov ecx, 0x21
jmp 0x4082dc
push eax
push 0x5ca058
push 0x5c6aec
jmp 0x408334
nop
test esi, esi
je 0x408325
lfence
mov eax, 0x5c6aec
mov dword [esp + 0x14], 9
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], eax
mov edx, esi
mov eax, 4
push dword [eax + edx]
mov eax, dword [esp + 0x14]
push 0x5ca058
push eax
push 0xfffe
push ecx
push edi
call sym.SystemInformer.exe_PhShowMessage2
add esp, 0x18
lea ecx, [esi - 8]
lfence
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x408348
lfence
call fcn.004f9e40
call sym.SystemInformer.exe__PhUiDisconnectFromPhSvc_0
lea ecx, [ecx]
jmp 0x40845c
push 0x5c6aec
push 0x5ca058
push str.Unable_to_perform_the_operation.
push 0xfffe
push 9
push edi
call sym.SystemInformer.exe_PhShowMessage2
add esp, 0x18
call sym.SystemInformer.exe__PhUiDisconnectFromPhSvc_0
jmp 0x40845c
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 8]
push dword [eax + 4]
push str.continue
push str.Unable_to__s__s.
call fcn.004017e0
add esp, 0xc
mov eax, dword [eax + 4]
mov dword [esp + 0x10], eax
cmp esi, 0xc0000022
je 0x4083ad
lea ecx, [ecx]
cmp esi, 0xc0000005
je 0x4083ad
mov eax, esi
and eax, 0xfff0000
cmp eax, 0x70000
jne 0x40839b
movzx eax, si
jmp 0x4083b4
mov eax, esi
and eax, 0xfff0000
cmp eax, 0xb0000
jne 0x4083b8
mov eax, esi
jmp 0x4083b4
push esi
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosErrorNoTeb]
test eax, eax
jne 0x4083c2
push esi
call sym.SystemInformer.exe_PhGetNtMessage
mov edi, edi
jmp 0x4083c8
push eax
call sym.SystemInformer.exe_PhGetWin32Message
mov esi, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4083ea
test esi, esi
je 0x4083dd
mov ecx, 0x21
jmp 0x408403
push eax
push 0x5ca058
push 0x5c6aec
jmp 0x40844c
test esi, esi
je 0x40843d
mov eax, 0x5c6aec
mov dword [esp + 0x14], 9
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], eax
mov edx, esi
mov eax, 4
push dword [eax + edx]
mov eax, dword [esp + 0x14]
push 0x5ca058
push eax
push 0xfffe
push ecx
push edi
call sym.SystemInformer.exe_PhShowMessage2
add esp, 0x18
lea ecx, [esi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x40845c
call fcn.004f9e40
jmp 0x40845c
push 0x5c6aec
push 0x5ca058
push str.Unable_to_perform_the_operation.
push 0xfffe
push 9
push edi
call sym.SystemInformer.exe_PhShowMessage2
add esp, 0x18
mov ecx, dword [esp + 0x34]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0057c26f
mov esp, ebp
pop ebp
ret 8